Repository navigation
Plan bloom moving into examples/bloom - #82
Conversation
Keeping the tool and its only real project in two repos cost most of a day: a flag day that half-landed with no test able to notice, a second song missed because the first was what I looked at, and a track fader that went silent where the five files carrying one lived in the other repo. A test can only see one repo, which is the whole argument. The move is blocked on something that is not a copy. A `generative` sound cannot exist before its takes do — `model` and `seed` are recorded from a run, and `variants` requires at least one — so an example that ships recipes and lets each person generate their own takes needs those fields to move to the variant and an empty variant list to be legal. That is also better provenance than the current shape, which records one model version for takes that may come from several. Recorded with the alternatives that lost, since both are the obvious cheaper thing: a submodule or subtree keeps history but cannot survive a squash merge into a linear-history repo, and committing the 6.9 MB works today but puts generated audio under review, where a diff says nothing. Nothing is written yet and bloom is deliberately untouched until it moves — including tall-grass, whose loop is replaced in the copy rather than in place, so there is never a window where the two repos disagree.
|
Starting review of 873a4b2. |
minjudd
left a comment
There was a problem hiding this comment.
Reviewed 873a4b2. Two findings, both about §3 and §4's factual detail rather than the argument, which holds — and holds better than a plan usually does, because I reviewed all three incidents in §1 as they happened and they are described accurately.
The flag day really did half-land: #79 moved the bare name to track:main and bloom #6 was not merged with it, so field build creek had no target for that window. tall-grass really did surface only when #81's guard fired — that is where the PR body found it too. And the fader really did go silent: I rendered it, gain_db: -12 produced a byte-identical file, and the five bloom files carrying one are the five in songs/creek/tracks/. "A test can only see one repo" is the honest summary of all three.
The checkable claims check out. bloom is exactly 33 commits. It sets *.wav filter=lfs in .gitattributes and field has no .gitattributes at all, so "does not use it" is literal. water.wav is 2.0 MB and seven-eight-loop.wav is 0.3 MB. project-layout.md §1.2 is item 2 under ## 1 Decisions and contains the quoted sentence. The subtree rejection is right about this repo: the ruleset carries required_linear_history, so a squash really does flatten whatever arrives.
Both findings below would have surfaced during chunk 1 or 2 anyway. Finding them now is the cheaper time.
`generated_at` is required and set from `new Date().toISOString()` at the end of a run, so it is a fourth field a recipe written before one cannot supply — and the purest case for moving to the variant, since one timestamp cannot describe several takes. The quoted error block now shows the absent-key run in full rather than the empty-array run minus a line. `water` is a shared asset, not creek's: the pin and the bytes live under `shared/`, so a deletion that stops at creek's track file leaves a pin whose file is gone.
|
Starting review of bf96468. |
minjudd
left a comment
There was a problem hiding this comment.
Approving bf96468. Both findings fixed, and the first one better than what I filed.
The error block now reproduces exactly. Written as the plan describes it — a recipe carrying only name, type and prompt — check gives those four lines in that order, generated_at included. So the quoted output is something a reader can reproduce rather than something they have to trust.
The variants half is where you improved on the finding. I flagged that two scenarios had been quoted as one; you turned that into a requirement — absent and empty must come to mean the same thing, and a chunk fixing only .min(1) would leave the other failing. Both messages are real and distinct at this head: omitting the key gives expected array, received undefined, and variants: [] gives Too small: expected array to have >=1 items. A reader now knows there are two doors and that the chunk has to close both.
generated_at moving to the variant rather than becoming optional is the right call, and "one timestamp for a list of takes is already wrong in a project that never wanted this move" is the sentence that makes it a provenance fix rather than a workaround — which is what keeps §3 an improvement the move happens to need, as its own framing claims.
§4 is accurate now: shared/assets.yaml holds the pin, the bytes are at shared/samples/water.wav, creek reaches it as //shared/asset:water, and the four files span both scopes — including the placement in main.yaml, which I had not listed and which would have been the easiest of the four to leave behind. You also caught the chunk-3/chunk-2 mismatch in the same paragraph, which I missed: §4 said the loop is replaced in chunk 3 while §5 puts the move in chunk 2.
One thing worth saying about the plan as a whole, since I reviewed the incidents it is built on as they happened: §1's argument is stronger than a post-mortem usually is because all three failures are the same failure. None was a bug — the flag day, the missed song, and the silent fader were each a thing no test could see because the test and the thing were in different repositories. A plan whose evidence is three instances of one mechanism is a plan about the mechanism, which is what makes examples/bloom the fix rather than more careful coordination.
No findings.
Keeping the tool and its only real project in two repos cost most of today, and every instance was a coordination failure rather than a bug: a flag day that half-landed with
field build creekbroken and no test anywhere able to notice, a second song missed because the first was what I looked at, and a track fader that went silent where the five files carrying one lived in the other repo. A test can only see one repo. That is the whole argument, and it is also the acceptance criterion — CI runningfield checkon the vendored example would have caught all three.The move is blocked on something that is not a copy. A
generativesound cannot exist before its takes do:model,seed, andgenerated_atare all recorded from a run — the last one is literallynew Date().toISOString()at the moment one finishes — andvariantsrequires at least one entry. An example that ships recipes and lets each person generate their own takes needs those three fields to move onto the variant, and needs a recipe with no takes to be legal whether it omitsvariantsor writes it empty. That is better provenance independently of the move: a sound can have takes generated a month apart from different model versions, and the current shape records one answer for all of them, including one generation time for the whole list.Both obvious cheaper options are recorded with why they lost. A submodule or subtree keeps history, but this repo squash-merges into a linear history, so whatever a PR contains lands as one commit and bloom's 33 commits cannot survive regardless. Committing the 6.9 MB works today and would let CI
buildas well ascheck, but it puts generated audio under review, where a diff says nothing, and it throws away the demonstration that a project is its recipes.Nothing is written yet, and bloom is deliberately untouched until it moves —
tall-grassincluded, whose loop is replaced in the copy rather than in place, so there is never a window where the two repos disagree about it.Testing
Docs only. What is worth checking is that the claims resolve, since this plan's whole job is to be acted on later by someone who was not here.
§1.2 is the deliberate-trigger policy the plan cites for why
buildshould not generate on its own — "automatic re-run would replace chosen audio under your feet and burn model-minutes uninvited". I cited §1.4 first, which is thegeneration/layout decision and the wrong section; this is the corrected one.The blocking claim is reproducible in about thirty seconds, and is the reason the plan exists. Build first so the
fieldon your PATH is this branch's:Four errors —
model,seed,variants, andgenerated_at. That is the schema saying a recipe cannot exist before its takes, which is exactly what §3 has to change.The second spelling matters, because fixing only one of them is the way chunk 1 ships half-done:
Same four, except
variantsnow readsToo small: expected array to have >=1 itemsinstead ofreceived undefined. Omitting the key and writing it empty are separate failures today, so §3 makesvariantsdefault to[]rather than only dropping the.min(1)— a chunk that dropped the minimum alone would leave the hand-written recipe above still failingcheck, which is the one shape the chunk exists to allow.The definition of done names a command rather than a number, and it currently prints
0for the directory that does not exist yet, which is the right answer for the wrong reason:Clean up with
rm -rf /tmp/recipe-probe. Nothing else is left behind.