cadrumo.application.evidence package¶
Inert namespace for evidence-bundle audit services.
The evidence bundle is a bucket-scoped, work-unit-bound
EvidenceBundle manifest plus EvidenceRecordRef records
used to package the provenance of a modelo calculation, verification, or
filing for offline inspection and audit handoff. Bundles are durable
artifacts stored inside the active bucket; they are not the source of
relational truth.
Bundle manifests can reference WorkUnit,
CalculationRevision, and
ModeloRecord payloads by stable id, with each
record typed by domain.buckets.event.BucketEventObjectType. They are
audit packaging records, not purchase-invoice evidence or official AEAT filing
evidence claims.
The persisted manifest is encrypted bucket-local state reached through the
required EvidenceBundlePorts capabilities supplied by outer
composition. The ZIP produced by export is an operator-directed plaintext
handoff artifact written only to the caller’s requested path after verification.
- Verbs supported by the operator surface (aeat app modelo audit …):
show - render the bundle’s manifest and referenced records check - re-verify the bundle’s integrity (report-only) export - write a ZIP archive with the manifest emitted last
- Bucket events emitted by mutating operations:
modelo.audit.verified - a fresh verify-pass completed modelo.audit.exported - a ZIP was successfully written
The audit surface never contacts AEAT and never performs live submission.
Export refuses on failed verification unless --force-incomplete is
explicitly passed at the operator boundary.
Models are defined in models, required capabilities in ports, and
service operations in service. The package initializer exports no symbols.
See also
EvidenceBundleServiceBuild, verify, and export service for audit bundles.
EvidenceBundlePortsRequired application capabilities for one bucket-bound service call.
EvidenceBundleVerificationReportIntegrity-check summary emitted by
checkandexportflows.BundleVerificationStateClosed verification state vocabulary for bundle manifests.
application.ledger.evidence.PurchaseInvoiceEvidenceSource-document evidence for ledger rows.
ExternalEvidenceOfficial filing evidence stamped on current modelo filing records.
Submodules¶
- cadrumo.application.evidence.bundle_text module
- cadrumo.application.evidence.models module
EvidenceBundleNotFoundErrorEvidenceBundleVerificationErrorBundleVerificationStateVerificationCheckEvidenceBundleCheckResultEvidenceRecordRefEvidenceBundleEvidenceBundle.bundle_idEvidenceBundle.manifest_versionEvidenceBundle.bucket_idEvidenceBundle.work_unit_idEvidenceBundle.calculation_revision_idEvidenceBundle.filing_record_idEvidenceBundle.recordsEvidenceBundle.verification_stateEvidenceBundle.completeness_ratioEvidenceBundle.created_atEvidenceBundle.notes
derive_bundle_id()
- cadrumo.application.evidence.payloads module
- cadrumo.application.evidence.ports module
- cadrumo.application.evidence.profile_legal_hold module
LEGAL_HOLD_OWNER_DIRNAMELEGAL_HOLD_SNAPSHOT_SCHEMA_VERSIONLegalHoldCaseSnapshotLegalHoldCaseSnapshot.schema_versionLegalHoldCaseSnapshot.profile_idLegalHoldCaseSnapshot.open_case_idsLegalHoldCaseSnapshot.observed_atLegalHoldCaseSnapshot.self_digestLegalHoldCaseSnapshot.canonical_payloadLegalHoldCaseSnapshot.computed_self_digestLegalHoldCaseSnapshot.canonical_json_bytes()LegalHoldCaseSnapshot.from_open_cases()
LegalHoldCaseAuthoritytry_record_legal_hold_snapshot()
- cadrumo.application.evidence.service module