type: meta

slug: autonomy-completion-invariants

base_branch: origin/main

gate0_mode: strict

preset: codex

land_mode: merge-to-main

exec_mode: ship


type: goal

text: Make autonomous runs recover known infrastructure failures, resume durable progress, and publish terminal truth.


type: methodology

text: TDD; repair existing seams only; canonical SQLite lifecycle; blocking runtime proof.


type: intent

text: Harness must complete useful work autonomously instead of adding orchestration that cannot cross observed failure boundaries.


type: task

seat: coder

tier: medium

desc: Read docs/plans/2026-07-22-autonomy-completion-invariants.md Task 1 (Gate Infrastructure Classification) for full contract. Route exact local-gate parse-config timeout through infrastructure recovery and isolate gate fixtures. Acceptance: node --test src/test/engine-gates.test.js && bash lib/test-gates.sh. Commit only: lib/gates.sh, lib/test-gates.sh, src/engine/gates.js, src/test/engine-gates.test.js.


desc: Read docs/plans/2026-07-22-autonomy-completion-invariants.md Task 2 (Terminal Report Freshness) for full contract. Refresh stale terminal reports from canonical journal state. Acceptance: node --test src/daemon.test.js. Commit only: src/daemon.js, src/daemon.test.js.


desc: Read docs/plans/2026-07-22-autonomy-completion-invariants.md Task 3 (Resume and Runtime Completion Proof) for full contract. Prove resume, full gates, released launcher provenance, and blocking completion. Acceptance: bash test/runner-integration.sh && make test && make build && bash test/engine-provenance-runtime.test.sh. Commit only: files required by Task 1 or Task 2 runtime failures.