Skip to content

Fix: module:dev builds a listed effect's page from its manifest when the committed recipe is stale - #2317

Merged
repeat98 merged 1 commit into
mainfrom
fix/module-dev-stale-page
Nov 27, 2026
Merged

repeat98 merged 1 commit into
mainfrom
fix/module-dev-stale-page

Conversation

@repeat98

Copy link
Copy Markdown
Owner

module:dev no longer builds a listed effect with a stale page. When an update gives a control more values, the development package now carries the new range instead of the old one. Nothing a musician installs changes; this only affects development builds.

  • What was wrong or hard:
    • For a module that's already listed, npm run module:dev copied the FX page from the committed src/engine/assets/descriptor-recipes.json and never compared it with the module's manifest. That file is only refreshed when the module is released.
    • Midiverb 0.2.0 grows PROG from 59 to 102 values. Its development packages still carried 0.1.0's count, so on the owner's MKII PROG stopped at value 58, and none of the new programs could be picked. Finding out why took part of a unit run (27 Nov 2026, Midiverb I/II 0.2.0: all 225 programs, the Midiverb II's choruses and flanges with their LFOs #2247).
  • What this changes:
    • For a listed DSP effect, scripts/module-dev-package.py derives the page from the manifest (draft_page, which drafts already use) and compares it with the committed one. The comparison is the one --check-page already makes, now in one helper (recipe_matches).
    • If they match, nothing changes. If they differ, the package is built with the manifest's page, and module:dev prints one line saying the committed recipe is stale and that the release refreshes it.
    • A listed page the manifest alone can't make (a stock effect replaced in place) keeps the committed recipe, as before.
  • How I checked it:
    • npx vitest run scripts/module-dev.test.mjs: 4 of 4 pass. That includes the new test (the same recipe matches; a recipe whose PROG count grew from 59 to 102 doesn't), and the two tool-backed tests: Mini Verb still builds byte for byte as published, and seven listed effects still derive their committed pages exactly.
    • On Midiverb 0.2.0's branch (module/midiverb-all-programs), the fixed script printed the stale line and built package 1c2e43f6…. That is byte for byte the package built by hand with the manifest's page, which ran on the unit today.
    • npm run pr:ready has not run yet: USB Audio's run holds the shared check lock with the owner's priority. It will run before this merges.
  • Tested on a unit: not applicable; this changes a development tool, not a built package or the base.
  • Edge cases: none on hardware, because no shipped package or base changes. In software: a listed page that matches (unchanged path, Mini Verb byte for byte); a stale one (Midiverb's branch, above); one the manifest can't make (falls back to the committed recipe, as before).
  • What the guides lacked or got wrong, and where I fixed it: nothing in the guides. The tool now says so itself.

🤖 Generated with Claude Code

…the committed recipe is stale

A listed effect's dev package took its FX page from the committed
descriptor-recipes.json without comparing it with the manifest. Midiverb
0.2.0 grew PROG from 59 to 102 values; its dev packages kept the old count
and PROG stopped at 58 on the owner's MKII (27 Nov 2026). module:dev now
derives the page, compares it as --check-page does (recipe_matches), and
builds with the manifest's page when they differ, saying so.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions github-actions Bot added the bug Something isn't working label Nov 27, 2026
@repeat98
repeat98 merged commit 43e0cdc into main Nov 27, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant