Repository navigation
Delete the core code that only the Codex native runtime used (T914, native delete PR 2) - #468
Merged
Merged
Conversation
…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]>
This was referenced Nov 9, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
packages/sage-core:admission.mjs/.md,assignments.mjs/.md,shell-path-policy.mjs/.md,task-update-error.mjs, andrun-target.mjs(its only importer was native state code).STUCK_WRITEmoves intostate.mjsfirst; the settle step andsage logbook repairuse it.index.mjsexports of those files, andrenderBriefwithparseBrief(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;SAVEDkeeps 7 (usage) and 9 (Replace); the native receipts incheck()andstuckChange; the interrupted-runs warning; the schema-6 legacy round rule;reviewHead(unused after the delete).recorded-write.mjscoordinatedWrites;board-reader.mjsRECEIPTS 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 inlogbook-recovery.test.mjsbuilds 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 tocodex-report-gate.test.mjs. Two comments name the right autopilot test file.Evidence
npm run build,npm run check: pass.🤖 Generated with Claude Code