Skip to content

Docs: propose the shared DT2/DN2 link and runtime design - #2356

Merged
repeat98 merged 3 commits into
repeat98:mainfrom
karigardarsson:codex/shared-dt2-dn2-link-design
Nov 28, 2026
Merged

repeat98 merged 3 commits into
repeat98:mainfrom
karigardarsson:codex/shared-dt2-dn2-link-design

Conversation

@karigardarsson

@karigardarsson karigardarsson commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor
  • What was wrong or hard: The owner asked Kári and Lukas to agree one DT2/DN2 link, runtime, client, unit page and device-tool design before new implementation. The existing work has separate PR heads, native bindings and hardware gaps, but no shared file map or proposed responsibility split in one reviewable guide.
  • What this changes: Adds docs/DT2_DN2_SHARED_LINK_RUNTIME.md, indexed from docs/README.md, with the owner's release/development and Keep/two-slot decisions, a proposed shared/per-machine file map and leads, the existing DN2 work to preserve, DT2 transmit and identity gates, and both-machine qualification requirements. All assignments and new destinations remain proposals for Kári, Lukas and Jannik to review. No implementation, command allocation or capability declaration changes.
  • Source review corrections: Records Improvement: Digitakt II cumulative base for Mixer pages, track machines and linked voices #1999 and Improvement: verify Digitakt II USB link bindings offline #2325 as merged, applies the later Voice Spread: the first Digitone II module, and the Digitone II becomes a preview #2003 decision that Voice Spread rides Digitone II base (cumulative): the Digitakt II base for OS 1.12 #1767, and keeps the remote YES-release case labelled as an outstanding unit check. Distinguishes current RAM-only controller ACCEPT / device_keep from the planned persistent Keep through stock upgrade. Keeps the diagnostic build-identity carrier, native callback retirement and measured TX timing open. The final review makes every proposed lead explicitly nonbinding, distinguishes not-executed requests from executed operations with lost replies, attributes the 23+46 instruction counts to the dated investigation rather than the preflight, and separates build/session/live-set identity from upload capability. Native TX timing, callback retirement, diagnostic identity discovery and exact-build hardware proof remain open.
  • How I checked it: Originally reviewed main faff374b9d136f48d4e0159fe480f8f65d27cacc and the named DN2 PR heads/owner comments. Final content review on 28 November compared current main 1456cebb3f1c49ca4c0312026f54cc20993add4e; the relevant source and all named PR heads are unchanged, and the adapter question remains unanswered on the live board. The updated document passed the unchanged Linux documentation path in 34.94 seconds: 274 tests in 33 files plus metadata/licence and document guards. The earlier exact-stock offline preflight remains evidence for its named main baseline. The developer approved commit b65e379. Full npm run pr:ready -- --body PR_BODY.md --eval-agent "Codex GPT-6" passed on Linux at 33dd4a3bdf13053cc06360f708a41cb454330fc2 after merging main 1456cebb3f1c49ca4c0312026f54cc20993add4e; the assigned diagnostic-summary replay passed and the selected documentation check passed in 50.93 seconds. The three approved document blobs are unchanged. No firmware/native build or hardware action ran for this Docs change.
  • Not tested on a unit: Documentation only. Existing hardware reports are attributed to their original builds; this PR qualifies no new firmware or device behavior.

Edge cases: none, because this PR changes only a design document, its documentation index and a documentation release note; it changes no code, package, recipe, protocol or hardware behavior.

  • What the guides lacked or got wrong, and where I fixed it: There was no shared DT2/DN2 design that linked the owner's instructions to concrete common files, machine-specific bindings, proposed responsibilities and unresolved evidence gates. The new guide supplies that joint-review starting point and is discoverable from the documentation index. Existing machine status tables and runtime source remain unchanged.

Joint review requested: @prodbysmolec and Kári to accept or revise the proposed leads, extraction boundaries, complete-reply TX lifecycle interface and backwards-compatible identity carrier; @repeat98 to confirm alignment with his handover and release policy. Agreement and board claims precede implementation. This PR does not grant implementation or flash approval.

Related to #1767, #1763, #1817, #1820, #1821, #1842, #1819, #1846 and #2325.

@github-actions github-actions Bot added the documentation Improvements or additions to documentation label Nov 28, 2026
@repeat98

Copy link
Copy Markdown
Owner

@prodbysmolec, Kári has put the shared design for the Digitone II and Digitakt II link and loader here, as I asked on #1767. Could you read it and say on this PR whether the file split and who-does-what work for you, or what you'd change? Once you've both agreed I'll merge it, and then please both claim your pieces on the board.

@prodbysmolec prodbysmolec left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Hi Kári, nice to meet you too, and thanks for putting this together. I read the whole design and checked its Digitone II facts against #1842's head (cfc60fb5d): the command IDs and statuses, the ten-second host watchdog (300 ticks at 30 Hz), the 2,048-byte upload chunks, the pool and staging addresses, the code window and alias, and the level-4 lock all match. The file map and the split work for me as proposed. I'll take the leads with my name on them:

  • finishing the DN2 stack and the exact-head unit records (Jannik's checklist on #1763)
  • extracting the shared native link and diagnostics from the DN2 work
  • the common runtime glue and the DN2 runtime bindings
  • carrying #1846 onto the shared MCP integration

You take the DT2 bindings, the shared TypeScript client with the identity carrier, and the unit panel with the Keep flow.

A few notes, none of which needs to block the merge:

  1. Extraction order. I'd do the extraction only after #1763 → #1842 have landed in base/digitone-ii-next, so the open stack doesn't get rewritten underneath its reviews. The first extraction PR should only move link.c, diag.c and the runtime glue into sdk/runtime/elektron/ with thin DN2 bindings. The DN2 dev package then builds from the moved files with unchanged behaviour (only the identity digest changes, from the paths), and the DT2 base still builds with the link off. That proves the seam before any DT2 binding goes in.
  2. TX contract. Agreed. Today the DN2 base replies through stock's sysex_send from ev_tick, and I have not measured a non-reading host yet. I'll add a hostile-backpressure run (host stops reading mid-capture and mid-upload) to my unit session so the shared contract starts from a DN2 measurement, not a guess.
  3. Identity carrier. Agreed: versioned, backwards compatible, consistent with HELLO, and no new opcode until we have both read the MWUI schema. Happy to draft it with you once the client work starts.
  4. DSP, outside this design. A heads-up, since both machines use an ADI SHARC+ for audio: I'm researching the DN2's DSP side in local builds (nothing pushed). Code that a base adds to the SHARC's boot stream runs on my unit, so a shared DSP loader may become a later candidate for both machines. One finding that may matter for the DT2 too: the bytes after the last record in the ColdFire → SHARC parameter frame are not free. Stock reacts to their values: some values hang the SHARC, others don't. So no data channel should go through them. I'd keep "DN2 rejects DSP payloads" as written here and propose any DSP piece in its own Docs PR later.

Once Jannik merges this, I'll claim my pieces on the board.

@repeat98
repeat98 merged commit 7da0088 into repeat98:main Nov 28, 2026
14 checks passed
@repeat98

Copy link
Copy Markdown
Owner

Merged, thank you both. As promised, please each claim your pieces on the agent board (npm run board -- claim …) before you start, so the work doesn't overlap.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants