magma-controller 0.1.34

magma — complete operator-loop composition. Wraps Reconciler + DriftPolicy + Budget + Stream + FSM + Bundle + Metrics into one reusable controller. The `I want a complete operator` composition every reconciler kind plugs into.
Documentation

magma-controller — complete operator-loop composition.

Wraps Reconciler + DriftPolicy + BudgetedReconciler + PlanStream + LifecycleState + Bundle + Metrics into ONE reusable controller. The "I want a complete operator" composition every reconciler kind plugs into.

Calling controller.reconcile(&config) runs the full loop:

  1. FSM Idle → Planning
  2. read_state (via budgeted reconciler)
  3. compute_plan + emit PlanComputed event + metrics
  4. classify drift against policy + emit DriftClassified event + metrics
  5. branch on ReconcileResult:
    • NoChange → FSM → Stable
    • Refused → FSM → Refused
    • HeldForApproval → FSM → Approving (caller drives further)
    • Applied → apply + emit ApplyOutcome event + metrics + FSM → Verifying → Stable
  6. build a tamper-evident magma-bundle
  7. return a typed ControllerOutcome carrying the bundle + final FSM state

Per theory/CONVERGENCE-SUBSTRATE.md §IV.5 + §IV.7.