Repository navigation
Fix: the tables route marks runtime.json "rests"; module:doctor reads them from the package - #1973
Merged
Merged
Conversation
… them from the package runtime_units.compile_linked (build.py --octabam-tables, Mute Modes' route) dropped runtime.json "rests" without a word, so a table module's detours stayed patched while it rested. It now marks them as build.py's octabam route does and refuses an address that is not one of the module's own detours. module:doctor's cost-at-rest line reads the marks from the committed USB package of the module's version and fails when one runtime.json names is missing. Every published package rebuilds byte for byte. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
repeat98
enabled auto-merge
November 22, 2026 07:51
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.
build.py --octabam-tables,runtime_units.compile_linked, the route Mute Modes is built on) ignoredruntime.json"rests"without any message. A Mute Modes package that answersev_in_useand lists five frame detours under"rests"built without a single rest mark, so the base would leave those detours patched while the module rests, and their frame cost would stay.module:doctor's "cost at rest" line still said ✓, because it readsruntime.json, not the package.compile_linkedmarks the"rests"sites the waybuild.py's octabam route does, and refuses an address that is not one of the module's own detours (a table reference or a poke never rests).module:doctor"cost at rest" (scripts/module-cpu-price.mjs) now reads the rest marks from the committed USB package of the module's current version (bit 7 of a site's length byte, loader.hRUNTIME_SITE_RESTS). It fails when an addressruntime.jsonnames is not marked there. With no package of that version committed yet (a draft), it readsruntime.jsonas before, and the doctor's packages line reports the missing package.candidate-recipes.jsonre-pinsruntime_units.pyfor both table and cave ports (cc-map, mute-modes), because their recipes pin the builder files they run.changelog/2026-11-22-tables-route-rests.md.npm run pr:ready: Ready (sdk:check721 cases, the module doctor test).sdk/tests/test_runtime_units.pycase: a fixture detour listed in"rests"gets the flag in the built package, and the table reference does not; a"rests"naming the table reference is refused. It fails without the fix (6 != 134).scripts/module-cpu-price.test.mjscase: a committed package without the mark fails, with the mark passes, and with no package of that version it falls back toruntime.json. It fails without the change.python3 -B scripts/octatrack-module-packages.py --check: every published package is identical. Mute Modes 0.2.2 still rebuilds tod8b871e3….module/mute-modes-rest-heldbehind Mute Modes 0.2.3: answers ev_trig_muted (#777) #1652) builds with exactly its five detours marked.runtime.json, and it now reads the package.Edge cases
octatrack-module-packages.py --check"rests"naming a non-detour sitetest_runtime_units.pyruntime.jsonlists rests (POLY8, others)module-cpu-price.test.mjs"holds on main",module:doctor -- poly8module-cpu-price.test.mjsValidation commands and results: see "How I checked it".
🤖 Generated with Claude Code