Skip to content

Verify native owner mode switches across resumed turns (T18) - #261

Merged
erickb336 merged 1 commit into
mainfrom
codex/t18-owner-mode-turns
Oct 17, 2026
Merged

erickb336 merged 1 commit into
mainfrom
codex/t18-owner-mode-turns

Conversation

@erickb336

@erickb336 erickb336 commented Oct 17, 2026 •

Copy link
Copy Markdown
Owner

Closes #260
Sage task T18

Sage needs direct evidence that its activation instructions reach Codex across resumed owner turns. This adds an isolated native diagnostic for ordinary prompt → on → off → on, using the current packaged policy and fixed simulated model responses. Production policy and installed defaults stay unchanged.

The diagnostic verifies one session, a stable owner epoch, three distinct mode turns, no child reservations, and an unchanged seeded logbook. Both chief instruction parts appear with cumulative counts 0, 1, 1, 2. The off turn retains history without a new injection. Process and server cleanup must complete; failures preserve temporary evidence.

Verification on 8cde2f0

  • npm run build: built 317 files.
  • npm run check: all checks pass.
  • node --test scripts/fixtures/codex-native/owner-turns.test.mjs scripts/fixtures/codex-native/restart-cleanup.test.mjs: tests 18; pass 18; fail 0.
  • Independent code review, including binary checks: tests 20; pass 20; fail 0.
  • Independent QA: tests 18; pass 18; fail 0.
  • node scripts/probe-codex-owner-turns.mjs: passed in implementation and independently in QA, using actual CLI 0.160.0. Four requests and completions, exact instruction counts, unchanged logbook. Final cleanup: complete true, ownedHandlesClosed true, temporaryRootRemoved true.
  • git diff --check: passed.
  • Exact-head GitHub CI run 38999755308: success; tests 1628; pass 1628; fail 0; cancelled 0; skipped 0.
  • Full npm test: tests 1628; pass 1628; fail 0; cancelled 0; skipped 0 (346.70 seconds).

Tests used fake ps, pgrep and kill first on PATH. The 15 new assertion/cleanup tests are included in npm test. Existing test entries and assertions are unchanged. One independent code/QA review cycle is clean on this diagnostic-only change.

Baseline and limits

On detached main 66fe812, copying only the two new diagnostic helper/test files gives tests 15; pass 15; fail 0. This adds verification of existing production behavior. It is not a failing-main regression repair. Negative fixture cases verify that the diagnostic rejects incorrect evidence.

Responses are simulated. This proves native delivery and mode bookkeeping in the fixture, not agent application, real-model quality, complete tool enforcement, other Codex versions, or installed automatic Sage. Issue #88 remains open. Claude-owned work is untouched.

@erickb336
erickb336 marked this pull request as ready for review October 17, 2026 03:57
@erickb336
erickb336 merged commit cf557ea into main Oct 17, 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 native owner mode switches across resumed Codex turns (T18)

1 participant