Repository navigation
Verify Codex child lifecycle transcript evidence (T19) - #154
Merged
Merged
Conversation
erickb336
marked this pull request as ready for review
October 13, 2026 10:43
This was referenced Oct 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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:
npm run buildnpm run checknpm teststarted on preceding extractionc864549npm testin CIAll 33 new tests fail on detached main
c1aa3aawith 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 extractionc864549with a missing expected exception, and passes after repair.Head
b6f6c8bca41647954285787c9e21750ab3743bdeincludes main71a2245and 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.