Skip to content

Adopt Projector project layout - #164

Merged
ninjudd merged 3 commits into
mainfrom
adopt-projector
Sep 6, 2026
Merged

ninjudd merged 3 commits into
mainfrom
adopt-projector

Conversation

@ninjudd

@ninjudd ninjudd commented Aug 22, 2026 •

Copy link
Copy Markdown
Contributor

Replace Field's conflict-prone now.md, next.md, later.md, and all/ layout with Projector's permanent project directories. Each project now has a lowercase readme.md under docs/projects/<name>/, and two independent frontmatter fields carry its state: status: draft|ready|in-progress|completed is the lifecycle, and priority: now|next|later is the schedule. Changing either edits one file, so two branches working on different projects no longer contend on a shared index.

The two-field shape is what Projector 0.3.0 requires. An earlier revision of this branch was written against 0.1.0, whose frontmatter carried a single status: now|next|later|done; every plan failed project check under the current CLI and project list refused to read the tree at all. Each old value maps to the pair it became, with the lifecycle taken from the keyword the plan carried on main.

The twelve plan-less items that later.md carried are preserved rather than deleted. Each was a recorded idea with its rationale and citations — convolution reverb waiting on a deterministic FFT story, the prettier and ESLint trade-off, the MCP surface, the src/engine umbrella, and the rest — so dropping them would lose work rather than move it. Each becomes a stub project at draft and priority: later, which is what Projector's model prescribes for an idea nobody has committed to. They also give the plans that cited "later.md's line" something real to point at, so references the migration would otherwise have left dangling now resolve.

The rule that defines done here survives the move. This repository finishes a project only once a real session has exercised it, usually after real music has been made with it, and the old layout recorded that by keeping the project on now.md. Projector has no such list and does not display priority for a completed project, so marking these projects completed on merge would retire the rule by accident and leave the distinction nowhere to live. The ten projects now.md held stay in-progress at priority: now, each with its closing condition restored to its own plan, and docs/projects/README.md states the rule. Retiring it would be a real decision, and it is not one a layout migration should make quietly.

docs/projects/README.md otherwise takes its convention text from Projector's own template, so it says what project init writes into any adopting repository, and keeps the conventions Projector does not supply: the **Goal:** line, decisions recorded with the alternatives they beat, the project-core.md §3.2 citation shorthand and what it names, and where how-it-works documentation lives instead.

The migration preserves numbered sections, repairs relative links, updates citations throughout the system documentation, and leaves historical **Status:** Shipped prose alone, because it records what happened rather than instructing anyone.

Testing

Projector 0.3.0 or newer is required, because 0.1.0 predates the split into status and priority:

pipx install git+https://github.com/ninjudd/projector.git
project --version

From the repository root:

project check
project list
pnpm typecheck
git diff --check origin/main...HEAD

project check prints "Project plans are valid." and exits 0. project list groups 39 projects: ten under now, ui under next, seventeen under later, and eleven completed at the end. The ten under now are exactly the ten now.md listed on main, which is the check that the soak rule survived rather than being approximated. Both other commands exit silently.

The suite needs the native daemon, and without it 78 tests fail with field-audiod is not built rather than anything to do with this change:

pnpm build:native
pnpm test

That reports 686 passing across 45 files. The build writes native/audiod/build/, which is ignored, and takes several minutes from cold.

Check that no reference to the retired layout survives. Run the sweep twice, because rg skips a file one stray NUL byte has made binary and command grep does not:

rg -n 'docs/projects/all/|docs/projects/(now|next|later)\.md|\]\(all/' --glob '!.git/**' .
command grep -rlE 'docs/projects/all/|docs/projects/(now|next|later)\.md|\]\(all/' --exclude-dir=.git --exclude-dir=node_modules --exclude-dir=build .

Both print nothing and exit 1. Before this change they report the shared lists and every all/ citation.

The failure signal for the status vocabulary is worth running directly, because it is what the first revision of this branch got wrong. A plan carrying a retired keyword is rejected rather than ignored:

printf -- '---\nstatus: Active\npriority: later\n---\n\n# P\n' > docs/projects/mcp-surface/readme.md
project check ; echo $?
git checkout docs/projects/mcp-surface/readme.md

That prints status must be one of draft|ready|in-progress|completed [invalid-project] and exits 65. All eight keywords of the retired set fail identically; in-progress exits 0.

Nothing is left running. pnpm typecheck runs the prepare script, which writes dist/, and dist/ is already ignored.

https://claude.ai/code/session_01AJNt2NDQJLGKWFt56CGZVv

@ninjudd

ninjudd commented Aug 22, 2026

Copy link
Copy Markdown
Contributor Author

CI did not execute on this head. The failed Linux job contains zero steps and GitHub annotated it as not started because recent account payments failed or the spending limit must be increased. The local migration gate (projector check, git diff --check, rg, and binary-inclusive command grep) passed. Rerun the workflow after the account billing/spending limit is restored.

The migration was written against Projector 0.1.0, whose frontmatter
carried one `status: now|next|later|done` field. Projector split that
into an independent lifecycle and schedule in 0.3.0, so every plan here
failed `project check` and `project list` refused to read the tree at
all — the branch adopted a convention the tool no longer accepts.

Map each old value to the pair it became, deriving the lifecycle from
the keyword the plan carried on main: `done` becomes `completed` with
no priority, `now` becomes `in-progress` at `priority: now` for the two
plans that were `Active`, and `next` and `later` become `draft` at that
priority.

Restore the twelve plan-less items the migration dropped with
`later.md`. Each was a recorded idea with its rationale and citations,
so deleting them loses work rather than moving it; each becomes a stub
project at `draft` and `priority: later`, which is what Projector's
model prescribes and what the `tui` stub already did. They also give
the plans that cited "later.md's line" something real to point at, so
the references the migration left dangling now resolve.

Take the repository README's convention text from Projector's own
template, so it says what `project init` writes, and keep the Field
conventions Projector does not supply: the goal line, decisions
recorded with their alternatives, and where how-it-works docs live.

Claude-Session: https://claude.ai/code/session_01AJNt2NDQJLGKWFt56CGZVv

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

🔭 Projector review · model claude-opus-5[1m] · effort xhigh · CHANGES REQUESTED · took 18m 53s over 2 heads

3 finding threads: 0 resolved, 3 open.

Reviewed 78440ed. The head moved from e8b9040 while this review was running, and the second commit fixes everything that was blocking on the first: frontmatter now carries status and priority as two fields, project check passes where it had rejected all 27 plans with exit 65, the twelve backlog items that the first head deleted along with later.md are back as their own project directories, and the dangling later.md citation in src/commands/generate.ts is repaired. The README also recovers the field-specific conventions the first head dropped. This review is against the new head only.

What I checked

Every claim in the Testing section reproduces. I extracted the head to a scratch directory instead of checking it out, so the working tree was never touched:

git archive 78440ed | tar -x -C /tmp/head
project --root /tmp/head --projects-dir /tmp/head/docs/projects check   # "Project plans are valid.", exit 0

project list reports 39 projects grouped exactly as the body says — add-insert and plugin-hosting under now, ui under next, seventeen later, nineteen completed. Both retired-layout sweeps print nothing and exit 1 when run from the extracted tree. git diff --check is clean. The only source change is a one-line comment, so nothing here can move behaviour.

I ran the sweep the way this repo requires, git grep -l with and without -I, and the two agree at this head. Nothing is hiding in a file a stray NUL byte has made binary. All 209 relative links under docs/ resolve to blobs that exist, and projects/all/ has zero occurrences tree-wide. The thirteen surviving mentions of later.md are deliberate historical prose of the form "this entry carries the line later.md held before the Projector migration", which reads correctly.

The twelve new plans preserve their later.md lines faithfully, including the detail worth keeping — lint-and-format still records that prettier costs a ~1,900-line reformat and that #83 was 312 lines, which is the kind of thing that is expensive to rediscover.

Readiness gate

No plan is flipped into an executable-readiness claim by this diff, so no open question blocks it. The two plans at in-progress carried Active at the base, so the translation changes their spelling and not their claim. The twelve new plans and the four converted ones are all draft, where open questions are expected and do not withhold approval.

The three findings

One theme: the PR writes down three rules and the tree does not yet follow them. None breaks a tool, which is why the validator is happy, and each would mislead the next person or agent reading these documents as authoritative.

Comment thread AGENTS.md Resolved
Three findings on 78440ed share one cause: the migration moved every plan
into Projector's layout but left the conventions attached to the old layout
speaking the old vocabulary.

Plan prose still told a future pull request to set `Active`, a status the
validator rejects. Reproduced against this Projector: a plan carrying
`status: Active` fails `project check` with exit 65, and `in-progress` exits
0. Five instructions across four plans now name statuses that validate.
Historical `**Status:** Shipped` prose is left alone, because it records what
happened rather than instructing anyone.

The citation convention contradicted itself two lines apart. The new README
introduced `project-core/readme.md §3.2` while the file beside it, the twelve
new plans, and 406 citations tree-wide use the `project-core.md §6` shorthand
— 58 of those under `docs/` and the rest in code comments, counted with
`git grep -o -E '[a-z][a-z0-9-]*\.md §'`. Keep the shorthand, which costs
nothing, and document what it names; sweeping instead would edit several
hundred files to say what the short form already says. The one comment this
branch had already converted goes back to the shorthand.

The rule defining *done* for this repository was dropped rather than
translated. The old README finished a project only once a real session had
exercised it, usually after real music had been made with it, and recorded
that by keeping it on `now.md`. Eight projects were marked `completed` on
merge, and their conditions went with the deleted list. Restore them to
`in-progress` at `priority: now` with each condition back in its plan, and
state the rule in the README so the next reader knows `completed` is a claim
about use rather than about merging. `project list` now reproduces the old
`now.md` exactly: the same ten projects.

Claude-Session: https://claude.ai/code/session_01AJNt2NDQJLGKWFt56CGZVv

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

🔭 Projector review · model claude-opus-5[1m] · effort xhigh · APPROVED · took 2m 25s

3 finding threads: 3 resolved, 0 open.

Reviewed 6662d71. All three findings from 78440ed are fixed, I verified each against the code rather than against the replies, and I found nothing new. The head looks clean. A human approval is what remains, since this loop does not cast one.

Verifying the three fixes

Invalid status instructions. All five instruction sites now name statuses the validator accepts, and a search for the instruction pattern across the whole tree returns nothing:

git grep -n -E 'flips? (it|this plan)? ?to `?(Active|Draft|Shipped)`?|status to (Active|Shipped)|flip-to-(Active|Shipped)|stays `?(Draft|Active)`?' 6662d71 -- .

Leaving the historical prose alone is right, and the distinction you drew is the correct one. render-pipeline/readme.md:9 recording "Status: Shipped, chunks 1–6" states what happened; it does not tell the next author which keyword to type. The finding was about instructions and only instructions changed.

Citation convention. The README now documents the shorthand and explains why it survives the move, so the rule and the tree agree. Your 406 and 58 reproduce exactly under your own command, and they measure the better thing — a citation carrying a section is the load-bearing case, where my 756 also counted plain filename mentions. Reverting src/commands/generate.ts:508 to generation-progress.md's line was the right call on the same logic: it was the single converted site, so it was the outlier rather than the model. AGENTS.md needing no edit is the correct outcome under option 1 and I confirmed both its citations resolve.

The finishing rule. This is the fix I checked hardest, because "restored faithfully" is easy to assert and easy to get subtly wrong. It is faithful:

$ project list --priority now
now:
  add-insert  cross-rate-live  multi-rate  nested-tracks  plugin-hosting
  project-core  realtime  reverbs  voice-generation  watch      (all in-progress)

That set is identical to the ten now.md held at origin/main, which I extracted from the base commit and compared sorted, not eyeballed. Each of the eight restored plans carries its own closing condition on its **Outcome:** line, and the conditions match the ones the deleted list carried. The README states the rule as a rule: shipping the code does not finish a project, a landed but unexercised plan stays in-progress at priority: now, and completion is when the condition is met rather than when the last pull request merges.

Your point about which decision a layout migration is allowed to make is the right principle, and it is worth recording. Retiring the definition of done is a product decision, and it should not arrive as a side effect of moving files.

The rest of the head

project check exits 0. All 224 relative links under docs/ resolve to files that exist. Both retired-layout sweeps print nothing and exit 1. git diff --check is clean. The twelve restored backlog projects are all present at draft. The fourteen surviving mentions of the old list filenames are all deliberate historical prose, including the new one at README.md:61 explaining why the rule needed restating.

The sweep was run the way this repo requires, with and without -I, and the two agree at 14 files, so nothing is hiding in a file a stray NUL byte has made binary.

I did not run the test suite. The only source change in this pull request is a one-line comment, which I confirmed by reading the full source diff against the base, so the suite cannot be affected by it and running it would tell me nothing about this change.

Readiness gate

Eight plans move to in-progress, which is an executable-readiness claim, so I checked what it owns. None of them flips from a non-claiming status: at the base they were Shipped, and add-insert and plugin-hosting were Active, all of which already claimed executability under the old scheme. So this diff changes how the claim is spelled and not whether it is made, and it introduces no new questions into those plans.

One open question sits on a plan at in-progress: watch/readme.md §5, the status-visibility question, which the plan's own **Outcome:** line names as its closing condition. It predates this pull request — §5 is open at the base commit too — so it is noted here rather than filed as a thread, since this change did not introduce it and does not own it.

The twelve new plans and the four converted ones are draft, where open questions are expected and withhold nothing.

@ninjudd
ninjudd merged commit 7185f90 into main Sep 6, 2026
1 check passed
@ninjudd
ninjudd deleted the adopt-projector branch September 6, 2026 20:35
ninjudd added a commit that referenced this pull request Oct 10, 2026
Brings the branch up to date with main, which adopted the Projector
layout (#164) underneath it.

- docs/projects/now.md and later.md are deleted on main; the plan's
  priority moves to frontmatter instead.
- The plan lives at docs/projects/windows-portability/readme.md. Its
  frontmatter becomes status: in-progress and priority: now, the
  Projector spelling of this branch's Active flip.
- Prose this branch added now says draft/in-progress rather than
  Draft/Active, and its links use the ../<name>/readme.md form.
- docs/README.md's two links into the deleted docs/projects/all/ point
  at the new readme.md paths.
ninjudd added a commit that referenced this pull request Oct 10, 2026
Brings the UI up to date with its parent, which now carries main: the
Projector layout, recording chunks 1-4, and the remote.

Docs, moved to the Projector layout (#164):

- docs/projects/all/ui.md becomes docs/projects/ui/readme.md, where
  main already carried #156's plan. A three-way merge against #156's
  original keeps this branch's implementation and main's wording
  changes; the frontmatter is status: in-progress, priority: now, which
  is what this branch's Active flip and its now.md line said.
- docs/projects/all/daw-features.md becomes
  docs/projects/daw-features/readme.md with status: draft and
  priority: later, from its later.md line; "Reference" is not a
  Projector status. Its links into sibling plans use the
  ../<name>/readme.md form, and its later.md links point at the
  projects those lines became (mcp-surface, analysis-workers). The
  link to ui-timeline.md is unlinked and marked not yet written: no
  such plan has ever existed, and project check refuses the dead link.
- project-core's two amendments link ui.md as ../ui/readme.md.
- now.md and later.md are deleted on main; their lines live in
  frontmatter now.

Code, where both sides added a block at the same place:

- src/cli.ts keeps this branch's `field ui` and main's `field record`.
- src/graph/build.ts keeps this branch's renameOverwrite() and main's
  fetchAction().
- package.json keeps build:ui beside main's bounded native build with
  this stack's --config Release.
ninjudd added a commit that referenced this pull request Oct 10, 2026
Brings the CLI manual up to date with main. The merge is clean, but main's Projector layout (#164) moved the plans out of docs/projects/all/, so the manual's two links to windows-portability and linux-portability now use docs/projects/<name>/readme.md. Every relative link in docs/cli.md resolves on the merged tree.
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