Skip to content

Finish recorded runs from saved Codex reports (T52) - #215

Merged
erickb336 merged 3 commits into
mainfrom
codex/t52-recorded-run
Oct 14, 2026
Merged

erickb336 merged 3 commits into
mainfrom
codex/t52-recorded-run

Conversation

@erickb336

@erickb336 erickb336 commented Oct 14, 2026 •

Copy link
Copy Markdown
Owner

Closes #213
Sage task T52

The chief can finish an existing logbook run from its child's authenticated saved report. The registered sage_finish_run tool takes an assignment ID and exact report hash. Launcher configuration fixes the external logbook location; the tool request cannot choose it.

Shared core publishes exact report bytes before updating the matching run. Identical retries preserve the first timestamp and result. Conflicting evidence and unrelated terminal records refuse. This does not change task state, record review verdicts, release admission or change Sage mode.

Configuration version 3 adds the fixed logbook root; versions 1 and 2 retain their existing routes. The extended native report probe consumes the real MCP tool and checks the saved report, matching run, unchanged other state and stable retry.

Head: 30411c5248d597aa0468cc5f4b40c81bd6fbb4f8, based on main ae0e261.

Validation:

  • npm run build: passed; generated provider copies committed.
  • npm run check: all checks pass.
  • Focused consumer tests: tests 15, pass 15, fail 0.
  • All 15 new tests copied unchanged into detached main ae0e261 fail because the API or module is absent. These are missing-feature failures, not 15 proven behavioral bugs in existing code.
  • Tests cover exact publication, matching run completion, unchanged tasks/verdicts/admission, identical retries, conflicting/manual terminal records, publication-before-run recovery, foreign actors, redirected paths, changed hashes and missing recovery proof.
  • Hardware isolation and probe cleanup checks: tests 3, pass 3, fail 0. The probe fixture prevents real machine-identity queries.
  • Final-commit node scripts/probe-codex-lifecycle.mjs --sage-report: exited 0 on Codex CLI 0.160.0. Exact report bytes, one finished run, unchanged retry/tasks/verdicts/admission/mode. One native child completed; the temporary profile was removed. Responses were simulated.
  • Final-head npm test -- --test-concurrency=1: tests 1202, pass 1202, fail 0, cancelled 0, skipped 0.
  • Two clean code/security/QA review cycles on the unchanged final head.
  • Exact-head CI run 38505060624: success; tests 1202, pass 1202, fail 0.

All repository tests and probes use fake ps, pgrep and kill first on PATH. The native probe uses simulated model responses and must not be read as real-model or installed automatic Sage evidence. No real-project pilot, complete policy or automatic activation is claimed. Claude #140's task transitions and merge guards remain untouched.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Connect saved Codex reports to their recorded runs (T52)

1 participant