Skip to content

Verify native workflow boundaries (T24) - #290

Merged
erickb336 merged 4 commits into
mainfrom
codex/t24-native-workflow-boundaries
Oct 21, 2026
Merged

erickb336 merged 4 commits into
mainfrom
codex/t24-native-workflow-boundaries

Conversation

@erickb336

@erickb336 erickb336 commented Oct 21, 2026 •

Copy link
Copy Markdown
Owner

Closes #276
Sage task T24

This restores four native workflow diagnostics: coordinated task lifecycle updates, an unmanaged child stopping while Sage is off, same-turn report correction, and bounded escape from repeated invalid reports.

The lifecycle case checks building/reviewing/verifying transitions and exact historical retries. The off case checks independent native child identity and unchanged logbook bytes after owner-off bookkeeping. Correction accepts only the final complete report, without premature assignment completion. Escape accepts no report or verdict and does not falsely finish the Sage run.

Candidate 484a4d326a035c1fc89c657170738297d2de6291 integrates main 947c834, including T22 and T23. The four resolved conflicts retain all three diagnostic sets and every main test registration. Six diagnostic/test paths differ from main. Production policy, installed settings and defaults are unchanged.

Validation on the current head

  • npm run build: built 324 files.
  • npm run check: all checks pass.
  • npm test: 1,917 tests, 1,917 pass, zero failures, cancellations or skips; terminal exit 0.
  • Combined portable suites: 21 tests, 21 pass, zero failures; 190 negative consistency controls after valid inputs.
  • Selected direct-policy tests: 2 tests, 2 pass, zero failures.
  • Twelve actual CLI 0.160.0 trials ran once each: four workflow cases plus the eight preserved T22/T23 cases. All returned exit 0, verified true and successful temporary-profile cleanup. Expected refusal stderr is exact; unrelated errors are not accepted.
  • Ten retained-input replays pass. Workflow expectations are four lifecycle transitions and retries, an unmanaged off-mode stop with no managed records, correction before report acceptance, and bounded invalid-report escape with no false successful run ending.
  • Two fresh independent code-review and QA cycles are clean on exact head 484a4d3. All six hashes match after checks. QA checks raw records, actual process wait receipts, identity contradictions and literal replay results.
  • Exact-head CI 39525780508 passed: 1917 tests, 1917 pass, zero failures, cancellations or skips. The Sage merge check permits this exact SHA after two clean cycles.

Detached main 947c834 passes the six existing diagnostic controls and fails all fifteen new workflow positive controls because their selector is absent. No setup/import failure counts as behavioral evidence. This proves new diagnostic coverage, not fifteen production defects or 190 separately failing-main assertions.

The workflow helper, tests and complete native unmanaged-identity method are byte-identical to the repaired candidate 43779a8. Historical rejected-candidate proof for eleven identity contradictions is retained; fresh QA also tests three contradictions against actual new native off evidence. Portable consistency is distinct from native provenance.

The prior candidate failed five unchanged board watcher tests. That failure remains in the historical record as T24-CHECKS-1, dismissed as a superseded check result after current-head local and CI passes. The separate root-cause finding F-T25-1 and issue #283 remain open. No timing relaxation, polling fallback or board repair is part of this change. Later passing suites do not establish the earlier cause.

Evidence limits

Native trials use the actual released CLI 0.160.0 and fixed simulated model replies in disposable profiles. Portable replay checks consistency; native readers authenticate the original trial identities. A boolean or supplied JSON alone does not establish authenticity.

Real-model quality, installed automatic Sage, abrupt-loss recovery, complete ownership and autopilot remain unverified. The earlier unmanaged-stop identity defect is repaired and must remain covered. All directly owned current test/probe commands are terminal. Listeners closed and disposable profiles were removed. Native-managed subprocesses were not independently enumerated with OS tools. No timeout counts as completion. Every test unsets NODE_TEST_CONTEXT and places fake ps, pgrep and kill first on PATH. No attack strings go to a real shell.

Claude's active PR #288 remains outside this work. Parent #88 stays open.

…flow-boundaries

# 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:34
@erickb336
erickb336 merged commit 97a02e2 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 workflow boundary diagnostics (T24)

1 participant