Repository navigation
Improvement: shared returning pre-FX processors and package updates - #2248
offtheheezystudio wants to merge 17 commits into
Conversation
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.
|
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:
Keep the M/S Balance module in its own pull request after the base lands, and run |
There was a problem hiding this comment.
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:
- 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).
- 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. Thennpm run pr:readyshould be green. - 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. - 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.
There was a problem hiding this comment.
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:
- The hook claim. A
hookclaim names an index in the Octatrack's events registry, andoctatrack/0isn't one. Since this extends the existing DSP dispatcher and adds no ColdFire event, please release that claim and claim the processor chain as adsp-regioninstead (for exampleoctatrack/returning-processor-chain). Then nobody reads it as event 0 being taken (agent board). - Bring it up to the current base.
base/octatrack-nextis now at 0.8.4. Merge or rebase onto it, so the build you test is the one that would land. - 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.
There was a problem hiding this comment.
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:
- Conflict with
base/octatrack-next. GitHub shows the branch conflicting again, so the full checks can't run yet. Merge the currentbase/octatrack-nextonce more, regenerate withnpm run octatrack:base -- --beta --writerather than resolving generated files by hand, then runnpm run pr:ready. - #2358. Its review is separate, as you planned. Once it lands, the broad SDK suite here can go green without touching any test.
- 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.
|
Sorry, One more: |
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-nextat817bc050b98d88365ed6ae6f20fc63fba1a4276e, 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:
86de936083767448f3c5b833dfa6c9621fd339d6.e875ac1b6c71133b3219c3e3a94a93d5f4999a5da42d240f3aff3af052fed625(0.8.4 draft).a20b65f87c11100439575eeb144742ae66c036c0864e2bd2d73faf635f4593e9.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 packagee986d4843057583950d42a528a6dd99a89ed8795bc38a75c51dc0fcfdf9c460a, 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
What the guides lacked, and where fixed:
TRACK_PROCESSORS.mdnow 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.