Repository navigation
Improvement: hosted Elektron base images - #2361
Merged
Merged
Conversation
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>
repeat98
marked this pull request as ready for review
November 28, 2026 06:58
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>
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 works: once the owner publishes it, an Octatrack owner can install the Modwerk base without their own OS 1.40C file. The install guide says "Modwerk's prebuilt base is ready", downloads it, checks it and installs it over USB or the card. "Use my own OS 1.40C file" stays. What is live: the bucket exists and holds the 0.8.3 base and its step base (uploaded by the owner, 28 November); the site offers them once this merges. Digitakt II, Rytm MKII and Model:Cycles follow in their own draft, built on this branch. Who must act: the owner (Jannik). On a unit: not run. The hosted image is byte-identical to the browser build, and the unit's IDENTIFY checks the identity.
Agreed with the owner on 28 November 2026: the owner builds and uploads from his own OS file on his own computer, never in CI. Every Elektron machine with a Modwerk base is in scope. Only the base is hosted, no module sets. The own-file route stays open. Other makers' devices stay local-only. The maker's agreement is kept privately, not in the repository.
Owner steps:
modwerk-base-imagesbucket exists (the Worker deploy needs it).npm run base:publish -- --stock ~/Downloads/OCTATRACK_OS1.40C_dist/OCTATRACK_OS1.40C.bin(--dry-runfirst if you like).server/base-images.ts: publicGET /api/basesmanifest;GET /api/bases/<machine>/<identity>serves an image to verified members only, from a new private R2 bucket (BASES).scripts/base-publish.mjs(npm run base:publish, owner only): builds the base and its step base (both USB Audio off, since USB Audio is a module) with the browser's own build path. That path moved out of the worker intosrc/engine/elekloader/published-base.tswithout changing what it does. The script checks each identity against the committed pins and uploads with the owner's wrangler login. It refuses to replace an identity that is already hosted with different bytes.Modwerk-octatrack-base-0.8.3-5af431bd.bin); publishing renames hosted entries without re-uploading.hosted-base-readyinstead ofos-file-ready,hosted-download-failedinstead ofbuild-failed(tested).docs/OWNER_OPERATIONS.md"Ship a base": runbase:publishagain after each base release (next: 0.8.4, Improvement: Octatrack base cumulative draft after 0.8.3 #2333).src/config/hosted-bases.ts+BaseInstallDialog: the guide uses the hosted image while no file is chosen. It refuses an image whose identity is not the published one for its layout, or whose size or SHA-256 differs from the manifest.MODDING_GUIDELINES.md,AGENTS.md,sdk/machines/AGENTS.md,docs/MACHINE_RECIPE.md,docs/APP_DEVELOPMENT.mdand the FAQ name this one exception. The stock-free scanners and CI gates are unchanged, because nothing stock enters the checkout.npm run pr:ready. New tests cover the Worker route (manifest public, image only for a member, unknown identity 404) and the identity/layout pick. A localbase:publish --dry-runwith the owner's OS file built both images, and each identity matched its pin (base5af431bd…, 837,908 bytes; stepc1f21351…). Nothing was uploaded.docs/HOSTED_BASES.md(new, listed indocs/README.md) is it, and the rule lines above point to it.Follow-ups
base:publishand their pages, after Improvement: Modwerk's own firmware builder #2346 lands. The storage, route and manifest already take any machine.scripts/machine-slots.test.mjsfailed in two full runs under load and passed alone: it needs its own Fix.🤖 Generated with Claude Code