Skip to content

Delete the unused Codex native runtime (T732, PR 1) - #467

Merged
erickb336 merged 1 commit into
mainfrom
sage/t732-delete-native-runtime
Nov 9, 2026
Merged

erickb336 merged 1 commit into
mainfrom
sage/t732-delete-native-runtime

Conversation

@erickb336

Copy link
Copy Markdown
Owner

What this is

PR 1 of 2 of the native runtime delete. No shipped entry point (a hook, a skill script, the MCP server, the board) reaches the Codex native runtime, so this PR removes it: about 36,000 lines (284 files, built copies included). PR 2 (T914) removes the native-only core code later; this PR changes no core file and no shipped hook file.

What goes

  • packages/sage-codex/runtime/: every file except the 8 that the plugin runs (logbook-env, managed-worktree, mcp-sdk, patch-targets, sdk-shims; .mjs and .md).
  • scripts/fixtures/codex-native/, the 6 scripts/probe-codex-*.mjs probes, scripts/codex-server.test.mjs, and the two probe notes in docs/verification/.
  • The inactive turn-trigger observer (packages/sage-codex/hooks/turn-trigger-observer.mjs, no manifest ran it), its sample, its test and its guide section (T894). A short note keeps the guide anchor, so the old change log links still resolve.
  • Tests that imported deleted runtime files, in providers, shared-root, dictionary and codex-mode-hook. logbookEnv and logbookTool lost their last callers and go too.

What moves or changes

  • autopilot-{change,gate,merge,record}.test.mjs move to scripts/codex-autopilot-*.test.mjs, managed-worktree-admission.test.mjs to scripts/codex-managed-worktree.test.mjs, owner-records.json to scripts/fixtures/codex-owner-records.json, and wait-native.mjs to scripts/wait-child.mjs (check:codex and the 6 deadline tests use it).
  • The chief text tests read renderChiefInstructions with chief-bindings.json instead of the deleted prepared file.
  • The two shared command and push policy tests now load the Codex plugin's bundled core directly; the deleted Codex adapter only re-exported it.

Evidence

  • The reachability walk lists the same 24 reached files under packages/sage-codex/ before and after.
  • npm run build and npm run check pass.
  • Static test count: 2385 before, 1696 after. The whole drop comes from deleted native tests.
  • Each changed or moved test file passes alone. CI runs the full suite.

🤖 Generated with Claude Code

No shipped entry point (hook, skill, MCP server, board) reaches the Codex
native runtime. Remove it: the native files of packages/sage-codex/runtime
(8 shipped files stay), scripts/fixtures/codex-native, the six Codex
probes, scripts/codex-server.test.mjs, the two probe notes, and the
inactive turn-trigger observer with its guide section (T894).

The live tests move to scripts/codex-autopilot-*.test.mjs and
scripts/codex-managed-worktree.test.mjs; wait-native moves to
scripts/wait-child.mjs for check:codex. Tests that imported deleted
runtime files go; tests of shipped files stay. The chief text tests read
renderChiefInstructions with chief-bindings.json. logbookEnv and
logbookTool lost their last callers and go too.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
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.

1 participant