Repository navigation
Restore native completion recovery diagnostics (T22) - #278
Merged
Merged
Conversation
…letion-recovery # Conflicts: # package.json
Owner
Author
|
Temporarily close this draft to keep at most two Codex PRs open while the shared review-usage prerequisite #284 proceeds. This does not abandon T22 or close #274. Preserve this PR, its branch, reports and CI evidence; reopen it after the prerequisite lands, then integrate current main and refresh exact-head checks/reviews. No merge occurred. |
…letion-recovery # Conflicts: # package.json
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 #274
Sage task T22
This restores three missing Codex recovery diagnostics: a missed stop callback, a follow-up with no tool call, and their combined case. Each checks two distinct assignments and native turns on the same child, exact saved reports, separate completion receipts, and expected callback/tool counts.
The lifecycle probe adds
--sage-missed-stop,--sage-followup-no-tool, and--sage-followup-missed-callbacks. The portable--completion-recovery-evidenceselector rechecks captured JSON consistency. Trusted native readers authenticate transcript evidence before portable validation; portable input alone is not native authority.Validation targets
19976b179bc3dc9c638e2d0515d3526e35c72a49, which integrates main33a40be. The package conflict preserves every main setting and test, plus the new diagnostic test. No production runtime, Claude or board source differs from main.npm run build: built 324 files.npm run check: all checks pass.Focused portable suite: 3 tests, 3 pass, 0 fail; 51 negative consistency checks across those tests.
Three actual CLI 0.160.0 trials passed once each with fixed simulated model replies. Each records two assignments, native completions and report receipts. Callback counts are 0/2/0; second-turn tool counts are 1/0/0. Each root process ended and each temporary profile was removed.
Detached current main
33a40be: all three new positive replay cases fail because the old entrypoint lacks the selector. There are no import/setup failures. This demonstrates missing diagnostic coverage, not a runtime-policy regression; it does not prove all 51 negative checks fail on main.npm test: 1,899 tests, 1,899 pass, 0 fail, 0 cancelled, 0 skipped; terminal exit 0.Two fresh independent code-review and QA cycles are clean on this exact commit. QA independently checks the raw native records, replays their retained inputs, and tests altered identities and reports. No new commit occurred between cycles.
Exact-head CI 39520536523 passed: 1,899 tests, 1,899 pass, zero failures, cancellations or skips. The Sage merge check accepts two clean cycles on this SHA.
Earlier local full checks failed board watcher tests. Those failures remain in #283; later unchanged raw directory controls and the original board-server suite passed. The cause remains unknown. No polling fallback, timing relaxation or board fix is included here.
Verification limits: native tools, hooks, transcript readers and journals are real; model replies are fixed fixtures. No real-model quality, installed automatic Sage, abrupt-loss recovery, host attestation or autopilot capability follows. Tests put fake ps, pgrep and kill first on PATH. Native-managed subprocesses were not independently enumerated with OS tools.
Other missing diagnostics remain in #275 and #276. Claude's active PR #288 stays outside this change.