Repository navigation
LF on every platform: content hashes survive a Windows clone (windows-portability.md chunk 1) - #157
Conversation
…-portability.md chunk 1) field hashes file content as it sits on disk — .scd programs are action-key inputs, `check`'s canonical-formatting comparison is byte-wise, asset pins are the sha256 of committed bytes, and toPluginWire refuses a state blob that stops hashing to its filename. Git for Windows defaults core.autocrlf=true, so a fresh Windows clone rewrote every text file to CRLF on the way to disk and changed all four answers while `git status` stayed clean — git compares normalized content, field reads the working tree. windows-portability.md §1.1 measured it: creek-kit.scd landed with 71 CR bytes and a different sha256 than its committed form. One committed file ends the dependence on per-contributor git config: `* text=auto eol=lf`, with binary overrides for the audio extensions and `*.state` so captured plugin state never rides the binary heuristic — neither type is in the tree today, and the rules exist so the first one arrives safely. `git add --renormalize .` confirms no committed blob changes: everything in history is already LF. The plan flips Draft → Active in this diff, since chunk 1 is where implementation begins, and answers §2's decisions as the flip requires: named pipes over loopback TCP, no non-daemon fallback for `field play` on Windows, a platform branch inside socketPathFor, and the "V1 platform scope" amendment riding this change — Windows and Linux become build-and-test targets in docs/README.md rather than list entries beside Logic and Atmos, reusing linux-portability.md decision 5's framing. The product still ships on macOS. Co-Authored-By: Claude Fable 5 <[email protected]>
|
Starting review of 83be311. |
eve-nyx-13
left a comment
There was a problem hiding this comment.
Findings below; requesting changes on 83be311540401be046b5664894612571859108d1. Submitted as a COMMENT review because the reviewing account authored the pull request and GitHub refuses REQUEST_CHANGES there — the verdict is the words, not the event.
What held up
The .gitattributes is correct, and the interesting part is the part git check-attr makes look broken:
$ git check-attr text eol diff -- shared/plugins/abc.state
shared/plugins/abc.state: text: unset
shared/plugins/abc.state: eol: lf <- still inherited from `* text=auto eol=lf`
shared/plugins/abc.state: diff: unset
eol=lf still matches the very paths binary exists to protect, so I did not reason about it. A throwaway repo with this exact file, a .state blob carrying CRLF and no NUL bytes — the case §1.1 says the binary heuristic would not spare — cloned with core.autocrlf=true:
shared/plugins/deadbeef.state disk=834ef20666084c99 blob=834ef20666084c99 MATCH CR=3
sample.wav disk=59c8d02c9168b979 blob=59c8d02c9168b979 MATCH CR=2
prog.scd disk=79db67b5cd762953 blob=79db67b5cd762953 MATCH CR=0
-text short-circuits the eol handling, so the override holds and a state blob keeps its bytes — toPluginWire is safe. The same repo with .gitattributes deleted diverges exactly where the plan predicts:
prog.scd disk=3477f348d2f33925 blob=79db67b5cd762953 ** MISMATCH **
Also checked, all clean:
- The proof numbers reproduce. A worktree at this SHA gives
creek-kit.scd= 2252 bytes, 0 CR bytes,49f970a7db30fc97…, matching §1.1's LF form. git add --renormalize .stages nothing, as the body claims — every blob in history really is already LF.- Nothing in the tree is at risk. Git detects no binary file anywhere in it, so
* text=auto eol=lfhas no conversion candidate it could damage today, and the seven audio extensions plus.stateare pre-emptive by design. - The
docs/README.mdCI claim is accurate..github/workflows/ci.ymlrunspnpm build:nativeandpnpm testonubuntu-latest, andlinux-portability.mddecision 5 reads as cited.
No code changed, so there is no suite to run against this SHA beyond the attribute behaviour above.
Why this is not an approval
Draft → Active is the readiness claim, so it answers for every question open in the plan at that moment, not only the ones the diff touched. §6 still carries three without a disposition, and one of those three is the plan's own precondition for trusting chunk 1. Details inline.
…ing its own diff The review's blocking finding on the Draft→Active flip: three of §6's four questions carried no disposition, and "Unverified" is a hedge rather than a deferral. The detached spawn and the WASAPI device story are now explicit chunk-4 deferrals — both resolved by building the transport, which is the first thing that can observe either — and the hash grep is answered with the review's own evidence: every non-test hasher reaches bytes through src/hash.ts inside families §1.1 already names, and the one byte-consumer that is not a hash (field check's canonicalText comparison at model/project.ts:1190) is written down so a future grep for createHash does not miss it. The medium finding: the plan described the world its own diff ended. The Goal paragraph said Windows "is currently written down as an explicit V1 non-goal" while the same commit moved it; §1.1 opened present-tense about a missing .gitattributes the diff adds; §5 chunk 1 still read "Lands first". All three now speak from after the landing, with §1.1's measurements kept as the dated assessment they are. The low finding: the out-of-scope list reflows to the suggested wrap, ending the ragged block deleting "Windows, Linux, " left behind. Co-Authored-By: Claude Fable 5 <[email protected]>
|
Starting review of db2f3e3. |
eve-nyx-13
left a comment
There was a problem hiding this comment.
No findings on db2f3e3977d4c79315324c31c9c1f68a8271c1f4; this is an approval in words. Submitted as a COMMENT review because the reviewing account authored the pull request — see the note at the end about what that costs here, which is not nothing.
What I checked on this head
All three findings from 83be311 are fixed, and I verified each against the file rather than the reply:
- §6 now carries a disposition on every question that lacked one. Q1 and Q3 are explicit deferrals — "Deferred to chunk 4, and resolved by building it", and Q3 naming
field devicesagainst WASAPI plus one unplug during playback as the test — which is the shape that defers rather than hedges. Q4 is answered with the grep. - Q4's answer matches what I actually found. Every claim in it re-checks: the hashers all reach bytes through
src/hash.ts, the caller families are right, andmodel/project.ts:1190'scanonicalText(file.raw, …) !== file.rawagainst the rawreadFileSyncat line 131 is correctly called out as the byte-consumer acreateHashgrep misses. - The prose no longer predates its own diff. The Goal paragraph, §1.1's opening and fix paragraph, and §5 chunk 1 all read as history now, and
now.md's "chunk 1 landed" no longer sits against a plan withholding trust in chunk 1. docs/README.mdreflowed, 65–68 columns across the paragraph.
No regressions in the fix range:
.gitattributesis byte-identical between the two heads (7cae0f9both times), so the behaviour I verified on83be311— thebinaryoverride holding against a CRLF.stateblob with no NUL bytes, despiteeol=lfstill matching those paths — carries over unchanged.- No section was renumbered, so no citation into this plan broke.
- The whole pull request is
.gitattributesplus documentation — no code, so there is no suite whose result would differ frommain.
The readiness gate
The plan is Active, so its open questions gate, and this is the diff that made that claim — it answers for all of §6, not only what it introduced. It now does: two explicit chunk-4 deferrals and one answered question.
One non-blocking note, flagged so the reasoning is visible rather than silently applied. §6's second question — "Is the 104-byte reasoning simply gone, or replaced?" — is the one item that did not get a marker, and it still reads conditionally ("If named pipes win"). I am not withholding on it, for two reasons: §2.1 settled that condition and §2.3 states the consequent outright, so a reader executing chunk 4 has an unambiguous instruction rather than a gap; and my review of 83be311 counted it among the questions that already carried a disposition, so blocking on it now would be moving the line after you built to it. It would read better with the same explicit marker its three siblings now have — "Answered by §2.1/§2.3: replaced" — but that is tidying, not a condition of merging.
What still blocks the merge, and it is not the review
mergeStateStatus is BLOCKED and will stay that way after this review. The ruleset on main requires required_approving_review_count: 1 with require_last_push_approval: true, and GitHub will not accept an APPROVE from the account that opened the pull request — so this loop cannot supply that approval no matter how clean the review is. The three threads from the previous head are resolved, so required_review_thread_resolution is satisfied; the approving review is the only thing outstanding, and it needs a different account. Worth knowing that dismiss_stale_reviews_on_push: true means that approval has to land after the final push.
minjudd
left a comment
There was a problem hiding this comment.
🔭 Projector review · model claude-opus-5[1m] · effort xhigh · CHANGES REQUESTED · took 4m 46s
7 finding threads: 3 resolved, 4 open — this review opens the 4; the 3 resolved are from the earlier review pass on this pull request.
The .gitattributes half is right, and I verified the reasoning behind it. Every claim in the file's header comment holds: indexStateBlobs (src/audio/plugins.ts:162-190) only admits a *.state file whose stem is 64 hex characters, and the drift guard it names lives in verifyAssetHashes; field check's canonical-formatting gate really does compare raw bytes rather than a digest (src/model/project.ts:1190), which is the one CRLF-sensitive consumer a createHash grep would miss. I also checked the thing the file does not say, expecting to file it: whether any committed blob already carries CRLF, since * text=auto eol=lf does not renormalize an index that already holds CRLF and would need a git add --renormalize . to follow. Nothing in the tree does — I walked every path in git ls-files at this head — so the file is sufficient as written and no renormalization step is missing.
What blocks this is that main moved underneath the branch. #164 (Adopt Projector project layout, merged 2026-09-06) replaced docs/projects/all/<name>.md with docs/projects/<name>/readme.md and deleted now.md, next.md and later.md outright, replacing the three queue files with priority: frontmatter. This pull request was opened 2026-08-17 against the layout that preceded that, so none of this is a mistake made at the time — but as the head stands it cannot merge, and one part of it merges cleanly into breakage, which is the finding I would most want seen.
gh pr view reports mergeable_state=dirty, and a trial merge in a scratch clone names three conflicts: docs/projects/later.md and docs/projects/now.md as modify/delete, and docs/projects/windows-portability/readme.md as a content conflict where git followed the rename. docs/README.md is the dangerous one, because it is not in that list — it auto-merges, and the merged result carries two links into the directory #164 deleted.
On CI: the only check run on db2f3e39 is linux, and it failed after three seconds with no output. That is the Actions spending cap, not a test — the job annotation reads "The job was not started because recent account payments have failed or your spending limit needs to be increased." Nothing to fix on the branch, and no code signal to read from it either.
On the readiness gate: this diff flips the plan from Draft to Active, which is an executable-readiness claim, so it owns every question open at the flip. Three of §6's four questions carry explicit dispositions — two deferred to chunk 4 with the verification named, one answered by the systematic hasher grep — and the fourth is answered by §2.3 in the same diff, though it does not say so in its own words. That is the P3 below, not a gate failure. The gate passes.
Each plan gives the flip to in-progress to the change that answers its open questions: windows-portability §2 and §2.4, and ui §4 and §5. Those questions are still open on main. #157 and #163 answer them and flip the status in the same diff, but neither has merged, so marking the plans in progress here would leave each one claiming a status its own text forbids. Both files now match main.
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.
…o date (#176) The project plans had drifted from `main`, and one rule in `docs/projects/README.md` was keeping them that way. The rule held a project at `in-progress` and `priority: now` after its code shipped, until real music had been made with it. Projector defines `completed` as "the project no longer needs work", so the rule bent both fields. Ten of the twelve projects at `now` had shipped, and `project list` could not tell them from the two still being built. This change removes the rule, closes projects when their work is done, and brings every open plan up to date with `main`. Eleven projects complete. `project-core`, `multi-rate`, `cross-rate-live`, `realtime`, `reverbs`, `nested-tracks`, `voice-generation`, `recording` and `add-insert` shipped. `watch` was superseded when realtime's chunk 3 (#139) replaced its play half. `engine-umbrella` is abandoned, because the docs now use "engine" for `field-audiod`. Each `**Outcome:**` line names what shipped and which acceptance clauses stand short, so closing a project does not claim more than was proven. For example, `reverbs` records that creek's room was never chosen, and `recording` records that its latency compensation has never been checked against an Apollo take. Owed work that would otherwise have closed with its parent moves somewhere it stays visible. Five draft stubs carry it: `track-rename` from project-core §6, `pickups` from nested-tracks §1.6, `streaming-rings` from realtime §7, `comping` from recording §10, and `apollo-session` from recording §11, §12.10 and §13.2. `apollo-session` holds the work that waits on a take recorded on the Apollo: the loopback latency measurement, the checks owed to the first hardware session, and the `hardware/` schema. `add-insert`'s editor handoff moves into plugin-hosting's chunk 3, which builds the `field open` it needs. After the audit, `plugin-hosting` is the only project at `now`. `remote`, `ui` and `streaming-rings` are at `next`; remote §9.1 records why its last chunk can wait for the site's render worker. Everything else is at `later`, including `windows-portability`. `windows-portability` and `ui` stay `draft`, though #157–#161 and #163 implement them. Each plan gives the flip to `in-progress` to the change that answers its open questions, and those questions are still open on `main`. #157 and #163 answer them and flip the status in the same diff, so the status moves when they merge. Their priorities get revisited once those PRs are reviewed. The plans that stay open lose the close-condition Outcome lines the rule gave them, and their bodies carry their progress instead. Text the audit found stale is corrected after each claim was checked against the code or the site's plan: - `plugin-hosting` §2 and §7 pointed the cross-machine cache at `remote-asset-store`, but the `remote` plan took that role. - `remote` §9.11 gains the answer the site's plan gave in audiofield-io §10.15. - `lint-and-format`'s reformat cost was re-measured with #88's own probe. It is now 5,209 lines across 86 files, up from 1,916 across 40. The plan's copy of the probe reformats a temporary copy of `src/`, so pasting it never rewrites the repository. - `splice` no longer claims to be Field's first interactive surface. - `automation` gains the tempo-map conflict with playback §3.6 as an open question. - `docs/README.md`, `architecture.md`, `audio-engine.md` and `project-model.md` stop describing shipped work as future. `AGENTS.md` drops `afconvert` from its stack list, because project-core §5 recorded it as superseded. `project init` also refreshed the generated Projector section of `AGENTS.md` to version 2, which adds the template's paragraph on opening dependent work as a `gh stack`. ## Testing Run these from the repository root on this branch. The first four read files only, need nothing built, and leave no state behind. ```sh project check ``` You should see `Project plans are valid.` and no `instructions-outdated` warning. Any error here, or the warning still printing, means a frontmatter edit or the `AGENTS.md` refresh is wrong. ```sh project list ``` `now` should list only `plugin-hosting`. `next` should list `remote` as `in-progress`, and `streaming-rings` and `ui` as `draft`. `later` should list every project as `draft`, including `windows-portability`, `apollo-session`, `comping`, `pickups` and `track-rename`. `completed` should include the eleven projects above. A completed project that still has unbuilt work with no stub to carry it, or an open project with nothing left to do, means a status edit is wrong. ```sh grep -rn "Stays open\|neighbours' precedent\|Shipping the code does not finish" docs/ ``` This should print nothing. Any match is a leftover of the removed rule. ```sh git diff --check origin/main ``` This should print nothing. To check the `lint-and-format` figures, run the four-line probe in `docs/projects/lint-and-format/readme.md` from the repository root, then `git status`. The probe needs the network for `pnpm dlx prettier@3`, and it leaves a reformatted copy of `src/` in a `mktemp` directory. It should print `5209`, then `86`, and `git status` should still be clean. A modified file under `src/` means the probe wrote to the repository. The Outcome lines and corrections cite PRs, sections and code that were checked against `main` at `3d26d52`, and the site's plan in the `audiofield` repository. Each "stands short" claim names a section of its own plan, so you can confirm it with `project show <name>` and the cited section. <!-- projector-summary v=1 sha=66b04ee498828290a904d5c87095fd14dcd0d22f --> 📽️ **Projector summary** of 66b04ee: https://field.amnes.ac/reviews/176
ninjudd
left a comment
There was a problem hiding this comment.
📽️ Projector review · 0.7.3 · model claude-opus-5-5 · effort xhigh · CHANGES REQUESTED · took 9m 22s
This pull request adds a root .gitattributes that checks text out with LF line endings on every platform and marks committed audio and captured plugin state (*.state) as binary. A Windows clone with core.autocrlf=true then hashes the same bytes as every other platform. The same diff moves the Windows portability plan from draft to in-progress at priority: now, records §2's four decisions as decided, gives §6's open questions dispositions, and moves Windows and Linux in docs/README.md from out of scope to build-and-test targets. The build, determinism, and transport work stays with chunks 2 to 5. This head merges main into the branch, which carries the change onto the plan layout main adopted in #164.
4 finding threads: 3 resolved, 1 open
Covered 3 of 3 changed files; no generated files skipped.
I reviewed this head without running its code. Its author, eve-nyx-13, has no write access to this repository, so the head is untrusted, and no test, build, or validation gate ran. The checks below read the tree with git's own read-only commands, shasum, and Projector's project check, none of which executes code from the head. I did not reproduce the Windows clone transcript in the pull request body on a Windows machine.
One finding thread from the earlier review stays open. Line 362 of the plan asks whether the 104-byte reasoning is gone or replaced, and still says "If named pipes win", although §2.1 now decides named pipes and §2.3 answers the question. Give that bullet a disposition that points at §2.3, as the other three bullets in §6 have, or reply in the thread to decline it. Nothing else on this head is outstanding.
Earlier findings, settled against this head:
- The queue-file conflict (
docs/projects/now.md). Fixed and resolved. The merge dropped the edits to the deleted queue files, and the move is now thepriority: nowfrontmatter. - The dead
projects/all/links indocs/README.md. Fixed and resolved. Both links point atprojects/<name>/readme.mdfiles that exist. - The frontmatter vocabulary. Fixed and resolved. The plan reads
status: in-progressandpriority: now, andproject checkpasses. - The §6 wording. Still open and unanswered, so it stays open.
Readiness gate. The plan moves from draft to in-progress, so this change owns every question open in the plan. §6 has four. The detached-spawn and WASAPI questions are explicitly deferred to chunk 4, with their tests named. The hasher question is answered, and its conclusion still holds at this head. The 104-byte question is answered by §2.3, and the open thread asks only that §6 say so. §4's question about CPython and AF_UNIX sits in the out-of-scope list and needs no answer. The gate passes.
What I checked:
- Attribute resolution.
git check-attrgivestext: autoandeol: lfforcreek-kit.scdand theexamples/bloomYAML files, andtext: unsetfor.wav,.aiff, and.statepaths, so the binary overrides win. No nested.gitattributesexists to override the root file. - Committed content.
git ls-files --eolshows 283 blobs with LF endings and 6 with none. No blob carries CRLF and none is binary, so the file changes no committed content and needs no renormalization. No audio or.statefile is committed, so the comment's "neither type is in the tree today" holds. - The measurement.
creek-kit.scdat this head is 2,252 bytes with sha25649f970a7…, the LF form §1.1 records. - The comment's claims.
src/audio/plugins.ts:296-299refuses a state blob whose bytes stop hashing to its filename, as the comment says. docs/README.md. The CIlinuxjob runspnpm build:nativeandpnpm testonubuntu-latest, and linux-portability.md decision 5 reads as cited. No other root document states a platform scope that contradicts the new paragraph.- Integration. Every link in the plan resolves.
mainhas two commits past this merge base, #175 and #176, and neither touches this diff's hunks. GitHub reports the pull request mergeable.
Suggestions
docs/projects/windows-portability/readme.md:382— §6's hasher answer listsclick, which no longer hashes anything, and leaves outsrc/commands/land.ts:169, which hashes landed.wavtakes. Line 388 citesmodel/project.ts:1190, which at this head is unrelated code, because thecanonicalTextcomparison moved to:1324. Refresh the references or cite symbols in place of line numbers. The conclusion still holds: every hasher of file bytes goes throughsrc/hash.tsand belongs to a family §1.1 names.docs/projects/windows-portability/readme.md:77—field initstill writes an LFS-only.gitattributesinto every new project (src/commands/init.ts:59-65). It uses the same seven audio patterns as the sample-project file §1.1 describes, so a Windows clone of a project made byfield initstill checks its text out as CRLF. This repository's file protects only this repository andexamples/bloom. Record that gap as a chunk or an open question while the plan goesin-progress. The gap predates this pull request, which does not widen it.- The pull request body still describes the flip as
Draft→Active, linksdocs/projects/all/windows-portability.md, which no longer exists, and saysnow.mdpicks up a line fromlater.md. The squash merge makes the body the commit message (AGENTS.md, "Pull requests"), so bring those three statements in line with the merged diff.
The other three bullets in §6 carry a bold disposition, and this one still read "if named pipes win" although §2.1 decided named pipes and §2.3 says what socketPathFor does about it. Say so in the same form as its siblings. The hasher answer beside it also named stale code: click no longer hashes anything, land hashes each landed take, and the canonical-formatting check moved. Cite the module instead of a line number that drifts.
main has no .gitattributes at the root; that file arrives with #157, and this branch can land before it. The rest of the comment already says why the test exists.
ninjudd
left a comment
There was a problem hiding this comment.
📽️ Projector review · 0.7.3 · model claude-opus-5-5 · effort xhigh · CLEAN · took 1m 32s
This pull request adds a root .gitattributes that checks text out with LF line endings on every platform and marks committed audio and captured plugin state (*.state) as binary. A Windows clone with core.autocrlf=true then hashes the same bytes as every other platform. The same diff moves the Windows portability plan from draft to in-progress at priority: now, records §2's four decisions as decided, gives every §6 question a disposition, and moves Windows and Linux in docs/README.md from out of scope to build-and-test targets. The build, determinism, and transport work stays with chunks 2 to 5. Since 11a07ed, the one new commit edits only §6 of the plan.
4 finding threads: 4 resolved, 0 open
Covered 3 of 3 changed files; no generated files skipped.
I reviewed this head without running its code. The pull request's author, eve-nyx-13, has no write access to this repository, so the head is untrusted, and no test, build, or validation gate ran. The checks below read the tree with git's own read-only commands, shasum, and Projector's project check, none of which executes code from the head. I did not reproduce the Windows clone transcript in the pull request body on a Windows machine.
The head looks clean. A human approval is what remains.
Earlier findings, settled against this head: all four threads from the review of db2f3e3 are fixed and resolved. The last one, the §6 wording on the 104-byte question, is fixed by this head's commit: the bullet now reads "Answered by §2.1 and §2.3", in the same form as its three siblings. That thread's one reply holds a file path rather than text, but the plan itself shows the fix.
Readiness gate. The plan moves from draft to in-progress, so this change owns every question open in the plan. Each of §6's four questions now carries an explicit disposition. The detached-spawn and WASAPI questions are deferred to chunk 4 with their tests named. The 104-byte question is answered by §2.1 and §2.3, and chunk 4 writes the Windows branch. The hasher question is answered and re-checked at this head. §4's question about CPython and AF_UNIX sits in the out-of-scope list and needs no answer. The gate passes.
What I checked:
- Attribute resolution.
git check-attrgivestext: autoandeol: lfforcreek-kit.scdand theexamples/bloomYAML files, andtext: unsetfor.wav,.aiff, and.statepaths, so the binary overrides win. No nested.gitattributesexists to override the root file. - Committed content.
git ls-files --eolshows 283 blobs with LF endings and 6 with none. No blob carries CRLF and none is binary, so the file changes no committed content and needs no renormalization. No audio or.statefile is committed, so the comment's "neither type is in the tree today" holds. - The measurement.
creek-kit.scdis 2,252 bytes with sha25649f970a7…, the LF form §1.1 records. - The comment's claims.
src/audio/plugins.ts:296-299refuses a state blob whose bytes stop hashing to its filename, as the comment says. - §6's hasher answer. The eight modules that import
src/hash.tsare exactly the families it names:export,generate,import,land,graph/build, andmodel/projectfor asset pins,audio/pluginsfor the state-blob refusal, andgenerators/supercolliderfor thesc-renderaction key.click.tsno longer hashes anything.land.tswrites each take's sha256 into its ledger row.remote/client.tshashes download bytes off the network. docs/README.md. The CIlinuxjob runspnpm build:nativeandpnpm testonubuntu-latest, and linux-portability.md decision 5 reads as cited. No other root document states a platform scope that contradicts the new paragraph.- Integration.
project checkpasses, and every link in the plan resolves.mainhas two commits past this merge base, #175 and #176, and neither touches this diff's hunks. GitHub reports the pull request mergeable.
Suggestions
docs/projects/windows-portability/readme.md:77—field initstill writes an LFS-only.gitattributesinto every new project (src/commands/init.ts:59-65). It uses the same seven audio patterns as the sample-project file §1.1 describes, so a Windows clone of a project made byfield initstill checks its text out as CRLF. This repository's file protects only this repository andexamples/bloom. Record that gap as a chunk or an open question. The gap predates this pull request, which does not widen it.
…d §1.1) (#159) The sharpest standalone item from the §7 inventory (#158): #157 gives the engine repo its `.gitattributes`, but every project `field init` creates is still born without the line that matters. `init` wrote the seven LFS filter rules and nothing else, so a project cloned to Windows under git's default `core.autocrlf=true` gets CRLF in every text file — and field hashes working-tree bytes, so asset pins, `.scd` action keys, and `check`'s byte-wise formatting gate all change their answers while `git status` stays clean. That is §1.1 of the plan, "The checkout corrupts content hashes before any code runs", happening to user projects rather than to the engine. ## What init writes now ```text # Text checks out LF everywhere: field hashes file bytes as they sit # on disk, so line endings are pinned rather than platform-dependent. # Binary rules below override (last match wins); audio and plugin # state are never touched. * text=auto eol=lf *.wav filter=lfs diff=lfs merge=lfs -text …(the seven LFS rules, unchanged)… *.state binary ``` The blanket LF rule first, the overrides after it — last match wins, which is the mechanism, and the same shape #157 proved with a fresh clone on a real Windows machine (0 CR bytes, `creek-kit.scd` back at its committed hash). #157's review independently reproduced the `.state` override holding against a CRLF blob with no NUL bytes, so the one new pattern here rides proven mechanics. ## What the docs say `docs/project-model.md` "Assets" now says that a new project pins LF, and why: field hashes files as they sit on disk, not as Git stores them. `init` keeps a `.gitattributes` that already exists, so a project created before this change never gets the rule on its own. The same paragraph tells that project's owner to add `* text=auto eol=lf` by hand above the LFS lines. ## Testing I ran these from the root of a worktree of this branch at `4eabd58`, `/Users/justin/amnesiac/field/.claude/worktrees/agent-a1beb3dd6e289bbeb`, after `pnpm install --frozen-lockfile`. Substitute your own checkout's path where it appears below. `pnpm build` writes `dist/`, which is gitignored, and the scratch project stays under `/tmp/field-159-album` until you delete it. ```sh pnpm typecheck pnpm exec vitest run src/commands/init.test.ts ``` `tsc --noEmit` prints no errors, and vitest reports `Tests 1 passed (1)`. The test asserts that the first rule after comments and blank lines is `* text=auto eol=lf`, that all seven LFS rules keep `-text`, and that `*.state binary` is present. Against `main`'s `init` it fails with the message below, which is what you see if the LF rule is missing or no longer first: ```text × init .gitattributes > pins LF for text before the binary overrides, so hashes survive any checkout → expected '*.wav filter=lfs diff=lfs merge=lfs -…' to be '* text=auto eol=lf' ``` To reproduce that failure, run `git show origin/main:src/commands/init.ts > src/commands/init.ts`, rerun the vitest command, then `git restore src/commands/init.ts`. To check the attributes a new project resolves, build the CLI and initialize a scratch project: ```sh pnpm build mkdir -p /tmp/field-159-album && cd /tmp/field-159-album node /Users/justin/amnesiac/field/.claude/worktrees/agent-a1beb3dd6e289bbeb/dist/cli.js init git -C /tmp/field-159-album check-attr text eol -- song.scd field.yaml sample.wav pad.state ``` `init` prints `initialized Field project at /private/tmp/field-159-album`. Then `song.scd` and `field.yaml` show `text: auto` and `eol: lf`, and `sample.wav` and `pad.state` show `text: unset`, so Git converts text and never touches audio or plugin state. If `song.scd` shows `text: unspecified` and `eol: unspecified`, which is what `main`'s LFS-only file resolves to, the project does not pin LF, and a Windows clone writes CRLF. The full suite (`pnpm test`, with `FIELD_AUDIOD` pointing at a built `field-audiod`) passes 800 tests with 1 skipped, and `project check` prints "Project plans are valid." 🤖 Generated with [Claude Code](https://claude.com/claude-code) <!-- projector-summary v=1 sha=4eabd58e0fa92a2f4258cfe2244c3ad196b6a9fb --> 📽️ **Projector summary** of 4eabd58: https://field.amnes.ac/reviews/159 --------- Co-authored-by: Claude Fable 5 <[email protected]> Co-authored-by: Justin Balthrop <[email protected]>
ninjudd
left a comment
There was a problem hiding this comment.
📽️ Projector review · 0.7.3 · model claude-opus-5-5 · effort xhigh · CLEAN · took 2m 34s
This pull request adds a root .gitattributes that checks text out with LF line endings on every platform and marks committed audio and captured plugin state (*.state) as binary. A Windows clone with core.autocrlf=true then hashes the same bytes as every other platform. The same diff moves the Windows portability plan from draft to in-progress at priority: now, records §2's four decisions as decided, gives every §6 question a disposition, and moves Windows and Linux in docs/README.md from out of scope to build-and-test targets. The build, determinism, and transport work stays with chunks 2 to 5. This head merges main after the keyboard-instrument stack (#178 to #182) and #159 landed. The pull request's own diff is identical in content to the one reviewed at b3fd813, so this review checks its claims against the code main brought in.
4 finding threads: 4 resolved, 0 open
Covered 3 of 3 changed files; no generated files skipped.
I reviewed this head without running its code. The pull request's author, eve-nyx-13, has no write access to this repository, so the head is untrusted, and no test, build, or validation gate ran. The checks below read the tree with git's own read-only commands, shasum, and Projector's project check, none of which executes code from the head. I did not reproduce the Windows clone transcript in the pull request body on a Windows machine. The linux CI job was still running when this review was published.
The head looks clean. A human approval is what remains.
Earlier findings. All four threads from the review of db2f3e3 stay fixed and resolved at this head. The merge did not touch the lines they concern.
Readiness gate. The plan moves from draft to in-progress, so this change owns every question open in the plan. Each of §6's four questions carries an explicit disposition. The detached-spawn and WASAPI questions are deferred to chunk 4 with their tests named. The 104-byte question is answered by §2.1 and §2.3. The hasher question is answered, and its conclusion still holds with main's new code, as the first suggestion below explains. §4's question about CPython and AF_UNIX sits in the out-of-scope list and needs no answer. The gate passes.
What I checked against the merged tree:
- Committed content.
git ls-files --eolshows 325 blobs with LF endings and 6 with none. The keyboard stack added no CRLF and no binary file, and still no audio or.statefile is committed, so the rule changes no committed content and the comment's "neither type is in the tree today" holds. Only the root.gitattributesexists. - Attribute resolution.
git check-attrgivestext: autoandeol: lffor text, including the newsc/voice-render.scdandsc/voicer.scd, andtext: unsetfor.wav,.aiff, and.statepaths, so the binary overrides win. - The measurement.
creek-kit.scdis 2,252 bytes with sha25649f970a7…, the LF form §1.1 records. - The comment's claims.
src/audio/plugins.ts:296-299still refuses a state blob whose bytes stop hashing to its filename. - §6's hasher answer. Every non-test hasher of file bytes still goes through
src/hash.ts.click.tshas no hash reference,land.tsstill writes each take's sha256 into its ledger row,remote/client.tsstill hashes network bytes, andgraph/build.tsstill definesactionKey. docs/README.md. The merge brought in onlymain's edits to the documentation index, away from this hunk. The CIlinuxjob runspnpm build:nativeandpnpm testonubuntu-latest, and linux-portability.md decision 5 reads as cited. The newdocs/keys.mdsaysfield keysruns on macOS or Linux, which fits a build-and-test target that is not a product platform.- Integration.
project checkpasses, and every link in the plan resolves. GitHub reports the pull request mergeable againstmainatf80efb6.
The suggestion from the last two reviews, that field init wrote an LFS-only .gitattributes, no longer applies. #159 on main makes field init write the LF rule into every project it creates.
Suggestions
docs/projects/windows-portability/readme.md:385— the hasher list leaves outsrc/generators/voice-render.ts, which #182 added. It hashes the instrument program and field's ownsc/voice-render.scdandsc/voicer.scdinto each MIDI take's render inputs (voice-render.ts:52-56). That puts it in thesc-renderaction-key family, with one difference worth a sentence: the harness scripts are this repository's files, so this repository's checkout bytes now reach a project's cache keys, which this pull request's.gitattributesprotects. Add it beside the other names.
…es, with mute and solo (#163) Implements the [UI plan](../blob/ui/first/docs/projects/ui/readme.md) — ninjudd's plan from #156, which this diff moves from `status: draft` at `priority: next` to `status: in-progress` at `priority: now`, and amends with a new §6, appended at the end, recording what the implementation settled. `field ui <song>` opens a desktop face on a playing song, and every gesture in it ends as an edit to the project's YAML. §3's first-version scope ships as written, plus the two things the plan was waiting on (**mute exists**, and **solo** arrived as a session-only alternate feed), plus four things §3 listed as non-goals, which §6 now records with the reason each was taken. ## Mute is a field, not a gesture `mute:` on the placement beside `gain_db`/`pan` — the loop entry's `enabled:` shape applied to a whole placement, exactly for §2's reason: a gain gesture would overwrite the authored level, and remembering the old value anywhere but the file is a second store. `planFor` excludes muted placements, so the stem spec, its action key, the deps, and the live session all agree the placement is absent, and its sends go silent with it: a cable whose every sender placement is muted carries nothing. Proven in `build.test.ts` and `cables.test.ts`: a toggle re-keys the stem, **re-muting is a cache hit** (the exclusion is deterministic), a source consumed only by muted placements drops out of the deps, and a muted sender drops out of its receiver. ## Solo is a listening gesture, so it lives with play/pause `model/solo.ts` computes an alternate output feed at session compile and holds it nowhere: the soloed track's subtree whole, its carriers keeping only the inputs that lead to it, its send receivers audible transitively — solo drums, keep the room drums feed. Muted placements cannot carry a solo. While a solo is held the server swaps the soloed compile on every file edit instead of ramping, because ramp indexes address the daemon's session and the soloed session's indexes are not the un-soloed compile's, and a track frozen under the solo is served its soloed stem. ## `field ui <song>` One process — field's own, per §4: compiles the session, connects the daemon, serves the built client, carries one WebSocket per view, bound to `127.0.0.1`. A gesture ends as YAML written through the same comment-preserving `Document` machinery every editor uses, and the **existing watch-live loop** carries it into the playing session; the server never pushes an edit to the daemon itself. Both of §4's guards are in: Origin + per-launch token on the upgrade, and every edit carries the sha256 of the file bytes it was derived from — stale is reject-and-refresh, never write-through. File-writing messages run one at a time, and each edit is loaded as the project would be before it is written, so a gesture that would turn the song red is refused with the error instead. The client is a Vite + React workspace package (`ui/`), hand-rolled CSS, opened in an Electron shell that mirrors the page's console to the terminal, or in a browser with `--browser` or when the shell cannot start. Closing the shell, or ctrl-c, stops the transport and ends the session. Musical time projects in the view: the snapshot carries the song's tempo and meter events, and the client builds the same `TempoMap`/`MeterMap` from `src/time/tempo.ts` to run its playhead between the daemon's 250 ms position events (§6 records why the first, server-side answer was reversed). playback.md §3.6's rule — samples cross the daemon socket, music does not — holds unchanged. ## The timeline, clip edits, and the insert panel - **The timeline.** Lanes draw on one time axis under a bar ruler, with a playhead, using the planner's own `placedWindow`, so the picture cannot disagree with the render. Waveforms are the cheap half §3's argument allows: an envelope computed on demand from the stem the build already wrote, over the slice each placement reads. A lane that places a track opens into the placements in that track's file, each row editing its own file under that file's stale guard. - **Clip edits.** Select and drag to move, split at the playhead (Ctrl+E), and drag either edge to trim, each written once on release in the spelling the author used (`src/commands/ui-edits.ts`, tested byte for byte). A looped or cross-rate clip refuses the gestures whose arithmetic would be wrong for it. - **The insert panel.** The selected clip's track chain, with add, edit, and remove for the built-in effects: a knob strip for `limit`, `reverb`, `plate`, and `hall`, and for `eq` a response curve with draggable bands. The curve's arithmetic is `src/audio/eq-response.ts`, a term-by-term port of `biquad.cpp`'s response math under the suite, which render-pipeline.md decision 4 now records as a bounded reversal. A hosted plugin stays read-only. Stack additions, recorded against project-core.md §5: `ws`; react + vite inside the workspace; `electron` as the shell. The diff also adds `docs/projects/daw-features/readme.md` at `status: draft`, a catalogue of what users love in other DAWs and what they wish theirs did, with §16 recording four picks. Each pick is its own project at `priority: later`: `detail-pane`, `actions-and-macros`, `sound-browser`, and `key-conforming`. ## Verified end to end, on real hardware ```text ui smoke (driven over the real WebSocket, real WASAPI device): snapshot: 2 lanes, correct kinds play -> PLAYING, position events streaming mute -> mute: true lands in main.yaml, watch carries it, snapshot reflects solo -> session swaps, soloed held; un-solo swaps back stale-hash edit -> rejected: "file changed underneath — refreshed" ``` That run was eve's, on Windows, before the timeline and the review fixes. CI's `linux` and `windows` jobs run the whole suite on every push. It was developed on top of the Windows stack (#157–#161), because the live loop it exercises needs the pipe transport on eve's machine. That stack has landed, so this branch is now based on `main`; content-wise it is orthogonal to the Windows work. ## Testing Run these from the root of a checkout of `ui/first` on macOS or Linux. `pnpm build:native` builds the daemon into `native/audiod/build`, which the daemon tests need, and `pnpm --dir ui build` writes the client to `ui/dist`, which `field ui` serves. Set `ELECTRON_SKIP_BINARY_DOWNLOAD=1` for the install if you do not need the desktop shell. ```sh ELECTRON_SKIP_BINARY_DOWNLOAD=1 pnpm install --frozen-lockfile pnpm build:native pnpm typecheck pnpm test pnpm --dir ui build project check ``` You should see a clean typecheck, `Test Files 77 passed (77)` and `Tests 984 passed | 1 skipped (985)`, a Vite build that ends `✓ built`, and `Project plans are valid.` The view's server-side logic is covered by `src/commands/ui-edits.test.ts`, which compares written YAML byte for byte, `src/commands/ui-timeline.test.ts`, which checks each lane's `entry`, a child row's origin past `slip` and `source_offset`, and an open window's length, `src/commands/ui.test.ts`, which checks that a request path cannot leave `ui/dist`, `src/graph/live.test.ts`, which checks a frozen track under a solo against the daemon, and `src/model/cables.test.ts`, which checks a muted sender. A failure in `ui-timeline.test.ts` would mean a socket op writes to the wrong entry or a cut lands away from where it was heard. The live checks (play, mute riding the watch, solo swapping, the shell's fallback, the keyboard on faders) need a real output device and a person at the window: run `field ui <song>` in a project with a built daemon. 🤖 Generated with [Claude Code](https://claude.com/claude-code) <!-- projector-summary v=1 sha=f61b4a1f42c00ed6693b9306bcc30b5787e388d0 --> 📽️ **Projector summary** of f61b4a1: https://field.amnes.ac/reviews/163 --------- Co-authored-by: Claude Fable 5 <[email protected]> Co-authored-by: Justin Balthrop <[email protected]>
Chunk 1 of the Windows portability plan, and the diff that moves the plan from
status: drafttostatus: in-progressatpriority: now.Why
field hashes file content as it sits on disk:
.scdprograms are action-key inputs,field check's canonical-formatting comparison is byte-wise, asset pins are the sha256 of committed bytes, andtoPluginWirerefuses a state blob that stops hashing to its filename. Git for Windows defaultscore.autocrlf=true, so a fresh Windows clone rewrote every text file to CRLF on the way to disk and changed all four answers whilegit statusstayed clean — git compares normalized content; field reads the working tree.§1.1's original measurement, on
examples/bloom/shared/instruments/creek-kit.scd:What
One committed file:
* text=auto eol=lf, withbinaryoverrides for the seven audio extensions and*.state— captured plugin state is named by its own sha256 andplugins.tsrefuses a blob that stops hashing to its filename, so it must never ride the binary heuristic (minjudd's finding on #154). Neither file type is in the tree today; the rules exist so the first one arrives safely.git add --renormalize .stages nothing: every blob in history is already LF, so the attribute changes no committed content.Proof, per §1.1's amended definition
A fresh clone on a real Windows machine with
core.autocrlf=trueinherited from global config:2252 = 2323 − 71: the file now checks out byte-identical to its committed form.
The plan goes in-progress in the same diff
Chunk 1 is where implementation begins, and the flip answers §2's decisions per the convention that the readiness claim answers for what is open:
FILE_FLAG_FIRST_PIPE_INSTANCEcarries the single-owner guaranteeflockprovides today; a port file reopens the staleness race bloom-audiod: the playback daemon skeleton — socket, devices, transport #12 review closed.field playon Windows — since realtime.md,field playis live evaluation; without the daemon it fails with "build the daemon".socketPathForgrows a platform branch in the same function — named pipes have nosun_pathlimit and are not filesystem paths.in-progressflip to it: Windows and Linux move out of the out-of-scope list into a paragraph naming them build-and-test targets, reusing linux-portability.md decision 5's framing. The product ships on macOS.§6's four open questions each carry a disposition: two deferred to chunk 4 with their tests named, one answered by the hasher grep, and the 104-byte question answered by §2.1 and §2.3. The plan's frontmatter carries the move to
priority: now, soproject listshows it under "now" with no separate list file to edit.Testing
Run these from the root of a checkout of
windows/gitattributes. They need no build and change nothing in the tree.You should see
text: autoandeol: lfforcreek-kit.scd, andtext: unsetfor the.wavand.statepaths, which shows the binary overrides win. Thegrep -cprints0, because no committed blob carries CRLF. The hash is49f970a7db30fc972b8ef060e55e3ae2991107137fbf9dd1a6ebb88e59dcea61and the size is2252, the LF form §1.1 records.project checkprintsProject plans are valid., and the suite passes. The change is wrong if.wavor.statereadstext: autoortext: set, if any blob counts asi/crlf, or if the hash is197c273b…, the CRLF form.The Windows half of the proof needs a Windows machine: clone with
git -c core.autocrlf=true clone, then run the sameshasumand size checks there. Expect the same hash and2252bytes.🤖 Generated with Claude Code
📽️ Projector summary of 6d63b2b: https://field.amnes.ac/reviews/157