Skip to content

shared/ is organized by musical role, not file format - #25

Merged
ninjudd merged 1 commit into
mainfrom
feat/shared-by-role
Aug 6, 2026
Merged

ninjudd merged 1 commit into
mainfrom
feat/shared-by-role

Conversation

@ninjudd

@ninjudd ninjudd commented Aug 6, 2026 •

Copy link
Copy Markdown
Contributor

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 in loops/ beside committed .wav loops, and a code instrument (an .scd taking MIDI, when that era arrives) will sit in instruments/ 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-render was already path-agnostic (program: is any project-relative path): init stops scaffolding shared/sc/, project-model.md's layout and prose carry the rule, test fixtures repoint to shared/loops/. sc-render.md's shared/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.scd and creek-kit.scd to shared/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 typecheck clean, 216 tests pass.


Note

Low Risk
Docs and init scaffolding only; sc-render behavior unchanged. Existing projects with shared/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 in shared/loops/ beside committed audio loops; future MIDI-taking code instruments are described as living in shared/instruments/. Song workspaces stay medium-named (audio/, midi/, sc/).

Mechanical: bloom init no longer creates shared/sc/ (only shared/instruments, shared/loops, shared/samples). Build tests and transport fixtures repoint sc-render programs from shared/sc/ to shared/loops/ — program: was already path-agnostic, so no rule changes.

Reviewed by Cursor Bugbot for commit 3419e86. Configure here.

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
ninjudd merged commit 6c8d5f5 into main Aug 6, 2026
2 checks passed
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 -->
@ninjudd
ninjudd deleted the feat/shared-by-role branch September 28, 2026 04:11
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.

1 participant