Repository navigation
Move bloom into examples/bloom - #84
Conversation
The tool and the only real project using its format lived in two repos, so a change to one could not be tested against the other. That cost most of a day in flag days that half-landed, a second song nobody looked at, and a track fader that went silent where the files carrying it were somewhere a test could not see. A test can only see one repo. Copied rather than migrated: this repo squash-merges into a linear history, so bloom's commits could not have survived the merge however they arrived. The history goes with the old repository, which is being deleted — it recorded how the format was exercised while it was being built, and none of that is worth a second repository to point at. No audio comes with it. All seven WAVs stay behind, the recipes ship takeless, and whoever clones generates their own takes and chooses among them — which is the strongest demonstration the format has that a project is its recipes, rather than a cost of moving. It also means no Git LFS here, and no generated audio arriving in review where a diff says nothing. Two things could not simply be copied, because neither is reproducible. The water recording was downloaded and normalized, so its pin describes the processed bytes and a download rule would have to be download → normalize with the pin on the output; it is deferred to that plan, and creek loses the ambience track that used it. tall-grass's 7/8 loop was a recording and is now a seeded SuperCollider program of the same two bars, which needs no committed bytes and renders identically every time. Both ledgers go with the last pins they held. A project that commits no audio carries no ledger; field import writes one when there is something to write down.
|
Starting review of 5ac4896. |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using high effort and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 5ac4896. Configure here.
minjudd
left a comment
There was a problem hiding this comment.
Approving 5ac4896. No findings — and the one I had drafted turned out to be against a version of the plan this PR replaced.
Every claim in the chunk-2 description holds. 36 files under examples/bloom, none of them a WAV. Both ledgers gone with the last pins they held — no assets.yaml survives in either scope. The two generative recipes ship takeless: variants: [], which is the shape chunk 1 existed to make legal, so the example is now the thing that would notice if that regressed.
§4's substitutions are complete, including the part I raised on #82. All four water touchpoints are handled — the pin is gone from shared/assets.yaml, shared/samples/ is down to a .gitkeep, songs/creek/tracks/water.yaml is absent, and the placement is out of main.yaml. That last one was the easiest of the four to leave behind and it is not there. seven-eight-loop is a .scd and a supercollider recipe rather than committed bytes.
field check passes, and I ran it twice for a reason: once in the worktree, then again on a pristine git archive export with no .field/ anywhere, because §6 asks specifically about a fresh clone and a check that passes on local state would not have answered that. Both ok. pnpm typecheck is clean and the suite is 456 across 33 files — unchanged from main, so adding the directory disturbs neither.
The .gitignore is the part I would keep as the pattern: ignoring songs/*/audio/** while re-including .gitkeep keeps the shelves visible, and the comment says why an empty shelf is part of the layout rather than an accident.
On decision 2.1 — I had a finding written that the README does not link the archived repo, which §2.1 required. It does not require it any more: this PR rewrote that decision to delete okamnesiac/bloom rather than archive it, marked Updated 2026-08-08, with the reasoning that 33 commits recording how the format was exercised are not worth a second repository to point at. §5's chunk 4 was updated to match. I mention it because the near-miss is the argument for reading the decision at the head under review rather than the one you remember from three PRs ago.
One observation, not a finding and not this PR's to fix: npm pack --dry-run now includes 35 examples/bloom entries. That is consistent rather than new — the package has no files field and already ships 431 files across dist/, src/, docs/, native/ and python/ — so the example is joining an existing arrangement rather than breaking a tight one. Worth a files field one day; not because of this.
The header said "a rim on the second", which reads as the second eighth of every group as easily as the second group. The code means the latter — one rim, on eighth 3, doubling the kick that opens the middle group so the seven leans there. Both readings describe a real groove, which is what made the sentence worth replacing rather than tightening. Comments only: the render is byte-identical, which is the point of a seeded program.
|
Starting review of 0e71c9d. |
minjudd
left a comment
There was a problem hiding this comment.
Approving 0e71c9d — comment-only, and the comment is now checkable against the code it describes.
Stripping // comments from both revisions leaves 61 identical lines, so nothing executable moved. field check on the example is still ok.
The three claims the new text makes all match what runs. Groups open at eighths 0, 3 and 5, which is var downbeats = [0, 3, 5] and is what 3+2+2 across seven comes to. The kick on 0 "lands hardest" because \amp, if (inBar == 0) { 1.0 } { 0.7 }. And the rim doubles the second group's opening only, which is if (inBar == 3) — one branch, no others.
The ambiguity this fixes was real: "a rim on the second" could have been read as the second eighth, which is inside the first group and would have described a different groove entirely. "The second group only, on eighth 3" cannot be misread, and the added line saying why — a rim on every group would even the bar back out — is the part that tells the next person what not to "fix".
Worth noting the honesty in the opening paragraph too: saying plainly that this does not reproduce the recording it replaces, and is not trying to, is the right framing for a substitution made under §2.4. A reader comparing it to the old tall-grass loop would otherwise be measuring against a target nobody set.
No findings.

The tool and the only real project using its format lived in two repos, so a change to one could not be tested against the other. That cost most of a day: field #79 moved the bare song name to
track:mainwhile bloom sat unmerged andfield build creekwas broken with no test anywhere able to notice;tall-grasswas missed by a migration because creek was what I looked at; a track fader went silent where the five files carrying one were somewhere a test could not see. A test can only see one repo — that is the whole argument, and CI runningfield checkhere would have caught all three.Copied, not migrated. This repo squash-merges into a linear history, so bloom's commits could not have survived the merge however they arrived; a submodule would have kept two repos and added a pointer to forget to bump. The history goes with the old repository, which is being deleted.
No audio comes with it. All seven WAVs stay behind, both generative recipes ship with
variants: [], and whoever clones generates their own takes — which is what chunk 1 made expressible. Two people's bloom sounding different is the demonstration, not the cost: a project is its recipes. It also means no Git LFS in a TypeScript repo, and no generated audio arriving in review where a diff says nothing.Two files could not simply be dropped, because something referenced them.
waterwas downloaded and then normalized, so its pin describes the processed bytes — a download rule has to bedownload→normalizewith the pin on the output, not a URL field on the ledger. That is its own plan, so the example drops it: the shared pin, the bytes, creek'swatertrack, and that track's placement inmain. creek loses its ambience.tall-grass's 7/8 loop was a recording. It is now
shared/instruments/seven-eight-loop.scd— a seeded program rendering the same two bars of 3+2+2 at 132, which needs no committed bytes and is bit-reproducible.drums.yamlandloop-cd.yamlstill saysource: seven-eight-loop, because a clip's source resolves a sound exactly as it resolved an asset.Both ledgers go with the last pins they held. A project committing no audio carries no ledger;
field importwrites one when there is something to write down.The README is rewritten rather than copied: it described committed audio, LFS, and a water recording, and it claimed tall-grass renders without SuperCollider — which stopped being true when its loop became a program. It now opens with what is missing and why, and a Generating section is the first thing after setup.
CI is deliberately not here. That is chunk 3, and it deserves its own change because the way to review it is to break a schema and watch the example catch it — which is a different exercise from reading a file copy.
Testing
456 tests, unchanged: this adds no code. Then the example itself, which is the actual subject:
ok, then four built labels ending in//songs/tall-grass/track:main. tall-grass building on a fresh clone with no audio in the repository is the claim this whole PR rests on — every sound in it is a recipe, so ifseven-eight-loophad been dropped rather than replaced you would getreferences unknown sourcehere instead.creek is the other half, and it must fail:
//songs/creek/sound:still-water-keys has no takes yet — field generate still-water-keys --song creek --seed <n>. If this builds, audio got committed by accident. If it saysno such label, the takeless recipes are malformed rather than empty.Then the README's own sequence. With the real workers installed it is the two
field generatelines from Generating; without them, the stub worker exercises the same path:ok, and the recipe still opens with its comment — filling edits the file in place, so a shipped example's annotations survive. Note that neither command passes--promptor--text: the recipe is the request, and a flag repeating it is refused.Stop there with the stub.
field build creekafter a stub generate fails onnot a RIFF/WAVE file, because the stub writes text rather than audio — that is the stub, not this change, and it is why the two builds above use tall-grass and the refusal from creek as the real assertions.The audio is genuinely absent, which is the definition of done for this chunk:
0. Andgit ls-files examples/bloom | wc -lis36.Clean up with
rm -rf /tmp/bloom-clone. Building insideexamples/bloomleaves a.field/there, which its own.gitignorecovers.Note
Low Risk
Documentation and example YAML/SCD only; no application code or CI changes in this PR.
Overview
Adds the bloom Field project under
examples/bloomso the format’s real consumer lives in the same repo as the CLI (CI wiring is a follow-up chunk). The tree is 36 tracked files and zero WAVs: recipes, tracks, and SuperCollider programs ship; generated takes stay local via.gitignore.Copy-time edits from the standalone repo: creek’s shared water ambience and its ledgers are removed; tall-grass’s seven-eight-loop becomes a seeded
supercollidersound (seven-eight-loop.scd) instead of a recording. Creek’s still-water-keys and lead-take use the new takeless generative shape (variants: []).The README is rewritten for “no audio in git”—setup,
field checkon a fresh clone, generating creek’s missing takes, and building tall-grass from recipes only. Plan docs (bloom-in-tree.md,now.md) mark chunk 2 done and note deletingokamnesiac/bloominstead of archiving it.Reviewed by Cursor Bugbot for commit 5ac4896. Configure here.