Repository navigation
Un-defer sends: the cable model renders offline - #123
Conversation
|
Starting review of 8dfc861. |
minjudd
left a comment
There was a problem hiding this comment.
Reviewed 8dfc861. The cable model is a better answer than the deferral was, and decision 4 is the load-bearing piece — it is what turns §14's "arrival times would have to be invented" into "derived" — so that is where I spent the review, and that is where the findings are.
What I checked, and what holds:
No section moved. grep -n '^## ' on both sides: main ends at §18, this head runs 1–19 with §19 appended at 1064 and every earlier heading on its own original line. The diff's five hunks are lines 1–17, 426, 451, 788 and the append, so no heading sits inside a rewritten region and no citation anywhere can have gone stale by renumbering.
The neighbours really are honest. git grep -ni send -- docs src turns up nothing still saying sends wait for the engine: §14's supersede note, §8's amendment, §7 chunk 4's pointer, now.md and audio-engine.md are the complete set. audio-engine.md's claim that "routing/buses/sends stays on the responsibility list above" is true of line 16, and §8 appends its 2026-08-10 amendment beneath the 2026-08-08 one rather than editing it, which is the convention this file has been keeping.
Decision 1's YAML claim holds, and I did not take it on trust — a parser that silently took the last duplicate would have quietly cost you the uniqueness the map shape is chosen for:
yaml version: 2.9.0
errors: ["DUPLICATE_KEY | Map keys must be unique at line 5, column 3"]
toJS: {"sends":{"chorus-reverb":{"gain_db":-12}}} ← what last-wins would have given you
The toJS line is what a parser without that check would hand the schema; model/project.ts:110 never gets there, because a parse error becomes invalid YAML: … and the file is refused. Per-track label uniqueness really is free.
The fields decision 4 names exist and behave as described: at: timePosition.default(0) and slip: z.number().int().default(0) at schema/track.ts:93,102, and gain_db: z.number().default(0) at :103 is exactly the placement spelling decision 1 claims to reuse. All three links resolve, and the three commands in the Testing block do what the body says they do.
Three findings inline. The first is the one that matters — decision 4's test lets through two fields that displace in time, one of them explicitly waved through — and it reproduces against bloom as shipped rather than against a hypothetical.
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 8dfc861043
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
loop tiles content in time (drums.yaml proves it with one entry) and source_offset displaces the read on slip's own axis, so both join at and slip in the rule; duration and fades stay legal as non-displacing. The walk accumulates in the ancestor's rate via the converted placement plan. Chunk 4 gains the warning severity check lacks today, and the status connective stops contradicting the opening.
A sender placed N times arrives N times — reverb on every pass of a repeated verse works through sender arrivals or a co-repeated circuit. The receiving track must resolve through exactly one containment path, because arrivals bake into a render that exists once however often it is placed; per-instance resolution is recorded as the future relaxation.
|
Starting review of 529656c. |
minjudd
left a comment
There was a problem hiding this comment.
Reviewed 529656c. All three findings are fixed, and two of them went further than the report did.
Decision 4 now enumerates by property rather than by list — "a single unshifted pass: at, slip and source_offset at their defaults, and no loop:" — which is the version that survives someone adding a field. loop moves to the time side with clip-looping.md §1 behind it, and source_offset is cited to project-core.md §3.2. I checked the citation rather than the section number: project-core.md:72 reads "effective read offset = source_offset − slip", so the cited text says what §19 now says it says.
Chunk 4 owns the missing severity, and states it accurately. "Diagnostic is { file, message } and any diagnostic fails check and build" — both halves hold: model/project.ts:40 is the two-field type, commands/check.ts computes ok: diagnostics.length === 0 && unformatted.length === 0, and commands/build.ts:30 throws project has errors (field check) before a graph is built. Naming watch as a third path the level has to cross is a better answer than the one I gave.
The status paragraph reads in one tense now.
Two new things in this head that I checked rather than skimmed:
- Decision 5's rate sentence is consistent with §13's own 2026-08-09 amendment — "the parent computes its offset in its own rate and the child's stem passes through the edge's resample node before the sum" — so "reads the already-converted placement plan" is describing what the model already does. Nothing in bloom declares
rate:today, so I could not exercise it; saying that rather than implying otherwise. - "a track renders once however often it is placed (§13)" is verbatim what §13 argues: "a track may be placed in more than one parent, and it renders once. One stem, one cache entry, six placements in creek's case."
One finding, on the new multiplicity rule — it lands on creek's existing shape.
nested-tracks is Active — chunk 4 is revived by #123 and the soak holds either way; Shipped was the one indefensible value. The three stale prose lines are updated to what actually happened (voice generation through #64/#65 and the #113 fold, effects through #14/#15 with the §6 executor move, musical time through #24), so the keyword and the prose agree on day one. The README claims adoption, not sharing, while agent-config#15 is still open.
The one-path rule refused creek itself: bed is deliberately main minus the vocal, so a return in both mixes reaches through two paths that hear every sender identically. The check compares arrival sets per path — one baking serves agreeing paths, divergence errors naming them.
|
Starting review of 57b1579. |
minjudd
left a comment
There was a problem hiding this comment.
Approving 57b1579. The rule is now "every path must yield the same arrival set", which admits creek and still refuses the ambiguous case — and it is checked rather than assumed ("the same walk runs once per path and the arrival sets are compared"), which is the part that makes it implementable rather than a claim.
The failure-mode list moved with it — "a receiving track whose containment paths disagree on arrivals (error naming the paths)" — so decision 5 and "What this supersedes" now say one thing. grep finds no survivor of the one-path wording anywhere in the file, which is where a half-applied rewrite would show. Sections still run 1–19 with §19 at 1064; nothing renumbered.
One word to fix while you are in here, not worth a cycle of its own: "both placing the same subtree undisplaced" is not what creek does. bed and main each place phrase at at: [1], [5] and [9] — displaced, three times over — and only pad sits at the default. What makes the case work is that the two files place the subtree identically, not that they place it undisplaced, and identical is also the property decision 5 tests. As written, the example describes a stricter admission than the rule two sentences above it — the same shape as the first finding on this PR, scaled down: someone implementing from the example rather than the rule would check for zero displacement in the shared subtree and reject creek.
Also checked at this head: "in its local clock" replacing "in its ancestor's clock" is the more accurate of the two, given §13's "a track renders to samples in its own time, starting at its own sample 0" — and it does not fight the accumulation happening in the ancestor's rate, since those are different steps with the edge resample between them.
No findings.
Records the sends design settled in discussion on 2026-08-10, as nested-tracks.md §19, and un-defers chunk 4: sends land offline, before the real-time engine.
§14 deferred sends because an offline renderer would have to invent arrival times — the target had placements, so offsets were ambiguous between song time and target time, and every fix amounted to refusing targets by name. §19 removes the ambiguity structurally instead of answering it. A send is a map entry on the sending track keyed by a label; a receive is an
inputs:entry (- receive: <label>); one label links exactly one send to exactly one receive. A receive is legal only where the path from its track up to the cable's common ancestor accumulates zero time displacement (at,slipandsource_offsetat their defaults, and noloop:— fades anddurationstay legal, being non-displacing), so the walk up contributes nothing and arrival times are derived by walking down to the sender through its placements, in the ancestor's rate where the path crosses a track-rate boundary. Multiplicity belongs to the sender alone — a sender placed N times arrives N times (reverb on every pass of a repeated verse), while the receiving track's containment paths must agree on the arrival set — creek's parallel bed/main mixes do by construction — because arrivals bake into a render that §13 says exists once however often it is placed. No track type is introduced: "live" is a situation a track is in, not a kind, so decision 1's no-types rule stands and §14's worry about a type distinction sneaking back in through validation is resolved rather than confirmed. The edge still carries a level and never an offset, gaining onlytap: pre | post(default post). Duplicate cable ends are errors, dangling ends are warnings — a severitycheckdoes not have yet, so chunk 4 builds it — cycles are checked on the combined graph with §1.7's reach-into-itself message intact, and §1.8's render-one-way-play-another trap is dead by construction: the schema has no spelling for a signal arriving before it sounds.The same diff keeps the neighbours honest: §14 gets its superseded note, §8 gets its two sends clauses back, §7 chunk 4 points at §19, the status line and now.md say chunk 4 is the remaining work, and audio-engine.md's sends paragraph now describes the engine inheriting the schema rather than owning the feature.
Testing
Docs-only; nothing to build or run. From the repo root,
grep -n '^## ' docs/projects/all/nested-tracks.mdshould show sections 1–19 with §19 appended at the end and no earlier section renumbered — a renumbered section would silently break citations, which is the thing to check for.tail -5 docs/projects/all/nested-tracks.mdends with the revived chunk 4 paragraph, andsed -n '20,31p' docs/audio-engine.mdshows the rewritten sends paragraph pointing at §19. Before this change, §14's deferral was the last word on sends and now.md said "sends wait for the real-time engine".Note
Low Risk
Documentation-only; no runtime, schema, or build changes. Risk is citation drift if section numbers change elsewhere.
Overview
Sends are no longer deferred to the real-time engine.
nested-tracks.mdadds §19, which supersedes §14’s wait-for-engine stance and commits chunk 4 to ship offline first.The cable model: a label links one
sends:map entry on the sender to one- receive: <label>in the receiver’sinputs:. Arrival times are derived by walking from the common ancestor to the sender (receive paths must accumulate zeroat/slip), so offline rendering does not invent offsets. The edge carries level and optionaltap: pre|post, never an offset; 1:1 cables, combined-graph cycle checks, and dangling/duplicate label diagnostics are specified.Cross-doc alignment: §8’s shared-reverb and reach-into-itself criteria return (offline); §7 chunk 4 points at §19; §14 is marked superseded; status and
now.mdlist sends as the remaining nested-tracks work;audio-engine.mdsays the future engine inherits this schema rather than defining sends first.Reviewed by Cursor Bugbot for commit 8dfc861. Configure here.