Skip to content

Verify Codex child lifecycle transcript evidence (T19) - #154

Merged
erickb336 merged 3 commits into
mainfrom
codex/t19-child-transcript-evidence
Oct 13, 2026
Merged

erickb336 merged 3 commits into
mainfrom
codex/t19-child-transcript-evidence

Conversation

@erickb336

@erickb336 erickb336 commented Oct 13, 2026 •

Copy link
Copy Markdown
Owner

Closes #153
Sage task T19

Add read-only checks for Codex child lifecycle evidence. They verify the exact delivered task, retained terminal report, interruption, accepted follow-up dispatch and recovery after the latest compaction. Recovery output must fit its saved replay budget and retain the complete task hash and message.

This extraction keeps transcript verification separate from runtime permission and logbook changes. The existing command reader is unchanged. Claude's hook and state-tool files are outside scope.

Review found a terminal-order defect: a later turn could hide a completion event that names an earlier turn. The reader now refuses that conflicting evidence before it skips later-turn records. A new regression covers both pending and already-completed earlier work.

Validation uses fake ps, pgrep and kill first on PATH:

Command Result
npm run build built 265 files
npm run check all checks pass
Focused assignment, follow-up, interruption, recovery-output and existing command tests tests 39; pass 39; fail 0
npm test started on preceding extraction c864549 tests 1013; pass 1013; fail 0; cancelled 0; skipped 0
Final integration npm test in CI tests 1018; pass 1018; fail 0; cancelled 0; skipped 0

All 33 new tests fail on detached main c1aa3aa with only their test files copied. Main lacks the reader APIs/module. This establishes missing functionality, not a behavioral regression. The new terminal-order test also fails behaviorally on detached pre-repair extraction c864549 with a missing expected exception, and passes after repair.

Head b6f6c8bca41647954285787c9e21750ab3743bde includes main 71a2245 and the terminal-order repair. Build, check and all 39 focused tests pass after integration. Two code, security, and QA review cycles are clean at b6f6c8b. Final-head CI passed: run 38384543834. Tests use synthetic transcripts and saved output shapes. Native traces from the earlier integration informed those shapes; no new live-native route runs in this extraction.

Not verified here: caller authentication, runtime policy wiring, child binding, capacity release, report or verdict acceptance, actual run validation, real-model recovery or installed automatic Sage. These remain separate runtime work. Automatic Sage remains incomplete; see #88.

All local validation processes exited.

@erickb336
erickb336 marked this pull request as ready for review October 13, 2026 10:43
@erickb336
erickb336 merged commit eac3614 into main Oct 13, 2026
1 check passed
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.

Verify Codex child lifecycle transcript evidence (T19)

1 participant