Skip to content

POLY8 0.3.4-experimental: rests while no track uses it (replaces #1863) - #2118

Draft
Lasl00 wants to merge 2 commits into
repeat98:mainfrom
Lasl00:module/poly8-0.3.4-rests
Draft

Lasl00 wants to merge 2 commits into
repeat98:mainfrom
Lasl00:module/poly8-0.3.4-rests

Conversation

@Lasl00

@Lasl00 Lasl00 commented Nov 24, 2026

Copy link
Copy Markdown
Contributor

POLY8 0.3.4-experimental: POLY8 rests while no track of the project uses it. Replaces the owner's draft #1863, at his request (agent board, thread 3ae6f861, 24 November 2026: "please make your POLY8 rests fix replace my draft PR 1863, as POLY8 0.3.4 … POLY8 is my module, so this is the author OK").

In short: installed and used on no track, POLY8 now costs nothing (0.3.3: 1.3 frame points and up to 5.7 on the longest frame), and on a POLY8 track it costs and sounds as 0.3.3. Tested on Laslo's MKII. Needs the owner's approval for 0.3.4 before it can merge (below).

  • What changes: no code. runtime.json marks POLY8's 11 frame-interrupt detours "rests", as POLY8 0.3.4-experimental: rests while no track uses it (needs base 0.7.11) #1863 prepared it. The package is 42180899, the same bytes POLY8 0.3.4-experimental: rests while no track uses it (needs base 0.7.11) #1863's branch built. Version 0.3.4-experimental, release notes and changelog, TESTING.md with the unit results.
  • Needs the owner: sdk/approvals/poly8-build-approval.json covers 0.3.3 only, so modules:generate stops with "owner-approved update does not cover this module version" and CI is red. A 0.3.4 approval would cover source 2f25de6ff63c139cb0b15cfb1a6ddc2e435120044b04459c2d8e8ffed60fe5c5. It is the owner's to sign. I did not write it.
  • Tested on a unit: package 42180899 on base 2f0dcfa3 (0.8 development twin of main 6f31dd3, beta flags plus --dev, RAM-booted), Laslo's MKII, OS 1.40C, project CPUCURVE2. Against 0.3.3 (1d9e9eca) in the same runs:
What 0.3.3 0.3.4
At rest, A01 with two sample tracks, frame / longest frame added (2 runs) +1.3 / +4.6, +1.3 / +5.7 +0.0 / +0.6, +0.0 / 0
The 11 sites while it rests (mem: against the stock OS) patched stock's bytes
The 11 sites after a pick on T1 patched patched
In use, POLY8 on T1 playing A03, 30 s after a fresh boot +31.7 / +44.6, 0 skipped +32.3 / +47.1, 0 skipped
Stalls or crashes 0 0
  • By ear (Laslo): 0.3.3 and 0.3.4 sound the same on T1. In both, notes sound for about the first 5 seconds of a 30 s window, then only the test loop's own clicks, while the frame interrupt stays about 32 points up. That is the published 0.3.3's behaviour, not this change, and its cause is not known: worth a look by the author.
  • Also seen: one 30 s run of 0.3.4 on a twin that had run trials for hours skipped 1 render (longest frame 112.4 %). After a fresh boot neither version skipped. A second POLY8 track (T3) was refused in every run of both versions, since the unit's cost table books POLY8's first instance at 51. On the development twin, stock FLEX with no module was heavily distorted on the right channel for 3 to 5 s in two of three 30 s runs, never on the flashed base 0.8: a twin finding, not POLY8's.
  • Edge cases: the table in TESTING.md. Run on the unit: at rest, a pick while it rests, playing after a wake, Undo. Not run: MIDI on a channel shared with a POLY8 track, chords and held chromatic keys after a wake, a base without capability 2048, Keep and a power cycle.
Case Why this change makes it a risk How run Result
Installed, used nowhere the 11 detours must hold stock's bytes and cost nothing device:price at rest, mem: on the sites pass
Pick POLY8 while it rests the wake writes 11 sites before the commit pick on T1, mem: after pass
POLY8 playing after a wake the same cost and sound as 0.3.3 15 s and 30 s against 0.3.3, by ear pass
Undo of the trial resting sites restored every trial rolled back pass
MIDI on a channel shared with a POLY8 track the wide-note detours rest not run not run: no MIDI source
Chords and held keys after a wake shared state with resting paths not run not run
A base without capability 2048 it must refuse the package not run not run: no older base on the unit
Keep and a power cycle a kept set must rest after the restart not run not run: no Keep on a twin

🤖 Generated with Claude Code

The owner's prepared change (repeat98#1863), built and tested on an MKII with a
0.8 development twin: at rest +0.0 frame points (0.3.3 +1.3), the 11
sites hold stock's bytes while it rests and are patched after a pick, and
a POLY8 track costs and sounds as 0.3.3. Package 42180899.

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

Copy link
Copy Markdown
Owner

Thanks for taking this over from #1863. The table makes the saving easy to see.

One more reading before I sign 0.3.4. From 24 November a machine release carries a curve read on its own version, and POLY8's evidence/frame-cost.json is still 0.3.3's. Please read it on 0.3.4 with device:price --write --curve, as you did for FM Synth. Its first instance won't be admitted on the medium pattern. Record that as it comes out. #2122 lets my approval waive exactly that refusal for one version, but it never stands in for the curve itself.

The curve is in evidence/, so it moves the source hash. Once it's pushed I'll sign the 0.3.4 approval with release-cost waived, and this can merge after #2122 does. Publishing it notifies POLY8's followers.

The 5-second silence you heard on 0.3.3 is now #2120, so it doesn't hold this release.

repeat98 added a commit that referenced this pull request Nov 24, 2026
…cost rule (#2122)

From 24 November a machine or effect release needs a curve whose first instance
is admitted on the medium pattern. Grain (first 33.3) and POLY8 (51) can never
pass it, and no approval field could excuse it, so even POLY8 0.3.4 (#2118),
which only makes POLY8 cheaper at rest, could not ship. An approval that lists
"release-cost" in `waived` now excuses curveProblem for that exact version, only
for a module without its own qualification record (where modules:check
validates the approval, source hash included). The curve itself must still be
read on that version.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
repeat98, 25 Nov 2026: "approve poly8 0.3.4, write the approval". Covers source
2f25de6f (the checker's moduleNativeSourceSha256), version 0.3.4-experimental, with
0.3.3's waivers and retained UI 0.2.7. modules:generate now passes the approval and
stops at the next gate: no instance curve (evidence/frame-cost.json) for 0.3.4 yet.

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

Copy link
Copy Markdown
Owner

The owner approved 0.3.4 today, and the approval record is on this branch (74ea538d4): sdk/approvals/poly8-build-approval.json covers source 2f25de6f…, with 0.3.3's waivers and retained UI 0.2.7.

Confirmed on another MKII. I measured 0.3.4 against 0.3.3 at rest on a development twin of base 0.8.1 (OS 1.40C, project Dev17, 3 readings of 8 s per state):

Package Frame interrupt at rest CPU at rest
0.3.3 +1.6 +1.4
0.3.4 +0.0 +0.3

This matches your figures.

What modules:generate stops at now: poly8: frame cost: no instance curve measured. Please measure the curve and commit evidence/frame-cost.json:

npm run device:price -- --write --curve T1,T3,T6,T7 --base ID --scene TEXT poly8

A warning before you run it: POLY8's first instance is booked at 51 points, and device:price refuses a curve unless the measure pattern at rest plus that stays under 100 % of a frame. On my unit, Dev17's default measure pattern read 88.7 % on its longest frame, so it would be refused there. The earlier 0.3.4 reading on C01 reached 140.8 %, and past about 130 % the DSP frames can stop until a power cycle. Pick a light --measure-pattern, reading about 45 % or less (your A01 with two sample tracks may do), and keep --limit low.

@repeat98

Copy link
Copy Markdown
Owner

POLY8 0.3.4 is ready to merge apart from one reading: its instance curve. The approval is signed. modules:generate still stops at poly8: frame cost: no instance curve measured, so the module checks stay red until evidence/frame-cost.json is 0.3.4's.

When you're next at your MKII, please run the curve from my last comment on a light measure pattern, one reading about 45 % or less at rest (your A01 with two sample tracks may do), with a low --limit. Then push the file here. I'll merge as soon as the checks are green.

@Lasl00

Lasl00 commented Nov 26, 2026

Copy link
Copy Markdown
Contributor Author

The curve can't start on my MKII: no pattern with notes has room for POLY8's booked 51. Measured today on the 0.8.2 development twin 46c30886 (OS 1.40C, project CPUCURVE4, Part 1), the longest frame over 8 s with stock alone:

Pattern Longest frame
empty (A02) 40.2 %
the curve tracks trigging one at a time, never two on a step (A04), 4 readings 54.1-54.8 % (47.5 once yesterday)
T1 on every step (A05) 55.6 %
medium (A01, two sample tracks) 77.8 %

One trig on a step lifts the frame from about 40 % to over 50 %, so a pattern that plays notes and reads 45 % or less doesn't exist on this unit. Plus the booked first of 51, every one of them is past 100 %, and device:price refuses the curve, as it should.

For comparison: POLY8 0.3.4 in use on T1 of a pattern at 61-64 % stock alone read 106-113 % on its longest frame with nothing skipped (TESTING.md), so its real first is about 45 points, not 51.

Three ways I can see, your call:

  1. Let this one curve run past the room check on A04 with --limit 100 (the stop at a dropped render stays), for example with a --booked-first N that replaces the booked figure for the check only.
  2. Book POLY8's first lower for the run in frame-costs-base.json.
  3. Read it on your unit if a pattern there has room.

The second and further picks would need the Part's allowance raised as well, which #2241 does.

@github-actions

Copy link
Copy Markdown
Contributor

Thanks for measuring all four patterns. That settles it: a light pattern with notes doesn't exist, and it shouldn't be the rule. Light patterns are how FM Synth and UNGEMACH ended up booked too low.

So none of the three workarounds. #2275 changes device:price to read the curve on the medium pattern even when the module takes it past 100 %, and it refuses curves read where stock alone is under 75 %. Once #2275 is on main (it follows #2272):

  1. Merge main into this branch.
  2. Read the curve on your medium A01 (77.8 % stock alone) with --limit low. The stop at a dropped render stays, so stop there if it trips. Record what comes out, even past 100 %.
  3. Push evidence/frame-cost.json. I'll re-sign the 0.3.4 approval for the new source hash with release-cost waived, as promised, and merge once it's green.

If the first reading goes near 130 %, stop and say so here rather than pushing on. The unit comes back after a power cycle, but I'd rather not get that close.

@repeat98

Copy link
Copy Markdown
Owner

A quick heads-up: #2275 is merged, so device:price now reads the curve on your medium A01 even when POLY8 takes it past 100 %. The steps from my last comment can go ahead whenever you're at your MKII: merge main, read the curve with a low --limit, and push evidence/frame-cost.json.

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