Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
73d6189
Improvement: add returning pre-FX track processor support
offtheheezystudio Nov 26, 2026
dbb3eaa
Fix: keep track reservation optional in ordinary DSP-loader builds
offtheheezystudio Nov 26, 2026
9bd7d2e
Improvement: build returning engines from declarative module recipes
offtheheezystudio Nov 26, 2026
bfd366f
Improvement: share returning processors and package controller updates
offtheheezystudio Nov 27, 2026
a6ff96a
Refactor: separate direct settings actions for independent review
offtheheezystudio Nov 28, 2026
48fc83b
Merge cumulative Octatrack Base 0.8.4 into processor proposal
offtheheezystudio Nov 28, 2026
e6ba7c1
Build: regenerate the returning processor proposal on current Base
offtheheezystudio Nov 28, 2026
1a4f0d4
Merge current cumulative Base and regenerate returning processor prop…
offtheheezystudio Nov 28, 2026
dd883d9
Base: preserve target optimization and portable native header lookup
offtheheezystudio Nov 28, 2026
3c23d0a
Base: bind package service admission to the exact published capabilities
offtheheezystudio Nov 28, 2026
2ce7b39
Base: refresh package provenance from verified Linux source reproduction
offtheheezystudio Nov 28, 2026
f4ada8f
Base: reject browser descriptors the returning contract cannot admit
offtheheezystudio Nov 28, 2026
64a253b
Merge current cumulative core and regenerate returning processor support
offtheheezystudio Nov 28, 2026
4831921
Base: limit release note and guide to returning processor proposal
offtheheezystudio Nov 28, 2026
c711efb
Merge current cumulative Base with returning processors and compact p…
offtheheezystudio Nov 28, 2026
e1f887e
Fix: isolate session transcript tests from the Git author identity
offtheheezystudio Nov 28, 2026
86de936
Verify current compiler sources and native Base fixture compatibility
offtheheezystudio Nov 28, 2026
722fb4e
Keep processor-only native support and fixed reset bounds with the Ba…
offtheheezystudio Nov 28, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions changelog/2026-11-26-octatrack-returning-track-proposal.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Octatrack Base proposal: multiple packaged processors can share the track's
pre-FX audio while leaving both FX slots available. Controllers, DSP and private
state travel with their module packages, without per-version Base trust rows.
Base owns allocation, scoped controls, cycle reservation and safe retirement.
This source draft is under review and has not run on a unit; it is not released.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Proposed Base support lets several modules process tracks before FX1 and FX2, leaving both slots available.
Processor code and controller updates remain in their own packages; bindings name the compiled services.
The proposal follows the current cumulative core, with conservative native-host readiness and fixture support.
Base-only packing uses bounded lookahead in the existing format, with no decoder or audio-path change.
This shared service is a draft. Exact-build unit qualification and the separate M/S release remain pending.
2 changes: 2 additions & 0 deletions changelog/2026-11-28-session-test-identity.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Session-sharing tests use a fixture Git identity, so contributors' names cannot
change expected transcript text. Production privacy filtering is unchanged.
1 change: 1 addition & 0 deletions docs/MACHINE_RECIPE.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ Read this before you plan a core, a base or the first modules for any machine ot
| Base | [`sdk/machines/octatrack/elekloader/`](../sdk/machines/octatrack/elekloader/README.md), built in the browser from the user's own stock OS ([`octatrack-base.ts`](../src/engine/elekloader/octatrack-base.ts)); firmware never enters CI, and the owner hosts the prebuilt image for musicians without the file ([hosted bases](HOSTED_BASES.md)); one variant per USB Audio layout, each identified in `base-binding.json`'s `variants` | Its base source in `sdk/machines/<id>/`, started from the upstream core's source; the same browser build. Where a shared part costs every build (the Rytm's send bus: RAM and kit storage), a variant without it, recorded in the same `variants`, and the site picks the variant from the selection (the Rytm: [`machine-build.ts`](../src/engine/elekloader/machine-build.ts)) |
| Hooks | [`events.json`](../sdk/machines/octatrack/events.json) generates [`HOOKS.md`](../sdk/machines/octatrack/HOOKS.md) and `include/modwerk_events.h`: call, take and table hooks, each with an order band and a room | The same registry format, starting with the core's UI hooks and the shared sites the first modules need |
| Admission | The loader refuses a package past a hook's room or the declared budgets; `compatibility.uiClaims` and the [pairwise check](module-guides/README.md#cross-compatibility) | The machine's budgets in `machine.json`'s `sdk` |
| Returning track processor (proposal) | [Scoped controls and DSP reservation](../sdk/machines/octatrack/TRACK_PROCESSORS.md) before FX1/FX2; under review, not a released capability | Share a ledger-owned chain and admission service rather than putting shared routing in a module |
| USB link | Vendor interface on the unit ([`ep0.c`](../sdk/machines/octatrack/elekloader/ep0.c), [`sdk/runtime/upload/`](../sdk/runtime/upload/README.md), [USB vendor interface](../sdk/machines/octatrack/elekloader/README.md#usb-vendor-interface)); host side [`octatrack-link.ts`](../src/engine/elekloader/octatrack-link.ts), [`upload-session.ts`](../src/engine/elekloader/upload-session.ts), [`module-set.ts`](../src/engine/elekloader/module-set.ts); identify, inventory, status, load meters, self-test results and the unit's log ([`diag.c`](../sdk/machines/octatrack/elekloader/diag.c)) | A transport on the machine's USB: a vendor interface like the Octatrack's, or SysEx where USB MIDI is all the unit offers (the [LXR-02 plan](LXR_02.md)); the upload controller's frames then go over the link: whole on the Digitone II (`upload`, [`dn2-link.ts`](../src/engine/elektron/dn2-link.ts)), in parts on the Model:Cycles ([LINK.md](../sdk/machines/model-cycles/LINK.md#loading-modules)) |
| Loading without a reflash | [Runtime loader](../sdk/runtime/loader/README.md): review, trial in RAM, Keep, Undo; a power cycle restores the stock state | The glue its [porting section](../sdk/runtime/loader/README.md#porting-to-another-machine) lists (Octatrack: [`runtime.c`](../sdk/machines/octatrack/elekloader/runtime.c)) |
| Base install and update | First install from the card, later updates over USB on two slots with at most one restart ([`flash.c`](../sdk/machines/octatrack/elekloader/README.md#updating-the-base-over-usb-flashc), [two-slot base](OCTATRACK_TWO_SLOT_BASE.md)); the maker's recovery stays the floor. The site guides it in one dialog frame ([`BaseDialogFrame.tsx`](../src/components/BaseDialogFrame.tsx): intro, numbered stages, a staged plan with progress, recovery) | Its first-install route and recovery in `machine.json` (`flash`, `recovery`), then the same USB update, in that frame as `ZoomBaseDialog.tsx` does |
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified public/octatrack-modules/analog-bassdrum/0.1.7-experimental.mwrm
Binary file not shown.
Binary file modified public/octatrack-modules/output-matrix/0.1.1-experimental.mwrm
Binary file not shown.
Binary file not shown.
Binary file not shown.
16 changes: 16 additions & 0 deletions scripts/agent-session.test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,22 @@ import { COMMUNITY_RULES_VERSION } from '../src/legal/policy.ts'
import { accountRequest, alreadyShared, asAccount, buildSession, pullSessions, sharedMoments } from './agent-session.mjs'
import { BoardError } from './agent-board.mjs'

// Session redaction reads the developer's Git identity. This transcript fixture
// must not depend on a contributor having a name such as "The" or "Now".
vi.mock('node:child_process', async importOriginal => {
const actual = await importOriginal()
return {
...actual,
execFileSync(command, args, options) {
if (command === 'git' && args.length === 3 && args[0] === 'config' && args[1] === '--get') {
if (args[2] === 'user.name') return 'Fixture Developer'
if (args[2] === 'user.email') return 'fixture@example.test'
}
return actual.execFileSync(command, args, options)
},
}
})

const password = 'private session pull test passphrase'
const cleanup = []
afterEach(async () => { vi.unstubAllGlobals(); for (const step of cleanup.splice(0)) await step() })
Expand Down
52 changes: 52 additions & 0 deletions scripts/processor-contract.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# SPDX-License-Identifier: MIT
"""Package-carried returning processor contract, using the real ABI10 encoder.

No controller identity is compiled into Base. Physical state is assigned by
the Base chain builder; the package carries only virtual state references.
"""
HEADER, MAGIC, BRA = 18, 0x4D5754, 0x0D10C0


def container(code, p_relocations, y_relocations, initial, *, stride,
control=0, reset=1, minimum=0, maximum=128, neutral=64,
order=0, y_origin=0x100000):
integer = lambda x: type(x) is int
if (not code or len(code)>2048 or not initial or len(initial)>1024
or any(not integer(x) or not 0<=x<=0xFFFFFF for x in code+initial)):
raise ValueError('Bounded authored code and private initial state required')
if (any(not integer(x) for x in [stride,control,reset,minimum,maximum,neutral,order,y_origin])
or not 2<=stride<=len(initial)//4 or not 0<=control<stride
or not 0<=reset<stride or control==reset
or not 0<=minimum<=neutral<=maximum<=255 or not 0<=order<=255
or not 0<=y_origin<=0xFFFFFF-len(initial)):
raise ValueError('Invalid returning processor state/control layout')
if any(initial[t*stride+control]!=neutral or initial[t*stride+reset]!=1 for t in range(4)):
raise ValueError('Every track starts at its declared neutral with reset requested')
if len(p_relocations)>256 or len(y_relocations)>256:
raise ValueError('Too many relocation records')
p_at=[r&0x7FFF for r in p_relocations if integer(r)]
if (len(p_at)!=len(p_relocations) or p_at!=sorted(set(p_at))
or any(not 0<=r<=0xFFFF for r in p_relocations)
or any(i>=len(code) for i in p_at)
or any(not r&0x8000 and code[r]>=len(code) for r in p_relocations)):
raise ValueError('Invalid P relocations')
if (any(not integer(i) for i in y_relocations) or y_relocations!=sorted(set(y_relocations))
or any(not 0<=i<len(code) or i in p_at
or not y_origin<=code[i]<y_origin+len(initial) for i in y_relocations)):
raise ValueError('Invalid or overlapping private Y relocations')
words=list(code)
for r in p_relocations:
at=r&0x7FFF
words[at]=(words[at]-HEADER if r&0x8000 else words[at]+HEADER)&0xFFFFFF
header=[BRA,HEADER,MAGIC,1,len(code),len(initial),stride,control,reset,
minimum<<16|maximum<<8|neutral,order,y_origin,len(y_relocations),len(initial),
HEADER,HEADER+len(code),HEADER+len(code)+len(y_relocations),0]
return (header+words+list(y_relocations)+list(initial),
[(r&0x8000)|((r&0x7FFF)+HEADER) for r in p_relocations])


def package(abi, controller, code, p_relocations, y_relocations, initial,
*, cycles, cycle_kind='executed', **layout):
words,relocations=container(code,p_relocations,y_relocations,initial,**layout)
return abi.engine(controller,words,relocations,site=0,cores=3,claims=(),
requires=16,cycles=cycles,kind=cycle_kind)
Loading
Loading