Skip to content

Fix: Octatrack base 0.7.10 binds Analog BD again after a rolled-back trial that removed it - #1774

Merged
repeat98 merged 26 commits into
base/octatrack-nextfrom
fix/analog-bd-silent-after-rollback-1736
Nov 19, 2026
Merged

repeat98 merged 26 commits into
base/octatrack-nextfrom
fix/analog-bd-silent-after-rollback-1736

Conversation

@repeat98

@repeat98 repeat98 commented Nov 19, 2026 •

Copy link
Copy Markdown
Owner

Related to #1736. For the cumulative base draft #1757 (base 0.7.10).

  • What was wrong or hard: a trial that takes Analog BD out (here a npm run device -- set that adds Vibrato and removes Analog BD) and is rolled back left Analog BD listed and pickable but silent until a power cycle. The controller board released the removed controller's slot one tick after the trial's switch: roots_clear asked only the volatile journal, which is off, so an open trial did not count. The rollback brings the module back with the same owner generation, which the board neither binds again (slot_of matched the released slot, and a bind refuses an old generation) nor advances, so its engine was never placed again. Sidechain and Output Matrix take the same path.
  • What this changes: the loader answers modwerk_runtime_restorable(generation): an open transaction can still put that owner back (the trial's replaced module, a journal or set row's before). The board keeps such a slot RETIRING instead of releasing it and does not want its engine meanwhile, so the trial still gets the DSP room. A rollback republishes it and the existing restore branch binds it again; a Keep releases it as before. Second commit: the beta base regenerated (octatrack:base -- --beta --write, octatrack:module-packages -- --base-only); the fix moves the lease entries, so Analog BD's reviewed recipe was recaptured (finding 17, only imageSha256 changes) and the three base-bound packages and trust rows are re-encoded. Base 0.7.10 is now a5f1dd2d….
  • How I checked it: host test test_resident_engines_board.py modes 67 (single-module trial) and 68 (the whole-set trial, in a fixture build with -DMODWERK_RUNTIME_SETS); both fail without the board change (slot released mid-trial) and pass with it. All 68 modes pass, as do test_controller_board, test_controller_transport, test_controller_write_lease, test_resident_journal, test_runtime_journal, test_module_sets, test_analog_bd_ui and test_base_bound_trust. test_stock_hook_controllers has one error (KeyError: 'copies') that main has too. npm run pr:ready follows in a comment.
  • Tested on a unit: see the line below. On the owner's MKII, OS 1.40C, two RAM-booted --dev twins with the beta base's flags, project MODWERK-TEST2 with T4 on Analog BD and a trig on step 1, Analog BD's whole package bound to each twin and kept, T4's USB channel recorded:
    • before the fix, twin 0ad7efc5 (main at 21e6918): T4 peaked −19.3 dBFS each bar; T4 to FLEX; device -- set vibrato/0.1.0,-analog-bassdrum --seconds 60, rolled back with no crash, stall or freeze; T4 back on Analog BD: −120 dBFS, silent (the report reproduced);
    • with the fix, twin f9f8cfb9 (this branch's code): the same steps; after the rollback T4 peaked −19.3 dBFS each bar, as before the trial.
      Not tested: the flashed base (a twin, not a flash), Sidechain and Output Matrix on a unit, a power cycle afterwards.

Not tested on a unit: the release build itself (base 0.7.10 a5f1dd2d) did not run; its --dev twin f9f8cfb9, built from the same source with the beta base's flags plus --dev, did on the owner's MKII (above), because the release base refuses the remote key presses the test needs. Owner to decide; the cumulative base #1757 gets its own long unit run before it ships.

  • What the guides lacked or got wrong, and where I fixed it: nothing in the guides. Worth knowing for whoever tests the next base: a twin's rows/analog-bassdrum-work/analog-bassdrum.mwrm is the controller alone and its pick is refused silently; the whole package has to be built with base_bound.build against the twin's binding (its rows/controller-policies.json). And the CPU box's "WAS BUSY PLAYING" figure needs four seconds of playing to refresh.

🤖 Generated with Claude Code

repeat98 and others added 18 commits November 19, 2026 08:47
Developers can send the owner the conversation of one coding-agent session
(npm run session -- share), so the owner sees what got in the way and fixes it.
pr:ready reminds the agent to ask once when the work is Ready; the developer
can answer always or never once (npm run session -- prefer).

Only prompts, replies and one line per tool call leave the computer. Tool
output, thinking, injected context, long code blocks, hex dumps, data blobs,
secrets, emails, IPs, home paths and user/host names are removed first, and a
session that still looks like firmware or stock code is refused, by the client
and again by the Worker (shared rules in src/community/agent-sessions.ts).

Stored gzip in D1 (migration 0099), readable by the developer and
administrators, deleted after 90 days, on suspension and with the account,
listed in the account export. Privacy notice and the record of processing
updated; docs/AGENT_SESSIONS.md describes it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…not flag it

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Saved tool outputs live under ~/.claude/projects/<home as a folder name>, so their paths carried the developer user name past the home-path rule.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Base 0.7.10's log records the module pool when a restore refuses a package
(fix/refused-set-pool, for the cumulative base draft). The invitation and the
privacy page (German and English) now say the log carries it, and the
diagnostics pull prints the memory used and the largest free block beside the
refused module. Older bases leave both fields 0 and print as before.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…gain (#1736)

A trial that took a trusted controller out (Analog BD, Sidechain, Output
Matrix) let the controller board release its slot one tick after the
switch: roots_clear asked only the volatile journal, which is off, so a
pending trial did not count. The rollback brought the module back with the
same owner generation, which the board neither rebinds (slot_of matched
the released slot, and a bind refuses an old generation) nor advances, so
its engine was never placed again until a power cycle (a tester's MKII,
18 November 2026).

The loader now answers modwerk_runtime_restorable(generation): an open
transaction can still put that owner back (the trial's replaced module, a
journal or set row's before). The board keeps such a slot RETIRING instead
of releasing it, without wanting its engine, so the trial still gets the
room; a rollback republishes it and the existing restore branch binds it
again; a Keep releases it as before.

Host test: test_resident_engines_board modes 67 (single-module trial) and
68 (the whole-set trial `device -- set` sends, in a build with the set
backend). Both failed before the change with the slot released mid-trial.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Improvement: share agent sessions with the owner
Base 0.7.10's set record also carries the loader's check that refused the
package (dsp1). The pull names it, and calls a module-memory refusal by the
claims check what it is: the module's DSP claims meeting a delay buffer, not
the module memory itself. The invitation and the privacy page (German and
English) say the log carries the check as well as the memory in use.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
npm run octatrack:base -- --beta --write, then
octatrack:module-packages -- --base-only. The fix moves the base's lease
entries, so Analog BD's reviewed recipe was recaptured from the stock OS
against the new base's symbols (finding 17: only imageSha256 changes), and
the base-bound packages (Analog BD 0.1.7, Output Matrix 0.1.1, Sidechain
0.2.2) and trust rows are re-encoded for the new link. Base 0.7.10 is now
a5f1dd2d95c126bb.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
npm run session -- pull now signs in to the owner's Modwerk account, the one
with the administrator role, as the site's sign-in does: email and password
at a prompt (password hidden, stray Enters ignored) or from MODWERK_EMAIL and
MODWERK_PASSWORD for that one command. The password is never stored and the
pull signs out when done. The Worker no longer lets a board session on an
administrator account read other developers' sessions: only the site's admin
sign-ins do.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…it out (#1736)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Improvement: device-scoped first release reviews and contribution roles
@repeat98
repeat98 marked this pull request as draft November 19, 2026 10:47
@gitguardian

gitguardian Bot commented Nov 19, 2026

Copy link
Copy Markdown

⚠️ GitGuardian has uncovered 1 secret following the scan of your pull request.

Please consider investigating the findings and remediating the incidents. Failure to do so may lead to compromising the associated services or software components.

🔎 Detected hardcoded secret in your pull request
GitGuardian id GitGuardian status Secret Commit Filename
40376663 Triggered Generic High Entropy Secret 19be13a src/community/agent-sessions.test.ts View secret
🛠 Guidelines to remediate hardcoded secrets
  1. Understand the implications of revoking this secret by investigating where it is used in your code.
  2. Replace and store your secret safely. Learn here the best practices.
  3. Revoke and rotate this secret.
  4. If possible, rewrite git history. Rewriting git history is not a trivial act. You might completely break other contributing developers' workflow and you risk accidentally deleting legitimate data.

To avoid such incidents in the future consider


🦉 GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request.

@repeat98
repeat98 merged commit 589245d into base/octatrack-next Nov 19, 2026
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant