Skip to main content

Crate magma_bundle

Crate magma_bundle 

Source
Expand description

magma-bundle — compliance-ready reconcile artifact.

Every reconcile produces typed artifacts: a Plan (what was intended), an Outcome (what landed), a DriftReport (how policy classified each change), a LifecycleState (which phases it went through), an audit chain (every event with BLAKE3 linkage). This crate combines them into one Bundle with a BLAKE3 bundle_id over the canonical serialization.

Useful for:

  • Compliance audits — one tamper-evident artifact per reconcile.
  • Operator support — “send us the bundle for this CR” and the bundle has everything.
  • Disaster recovery — bundle pins what happened; replay verifies pre/post state.
  • Cross-team handoffs — typed shape, no missing pieces.

Structs§

Bundle
Compliance-ready bundle. Carries every typed artifact a single reconcile produces, plus a BLAKE3 bundle_id over the canonical projection. Round-trips through serde + verifies via Bundle::verify.

Enums§

BundleError