Skip to content

Own and inspect one Codex controller process (T30) - #294

Merged
erickb336 merged 1 commit into
mainfrom
codex/t30-owned-process
Oct 21, 2026
Merged

erickb336 merged 1 commit into
mainfrom
codex/t30-owned-process

Conversation

@erickb336

@erickb336 erickb336 commented Oct 21, 2026 •

Copy link
Copy Markdown
Owner

Closes #293

Sage task T30

The opt-in terminal controller can now own one Codex App Server process, inspect its resolved configuration, and shut down the exact owned handle. Failed or timed-out observations keep ownership unresolved until child and stream closure is observed. Repeated stop calls share one result and cannot launch a replacement.

The public adapter exposes only start, inspect, stop and status. It adds no model-turn, thread, tool, task-state or publication operation. Launch inputs come from the trusted controller; selected model/provider/permission defaults remain inherited. Strict configuration rejects unknown fields. Frames and retained diagnostic counts are bounded; diagnostic text is not exposed.

Validation so far:

  • Scoped process and transport tests: 39 passed, 0 failed, 0 cancelled, 0 skipped.
  • Exact final test bytes on detached main 2f351c4: 23 existing tests passed; all 16 added tests failed because the process/config-read APIs were absent. This establishes API absence, not 16 existing defects.
  • Actual Codex 0.160.0 in disposable profiles: successful startup/config-read/shutdown and unknown strict configuration refusal both passed. Independent observers saw child exit and all three streams close. Owned listeners closed and temporary profiles were removed. No thread, model turn, tool call or HTTP request at the owned fixture endpoint occurred.
  • npm run build: built 328 files.
  • npm run check: all checks pass.
  • npm test: 1,956 tests passed, 0 failed, 0 cancelled, 0 skipped.
  • Two independent code/security/QA cycles are clean on exact head cac726e. Reviewers also challenged closure ordering, blocked initialized writes, failed direct signals, accessor inputs and late terminal evidence.
  • Exact-head CI run 39682378929 passed: 1,956 tests, 1,956 passed, 0 failed, 0 cancelled, 0 skipped. Both local and CI checks apply to cac726e.

All tests and native controls use fake ps, pgrep and kill first on PATH. The native harness uses only directly owned process handles.

Not verified: complete MCP isolation, immutable configuration admission, full chief/lead/specialist runtime hierarchy, protected effects, crash/descendant recovery, a real-model pilot or installed/default/autopilot behavior. Existing configuration inspection can still expose configured MCP entries; it is not an enforcement attestation. Claude-active board changes are outside this PR.

@erickb336
erickb336 marked this pull request as ready for review October 21, 2026 21:59
@erickb336
erickb336 merged commit 113edff 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.

Codex controller: owned process inspection and shutdown (T30)

1 participant