Skip to content

Delete the core code that only the Codex native runtime used (T914, native delete PR 2) - #468

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

erickb336 merged 1 commit into
mainfrom
sage/t914-native-core-delete

Conversation

@erickb336

Copy link
Copy Markdown
Owner

What this is

PR 2 of the native runtime delete (PE R2861 plan; PR 1 was #467, T732). PR 467 deleted the unused Codex native runtime. This PR deletes the core code that only that runtime used. No hook, skill, MCP server or board command reaches it.

What goes

  • Whole files in packages/sage-core: admission.mjs/.md, assignments.mjs/.md, shell-path-policy.mjs/.md, task-update-error.mjs, and run-target.mjs (its only importer was native state code). STUCK_WRITE moves into state.mjs first; the settle step and sage logbook repair use it.
  • index.mjs exports of those files, and renderBrief with parseBrief (no shipped caller).
  • state.mjs: the 12 native functions (readTaskSnapshot, updateRequestedTask, assertTaskUpdateOpen, settleWrites, createRequestedTask, createRequestedRun, finishReportedRun, finishInterruptedRun, acceptReportedReview, captureRunAssignment, captureReviewTarget, validateTerminalAssignment) and their return-list names; the writers of saved-change schemas 2-6 and 8; SAVED keeps 7 (usage) and 9 (Replace); the native receipts in check() and stuckChange; the interrupted-runs warning; the schema-6 legacy round rule; reviewHead (unused after the delete).
  • recorded-write.mjs coordinatedWrites; board-reader.mjs RECEIPTS without the 5 native folders; scripts/fixtures/native-upgrade/.

What stays

The usage and Replace writers, settle, stuckChange, the change-loss repair, the move, chief-bindings.json, and taskVersion, runFrame, savedWriteColumns, keepReport, backingProblem, branchCheckout/branchTip/branchHome.

Risk to state (F10)

A saved change of schema 2-6 or 8 now stops the writes of its logbook until sage logbook repair --accept-change-loss yes. The PE found none in the 11 readable logbooks. changes/T914.md, the skill's repair section, the Codex guide and rules-in-code say so. A new test in logbook-recovery.test.mjs builds a scratch logbook with a stuck change of each removed schema, shows that writes refuse in both providers, and that the repair clears it.

Tests

Tests whose subject was a native function are deleted. Tests that only set up or read through one now use the state tool's own reads (read, logbookView, branchTip, branchHome) or a schema-9 Replace (the sage-pr T578 re-read test). The three missingFields edge cases from the deleted codex-server test move to codex-report-gate.test.mjs. Two comments name the right autopilot test file.

Evidence

  • npm run build, npm run check: pass.
  • Shipped reach (PE tool reach.mjs): Codex reach unchanged at 24 files; the package walk loses only the 5 deleted core files. missing.mjs: the same 2 pre-existing references as on main, none new.
  • Pinned ESLint 10.14.0 (no-unused-vars only): the same 12 pre-existing findings as on main, none new.

🤖 Generated with Claude Code

…ative delete PR 2)

Removes admission, assignments, shell-path-policy, run-target and
task-update-error (STUCK_WRITE moves into state.mjs), the 12 native
state-tool writers and readers, the writers of saved-change schemas 2-6
and 8, coordinatedWrites, the native receipt folders in the board's
watch, renderBrief and parseBrief, and the native-upgrade fixtures.
SAVED keeps schemas 7 (usage) and 9 (Replace). Tests that only set up
through a native function now use the state tool's own reads; a new
test shows that a stuck saved change of a removed schema stops writes
until logbook repair --accept-change-loss yes.

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