STAGE 01 · INTAKE
Goal Contract Compilation
Compiles a formal tuple M = ⟨Goal, Target, Constraints, AuthTier, BlastRadius, Budget, Tests⟩ hashed prior to planning.
Source: alrazzi/cognition/control/contracts.py
Auth Tier: T0 (Reasoning only)
Checks: Schema validity, token budget
STAGE 02 · SCHEDULER
Acyclic DAG Planning
Synthesizes Linear, FanOutFanIn, SpeculativeParallel, or CyclicRefinement DAGs with pre-conditions and rollback points.
Source: alrazzi/autonomy/plane_orchestration_exec.py
Algorithm: Topological AST dependency sort
Checkpoint: Snapshot saved prior to dispatch
STAGE 03 · MESH
Specialist Kernel Dispatch
Routes sub-tasks across K1-Hermes, K2-OpenCode, K3-Codex, K4-Claude, and K5-Antigravity with zero storage duplication.
Source: alrazzi/kernels/mesh.py
Protocol: Federated IPC pointers
Context Cap: Strict <= 16k tokens/worker
STAGE 04 · SANDBOX
Constrained Tool Execution
Browser drivers sanitize DOM trees; Windows automation enforces window bounding boxes; subprocesses run under timeout barriers.
Source: alrazzi/autonomy/plane_browser_exec.py
Boundary: Reversible local mutations (T2)
Trace: Return codes & AST delta logged
STAGE 05 · COURT
Independent Judicial Court
Spins up a clean pytest harness, validates invariants INV_01 through INV_05, checks regressions, and grades empirical proof.
Source: alrazzi/tier0/court.py
Separation: Verifier V has 0 memory of P
Verdict: PASS / REVISE / ROLLBACK
STAGE 06 · LEDGER
Evidence Ledger & Promotion
Commits verified diffs and appends a SHA-256 cryptographic Evidence Receipt linking contract, diff, and test log.
Source: alrazzi/corpus/ledger.py
Digest: SHA-256 Merkle chain
State: Promoted cleanly