Skip to content

Improvement: Octatrack base cumulative draft after 0.8.3 - #2333

Merged
repeat98 merged 199 commits into
mainfrom
base/octatrack-next
Nov 29, 2026
Merged

repeat98 merged 199 commits into
mainfrom
base/octatrack-next

Conversation

@repeat98

@repeat98 repeat98 commented Nov 27, 2026 •

Copy link
Copy Markdown
Owner

Base 0.8.4 ships as 34fe3dd9: the same code as the tested d60d0f3a; only its identity records differ, after one host-test line was split for CI's compiler. d60d0f3a: tested on the owner's MKII on 29 November on its development twin, and nothing failed. The test procedure, 41 packages, the soak, the prices and the draft's own cases all pass. USB MIDI now runs beside DIN, rests in USB DISK MODE and comes back after a RAM boot (2 of 2). Your saved modules survive a base update, and a start that can't load them says why. Flashed on the owner's MKII the same afternoon: a kept set (Midiverb) came back after a power cycle. The bootloader showed MW 0.8.4, and the owner listened: it sounds right. Ready to ship.

  • What ran on 29 November (twin fec823d9 of d60d0f3a, RAM boots, no sound judged): the base procedure's steps 1-4, 6 and 8-10 passed. 41 packages (all but Ring SC, which a twin refuses alone) were accepted, ran 30 s and were undone; one note says the CPU sat at 90 % or more for 1.5 s while they installed. The 2-minute soak passed (health p95 15 ms). Prices at rest are as before (Repitch and Euclid +2.2, POLY8 +1.9 points). By hand: no LATE at second 0; a DETAIL after each CPU and LATE record; STOP PLAYBACK FIRST while playing or paused; a pasted module machine is judged like a pick and leaves no stall; VECTOR is never shed; two RAM boots came back on USB; USB DISK MODE kept the link and left cleanly.

  • What works on the unit (release 6e4f11e2, RAM boots, transport stopped, no sound judged):

    • A set kept on this base comes back at the next start. Kept 8 (Tape Echo, Euclid, Air Chorus and the five base-linked ones), booted another base over it, then this one again: all 8 restored.
    • Another base's set loads but for the linked modules. A twin over that set restored the three and left the five linked ones out (0x102), with nothing written to the card.
    • Ring SC installs beside those 8 and runs clean (trial, rolled back).
    • On the twin of the build before the last fix (1557c95f): the base procedure's steps 1-4 and 6 passed. A whole-set trial of 41 packages (all but Ring SC, which a twin refuses alone) was accepted, ran clean and was undone. A 2-minute soak and prices at rest for every package showed nothing new.
  • What changed since the last description (each its own commit):

    • USB MIDI beside DIN, in DISK MODE and across a RAM boot (Octatrack base: USB MIDI beside DIN, in DISK MODE and across a RAM boot #2401, d3537985e): a USB message no longer breaks DIN's running status, USB MIDI rests while DISK MODE is open, and the USB controller resets before a RAM boot.
    • Room for the development twin (d49614efe): the USB MIDI change left the twin 364 bytes over its flash slot, so development-only code was shortened. The release image's code and data are unchanged; only its identity records differ.
    • The base before picks the set (cc5eb64a9). The boot guard's from names the base whose set the start picked, and a test base in between passes it on (960fe6e96, found on the unit tonight: a twin's start made the release forget the flashed base's set).
    • A start without modules says why (425668dfd, 74d46b91b). A card read that fails once is retried three times. MODULES NOT LOADED shows when the set still can't load, and PRESS STOP TO LOAD MODULES when a pause or MIDI STOP holds the restore back. Every such start writes a set record (RESTORE_WAIT 0x103), so the next report shows which case it was.
    • VECTOR's tracks are not shed (eb62d9343): a track that plays stock's own sample playback is no longer cut as a module's render when the frame runs short.
    • The DSP stall watchdog recovers once a session, not on every tick after a stall.
    • Changelog entries: changelog/2026-11-28-octatrack-*.md (three).
  • What's broken or open:

    • Not run on a unit: the flash (and MW 0.8.4 on the bootloader screen), a Keep and its restore across a power cycle, the 30-minute soak, a start held by a MIDI STOP, CARD BUSY, and a Part reload that brings a module machine back.
    • Flash room is thin for the twin: 120 bytes under its slot. The release has 3,288 free.
    • The emulator can't rehearse a base's set: its session has no card, so the restore never runs and the set is refused. --no-emulator for now.
    • Not fixed (needs a unit): identical Parts clicking at a Part change (Octatrack base: effect changes refused with NEEDS A BUFFER on a full core, and noise on Part switches #998).
  • Musically: after an update your Kits and effects are there at the first start. Only Analog BD, Sidechain Compressor, Output Matrix, CC Map, Recorder Loop and USB Audio ask for a sync. A start that couldn't load anything tells you so instead of looking normal.

  • Who must act: the owner: merge and run base:publish for 0.8.4. Done: the flash, a Keep of Midiverb from this branch's site, and its restore after a power cycle (boot 1243, live at +5 s, no crash, stall or LATE record).
    Tested on a unit: base d60d0f3a (released as 34fe3dd9, the same code: the unpacked images differ only in the four identity records), MKII (OS 1.40C): the base test procedure and the draft's own cases on its development twin fec823d9, then the flash (MW 0.8.4 on the bootloader screen), a Keep of Midiverb, its restore after a power cycle, and the owner's listening test.

  • Ran on your unit: yes, on twins of d60d0f3a (29 November) and 6e4f11e2 (28-29 November), never flashed. The record is docs/verification/2026-11-27-octatrack-base-0-8-4.md.

Edge cases

Case Why this change makes it a risk How run Result
A USB message between DIN running-status notes DIN's later data bytes turned into program changes host: test_usb_midi_shared_framer.py pass; unit not run (no DIN sender attached)
USB DISK MODE while USB MIDI rests stock's USB MIDI buffers lie inside DISK MODE's read buffer unit 29 Nov: DISK MODE from the menu, card mounted and ejected on the Mac pass: link stayed up, left cleanly, disk-hold counter 1; a file read and MIDI around it not run
A RAM boot coming back on USB one in three came back without USB on 22 Nov unit 29 Nov: twin to twin, twice pass 2 of 2; not a rate
VECTOR's tracks under a short frame stock playback was cut as a render unit 29 Nov: share lowered to 10 % pass: 0 skipped, no shed
A paste past the frame line the track must go silent, with the box, and stay so host: test_machine_registry.c; unit 29 Nov: Amiga pasted onto T5 pass: CPU FULL, AMIGA NEEDS +4 %, no stall; UNDO put it back
Room made after a refused paste a refused track must not come back by itself and click host: same pass: it stays silent until its machine changes
A paste that fits it must count like a pick, or the next pick is judged too light host: same, cpu_entered pass
A pick, then its own bytes on the next tick must not be judged twice host: the existing pick tests pass
A project load, or an install that brings a machine the Part names must not be refused as a paste host: load counter and owner epoch pass on the host; unit not run (needs a Part saved with the machine)
A Part change while playing unchanged (the predicted brake's) reading not run: the code path is unchanged, and it needs a playing pattern with module machines on Parts that differ
Paused / MIDI STOP, then a MODULES switch must say STOP, not BUSY host: test_modset.c; unit 29 Nov, MODULES while playing and paused pass: STOP PLAYBACK FIRST both times
A stopped, rewound unit with the card gate closed its own text host: same pass
61 late entries before the first tick no LATE; the next real one is logged at once host: test_diag.c; unit 29 Nov, boots 1232-1239 pass: no LATE at second 0
A detail record after a CPU or late record it takes a second slot of the log's 32 each time, so a hot session's log covers less time host: test_diag.c; unit 29 Nov: diaglog pass: each CPU and LATE record has its DETAIL
Counting inside the late-entry wait work in the frame interrupt must not lengthen a frame host: test_machine_registry.c (the wait still ends at 190 µs) pass; unit not run
An older site reading the new record must drop it, not fail the upload reading: device-log.ts skips unknown kinds not run: no older site build is served to upload to
A base update with a saved set the set must load, minus the six linked modules, with nothing written to the card host: test_modset.c; unit: twin over a set kept on 6e4f11e2 pass: 3 restored, 5 linked left out (0x102), nothing written
The old base's file left in the other slot with a higher generation this base's own newer save must win host: test_modset.c pass
A package of the old base that the new base cannot take must be refused by the loader's own checks, never run host: runtime_card_guard.c (arena guard) pass; unit not run
A linked module whose id is missing from base_bound[] it would load on a base it was not linked for and could crash sdk/tests/test_base_bound_set.py holds the list and the published packages together; the boot guard leaves a crashing package out at the next start pass
Back to the base whose set it is its own set wins over another base's unit: release 6e4f11e2 after the twin pass: RESTORED, 8 live
A test base's start in between (a RAM-booted twin) the next start must still know whose set is the musician's host: test_modset.c; found on the unit with 1557c95f pass on the host; 6e4f11e2 booted after such twins read FOREIGN, as expected for names lost before the fix
A card read that fails once at start retried, not given up for the session host: test_modset.c, test_modset_card.c pass; unit not run
A start held by a pause or MIDI STOP says PRESS STOP TO LOAD MODULES and logs RESTORE_WAIT host: test_modset.c pass; unit not run
Back to the older base (NOR start, two-slot fallback) the older base ignores the newer base's set as before reading not run: it needs 0.8.3 flashed back over 0.8.4, which is the owner's step at the unit
Unit checks to run before this ships
  1. Paste: FM Synth on T1. Pick Amiga on T2 of a busy pattern until it's refused, then paste a T2 with Amiga from another pattern. Expected: CPU FULL, T2 silent, no clicks at pattern changes. Then set T2 to FLEX and back by a pick: refused again.
  2. A fitting paste on a light pattern: Amiga plays, and the next pick is judged with it on top.
  3. Project load of a project whose Part holds both machines: no CPU FULL from the paste rule (the predicted brake may still act).
  4. MODULES: PLAY, PLAY (pause), then switch a module: STOP PLAYBACK FIRST; panel STOP, switch again: switched.
  5. Diagnostics: power-cycle, pull the log: no late record at second 0.
  6. Detail record: get one pick refused (CPU FULL), then npm run device -- do 'diaglog': a detail line after the cpu line names the pick and the check. Compare npm run device -- do 'guard late' before and after a busy pattern switch: the longest frame and the wait's longest are no higher than on 0.8.3.
  7. Base update with a kept set: on 0.8.3 keep a set with Kits, one effect and Analog BD; switch one module off on MODULES. Update to this base and power-cycle. Expected: SYNC FOR ALL MODULES, Kits and the effect run, the project's tracks keep their assignments, MISSING lists Analog BD if the project names it, Status says not all loaded and names Analog BD. Sync: everything back. Power-cycle again: MODULES LOADED.

What the guides lacked: docs/MODULE_PERFORMANCE.md said only picks were judged against the frame line, and now names pastes. docs/OCTATRACK_DRIVING.md's late row now says the start's own entries make no record, and a new row describes the detail record.

🤖 Generated with Claude Code

repeat98 and others added 30 commits November 23, 2026 10:40
… and check its objects

build_stub.py compiled stub.c and slots.c in one gcc call at -Os without
m68k_codegen.FLAGS and without m68k_codegen.check, the guard every other
ColdFire C compile of the base has had since #603. It now compiles each
source to an object with the flag, checks the C objects with
check_mcf54455 (the check build_core.py runs on the base's C), and links
them as before. The stub's code changes from 900 to 890 bytes;
check_stub.py passes all six slot states on it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…nly when they change

A recording track runs stock's recorder control-record update (0x4000432c) about 1.5 times a frame, with six writes
into slow CS1 memory, and in steady recording [r+300] and [r+308] already hold what it computes. The base replaces the
routine with stock's arithmetic and writes, storing those two only when they differ from the values it reads, read
under stock's own interrupt mask so CS1 ends as stock leaves it. Idea and hardware figures: Bryan T.

rec-harness/ runs stock's routine and the base's side by side on the emulator: 1,000,000 random calls, every
register, the CS1 records, the 44-byte records and the stack equal stock's; CS1 writes a call 4.49 -> 3.02.
Not yet measured on a unit: the 0.8.1 twin's RAM boot did not come back on USB (#1985).

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

Merging #2028 changes build_stub.py, which the base records, so the release
base is regenerated: identity c5791ec9 (was 6852c1ff), stub_body.c 5be076c9
(was 89b61a6d), MAIN 12 bytes smaller, base-bound packages relinked with
unchanged bytes. Not run on a unit: only a two-slot conversion writes the
stub and only a cold start runs it.

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

diag.c's CPU record gave only every track refused since the start, while its machine
list is the Part's at the moment of the record, so a pass could not tell whose price
caused a refusal. cpu_refuse now bumps a per-track counter (its only writer); diag.c
compares them with its own copy and puts the tracks that moved in bits 16-23, the
count in the low 16 bits, every track since the start in the top byte as before. The
pull names each such track's machine signature; older records print as before.

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

dsp.c's admission knew which live slot runs the effect it refuses RUNTIME_IN_USE but
only returned the code. It now keeps that slot (1-8 FX1 of T1-T8, 9-16 FX2), cleared
at each admission, and the self-test record carries it above the refusal (bits 16-23;
the record keeps its 96 bytes). The site reads it and says "Track 6 runs Tape Echo as
its FX2 effect in the current Part." Older bases leave the bits 0 and keep the old hint.

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

Release base ada74e3d (was c5791ec9), browser = native .bin 5c7e9eba, container 200
bytes larger. The resident port's dsp.c hunks move 6 lines and its pin follows;
base-bound packages relinked with unchanged bytes. Not run on a unit.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	src/components/BaseChangelog.tsx
#	src/dev/octatrack-link-fake.ts
#	src/engine/elekloader/octatrack-link.test.ts
#	src/engine/elekloader/octatrack-link.ts
The merge brought main's USB Audio 0.4.0, bound to 0.8.1 (eb667962). Base-bound
packages follow the cumulative base: requiredBase ada74e3d, package bytes unchanged.

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

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…n's refusal

Analog BD's and Output Matrix's controllers refuse RUNTIME_IN_USE too, without dsp.c's
admission, so a slot an earlier sync's admission left could name an unrelated track.
The self-test record now carries the slot only while the loader's refusal is that
admission's (RUNTIME_CHECK_DSP, set with each refusal and reset at every prepare), and
the admission no longer clears it. Clearing it in boot.c's prepare instead would move
the base's write-lease entries and need Analog BD's reviewed recipe recaptured.

Rebuilt: base 2f4d5955 (was ada74e3d), browser = native .bin 4e056c4c, resident dsp.c
hunks re-pinned, base-bound packages relinked with unchanged bytes. Not run on a unit.

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

status.c's frame admission counts a CPU refusal without moving that track's counter,
so diag.c's CPU record named no recent track for the commonest refusal: on a twin a
POLY8 pick refused on T3 logged 0x04000001 (since-boot T3, recent 0). It now moves
mw_cpu_track_refusals[slot] too; diag.c's comment names both writers.

Rebuilt: base 8f179f5e (was 2f4d5955), browser = native .bin b5336893, base-bound
packages relinked with unchanged bytes. Not run on a unit.

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

A development twin of 6663f66 (58babe99): a POLY8 pick refused on T3 now names T3 in the
CPU record's recent tracks (0x04040001; the build before the fix left it 0), and two
whole sets of 18 and 20 packages ran 30 s each and rolled back with no fault. The unit
came back on its flashed 0.8.1 with its nine modules. An in-use refusal, the soak and the
price were not run.

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

Mute Modes 0.2.4 rests while MUTE MODE is OT (ev_in_use, runtime.json "rests"); 0.2.3
cost 0.9 points of the frame interrupt at rest. table_declarations.validate read a
site's rest bit (RUNTIME_SITE_RESTS, 0x80) as length, so no base admitted it. The
validator now reads the bit on the owner's own detours and refuses it on the table
pointer and count sites, which must hold while the module rests. 0.2.4 (7542f10c,
declaration 64253fe3) joins 0.2.2 and 0.2.3 as a reviewed table owner (owner, 25 Nov).

Rebuilt: base 910e6625 (was 8f179f5e), browser = native .bin f6e46d06, base-bound
packages relinked with unchanged bytes. On a unit: 0.8.1 dev twin with the same change,
0.2.4 at rest +0.0 (0.2.3 +0.9). Waking on a MUTE MODE switch not run yet.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Installed modules nobody uses cost every UI tick in the base, not in themselves (an
emulated twin, instructions a tick): the overload prediction read each trig-mask byte
once per step (512 uncached reads), searched the cost table for every installed module,
and walked the module table for each ev_frame_deadline row; each installed effect made
the handle map's 420 us whole check run more often; and the rest poll stepped through
all 32 positions for one asking module.

Now: the trig masks are read once and counted in bit planes; the rest booking, the
deadline rows' handles and the map's handles are kept until what they depend on
changes; the map's whole check runs once a second by DTIM3; the rest poll judges only
the asking positions. Nothing installed: 12,793 -> 4,147 instructions a tick; Mini Verb
15,673 -> 6,599; Tape Echo 17,647 -> 6,701 (before the rest-poll change). Host tests
for the bit-plane count, the caches' invalidation and the timed check.

Rebuilt: base fad2c729 (was 910e6625), browser = native .bin 1520e947, base-bound
packages relinked (Recorder Loop Fix 0.1.0 6b568782). Not run on a unit.

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

182d7d1 relinked Recorder Loop Fix 0.1.0 to the rebuilt base (6b568782, still
zero DSP words) but left its direct-DSP record on the 0.8.1 package (b39bfa9f),
so resource-indicators.test.ts failed on the draft.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
After a module effect is picked in FX1 or FX2 SETUP the base shows the memory
box for 1.5 s, and status.c took NO as well as YES while it showed. The
musician's NO back to the effect's page only closed the box and left the
knobs on SETUP, where a module without setup parameters has none: the effect
looked stuck until the page was left and entered again (Midiverb on the
owner's MKII). The owner's rule of 14 October was 'YES only closes it; any
other key goes on to stock'; #640's merge of the dialog key paths took NO
too. Now NO on that box closes it and goes on to stock; the other dialogs
still take it.

test_status.c covers it and fails without the change. On the owner's MKII a
twin of 8b26f3492 plus this change reached the FX2 page with one NO and PROG
moved at once. Rebuilt: base 1306e125 (was fad2c729); base-bound packages
relinked with unchanged bytes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
mw_knob_step restaged a module page's turned knob in its record, but the page's
input layer still held the previous page's staging (a stock effect's 0..127
knobs) and the panel copies it into the record before each turn. Every detent
found the old step again, restaged and cleared the remainder, so a select
moved only on quick turns until the page was entered again (Midiverb's PROG on
the owner's MKII: ten slow detents left it at 0; FX1 -> FX2 put it right). The
knob's definition in the layer (22 B: slot, 0, then the record) is now staged
as its record, when it names the main pages' knob routine.

knob_step_fixture case E: staged, the remainder kept on the next turn, a
scene's definition and a stock page's layer untouched; fails without the change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Port the fork LFO PMTR extension reader so upstream can host contribute
packages. Remap past ot_midi_generators (fork index 31 → 63). Claim
formatter, count, SETUP beq and dest store; leave dest lea unclaimed
until an owner-approved FM Synth po_lfo3b migrate. Host-tested; elemod
unchanged until OS rebuild. No USB, no TEMPO pin.

Co-authored-by: jonathanwardle1992-beep <jonathanwardle1992-beep@users.noreply.github.com>
A page opened from PROJ > MODWERK (SETTINGS, MODULES, STATUS, MODULE COST,
MISSING) closed PROJ menu on the next tick, so NO and the arrows that close
the page left the player on the track screen (a tester, 25 November 2026).
Now the menu stays open under the page: NO, and LEFT or RIGHT (every arrow
on STATUS), close the page back to the menu with its cursor on the row
that opened it. YES on a page that closes still closes the menu; any other
key goes on to stock menu, so PROJ closes it. SELF TEST is unchanged.

test_status.c covers each page and fails without the change. Not rebuilt:
the base and its size record wait for the cumulative regeneration.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Stock keeps two state rows per track recorder and selects one with
0x80004f18. A recording started again while it records moves to the
other row, and STOP clears only that one: the row it left keeps state 2
with nothing recording behind it until the track records again. The
base read any nonzero row as recording, so modwerk_machine_stopped()
stayed false and every sync was refused as unsafe at enter ("Stop
playback or finish recording") on a stopped unit until a power cycle.
boot.c's STOP press was skipped for the same reason.

modwerk_machine_recorder_busy() now reads the selected row and accepts
only idle or that retained 2 in the other one, as the sample editor and
Amiga already do. modwerk_machine_busy() names what refuses a change
(recorder, transport, track byte, journal, with the track); the
self-test reply carries it in the refusal word's top byte, and the site
records it on an unsafe sync_failed (busy) and names the recorder's
track in its notice.

Host tests: test_runtime.c (the emulator's row sequence), the link
test with the fake unit's busy byte, the diagnostics field validation.

Refs #2211, #1596, #2216.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
On twin c6e64b77: T1's recorder started, started again while it
recorded, then STOP left bank A at state 2 with bank B selected and
idle. The twin admitted a trial with that state and refused enter as
unsafe during a live recording, with busy 1.

Refs #2211, #2216.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…, and a refused COMPRESSOR pick says why

With Sidechain installed but no track on COMPRESSOR, its engine and the key bus
are not placed, and the allocator put big blocks (E-Verb, Resonator) into the
top words they take. Picking COMPRESSOR then had to copy that code below them;
with two big effects on a core there was often no free run for the copy, so the
claim was refused for memory and COMPRESSOR stayed stock with no KEY page and
no message, until an effect came off (#2189).

Big blocks now go under a soft ceiling first (the capacity less the words held
controllers' engines will still claim); a core that does not fit so is placed
as before. Packing keeps to the same ceiling. A COMPRESSOR pick refused for
memory shows SIDECHAIN PAUSED / DSP MEMORY. Host modes 76 and 77; on an MKII
dev twin the repro (E-Verb @3110, Resonator @1599, stock page) became E-Verb
@2400, Resonator @889, Sidechain active and the KEY page shown. Base not
regenerated.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…checks fix a value

At power-up stock restores the current bank from its battery-backed copy
(0x40025770, called from main's init at 0x4001fb78). Before it copies the
bank in, it runs its checks on the project settings, the arrangements, both
copies of each Part and the bank's 16 patterns, and a single value any of
them has to fix refuses the whole bank: every Part and pattern of it then
reads as stock's empty defaults, while the saved copy on the card still holds
the song. When the saved copy holds the value, each RELOAD brings it back and
the next power-up refuses the bank again. A tester's project came up empty at
every start after a save (#2201): the first record after each of those
starts shows the current Part with no machines, as a refused restore leaves
it, and the tempo kept from the battery copy.

The base now runs those checks itself first, in stock's order, keeping their
fixes as a file load of the same bank keeps them (the same validators), and
then calls stock's restore, which finds nothing left to refuse. A battery
copy with more than 64 fixes, more like one the battery lost than a stray
value, is still refused as stock refuses it. Each start that fixed anything
logs a RESTORE incident (diag.h): the count per stage, the first record that
needed a fix and the result, so the value behind it can be traced.

ot_emu, two-process power cycle on the beta base (--cs1-in, --no-post): one
byte out of range in the battery copy's working Part 1 left the current bank
as stock's defaults on the base without this change (restore refused at the
Part check), and came back whole with it; the same for a pattern; a clean
copy restores as before. test_diag.c covers the order, the UI state taken
again after a settings fix, the 64-fix limit and the RESTORE record.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
repeat98 and others added 8 commits November 28, 2026 22:27
…hdog

The reviewed resident copy's hunks for dsp.c are unchanged; only their
positions and the watchdog call's context line follow eb62d93. Checked:
resident_source.sources() gives the previous reviewed copy plus exactly
the two edits.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… stall record (8a89b38f)

Two --beta --write passes, octatrack:module-packages -- --base-only and
base-size.mjs --write after 20d3783. No package byte changed, only
requiredBase; 3,736 container bytes free.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
test:procedure --base with --out failed its emulator rehearsal at once:
octatrack-part-state.mjs read --out <out>/emulator/part-start.json found
no emulator folder (ENOENT), so every unit step was skipped.

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

shedLines ORed every shed mask of a boot and paired it with the machines
of every record in that boot, so a track shed under one Part was credited
to a machine another Part had there (VECTOR named on shed tracks it never
ran on). Each shed record now counts only its own tracks and machines.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
modwerk_diag_refused only keeps its values for the next set record, so
the record of a restore still waiting for the card gate ten seconds on
never showed (an emulator session with no card, 28 November 2026:
nothing in the log). It now writes a set record of 0 modules at once,
its module field holding what holds the restore.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ord (1557c95f)

Two --beta --write passes, octatrack:module-packages -- --base-only and
base-size.mjs --write after 74d46b9. No package byte changed, only
requiredBase; 3,780 container bytes free.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…he musician's saved set

The boot guard's from now names the base whose set the start picked, and the pick tries the base that ran
before, then from: a RAM-booted test base that owned neither set passes the name on. Found on the unit:
release 1557c95f after twin be87dfeb read the flashed base's set as unknown (FOREIGN). Regenerated: 6e4f11e2.

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

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
repeat98 and others added 2 commits November 29, 2026 09:56
Octatrack base: USB MIDI beside DIN, in DISK MODE and across a RAM boot
…DE and across a RAM boot (f4529894)

Two --beta --write passes, octatrack:module-packages -- --base-only and
base-size.mjs --write after merging #2401. Replaces candidate 6e4f11e2;
3,276 container bytes free.

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

Copy link
Copy Markdown
Owner Author

Base 0.8.4's candidate is now f4529894, with #2401 in it. It replaces 6e4f11e2, so the 0.8.4 unit run needs to run again before it ships.

  • What's new in it: USB MIDI no longer breaks DIN running status; USB MIDI rests in DISK MODE, so a computer reading the card no longer gets clock packets over its data (seen torn and fixed on the owner's MKII, 29 Nov, on dev twins); the USB controller is reset before a RAM boot.
  • What's broken: nothing known. The full candidate f4529894 has not run on a unit; only dev twins of Octatrack base: USB MIDI beside DIN, in DISK MODE and across a RAM boot #2401 have.
  • Who must act: the owner: rerun the 0.8.4 unit run on f4529894, then release when happy.
  • Flash: 848,436 of 851,712 container bytes, 3,276 free.
  • Ran on your unit: the DISK MODE check on dev twins, yes; this candidate, no.

Commit 3064844.

repeat98 and others added 7 commits November 29, 2026 10:43
…ash slot (d60d0f3a)

The development twin packed 852,076 bytes, 364 over a flash slot
(851,712), after USB MIDI beside DIN. It now packs 851,592: 484 bytes
smaller, 120 under. Only code development bases compile changes.

- dev.c answers its requests from one switch, with one reply tail and
  one word copy (the ColdFire is big-endian, so the bytes are the old
  shifts'): 3,198 -> 2,400 bytes. Same requests, lengths, wValue checks,
  replies and call order; a host differential run of the old and new
  function agreed on 291,346 requests. stream_probe.py's and
  resident_engines.py's seams are unchanged.
- diag.c's FREEZE TEST runs from modwerk_diag_tick before diag_tick,
  still only once started: inlined in diag_tick it grew the tick by
  about 500 bytes. Without MODWERK_DEV, diag.c's sections are
  byte-identical.

The release base's unpacked image differs from f4529894's only in its
identity records (modwerk_base_digest, olog_source, olog_configuration,
olog_build); symbols identical. Regenerated: octatrack:base --beta
--write, octatrack:module-packages -- --base-only, base-size.mjs --write
(848,424 bytes, 3,288 free).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The test procedure and the draft's own cases on development twin fec823d9:
41 packages accepted and rolled back, the soak and the at-rest prices pass,
and every case passes or is named as not run (a held start, CARD BUSY, a
machine brought back by a reload). The flash, a Keep across a power cycle
and listening are still open.

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>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	docs/README.md
#	scripts/device.mjs
#	scripts/diagnostics-pull.mjs
#	sdk/machines/octatrack/module-adapters/standalone-recipes.json
#	src/engine/elekloader/device-log.test.ts
Scope and Seq arrived with the merge of main, so the module tree the reader
sees holds 53 modules, not 51. The parity checks are unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@repeat98
repeat98 marked this pull request as ready for review November 29, 2026 12:34
Since the core's sources became the base's own (607cb05), upstream:tools
fetches no Elekloader checkout, so CI's source image has none and the test
refused to start. The packages rebuild identically without it; the test
still requires the ColdFire tools and the DSP assembler it uses.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@repeat98
repeat98 enabled auto-merge November 29, 2026 12:43
@repeat98

Copy link
Copy Markdown
Owner Author

A correction to the numbering above: your three sequencer services take 66–68, on the next cumulative draft. @btzz5w8w5d-star

The reply above was written before I folded the open base work into 0.8.4 on 28 November, and that fold used the numbers it offered you:

So nothing needs to land at 63 first. The registry is contiguous through 65 now, and your services can be generated at 66, 67 and 68 without waiting for anything.

0.8.4 ships as it was tested on the unit, so no new hook goes into this draft. Please send the three services as commits against the next cumulative draft once it opens after this merge, numbered 66–68, with the USB Audio recipe recapture called out as before. The rest of the reply stands: the LED overlay after a cost measurement and a colour check on a real unit, and no MODWERK_SEQ_PANEL_FEATURE in requires.

Thanks for holding the commit back instead of reserving a number. That kept this sorted.

— Jannik

🤖 Generated with Claude Code

repeat98 and others added 2 commits November 29, 2026 13:57
test_machine_registry.c put an if and the statements after it on one line,
which GCC refuses under -Werror (misleading indentation). The base's identity
hashes its folder's sources, test files included, so 0.8.4 regenerates as
34fe3dd9. Unpacked, its image differs from the tested d60d0f3a only in the
four identity records.

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

test_modset.c keeps a copy of the whole saved set on the stack, which the
2 MiB module pool makes larger than Windows' 1 MiB default, so the test binary
stopped with a stack overflow there. It now links with a 16 MiB stack on
Windows; every assertion is unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@repeat98
repeat98 merged commit 751bc57 into main Nov 29, 2026
13 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.

5 participants