Skip to content

Improvement: Octatrack base 0.8.1 cumulative draft - #2050

Merged
repeat98 merged 14 commits into
mainfrom
base/octatrack-next
Nov 23, 2026
Merged

repeat98 merged 14 commits into
mainfrom
base/octatrack-next

Conversation

@repeat98

@repeat98 repeat98 commented Nov 23, 2026 •

Copy link
Copy Markdown
Owner

Cumulative draft for the next Octatrack base, 0.8.1 (see Change a base). Base 0.8 (#1910) shipped on 23 November 2026; this branch starts again from main.

It stays a draft until the base has been tested extensively on a unit. Only the owner marks it ready and ships it.

Tested on a unit: base eb6679620d0c9ed7 (the release image), MKII, OS 1.40C, 23 November 2026: a RAM boot, a 16-module and a 17-module set trial of 30 s each and the USB input package in a 15 s trial, all with no crash, stall, freeze or skipped track and all rolled back, then a RAM boot back to the flashed 0.8. Earlier the same day, development twins of the same source ran every non-machine package alone, RINGMOD SC on a slot while playing, and the idle-CPU comparison before and after the cost-table fix (record). Not run: a Keep, a power cycle or a flash of 0.8.1, the soak, and audio through USB input.

Edge cases

Case Why this change makes it a risk How run Result
Large module sets install and roll back every installed module goes through the changed receiver and cost table 16 and 17 modules, 30 s each, on the release image pass
DSP effects with the changed receiver (#2049) the receiver loads every DSP package each non-machine package alone and the two sets, twins and release image pass
An effect reading the key bus (#2048) its charge changed from 51 to 43 cycles RINGMOD SC on T1 while the pattern played, controller twin 91a0a86e pass: admitted, DSP +0.7 / +0.9
The cost table rewritten after a lookup copied it the copy must follow a new or torn table host test test_status.c (rewrite, torn sum, restored sum) pass
Idle CPU with unused modules the fix's purpose twins before and after, profile:5 and the CPU meter pass: 16 unused 45.9 → 40.9 % stopped
USB input package on 0.8.1 its recipe was refreshed byte-identical package 0cb56b0c…, 15 s trial on the release image pass for install and rollback; no audio run
A machine's trial ending while the project names it a known trap, not this change Amiga alone on twin c06f9e21 not run: the loaded project names Amiga, and the first attempt ended needs-recovery as documented; the owner power-cycled
Keep, power cycle and flash of 0.8.1 persistence of a release a RAM boot only not run: the owner's to do

Guides: docs/TEST_PROCEDURE.md's whole-set step could not pass on today's catalogue, fixed in #2072; nothing else.

In this draft so far

  • Base 0.8.1 regenerated (823c278): identity eb6679620d0c9ed7…, 831,248 of 851,712 container bytes, 20,464 free (+268 since 0.8). npm run check passed on this head.
  • 823c278: idle CPU with large sets. Since 0.8 every UI tick re-checksummed the battery-RAM frame-cost table once per installed module. It is now checked once and copied to RAM. On the owner's MKII (controller-row twins, same project) 16 unused modules cost the UI tick 247 µs instead of 1,412, and the CPU meter read 40.9 % stopped instead of 45.9 % (empty 38.4 instead of 39.8). Record.
  • Octatrack base 0.8.1: the DSP receiver one-word forms and fewer frame-head stalls #2049 (merged): the DSP receiver's one-word forms and fewer frame-head stalls.
  • Octatrack base 0.8.1: charge the one-pass key bus tap at its MKII timing (43 cycles, was 51) #2048 (merged): the one-pass key-bus tap charged 43 cycles a sample, was 51.
  • d3bd345: the USB input package's reviewed recipe pinned modwerk_events.h from before 0.8, so --beta --usb-input refused to build it. A recapture differs in that one hash only; the release input package rebuilds byte-identical to the one run on a unit on 21 Nov (0cb56b0c…, record), and the INPUTS row (OFF/AB/CD/ABCD) is already in the USB AUDIO settings. A new test (scripts/usb-audio-recipes.test.mjs) fails when either USB Audio recipe pins a changed file. USB input has not run on a 0.8.x base yet. Owner, 23 Nov 2026: input ships inside the public USB Audio module as its INPUTS row, OFF by default, not as a separate package (not built yet).

Proposed, not merged in yet (draft PRs against base/octatrack-next)

#2028 is held out of 0.8.1 for now: it changes the boot stub, and its only real test is a two-slot conversion, which means a flash.

PR Change Unit Base size
#2028 Boot stub compiled with the late-combine guard and checked for the post-increment form, like every other ColdFire C compile of the base since #603. Needs a two-slot conversion on a unit (a flash): owner's call. Units already on two slots keep their stub. stub only

Owed before release

  • 23 Nov, development twins of b973f6863 on the owner's MKII (record): every non-machine catalogue package installs alone and rolls back; two large sets (17 and 16 packages) ran 30 s each with no crash, stall, freeze or skipped track; RINGMOD SC was admitted on a slot with the key bus charged (DSP +0.7/+0.9). Still owed: the release image eb667962… itself, Keep and power cycle, Amiga and Grain trials in a project that does not name them, the soak, and Octatrack base 0.8.1: the DSP receiver one-word forms and fewer frame-head stalls #2049's meter-at-rest A/B.
  • test:procedure --base step 7 cannot pass on today's catalogue: all 38 packages hold three declared conflicts and exceed the module pool. A Fix: PR should take the largest set that fits.
  • USB input on a 0.8.x build (d3bd345).
  • The emulator's meter scenario (scripts/verify-octatrack-dsp-loader.mjs) fails on 0.8.1 and on plain 0.8 alike: it still calls modwerk_dsp_meter_read with one argument, and the status page's own meter reads reset its counters. Not a 0.8.1 regression; Fix: the emulator's meter scenario reads all five words and checks only its own #2065 repairs the scenario on main (two passing emulator runs).
  • Each change's own unit record on this branch's build, as TEST_PROCEDURE.md asks.
  • The whole release image on a unit: Keep and power cycle, card route, a long run.
  • From 0.8: Octatrack base 0.8: four stock OS fixes (Zac-Kyoti), KITS no longer copies over lock-only patterns #2032's stock fixes shipped with emulator checks only (both unit attempts failed at the RAM boot). A post-release hardware check on a twin of the shipped 0.8 is running; its record goes to main and anything it finds is fixed here.

Background

The receiver, key-bus and stub items come from the 23 November look at octabam (MIT, Sam Banks): its DSP audit's one-word forms, and its GCC/Unicorn post-increment trap (#1134 upstream).

🤖 Generated with Claude Code

repeat98 and others added 3 commits November 23, 2026 15:04
…ing (43 cycles, was 51)

The key bus charge (dsp-sites.json feature 8, MW_DSP_KEYBUS_HARDWARE) was
timed on 23 October on the 41-instruction tap and kept until the one-pass
tap of Sidechain Compressor 0.2.0 (25 instructions) was timed. Timed now
with the same method on the owner's MKII: core 0's load meter, RINGMOD SC
on T1 FX1 with KEY OFF against the same Part without it, 33.8 idle passes
a frame = 42.2 chip cycles a sample, on two development twins (856cbbcf
and 1c937ed6). Charged rounded up, 43. Evidence:
evidence/keybus-tap-timing-20261123.json. dsp_ledger.h regenerated with
dsp_sites.py --write; test_resident_engines.py's pinned figure follows,
as #888 added it with the 51.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…me-head stalls

dsp_receiver.asm, private and window halves:
- 27 two-word add/sub/cmp immediates on a that fit the 6-bit form now use it
  (4 private, 23 window). c1wait's add stays long: status.c's idle_cycles[1]
  is that pass as calibrated on the unit.
- The 10 zero loads (#>0 into x0, x1, a) use the one-word 8-bit form.
- The no-packet frame no longer uses an address register right after loading
  it: r1 is loaded before the displaced instruction and tblready (moved just
  before idlewin) is read with a post-increment onto the meter's words; the
  frames left stay in x1 instead of being read back from P; the magic is read
  as x:(r6+$320), and only a packet's frame computes r0.
- dsp_loader.py: core 1's meter clears its count through x1, not through a.
The resident port's patch and pins follow (its cmp #10/#11 take the short
form too).

Modelled with the cycle scan's interlock model (interlock_scan.analyze over
the executed path): the steady no-packet frame on core B (P:$76) 134 -> 110
cycles, 18 -> 5 stall cycles; core A 129 -> 106. Words: private -8 a core
(-10 in the resident port), window half -29 a core.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Base 0.8 shipped on 23 November 2026; base/octatrack-next starts again from
main as the cumulative draft for 0.8.1. The base is not regenerated here:
the first change merged in regenerates it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions github-actions Bot added the enhancement New feature or request label Nov 23, 2026
repeat98 and others added 11 commits November 23, 2026 15:14
…-head stalls (#2049)

Merge pull request #2049 from repeat98/base/receiver-one-word-forms.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ing (43 cycles, was 51) (#2048)

Merge pull request #2048 from repeat98/base/keybus-tap-remeasure.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The input package's reviewed recipe still pinned modwerk_events.h from
before base 0.8 (ev_frame_deadline, f1e9c02/42a390026), which refreshed
only the output-only recipe, so --usb-input --release refused to build.
A recapture differs in that one hash only; image, generated assembly,
settings and all four copies are unchanged, and the package rebuilds
byte-identical to the one run on a unit on 21 Nov (0cb56b0c...).

A new test hashes every repository file both USB Audio recipes pin, so a
header change can no longer refresh one recipe and forget the other.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… key-bus charge

Regenerated with npm run octatrack:base -- --beta --write, then
octatrack:module-packages -- --base-only and base-size --write, on
base/octatrack-next with #2049 and #2048 merged in. #2028 (the boot stub's
late-combine guard) stays out until it can be tested with a flash.
Base 0.8.1 48133772ba8c7a42..., 831,052 of 851,712 container bytes,
20,660 free.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… after #2048

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

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

Every UI tick looks up each installed module's price (hush_pick) and a few
stock figures, and cost_row re-checksummed the whole battery-RAM table on
each lookup. status.c now copies the table into RAM after checking it, and
reads only its header (magic, count, sum) on each lookup: a write or a torn
table changes the header and the copy is checked again.

Owner's MKII, 0.8.1 controller-row twins, same project, 16 unused modules:
profile "module UI ticks" 1,411.5 -> 247.0 us a tick (empty 461.8 -> 226.5);
CPU meter stopped 45.9 -> 40.9 % (empty 39.8 -> 38.4 %). Base regenerated:
0.8.1 eb6679620d0c9ed7, 20,464 bytes free.

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 23, 2026 19:17
@repeat98
repeat98 merged commit 4c35b50 into main Nov 23, 2026
16 of 26 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