aeat.application.filing._runtime_repository module¶
Runtime-backed repository helpers for filing application persistence.
Constructs a
SecureObjectRepository scoped to
the active filing bucket on demand. The concrete adapter import is deferred so
the application filing module graph does not acquire an adapters-layer edge at
import time; only callers that actually need runtime storage cross that
boundary.
See also
application.filing.ModeloHistoryRepositoryApplication repository that consumes these helpers to persist filing-history payloads.
adapters.persistence.storage.secure_object_repository_for_bucket()Storage-runtime factory used after the filing bucket id is resolved.
adapters.persistence.profile._filing_runtimeParallel persistence-adapter helper used by the governed draft and amendment repositories.
- resolve_application_filing_bucket_id(bucket_id)[source]¶
Return the explicit or active profile bucket id for application repositories.
- Parameters:
bucket_id (
str|None) – Optional bucket id supplied by the caller. Blank values are rejected;Nonefalls back to the active profile bucket.- Return type:
- Returns:
Normalized bucket id used to scope application filing storage.
- Raises:
ModeloApplicationError – When no explicit or active profile bucket is available.
- secure_objects_for_application_filing_bucket(bucket_id)[source]¶
Return runtime-created secure-object storage for
bucket_id.The concrete adapter is imported here (not at module scope) so that application/filing/_runtime_repository does not carry a module-scope import from the adapters layer. The import-time edge is eliminated; the runtime dependency remains transparent.
- Return type:
- Returns:
A
SecureObjectRepositoryscoped tobucket_id.- Parameters:
bucket_id (str)