Skip to content

Improvement: shared returning pre-FX processors and package updates - #2248

Draft
offtheheezystudio wants to merge 17 commits into
repeat98:base/octatrack-nextfrom
offtheheezystudio:base/oth-track-processor
Draft

offtheheezystudio wants to merge 17 commits into
repeat98:base/octatrack-nextfrom
offtheheezystudio:base/oth-track-processor

Conversation

@offtheheezystudio

@offtheheezystudio offtheheezystudio commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Several independent modules can process each track before FX1 and FX2 while leaving both effect slots available. Each module owns its controller, DSP and private state, so an M/S update does not require rebuilding Base. This is shared Base support; the M/S Balance module stays in its own later PR.

Merged base/octatrack-next at 817bc050b98d88365ed6ae6f20fc63fba1a4276e, without rebasing. This retains the current program-area/streaming support, 2 MiB pool, hook numbering and settings actions. Program-area opcode 12 and returning-control opcode 13 coexist. The service-binding metadata checks the actual compiled ledger services and separately accounts for the upstream unledgered program-area service.

The current cumulative build plus this service was 5,196 bytes over the packed-slot limit. Base-only bounded lookahead now emits a smaller parse in the existing section format. The device decoder and normal firmware/module packing are unchanged. It always compares with ordinary packing and uses the smaller result; it adds no audio-path work. Native/browser parity, independent decoding and the unchanged decoder model are checked. No limit, ownership fence or assertion was relaxed.

Current exact build — not tested on a unit:

  • Source/merge: 86de936083767448f3c5b833dfa6c9621fd339d6.
  • Base: e875ac1b6c71133b3219c3e3a94a93d5f4999a5da42d240f3aff3af052fed625 (0.8.4 draft).
  • Browser/native firmware SHA-256: a20b65f87c11100439575eeb144742ae66c036c0864e2bd2d73faf635f4593e9.
  • MAIN: 1,363,156 / 1,572,864 bytes. Packed container: 849,452 / 851,712 bytes, 2,260 spare. The host file has a separate 16-byte wrapper.

Review requests addressed: Correct DSP-region and both Y claims are linked here; the erroneous event-0 claim is released. The feature changelog describes only this service. Fixed Base-specific rebinding, native Y ownership and provider expectations are in this PR, alongside exact package-hash assertions. Main's original measurement expectations remain in the independent Fix #2358, whose latest Ready CI run is green. No expectation chooses its answer from current measurements.

Computer checks: Official octatrack:base --beta --write, browser/native byte equality, declared sites, container bounds and bootloader-copy preservation pass. Nineteen focused native tests and 146 browser tests pass. Additional native card/assembler fixtures pass (seven executed, seven optional DSP-execution cases skipped). Receiver assembly/disassembly checks pass at eight actual origins/listings, with 5,068 non-NOP instruction/operand comparisons. No firmware or DSP executes. Runtime/DSP completion facts in native lifecycle fixtures are explicitly modelled. All five Base-bound packages rebuild identically; strict stock scans and the actual ABI10 loader/returning predicate admit the private M/S package and unchanged Apply Scene. The Linux source reproduction 46141270869 passes with a compiler/assembler/disassembler-only toolchain. Official import verifies every authored package byte still matches; only source provenance changes. The native host-only readiness default now yields to a real loader included in the same translation unit, avoiding duplicate definitions without changing target behavior.

Unit evidence is older and limited: Combined private Base cd7b50b133aeacbe58d078f8ff82a13d299ae9b2a631cce843d6a9b874b1dbe1, M/S package e986d4843057583950d42a528a6dd99a89ed8795bc38a75c51dc0fcfdf9c460a, ran for 1,800 seconds. The ten original module names were rebuilt for that candidate, rather than using the exact original saved package bytes. The developer reported stereo/nonzero M/S/both FX sounding normal on T1 and T5. During rollback M/S was removed first. After an orderly USB Audio configuration reconnect, a fresh read showed the same RAM Base, normal state and empty live inventory, with continuing ticks. The CLI lost the final acknowledgement: module removal was observed, but this is not a clean acknowledged CLI Undo pass. An earlier attempt lost mains power and is inconclusive. Following the developer's power cycle, the original Base and exact ten-module saved/live set were verified restored. No Keep or flash ran.

The historical 1,562-second persistent Undo failure remains unexplained. These older results do not qualify the current merge. This PR stays a draft until the prescribed exact-build unit procedure and owner review are complete. Settings actions are already in cumulative 0.8.4 through #2359; #2366's prospective-user clarification is supplied separately. No extra settings hardware run is requested here.

Edge cases

Case Why this change makes it a risk How run Result
Several processors / controller update State/order or updates could collide Native16-member contract/board pass
Bad layout or caller Code/state could escape ownership Native bounds/owner/PC/generation fixtures pass
Delayed, stale or unknown ACK Work could be reused too early Native board/generated transport, modelled ACKs pass
Capacity/publication Request intent or held charge could be lost Actual budget/publication native fixtures pass
Program-area coexistence Packet meanings could collide Retained op12 plus returning op13, native transport pass
Compact run Packed bytes could decode differently Fixed native/browser digest, two decoders, actual build parity pass
Rebound measurements Old readings could label new bytes Fixed package hashes and fixed resource expectations pass
Live FX / normal set / load / persistence Physical routing/lifecycle may differ Current exact build not run: owner unit procedure required
Long Undo Historical persistent failure remains open Current exact build not run: older removal observed with host ACK lost

What the guides lacked, and where fixed: TRACK_PROCESSORS.md now distinguishes compiled ledger-service metadata from unledgered program areas, documents the compact Base packaging and current build, and separates native evidence from exact-build unit qualification.

Full readiness status: The broad run before these follow-ups was not ready: source provenance, the generated cycle table and the already-merged session-identity fix needed updating, and native fixtures still need the separately reviewed Fix #2358. Those app/generated issues now pass targeted reruns. Base-specific card/assembler fixtures also pass. Public full readiness is not claimed green while that prerequisite is unmerged; no test gate or workflow is bypassed.

Private dependency check: The five affected native fixture groups (controller board, engine board, driver, placement and DSP sites) pass when composed with the exact pending Fix #2358, retaining this Base's fixed Y ownership assertion. Only test/helper files were overlaid; production code was unchanged. This is focused compatibility evidence, not a public full-readiness pass.

The independent M/S source backup is refreshed at 4f45d7857919f7098a5e8707a4dd965e7a06d165, including approved copy and current qualification notes. It has no module PR or published package yet.

Next handoff: Merge Fix #2358, complete the current Base checks and exact-build unit record, then the owner accepts/releases cumulative Base. M/S gets its separate module submission afterward. The approved library description is unchanged. No current-build hardware, permanent installation, measured CPU or publication claim is made.

Credits: Concept, direction and MKII hardware testing: Off The Heezy Studio (offtheheezystudio). Implementation and native test preparation developed with OpenAI Codex. The account is the project owner/contact, not a claim of sole hand-written coding authorship. Existing Modwerk, Octabam and Elekloader credits and licences are retained.

Add scoped controls, prospective DSP reservation and retirement fences, publication continuity and nonpersistent action rows. This source proposal targets the cumulative Octatrack Base draft; current-build hardware and public trust/package integration remain pending.

Concept, direction and MKII testing: Off The Heezy Studio / OTH LABS. Implementation developed with OpenAI Codex.
Scope the required reservation gate to resident builds and run the unmodified standalone publication fixture as well as the resident gate tests. Addresses the independent review finding.

Implementation developed with OpenAI Codex.
Add an optional schema-2 DSP source/table/claim recipe using the existing ABI10 encoder. Keep schema-1 builds unchanged; verify confinement, six assembly placements and stable controller identity with portable native fixtures. All 21 source-runtime tests pass.

Implementation developed with OpenAI Codex.
@github-actions

Copy link
Copy Markdown
Contributor

Thanks for the careful write-up and the native tests. A returning processor before FX1 and FX2 is the kind of thing the base should own, so yes in principle. Before it can go into the cumulative base, four things:

  1. More than one module. Right now one module owns the slot. Make it a chain that several processors can join on the same track, so the tenth module fits beside the first (see Cross-compatibility in the module guides). A slot only one module can hold is a dead end.
  2. Module updates without a base rebuild. Controller trust rows that pin digests in the base build would tie every M/S Balance update to a base release. Solve that here, before it lands.
  3. Timing. 0.8.3 is already full and waiting on its unit run. Point this at the cumulative draft once 0.8.3 is out, and claim the hook and the Y memory range on the agent board.
  4. A unit record of this exact build: a rolled-back trial with live FX on both cores, a long Undo and a normal saved set (the test procedure). The earlier private-build runs don't count for this port.

Keep the M/S Balance module in its own pull request after the base lands, and run npm run pr:ready before you mark this ready.

@offtheheezystudio offtheheezystudio changed the title Improvement: returning pre-FX track processor support for M/S Balance Improvement: shared returning pre-FX processors and package updates Nov 27, 2026

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, this is a big step: several processors can now share a track, and a module update no longer needs a new base. That answers the first two points from last time. Four things are still open before this can be reviewed for the cumulative base:

  1. Claim it on the agent board. The shared processor hook and the Y memory ranges it allocates (800..bff and cc1..fef on both cores) aren't claimed yet. Claim both so no other base work lands in the same space (agent board).
  2. Keep the old tests as they are, and make them pass. You mention three existing assertions that fail against this change. A pull request can't leave a check red or rewrite it to pass. If an assertion is really wrong, fix it in its own small Fix: pull request first. Otherwise change the code until it passes. Then npm run pr:ready should be green.
  3. Split out the new settings action rows (ABI 4 on ot_settings). It's a second shared API, separate from the returning processors. Move it to its own proposal, or say which modules besides M/S need it, so it can be reviewed on its own.
  4. A unit record of this exact build, as in the test procedure: a rolled-back trial with live FX on both cores, a long Undo (the open 1,562-second Undo failure has to be explained or fixed), and a normal saved set. Write down the build hash you ran.

Timing hasn't changed: this goes into the cumulative draft after 0.8.3 is out. Keep it as a draft until all four are done, then run npm run pr:ready and mark it ready.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, this is much easier to review now. Three of the four points from last time are done: both Y memory ranges are claimed on the board, the stale test assertions are in their own Fix pull request (#2358), and the settings action rows are split out into #2359.

What's still open before this can go into the cumulative base:

  1. The hook claim. A hook claim names an index in the Octatrack's events registry, and octatrack/0 isn't one. Since this extends the existing DSP dispatcher and adds no ColdFire event, please release that claim and claim the processor chain as a dsp-region instead (for example octatrack/returning-processor-chain). Then nobody reads it as event 0 being taken (agent board).
  2. Bring it up to the current base. base/octatrack-next is now at 0.8.4. Merge or rebase onto it, so the build you test is the one that would land.
  3. A unit record of this exact build, following the test procedure: a rolled-back trial with live FX on both cores, a long Undo (the open 1,562-second Undo failure has to be explained or fixed), and a normal saved set. Write down the build hash you ran.

Once #2358 is through and all three are done, run npm run pr:ready and mark this ready. Keep the M/S Balance module in its own pull request after the base lands.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, both of the remaining structural points are done. The chain and its two Y memory ranges are now claimed as DSP regions, the wrong hook claim is released, and the branch is on base 0.8.4.

What's still open before this can go into the cumulative base:

  1. Conflict with base/octatrack-next. GitHub shows the branch conflicting again, so the full checks can't run yet. Merge the current base/octatrack-next once more, regenerate with npm run octatrack:base -- --beta --write rather than resolving generated files by hand, then run npm run pr:ready.
  2. #2358. Its review is separate, as you planned. Once it lands, the broad SDK suite here can go green without touching any test.
  3. A unit record of this exact build (base 001accdc…): a rolled-back trial with live FX on both cores, CPU and load, a normal saved set, persistence and a long Undo, following the test procedure. Please also say what you find about the earlier 1562-second Undo failure, since a short success doesn't rule it out.

Keep it a draft until 3 is in the description. M/S Balance and the settings rows (#2359) stay in their own pull requests.

@repeat98

Copy link
Copy Markdown
Owner

Sorry, base/octatrack-next moved again right after your merge (ab3387d: the base now builds from Modwerk's own core). Could you merge it once more (merge, not rebase) and regenerate with npm run octatrack:base -- --beta --write, as before? The conflicts are all in generated files. Everything else from the last note still stands: the unit record of the exact build, and staying a draft until then.

One more: changelog/2026-11-27-octatrack-base-0-8-4.md describes base 0.8.4 as a whole, which is #2333's to write. Please keep this PR's entry to what this change does. Thanks for keeping up with a moving base.

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

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants