Skip to content

Improvement: compare only like cases in cycle-scan unit and generate its README table - #2106

Draft
repeat98 wants to merge 2 commits into
mainfrom
tooling/cycle-scan-like-cases
Draft

repeat98 wants to merge 2 commits into
mainfrom
tooling/cycle-scan-like-cases

Conversation

@repeat98

@repeat98 repeat98 commented Nov 24, 2026 •

Copy link
Copy Markdown
Owner
  • What was wrong or hard:
    • sdk/cycle-scan/README.md still charged the key-bus tap 51 (RING SC "5 + 51 keybus", ratio 6.04) while dsp-sites.json says 43 since Octatrack base 0.8.1: charge the one-pass key bus tap at its MKII timing (43 cycles, was 51) #2048/RINGMOD SC: the key bus tap now costs 43 cycles, not 51 (README and presentation text) #2054, and node scripts/cycle-scan.mjs unit reads the live figure: the committed table no longer matched what the tool generates, and nothing checked it.
    • cycle-scan unit paired unlike cases and labelled the gap an outlier: RING SC's reading was taken on 18 November on a twin of base 0.7.8 (the older 41-instruction tap) and is compared with today's 43-cycle charge, timed on twin 856cbbcf; and the scan at its defaults runs with a silent key bus (dsp_host feeds none) while on the unit a kick on T1 fed it. Sidechain Compressor's reading is of a build (9f22861f) that is not the published 0.2.2 package (cbd0fa73), with its key bus unstated.
  • What this changes:
    • Each side carries its case: scanCase (version, the published package of that version, the defaults setting, transport playing, key bus silent for a key-bus reader) and unitCase (version, packageSha256, setting, inputs.transport, inputs.keyBus or "not stated", base). notComparable lists every difference, plus a base charge timed on a base the reading does not name (the identities in the charge's evidence file). A line that is not comparable keeps its numbers but prints not comparable: <reasons> and no ratio or outlier.
    • Mean with mean, peak with peak: the reading's mean is compared with the model at the defaults, as before; its DSP peak, where the record kept one, with the dearest setting plus base charges (the dearest bounds every setting), flagged when more than 10 % above. No committed reading has a peak yet, so that column is empty today.
    • unit --write writes the table between two markers in the README; cycle-scan check (and so scripts/cycle-scan.test.mjs's run over the committed records) fails when the committed table differs, naming the command. The README's prose now says 43 nowhere by hand, explains the like-case rule, and rewrites the key-bus finding as "not comparable yet" with what to measure.
    • Result on the committed data: the six proc-only effects keep their ratios (0.99 to 1.10); RING SC and Sidechain Compressor are "not comparable" with their reasons; VIBRATO and Air Chorus have no reading.
    • check's summary says "N failures over M records" rather than "N of M records fail", since the table check is not a record.
    • device:price keeps per-core peaks, three readings a state and inputs.keyBus from its own pull request (Improvement: keep each DSP core's peak and three readings a state in device:price #2104); this one reads those fields when present and treats their absence as an older record, so either can land first.
  • How I checked it: scripts/cycle-scan.test.mjs (22 tests; new: base identities, key-bus unstated/live/silent, a charge timed on another base, package, setting and transport mismatches, the peak against the dearest, the README table equals the generated one, the markers) and scripts/test-procedure.test.mjs pass. A planted drift (the table's "43" set back to "51") makes node scripts/cycle-scan.mjs check fail with the unit --write hint; unit --write restored the file byte for byte. npm run pr:ready on f8bebbb (main merged in): every stage passed, including the affected Vitest files, lint, sdk:check and the build.
  • Tested on a unit: not tested on a unit: the tool reads committed readings and changes no build or package.
  • Edge cases: none, because this changes no built package or base.
  • What the guides lacked or got wrong, and where I fixed it: sdk/cycle-scan/README.md had a hand-copied table that fell behind the charge, and did not say which readings may be compared with which model; both fixed there, the table now generated and checked.

🤖 Generated with Claude Code

repeat98 and others added 2 commits November 24, 2026 10:53
cycle-scan unit paired readings taken on base 0.7.8 twins with the key-bus
charge timed on a later base, and a scan whose key bus is silent with
readings where the key bus carried a kick, then called the gap an outlier.
Each side now carries its case (package, setting, transport, key-bus
input for a key-bus reader, the base a base charge was timed on); a
mismatch prints "not comparable" with the reason and no ratio. Where a
reading kept a DSP peak, it is compared with the dearest setting.

The README table still charged the key bus 51 after dsp-sites.json moved
to 43. It is now written by unit --write between markers, and
cycle-scan check fails when the committed table differs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions github-actions Bot added the enhancement New feature or request label Nov 24, 2026

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

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant