Skip to content

Define Claude parity and verify the native Codex lifecycle - #92

Merged
erickb336 merged 1 commit into
mainfrom
codex/automatic-sage-design
Oct 11, 2026
Merged

erickb336 merged 1 commit into
mainfrom
codex/automatic-sage-design

Conversation

@erickb336

Copy link
Copy Markdown
Owner

Refs #88

This first unit defines Claude parity for automatic Sage in Codex and adds a reproducible native lifecycle probe. It does not enable automatic Sage or close #88.

The owner selected parity with Claude. Sage off clears Sage/autopilot and restores direct chief edits; it does not automatically interrupt active agents. Automatic coordination with manual merging is the first delivery stage. Gated autopilot remains part of the full parity target, with separate authorization for any live merge pilot.

Design and evidence

The source audit covers owner activation, off, compaction, chief authority, task routes, briefs, roles/caps, dispatch/start/result, report correction, capacity release, reviews/repairs, manual merge, autopilot, board/status and arena. It distinguishes enforced hook behavior from chief instructions and unverified native integration.

The standalone probe runs Codex 0.160.0 in a fresh temporary profile, with local simulated model responses and only a test observer trusted there. It observes one spawn request and result, one child start and stop, and exact matching identities. Native status reports running while the child response is held, then completed with the expected marker. Six model requests comprise five root requests and one child request. No real model or owner logbook participates. This checks CLI transport, not activation in an installed desktop session.

The native task uses agent_message with an opaque payload. Exact transport delivery is checked; real-model consumption is not claimed. The initial fixture failed on a noncanonical temporary path and then an incorrect ordinary-user-message assertion. Both causes were corrected before the saved probe passed. No unchanged failure was retried until green.

Validation

Build: 228 files. Check: all checks pass. Saved native probe: exit 0, verified true, exactIdentityJoin true, zero malformed events or rejected requests. Full suite: 783 tests, 783 pass, zero failures, cancellations or skips. Diff check: exit 0.

npm run build
npm run check
caffeinate -i env -u NODE_TEST_CONTEXT PATH="$FAKE_PROCESS_BIN:$PATH" SAGE_CODEX_BIN="$CODEX_BINARY" node scripts/probe-codex-lifecycle.mjs
caffeinate -i env -u NODE_TEST_CONTEXT PATH="$FAKE_PROCESS_BIN:$PATH" npm test
git diff --check

Every test/probe used fake ps, pgrep and kill first on PATH. No new dependency, real process inspection/signal, real merge, or real push ran in a test. Generated plugin documents come from the build.

Production behavior and existing test assertions are unchanged. This is an exploratory native transport verifier, not a test of a new production feature. There is no newly activated behavior to prove failing on main.

Remaining work

Denial enforcement, event ordering under races, compaction and restoration, later-task attribution, complete policy wiring, accepted reports, authoritative capacity release, recovery, real-model consumption and the installed real-project pilot remain required. The prepared runtime is still inactive. Do not infer full Claude parity from this probe.

Shared rules stay in sage-core. Codex transport stays in sage-codex. Claude-owned issues and behavior are unchanged.

@erickb336
erickb336 marked this pull request as ready for review October 11, 2026 02:04
@erickb336
erickb336 merged commit 36f81d3 into main Oct 11, 2026
1 check passed
@erickb336
erickb336 deleted the codex/automatic-sage-design branch October 11, 2026 02:04
@erickb336

Copy link
Copy Markdown
Owner Author

Reviewed and merged by the sage (Claude) under autopilot, after one clean cycle on 1077f00: code review (R718) and QA (R719), CI green. The probe ran isolated and verified the spawn, result, start and stop identity join. Non-blocking findings went to #93 (probe clean-up, timeouts, safe root path, telemetry off, unit-1 wording, two flagged dictionary words). #88 stays open for the next units.

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.

Missing feature: automatic Sage workflows and gated autopilot in Codex

1 participant