Skip to content

Machine: Digitone II diagnostics log, the Octatrack's layout, over the development link - #1820

Open
prodbysmolec wants to merge 80 commits into
repeat98:base/digitone-ii-nextfrom
prodbysmolec:machine/digitone-ii-diagnostics
Open

prodbysmolec wants to merge 80 commits into
repeat98:base/digitone-ii-nextfrom
prodbysmolec:machine/digitone-ii-diagnostics

Conversation

@prodbysmolec

@prodbysmolec prodbysmolec commented Nov 19, 2026 •

Copy link
Copy Markdown
Collaborator
  • What was wrong or hard: The owner asked for the Octatrack's diagnostics on the Digitone II, copied as they are (Discord, 19 November 2026): what the unit did while no site watched, a freeze above all. The Digitone II had none. Builds on Machine: Digitone II development link, stage two (panel keys and encoders over USB MIDI) #1817 (this branch holds its commits, and Machine: Digitone II development link, stage one (read-only diagnostics over USB MIDI) #1763's): please review it after them.
  • What this changes: Development bases only (base.json's dev). base/diag.c is the Octatrack's diag.c for this unit, and base/diag.h is the Octatrack's header byte for byte (a test pins that), so the site's parseDeviceLog reads the Digitone II's log unchanged. It logs a START at each start; a FREEZE when the UI tick stands still five seconds while the frame interrupt (ev_frame_params) goes on, with how many frames it stood and the last 16 panel keys (ev_key, takes none); and a load window every five minutes with its UI ticks and the longest run of frames without one. The clock is the frame count at the rate measured on the unit, 1,500 a second. What the Digitone II does not have yet stays 0: CPU and DSP meters, machines, FX, screen, tempo, crash and stall records. The log lives in the base's .bss (no battery RAM is known here), so it starts empty at every start. The link gets diag (the log's size, frames, ticks, and where it is, for reference), log OFF (0x24: the log in parts of 128 bytes the unit chooses, each with the log's seq; the host reads it this way, never at an address) and, armed, freeze N, the Octatrack's FREEZE TEST: the next UI tick stands still N frames. Host diag --save and freeze, LINK.md, a test of the header's identity, a changelog entry.
  • How I checked it: npm run pr:ready; a build that counted the rates first (30 s of wall time: 1,501.6 frames and 30.03 ticks a second).
  • Tested on a unit: on 5 December 2026, the stack's development package a158dc917c68d70c61d895085da9f6451dafa6c54ee198a27a50dd061a641583 (HELLO base 44f30887…, .syx 436b2afe93075f937142da2face861bc140b7611729f3e868c1f95afbdabfb1b), built from Digitone II: the runtime loader in the development base, over the link #1842 at 5a9aa0137 after base/digitone-ii-next was merged up, so it carries this branch; Digitone II: the runtime loader in the development base, over the link #1842's last head rebuilds the same SHA-256 (record, both sittings): diag --save read the whole log image (7,304 bytes) and parseDeviceLog read it (version 2, START); log at 7304, 7424 and 64 came back with status 4 and the last part (7296) with 0; freeze 7 logged a FREEZE of 10,550 frames while the frame counter ran on (59,297 to 70,152) and the UI ticks moved by 8. The session found that the site could not read the log, because the base paged only the log (6,148 bytes); e85be0631 pages the whole image, and this package carries it. With the developer at the unit, freeze 3 asked every 0.27 s from a person's NO came back with status 5 until 1.67 s and was accepted at 1.93 s. Listening: the developer listened to Voice Spread chords on this package linked with Voice Spread and said it sounded good; this stack changes no sound path. Earlier, on 19 November: development base bf387913 with hello-marker-dn2 (.syx 68b73acd), my Digitone II: diag --save read the log and parseDeviceLog parsed it (version 2, START); freeze 6 stood the display, keys and LEDs still for 6 s while the sound went on, and the log held a FREEZE of 9,050 frames each of three times, the last with the 16 keys pressed before it; after five minutes a load window of 9,026 ticks with a 9,050-frame gap (record). Not tested: a real freeze, long sessions.
    Edge cases
Case Why this change makes it a risk How run Result
The site's parser reads the log the layout must be the Octatrack's diag --save, then parseDeviceLog pass: version 2, START; again on 5 December, the whole 7,304-byte image
Log parts out of range log must refuse a part past the image log 7304, 7424 and 64, then 7296, 5 December pass: status 4, the last part 0
A FREEZE the frame interrupt must log a stalled UI freeze 6 on the unit pass: FREEZE at second 14, 9,050 frames; sound went on; freeze 7 on 5 December: 10,550 frames
freeze right after a person's press the person rule must refuse it freeze 3 every 0.27 s from a person's NO, 5 December pass: status 5 until 1.67 s, accepted at 1.93 s (60 UI ticks, about 2 s)
A load window five-minute records at the measured rate five minutes on the unit pass
A real freeze that ends in a restart the log lives in .bss not run not run: it would be lost by design
  • What the guides lacked or got wrong, and where I fixed it: LINK.md now says what the diagnostics keep and what they leave out on this unit.

🤖 Generated with Claude Code

prodbysmolec and others added 24 commits November 19, 2026 03:03
…SB MIDI SysEx

Development bases (base.json's dev) observe stock's SysEx router at 0x4012197a (core-dn2 0.3's ev_sysex site) and
answer the Analog Rytm MKII link's ident and mem requests from ev_tick through stock's sysex_send on USB. A host
(tools/dn2_link.py) with a test of its frames, LINK.md, the goal row and a changelog entry.

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>
The status byte of stock's USB MIDI receive parser, 0x445090ac on OS 1.12, reads 0xF0 while a SysEx message arrives.

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>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…, not yet on a unit)

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>
…host on a unit

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…and the encoder pushes

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ot yet on a unit)

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>
…red rate

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

gitguardian Bot commented Nov 19, 2026

Copy link
Copy Markdown

⚠️ GitGuardian has uncovered 1 secret following the scan of your pull request.

Please consider investigating the findings and remediating the incidents. Failure to do so may lead to compromising the associated services or software components.

Since your pull request originates from a forked repository, GitGuardian is not able to associate the secrets uncovered with secret incidents on your GitGuardian dashboard.
Skipping this check run and merging your pull request will create secret incidents on your GitGuardian dashboard.

🔎 Detected hardcoded secret in your pull request
GitGuardian id GitGuardian status Secret Commit Filename
40376663 Triggered Generic High Entropy Secret 19be13a src/community/agent-sessions.test.ts View secret
🛠 Guidelines to remediate hardcoded secrets
  1. Understand the implications of revoking this secret by investigating where it is used in your code.
  2. Replace and store your secret safely. Learn here the best practices.
  3. Revoke and rotate this secret.
  4. If possible, rewrite git history. Rewriting git history is not a trivial act. You might completely break other contributing developers' workflow and you risk accidentally deleting legitimate data.

To avoid such incidents in the future consider


🦉 GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request.

@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 for the diagnostics log work. The changed files include workflows, skill files and AGENTS.md that don't belong to this change, which usually means the branch is behind main. Please merge the current main into your branch and run npm run pr:ready until it says Ready, so only the diagnostics-log files are left in the pull request. Once the checks are green it can be looked at again.

@repeat98

Copy link
Copy Markdown
Owner

The freeze test skips the link's panel-priority check. A local key or encoder starts the interval in which remote controls yield to the musician, but CMD_FREEZE_TEST checks only whether the link is armed and whether the duration fits. It can still stop the panel during that interval. Please apply the same human-at-the-panel check here and cover the refusal and the first allowed request after the interval.

There is also a readout issue in diag --save. It writes the chunks directly to the requested file even if a read comes back short. Once the shared memory reader in #1763 validates each reply, please have the save path report success only for a complete log and leave any existing capture intact on failure.

prodbysmolec and others added 5 commits November 26, 2026 10:40
…-diagnostics

# Conflicts:
#	src/engine/elektron/dn2-link.test.ts
#	src/engine/elektron/dn2-link.ts
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
On a unit, the link held YES while an OS upload completed, then
'release' posted YES's key-up, and stock started the flash: it answers
the prompt on the release as on the press. At the prompt mw_link_key now
takes every key event the link posted, releases included, and counts it
as refused; a person's YES and NO still reach stock. The host test
asserted the old behaviour and now checks the release is taken (it fails
against the old dispatch).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
prodbysmolec and others added 23 commits November 30, 2026 11:56
Thirty requests a tick for ten seconds, with stock refusing every other
send: the link answers at most PER_TICK a tick, queues no more than its
ring, drops and counts the rest, never retries a refused send, waits while
stock is mid-SysEx on USB, and answers again once the host stops. Stock's
own waits below sysex_send stay a unit test (repeat98#2441, repeat98#2356).

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

# Conflicts:
#	sdk/tests/dn2_link_host.c
…-diagnostics

# Conflicts:
#	sdk/tests/dn2_link_host.c
pend gave up a posted event after about a second, so a press or release
stock dispatched later than that counted as a person's and reached the
prompt (repeat98#1817 review). Now pend keeps the link's events while the prompt
waits, and what it gave up earlier goes into a ring of lost events that
the prompt holds back however late they come. A person's identical press
is held back once instead, the side that never flashes. The host test
covers a lag before and during the prompt, for a key and a turn.

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

# Conflicts:
#	sdk/machines/digitone-ii/elekloader/base/link.c
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The 19 November records come from builds that still read through mem
(review on repeat98#1763, 1 December).

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

# Conflicts:
#	sdk/machines/digitone-ii/GOAL.md
…site reads it

The base said version 2 but paged only the log (6,148 bytes), and
device-log.ts refuses a version 2 log without the crash and stall records
after it: on a unit, parseDeviceLog read nothing. LOG now pages
DIAG_IMAGE_BYTES as on the Octatrack, the records zero, and a test reads
a Digitone II image and refuses the log alone.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…r not (measured on a unit)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… about 2 s, not 3 (measured on a unit)

60 UI ticks at about 30 a second: a freeze request was refused until 1.67 s after a person's
press and accepted at 1.93 s (5 December 2026). Text only; the package is unchanged.

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

# Conflicts:
#	sdk/machines/digitone-ii/LINK.md
#	sdk/machines/digitone-ii/tools/dn2_link.py
… of the base's HELLO identity)

The 2 s correction stays in LINK.md and the tool; link.c's comment follows with its next real change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…INK.md and GOAL.md

One record for both sittings on the stack's development package a158dc91
(.syx 436b2afe), built from repeat98#1842 at 5a9aa01: the test procedure's fixed
steps first, each run or not run with why (the runner has no Digitone II
steps yet), then each PR's cases. Listening and the large flood's audio
stay open. The link row and LINK.md now point at it; the 19 November run
stays as history.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…at a late event costs a person

The link's events stay held back at UPGRADE OS NOW? however late stock
dispatches them; after the link has given up an event, a person's press of
the same key can be held back once, so their first YES may do nothing
(repeat98#1763 review, 5 December). The link row points at the new record.

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

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…er on 5 December

Over the unit's USB audio, with 250,000 foreign SysEx sent while a
pattern played, every trig interval stayed 0.48 to 0.52 s before, during
and after the flood, so the sound and the sequencer go on while the UI
stands still. The developer listened to Voice Spread chords on this
package and said it sounded good. The sound during the RAM boot's CRC
at UPGRADE OS NOW? and during a loader trial stays open.

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

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