Repository navigation
shared/ is organized by musical role, not file format - #25
Merged
Merged
Conversation
Drop the shared/sc/ scaffold: a loop authored as a SuperCollider recipe belongs in shared/loops/ beside committed audio loops, and a code instrument (an .scd taking MIDI) will belong in shared/instruments/ beside hosted ones. What a thing IS in the music is the taxonomy; bytes-vs-recipe is the same distinction the build graph already erases — clips source assets and targets interchangeably. Song directories stay medium-named (audio/, midi/, sc/): a song is a workspace, not a library. sc-render is path-agnostic already (program: is any project-relative path), so this is scaffold + docs; test fixtures repoint to shared/loops/.
ninjudd
added a commit
that referenced
this pull request
Aug 6, 2026
One principle per shelf, decided in design discussion 2026-08-06: shared/ = instruments / generators / samples / plugins by contract (loops dissolves — looping is clip placement); one generator category with two trigger policies (determinism qualifies a generator for automatic re-run; storage follows trigger); authored specs per-file (targets/, mixes/ — the list-file was a Bazel-ism) while ledgers stay tables; generation/ dissolves into targets/ (spec) + audio/ (variants); audio/ is all committed sound whatever produced it, samples-vs-audio is enforced visibility with promotion on reuse; one ledger per scope (shared/assets.yaml) pinning committed audio only — programs are keyed, not pinned; the ace CLI prefix retires. Amends #25's taxonomy, project-core §3.4's spec-file phrasing, and ace-generation §3.1's layout, each with what changed. Migration queued in next.md, including one demo shared sample in field; project-model.md carries a pointer until it lands.
ninjudd
added a commit
that referenced
this pull request
Aug 6, 2026
Docs-only: the decision record from today's layout discussion ([project-layout.md](docs/projects/all/project-layout.md)). Merging signs off the design; the migration is queued in next.md as its own work. The seven decisions, one line each: 1. **`shared/` = instruments / generators / samples / plugins**, split by contract; `loops/` dissolves into `samples/` because looping is a clip placement property — amends #25, which had conflated a render program's role with its output's role. 2. **One generator category, two trigger policies** — automatic (deterministic: sc-render, say; machine-triggered, cached) vs deliberate (ACE, voice; human-triggered, committed variants + choose). Determinism is the *qualification* for automatic re-run, not a filing principle: no separate homes. 3. **Authored specs get a file each** — `targets/<name>.yaml`, `mixes/<name>.yaml` (the list-file was an imported Bazel-ism); **ledgers stay tables** (`assets.yaml`). Labels unchanged. 4. **`generation/` dissolves**: recipes are deliberate targets in `targets/`; variants live in `audio/<target>/`; follow-on, clips reference the target and `choose` repoints it. 5. **`audio/` is all committed sound** (recorded/imported/generated); samples-vs-audio is *enforced visibility* — promotion to shared on actual reuse, cheap by content addressing. 6. **One ledger per scope**: `shared/assets.yaml` mirrors the song ledger; every file pinned once; the ledger pins committed audio only — *programs are keyed, not pinned* (git is code's integrity story). 7. **The `ace` prefix retires**: `bloom generate` / `bloom choose`, answering voice-generation.md §4's seam question. Also: project-core §3.4 gains an amendment note (grammar unchanged, spec files per-file), project-model.md carries a decided-not-migrated pointer so its tree diagram isn't read as final, and the migration entry in next.md includes the demo shared sample in field that forces the cross-scope reference spelling to be decided rather than deferred. Heads-up: this will need a trivial list-file rebase against #29 (both touch next.md) — whichever merges second, I'll handle it. <!-- CURSOR_SUMMARY --> --- > [!NOTE] > **Low Risk** > Documentation and planning only; runtime behavior and project layout in code/field are unchanged until the queued migration. > > **Overview** > **Docs-only decision record** for the 2026-08-06 project layout revision. No loader, CLI, or field migration in this PR—implementation is queued separately in `next.md`. > > Adds **`project-layout.md`** with seven **DECIDED** rules: four-shelf `shared/` (instruments / generators / samples / plugins; `loops/` merges into `samples` because looping is clip-owned); one generator category with automatic vs deliberate trigger policies (not separate homes); per-file `targets/` and `mixes/` while `assets.yaml` stays a ledger table; `generation/` dissolving into deliberate targets plus `audio/<target>/` variants; song `audio/` as all committed sound with enforced visibility vs `shared/`; mirrored `shared/assets.yaml` (pins committed audio only—programs keyed, not pinned); retiring the `ace` CLI prefix for `bloom generate` / `bloom choose`. The doc also sketches migration chunks and leaves cross-scope clip reference spelling and variant filenames for the migration work. > > **Pointers elsewhere:** `project-model.md` warns the tree diagram still reflects *today’s* layout until migration; `project-core.md` §3.4 notes per-file targets/mixes for label derivation (grammar unchanged); `next.md` adds the layout migration line. > > <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit bc1f813. Configure [here](https://www.cursor.com/dashboard/bugbot).</sup> <!-- /CURSOR_SUMMARY -->
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Drops the
shared/sc/scaffold and records the taxonomy rule in project-model.md: the shared library organizes by musical role — a loop authored as a SuperCollider recipe (.scd) sits inloops/beside committed.wavloops, and a code instrument (an.scdtaking MIDI, when that era arrives) will sit ininstruments/beside hosted ones. Bytes-vs-recipe is the distinction the build graph already erases — clips source assets and targets interchangeably — so the directory tree shouldn't reintroduce it.The boundary: song directories stay medium-named (
audio/,midi/,sc/). A song is a workspace, not a library, so its subdirectories say what medium a file is;shared/says what role it plays.Mechanically small because
sc-renderwas already path-agnostic (program:is any project-relative path):initstops scaffoldingshared/sc/, project-model.md's layout and prose carry the rule, test fixtures repoint toshared/loops/. sc-render.md'sshared/sc/mention stays as-is — finished plan docs are point-in-time artifacts; the docs root is the source of truth.field's companion change (moving
still-water-pad.scdandcreek-kit.scdtoshared/loops/) is done and verified:program:is a wiring field — the content hash is the action-key input, not the path — so the move was a full cache hit, not even a re-render. The same rename-immunity assets get, doing its job.pnpm typecheckclean, 216 tests pass.Note
Low Risk
Docs and init scaffolding only;
sc-renderbehavior unchanged. Existing projects withshared/sc/are unaffected until authors migrate paths.Overview
Taxonomy change:
shared/is documented and scaffolded by musical role (instruments, loops, samples), not by file format. SuperCollider loop recipes (.scd) belong inshared/loops/beside committed audio loops; future MIDI-taking code instruments are described as living inshared/instruments/. Song workspaces stay medium-named (audio/,midi/,sc/).Mechanical:
bloom initno longer createsshared/sc/(onlyshared/instruments,shared/loops,shared/samples). Build tests and transport fixtures repointsc-renderprograms fromshared/sc/toshared/loops/—program:was already path-agnostic, so no rule changes.Reviewed by Cursor Bugbot for commit 3419e86. Configure here.