Skip to content

Verify native admission refusals (T23) - #279

Merged
erickb336 merged 5 commits into
mainfrom
codex/t23-native-admission-diagnostics
Oct 21, 2026
Merged

erickb336 merged 5 commits into
mainfrom
codex/t23-native-admission-diagnostics

Conversation

@erickb336

@erickb336 erickb336 commented Oct 19, 2026 •

Copy link
Copy Markdown
Owner

Closes #275
Sage task T23

This restores native admission-refusal diagnostics. An unprepared follow-up cannot start a second turn. Active retarget and premature finish requests refuse without changing protected rows or creating extra work. The original assignment can still report and finish through its authentic terminal path. A lead edit refuses before evaluation; an implementer control writes the expected file.

The owner-approved G4 contract tests these supported earlier refusals plus direct stale/ended-run policy. The old later-tool native ordering remains unproved and retired from acceptance; it is not called passing. No runtime protection was weakened to recreate it.

Current-head validation

Candidate 7d8982ac45ed2bb59781770e8bd020db1abc0104 integrates main 48f3719, including T22. Four diagnostic/test-list conflicts preserve both sets of selectors, setup flags, trusted identity joins and all main registrations. Ten diagnostic/test paths differ from main.

  • npm run build: built 324 files.
  • npm run check: all checks pass.
  • Combined portable suites: 6 tests, 6 pass, 0 fail; 121 negative consistency controls, with valid controls first. T22 supplies 51; T23 supplies 70.
  • Selected direct policy tests: 2 tests, 2 pass, 0 fail. Both protected-table byte assertions follow deliberate fixture mutation; every original assertion remains.
  • Eight actual CLI 0.160.0 trials ran once each with fixed simulated model replies. Three preserve T22 recovery behavior. Five cover active retarget, premature finish, unprepared follow-up, lead edit refusal and the implementer control. Each returned exit 0, verified true and successful temporary-profile cleanup. Expected refusal stderr is matched exactly apart from its timestamp; unrelated stderr is not accepted.
  • Six retained-input replays pass. Actual native readers check bound session/child/parent/path/author/turn/task hash before portable consistency validation. Replay alone authenticates no arbitrary JSON.
  • npm test: 1,902 tests, 1,902 pass, zero failures, cancellations or skips; terminal exit 0.
  • Two independent code-review and QA cycles are clean on this exact head. All ten source hashes match after checks.
  • Exact-head CI 39523125798 passed on this exact head: 1,902 tests, 1,902 pass, zero failures, cancellations or skips. The Sage merge check accepts two clean cycles on this SHA.

Baseline and assertion proof

Detached main 48f3719 passes the three existing T22 controls and fails the three new T23 positive replay controls because their selectors are absent. No import/setup failure counts as behavioral evidence. An initial dependency setup error was diagnosed and retained separately before the valid baseline run.

The new byte snapshots pass on normal main because its policy already refuses correctly. A disposable fault injection appends an unexpected run-table byte after refusal: the old assertions pass, and the new snapshot assertion fails. This proves added coverage, not a shipped policy defect. Both baseline worktrees were removed.

Limits

Fixed simulated replies drive actual native tools, hooks, readers and journals. Real-model quality, installed automatic Sage, abrupt-loss recovery, global ownership and autopilot remain unverified. Premature finish tests missing prerequisites together; missing recovery alone is not isolated. Removed disposable transcripts cannot be re-read; retained logs and JSON remain available locally.

Every test places fake ps, pgrep and kill first on PATH and unsets NODE_TEST_CONTEXT. No real process enumeration/signals or attack strings to a real shell occur. All directly owned T23 test/probe commands are terminal; listeners closed and temporary profiles were removed. Native-managed subprocesses were not independently enumerated with OS tools. Earlier watcher failures remain tracked in #283; the passing T22 suite does not establish their cause.

Claude's active PR #288 remains outside this change. Workflow-boundary diagnostics #276 follow after this component.

@erickb336 erickb336 changed the title Restore native unprepared follow-up diagnostic (T23) Verify native admission refusals (T23) Oct 20, 2026
@erickb336

Copy link
Copy Markdown
Owner Author

Final-head CI completed successfully on 4877ca5f2412fe9593e8a42a0bea99766c92ee71: 1780 tests, 1780 passed, 0 failed. The check step also passed.

Actions run

The local macOS directory-watcher prerequisite (#283) and review-run usage bookkeeping (#284) remain separate unresolved items. This CI result alone is not a merge-readiness or installed-autopilot claim.

…ssion-diagnostics

# Conflicts:
#	package.json
#	scripts/fixtures/codex-native/setup-capture.mjs
#	scripts/fixtures/codex-native/setup-completion.mjs
#	scripts/probe-codex-lifecycle.mjs
@erickb336
erickb336 marked this pull request as ready for review October 21, 2026 01:06
@erickb336
erickb336 merged commit 947c834 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 admission refusal diagnostics (T23)

1 participant