Skip to content

FRACT: prepare the two-grain candidate for hardware qualification - #2296

Draft
ex1010 wants to merge 6 commits into
repeat98:mainfrom
ex1010:fract-two-grain-candidate-20261127
Draft

ex1010 wants to merge 6 commits into
repeat98:mainfrom
ex1010:fract-two-grain-candidate-20261127

Conversation

@ex1010

@ex1010 ex1010 commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

FRACT 0.1.7-experimental uses two grains and supports one FRACT instance on any track. On an Octatrack MKII, the development build passed the track, Part and control tests and played for two minutes while recording four channels over USB without skipped renders. The public package passed an install and Undo trial.

Stage 1 failed under heavier loads. FRACT skipped renders in a dense test with FM Synth, Mini Verb and four-channel USB recording, and again in a separate test with 20-channel USB recording. Both trials were stopped and undone.

Next I’ll test whether keeping the two readers’ state closer together in memory reduces the load, then rerun both workloads. This PR stays in draft while hardware qualification continues. Shared SDK fixes are now in main.

Builds, test results and remaining qualification

FRACT 0.1.7-experimental uses two live grains with centered SIZE, native FLEX pitch, grain-birth pan and the existing 128-byte Part storage ABI. One FRACT owner may use any T1-T8. It remains unlisted and is not a qualified release.

The same development build (125c) logged 9,973 new guarded render skips in the dense FRACT, FM Synth, Mini Verb and four-channel USB trial, and one after 9.445 seconds in the fixed 20-channel USB trial. Standard Undo returned both trials to the normal state with an empty module set. Neither trial used Keep or wrote NOR.

Native source is pinned at afe5084; all59 receipt inputs still match after evidence edits. Compared with0.1.6, only one authored instruction byte changes (track admission limit3to7). Public package f8063d691afc26ab4fe69a3fa709d2b12c68d93b203f0a84536d1755d33755c4 requires base24e480c435a41324872a259d4ed335c972ba868a917ad3499de359acdc849ac5. Development125c0ab3c7ac9b5cf8afc45710bca68ef62f8e55b34c8bb6fa20e6ae2379a165 uses base46c30886a7e8f3f6091622b6c09acd20edad8ec91cc60d1daee60852123f3e4f. Private timing probe89411b02fd8ff18696d18427cb60120247b531d0ddacf6f43b6c923406c63c8f preserves all11original executable units and adds instrumentation overhead.

Tested on a unit: physical Octatrack MKII, development125c/base46: mandatory T1/T5 picks and12Part transitions,2400-operation control soak,all8single-owner track picks,20four-format windows and122.003seconds active4chMAIN+CUE USB with64locks/3LFOs/22control windows,zero new guard skips. One-owner CPU curve added28.3points against unchanged descriptor40; empty and medium admission had0dropped/0stalls. Exact publicf806/base24e:45-second install trial,SELF TEST1/1intact,standard Undo and independent final normalgen2/empty inventory/missing/originalset87f28/unchanged confirmedNORslots. This public trial does not qualify audio or persistence.

The exact-build report retains CPU FULL refusals, CPU warning notes, two pre-upload base USB failures, excluded probe captures and digital-recording limits. All8originalPart copies and28CFcontrolfiles matched on restoration; only own scratch projects were archived/removed. No module Keep or NOR write. That was the earlier restoration checkpoint; the current follow-up uses own scratch projects and RAM trials. Prior-build evidence remains historical.

Validation:10module cases,52SDK cases(4historical skips) and9runtime cases pass in the qualification worktree with separately submitted SDK corrections. macOS/Linux public packages reproduce exactly; strict stock verification passes. Memory67376resident/616owncallbackstack bytes,134752replacementpeak; no DSP/sample allocation added. Draft doctor experimental lines pass; release lines remain open. Bounded Jev and independent investigations are explicitly partial, with deferred/static-only and uncertain coverage recorded in the report.

Shared fixes #2283 (source receipts), #2294 (declared reader count), #2295 (panel acknowledgements) and #2297 (missing or failed CPU curve) are merged. The false-success price output is excluded. The correctly named repeat was independently validated.

Draft blockers and owners. The contributor will complete the remaining lifecycle, companion and exact released-base audio tests. The submitter will listen and exercise Keep and reboot on the exact version after stage 1. The device reviewer or owner decides first-release acceptance and any timing waiver. Static CPU cycles remain unset for the reasons in the report. The owner’s measurement method

Edge cases:

Case Why this change makes it a risk How run Result
Each owner T1-T8 Admission crosses DSP core boundary Actual callback8owners; physical one-at-a-time picks after empty-pattern warmup pass; prior CPU FULL refusals retained
Second owner / invalid track Shared state must remain single-owner and indexes bounded Host64pairs/invalid8/UINT_MAX/immutablePart; physical T2owner/T1refusal pass
Legacy profiles Older prototypes retain four-track contract 52SDK cases in separate corrected qualification tree pass there; unchanged-main stale gates listed above
Parts and control traffic State/owner transitions must settle Mandatory T1/T5,12Part transitions,2400operation soak pass; control soak is not FRACT audio stress
Formats and controls under audio load Timing cannot be inherited 20format windows; active4chUSB,locks/LFOs/MAIN/PAN/SRNG pass observed development workloads; listening not run
Timing Mean cost does not bound worst-case work 12valid private-probe series; matched native/default PTCH64 observations recorded; static/exclusive WCET not measured
Exact public install/Undo Separate base binding requires its own trial f806/base24e45s,integrity,automatic Undo,independent readback pass install-only; audio/persistence not run
Original setup restoration Scratch testing must preserve user work 8Part snapshots,28CFcontrolfiles,checked eject,base/set/NOR readback pass; not a whole-card/audio-library hash
Expanded dense companions / USB20 New loads must not inherit standalone4channel results Active recording with current125c fail:9973 and1new guarded skips, stopped/undone; optimization pending
Full companion/lifecycle/released-base audio Observed cases do not cover complete release matrix Remaining stage1 cases not run: full qualification pending
Sound, Keep and reboot persistence Scripts cannot judge musical output or approve persistence Human stage after stage1 not run: stage1 incomplete; no Keep approval requested

Guides: nothing. Wrong shared checks and host-tool defects are addressed separately. Source/media are authored or attributed in THIRD_PARTY_NOTICES.md. No firmware, extracted stock bytes, memory dumps or recordings are distributed. Historical UI captures stay labelled.

@repeat98

Copy link
Copy Markdown
Owner

Thanks. #2283 is merged, so the SDK check that's red here should go green. Two things when you next push:

  1. Please merge main in (merge, don't rebase). With Fix: source-package checks follow the reviewed FRACT receipt #2283's test on top of this branch, test_source_runtime_package.py passes 9 of 9 for me.
  2. Please rewrite the description's first paragraphs in plain sentences: what works, what failed in stage 1 and what you're trying next. Put the rest in <details>.

No hurry on the stage-1 optimisation. It stays a draft until you say it's done.

@ex1010

ex1010 commented Dec 2, 2026

Copy link
Copy Markdown
Contributor Author

Jannik, I ran the neighboring-machine Part reload case on the MKII. The optimized FRACT package (75788279) was on T1 and FM Synth 0.1.5-experimental (791e26c5) was on T2, on development base 46c30886. The 120 BPM test pattern used staggered trigs. Both tracks rendered before and after Reload Part. I changed controls on both machines, then Reload restored the working Part byte for byte. Across 61,821 frames the longest frame used 96.0% of its budget, with zero skipped renders.

The initial Undo returned needs-recovery with the test project open. After returning to the original project, the standard recovery command restored the original module set. I verified the project, set and released base 0.8.2 afterward.

Does this cover the neighboring-machine reload case you wanted? For the next hardware pass I have the exact-build FRACT render time per block and matched FLEX comparison with guard and idle on my list. Is there any other companion case you want before considering a first release?

repeat98 commented Dec 3, 2026

Copy link
Copy Markdown
Owner

Hi @ex1010, thanks. Yes, that's the Part reload case I asked for in #1380: FRACT on T1 next to FM Synth on T2, both still playing after Reload Part, the Part restored byte for byte and no skipped render.

What works: the neighbouring-machine Part reload, on development base 46c30886.
What's still open before a first release: one Undo that needs explaining, the two heavy workloads that failed in stage 1, and the final record on the build and base that will ship.
Who acts: you. Ran on a unit: yes, your MKII, on a development build.
Next step: the points below. I don't have any other companion cases to add.

What's still needed
  1. The Undo that came back needs-recovery. This is the only result I can't explain from the setup yet. Please check whether FRACT causes it: end the same trial with the test project open once with FRACT and FM Synth, and once with FM Synth alone, and note which one Undoes cleanly. If only the FRACT run fails, that's a lifecycle bug to fix before release.
  2. The reload on the current base. Since base 0.8.4, a machine brought back by a Part reload goes through the same CPU check as a pick, so a reload that used to pass can now be refused. Please repeat this case once on the base you release against.
  3. The two stage-1 failures. Please run the dense trial (FM Synth, Mini Verb, four-channel USB) and the 20-channel USB trial again on the optimized build, since those are the loads that skipped renders.
  4. Push the build. Package 75788279 isn't on this branch yet. Please push it, so the record names this pull request's head.

Then do the timing you listed (FRACT's render per block next to a matched FLEX track, with the guard), run npm run test:procedure -- fract-machine on the exact package and the released base, and finish with your own listening and a Keep with a power cycle.


Generated by Claude Code

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