Skip to content

Improvement: module:doctor checks what a module costs installed and used nowhere - #1864

Merged
repeat98 merged 8 commits into
mainfrom
improvement/module-at-rest-limit
Nov 20, 2026
Merged

repeat98 merged 8 commits into
mainfrom
improvement/module-at-rest-limit

Conversation

@repeat98

@repeat98 repeat98 commented Nov 20, 2026 •

Copy link
Copy Markdown
Owner
  • What was wrong or hard: a module that costs the frame interrupt while installed and used nowhere makes every player pay for it. On an MKII on 20 November 2026 the 24 packages of the 0.7.10 dispatch record cost 6.1 points together while unused, 5.6 of them in seven modules' frame code, and nothing told an author their module was one of them (Improvement: Octatrack base rests machine modules no track uses #1849 and its record).
  • What this changes: module:doctor gets a cost at rest line (atRestStatus in scripts/module-cpu-price.mjs). One measure: the test procedure's step 9, device:price's at-rest reading: the frame interrupt's share (guard, 8 s) the module adds while the pattern plays, installed and used nowhere, on a development twin of the base, against the same scene without it. The check takes atRestAdds.frame from evidence/cpu-price.json, or, for a module without an effect slot, a declared price device:price took; a machine's render price or another tool's figure is never compared with the limit. Euclid's 2.5 and Tape Echo's 0.4 are this measure, taken on base 0.7.8 and the Tresor Prep scene on 18 November; they were not in the 24-package set of the record, where 18 modules read 0.0. Above AT_REST_LIMIT (0.2 points) a release dated from AT_REST_FROM (2026-11-20; the date of its version in its changelog, or a version with no entry yet) fails, unless the module answers ev_in_use, or is a machine or an effect (the base rests those, Improvement: Octatrack base rests machine modules no track uses #1849) that marks its frame detours "rests": the base takes its handlers out by itself, but its own detours rest only where it marks them. Earlier published releases are reported, not refused, so nothing published breaks. On main today it reports Euclid (2.5 at rest), Repitch (0.8), Tape Echo (0.4) and Track Solo (0.3), and fails none. The 0.2 figure and the date are the owner's to change: both are named constants. docs/TEST_PROCEDURE.md step 9 now names the pass figure, and docs/MODULE_PERFORMANCE.md says what "in use" means and how to declare it. A changelog entry.
  • How I checked it: scripts/module-cpu-price.test.mjs (15 tests: under and over the limit, a release before and after the date, an effect read from its readings, a module that answers ev_in_use, a machine, and every module on main failing none), module-doctor.test.mjs, the docs tests; npm run module:doctor -- repitch shows the warning. npm run pr:ready after merging main (with Fix: Tape Echo and Euclid standalone recipes pin their current inputs, and a test keeps the pins honest #1862): Ready, sdk:check included.
  • Not tested on a unit: a check over committed records; it changes nothing that runs on an instrument.
  • What the guides lacked or got wrong, and where I fixed it: the performance guide said how a module rests but not that it must, nor what counts as use; TEST_PROCEDURE step 9 had no pass figure. Both fixed here. The API guide's line on resting machines comes with Improvement: Octatrack base rests machine modules no track uses #1849.

Edge cases: none, because the change reads committed records and runs on no instrument; its boundaries (exactly 0.2, a release dated on the day, no changelog entry, an effect with a slot price) are in the tests.

🤖 Generated with Claude Code

Refresh verification: Merged current main and retained its expanded resting-module guidance alongside the proposed threshold. The current catalog and boundary cases passed in the local readiness run.

repeat98 and others added 3 commits November 20, 2026 13:36
…sed nowhere

Above 0.2 points of the frame interrupt at rest (test procedure step 9) a release from 2026-11-20 fails unless it is a machine or answers ev_in_use; earlier releases are reported. Both figures are named constants for the owner to change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
repeat98 and others added 2 commits November 20, 2026 13:57
…ine or effect passes only with its detours marked rests

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@repeat98
repeat98 marked this pull request as ready for review November 20, 2026 22:19
@repeat98
repeat98 merged commit 5ccebd9 into main Nov 20, 2026
16 of 25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant