Skip to content

Plan bloom moving into examples/bloom - #82

Merged
ninjudd merged 2 commits into
mainfrom
docs/bloom-in-tree
Aug 9, 2026
Merged

ninjudd merged 2 commits into
mainfrom
docs/bloom-in-tree

Conversation

@ninjudd

@ninjudd ninjudd commented Aug 9, 2026 •

Copy link
Copy Markdown
Contributor

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 creek broken 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 running field check on the vendored example would have caught all three.

The move is blocked on something that is not a copy. A generative sound cannot exist before its takes do: model, seed, and generated_at are all recorded from a run — the last one is literally new Date().toISOString() at the moment one finishes — and variants requires 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 omits variants or 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 build as well as check, 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-grass included, 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.

cd ~/amnesiac/field
sed -n '/^2\. \*\*One generator category/,/^3\. \*\*/p' docs/projects/all/project-layout.md

§1.2 is the deliberate-trigger policy the plan cites for why build should 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 the generation/ 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 field on your PATH is this branch's:

cd ~/amnesiac/field && pnpm build
cd /tmp && rm -rf recipe-probe && mkdir recipe-probe && cd recipe-probe
field init --name p
field song create creek
mkdir -p songs/creek/sounds
printf 'name: lead\ntype: generative\ntext: a line\n' > songs/creek/sounds/lead.yaml
field check

Four errors — model, seed, variants, and generated_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:

printf 'name: lead\ntype: generative\ntext: a line\nvariants: []\n' > songs/creek/sounds/lead.yaml
field check

Same four, except variants now reads Too small: expected array to have >=1 items instead of received undefined. Omitting the key and writing it empty are separate failures today, so §3 makes variants default to [] rather than only dropping the .min(1) — a chunk that dropped the minimum alone would leave the hand-written recipe above still failing check, 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 0 for the directory that does not exist yet, which is the right answer for the wrong reason:

git ls-files examples/bloom | grep -c '\.wav$'

Clean up with rm -rf /tmp/recipe-probe. Nothing else is left behind.

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.
@minjudd

minjudd commented Aug 9, 2026

Copy link
Copy Markdown

Starting review of 873a4b2.

@minjudd minjudd left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread docs/projects/all/bloom-in-tree.md Resolved
Comment thread docs/projects/all/bloom-in-tree.md Resolved
`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.
@minjudd

minjudd commented Aug 9, 2026

Copy link
Copy Markdown

Starting review of bf96468.

@minjudd minjudd left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@ninjudd
ninjudd merged commit c32fa4c into main Aug 9, 2026
1 check passed
@ninjudd
ninjudd deleted the docs/bloom-in-tree branch August 9, 2026 01:55
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