Skip to content

Improvement: hosted base images for Digitakt II, Analog Rytm MKII and Model:Cycles - #2371

Draft
repeat98 wants to merge 9 commits into
mainfrom
feature/hosted-bases-elektron
Draft

repeat98 wants to merge 9 commits into
mainfrom
feature/hosted-bases-elektron

Conversation

@repeat98

Copy link
Copy Markdown
Owner

What works: once its image is hosted, a Digitakt II, Analog Rytm MKII or Model:Cycles owner can download the Modwerk base without their own OS file. On the build panel, a set with no modules and no OS file chosen offers "Download Modwerk base .syx". A set with modules still builds from the musician's own file, as now. What is not done: nothing is uploaded for these machines yet. The owner runs base:publish --machine … once this is live. Rytm and Cycles have had no dry run: their stock files aren't on this Mac. Digitakt II downloads are still closed, so its panel offers nothing until they open. Who must act: the owner (stock files, then publish). On a unit: not run. Builds on #2361: this branch contains it; review that one first.

  • What was wrong or hard: after Improvement: hosted Elektron base images #2361 only the Octatrack had a hosted base. The machines whose modules link into the OS still needed the musician's own file even for the base alone.
  • What this changes:
    • npm run base:publish -- --machine digitakt-ii|analog-rytm-mkii|model-cycles --stock OS.syx: builds the base-only image with Modwerk's builder, exactly the page's build of a set with no modules, in its default display version. It refuses a core whose identity isn't the one base-binding.json pins (Rytm: the plain variant). Hosted file name: Modwerk-<machine>-base-<identity prefix>.syx.
    • DigiBuildPanel: the hosted download sits behind the same risk acceptance and recovery tick as a built file, only where downloads are open for the machine. It refuses an image whose identity, size or SHA-256 differs.
    • machine-build.ts: baseIdentity(machine, moduleIds), which selectionCatalog now uses too.
    • docs/HOSTED_BASES.md, changelog entry.
  • How I checked it: npm run pr:ready. New panel tests cover: download only after both ticks; no offer for a set with modules; no offer for an identity the site doesn't build. A dry run with the owner's Digitakt II 1.17 file built Modwerk-digitakt-ii-base-948be0c4.syx (2,198,176 bytes, SHA-256 64bcb308…). Its identity matched the pin. Nothing was uploaded.
  • Tested on a unit: Not tested on a unit: no base or module code changed. The image is the page's own no-module build. Not checked in a browser.
  • Edge cases:
Case Why this change makes it a risk How run Result
Set with modules it must not get a base without them panel test pass
Hosted entry for another base stale manifest after a base change panel test (unknown identity) pass
Machine with downloads closed (DT2) hosted download would bypass the review gate downloadsEnabled gates hostedIdentity not run: by reading
Stock file for another OS release publish must not host a mismatched base base:publish refuses a core other than the pin not run: Rytm/Cycles files missing
  • What the guides lacked or got wrong, and where I fixed it: docs/HOSTED_BASES.md listed these machines as pending. It now says how they work.

🤖 Generated with Claude Code

repeat98 and others added 9 commits November 28, 2026 07:15
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The owner builds the published Octatrack images from his own OS file with
the browser's build path (npm run base:publish) and uploads them to the
private modwerk-base-images bucket; the Worker lists them at /api/bases and
serves an image to verified members. The install guide offers the hosted
base while no OS file is chosen and checks its identity and SHA-256. The
guidelines and agent rules name this one exception.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
USB Audio is a module, so the guide builds the base and its step base with
USB Audio off; the step bases for other layouts are never requested.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ase step

The install guide's anonymous counts record hosted-base-ready instead of
os-file-ready, and hosted-download-failed instead of build-failed, when
Modwerk's hosted base stands in for the OS file. OWNER_OPERATIONS.md and
HOSTED_BASES.md say to run base:publish again after every base release.

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>
…cles

base:publish --machine builds a machine's base-only image with Modwerk's
builder, exactly as the page builds a set with no modules, and checks the
core against base-binding.json. The build panel offers the hosted image for
a set with no modules while no OS file is chosen, behind the risk and
recovery ticks, and checks its identity, size and SHA-256.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions github-actions Bot added the enhancement New feature or request label Nov 28, 2026

This branch has not been deployed

No deployments
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