Immune-Brain: Loop
Use ../../dist/imm-loop.md as the canonical contract
index, not a whole-document read, in the current host conversation. Explicit entry only:
ordinary host input never resumes a Managed owner implicitly.
Mandatory constraints before any action: verify the active backend claim,
TaskIntent, and TaskRecord via imm_kernel_canary status first; invalid or
contradictory projections fail closed. All Managed authority gates use the
current Host's native interaction. A failed gate stays fail-closed and
reports one same-Host recovery action; never suggest another Host, worktree,
or unmanaged implementation as a fallback.
Section routes - load a section's instructions only when its branch applies. Read each linked heading body up to the next heading; nested sections and references load only under their own condition. Never read the whole contract or all references as an entry prerequisite.
- common: Shared Guards, Workflow Activation, Host Confirmation Boundary, Kernel Canary Routing and Authority
- steady execution: Verification and Local Recovery, Execution Loop, Observable Output
- rework, scope expansion, breaking revision, user decision, stop, interruption or unknown state before any action: Decisions and Recovery, Failure Output; re-read
status, then the pending obligation - review or post-settlement learning: Review and Learning