Skip to content

Restore native completion recovery diagnostics (T22) - #278

Merged
erickb336 merged 3 commits into
mainfrom
codex/t22-native-completion-recovery
Oct 21, 2026
Merged

erickb336 merged 3 commits into
mainfrom
codex/t22-native-completion-recovery

Conversation

@erickb336

@erickb336 erickb336 commented Oct 19, 2026 •

Copy link
Copy Markdown
Owner

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-evidence selector 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 main 33a40be. 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.

@erickb336

Copy link
Copy Markdown
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.

@erickb336 erickb336 closed this Oct 20, 2026
@erickb336 erickb336 reopened this Oct 21, 2026
@erickb336
erickb336 marked this pull request as ready for review October 21, 2026 00:41
@erickb336
erickb336 merged commit 48f3719 into main Oct 21, 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.

Restore native completion recovery diagnostics (T22)

1 participant