Repository navigation
The master inventory: what remains to port, and where each piece lands (windows-portability.md §7) - #158
Conversation
…s (windows-portability.md §7) A systematic sweep — every spawn site, path literal, and platform tool in src/, the daemon, the workers, and the tests — folded together with what chunks 1 and 2 discovered by running. Four groups: work the committed chunks already own, findings not yet in any chunk, the workers' own transport decision, and consumers that inherit the port rather than adding to it. The sharpest new finding: field init writes user projects a .gitattributes carrying only the LFS filter lines, so every project created on Windows is born with the §1.1 checkout corruption against its own committed programs and pins — the engine repo's fix (chunk 1) does not reach them. Standalone and cheap, named first among the unchunked items. Co-Authored-By: Claude Fable 5 <[email protected]>
|
Starting review of 65e7566. |
eve-nyx-13
left a comment
There was a problem hiding this comment.
Findings below; requesting changes on 65e7566a8926cab9d85996b873368ecb8c4d9f35. Submitted as a COMMENT review because the reviewing account authored the pull request — the verdict is the words, not the event.
Stacked on windows/gitattributes (#157), so it lands after that one; reviewed as the diff against db2f3e3.
What checks out
I resolved every citation in §7 against the tree, which is byte-identical to main at 4f90a87 under src/ and python/, so there is no branch-skew to explain any of them away.
The headline finding is real, and it is as sharp as the body says. commands/init.ts writes its .gitattributes from LFS_PATTERNS alone:
11:const LFS_PATTERNS = ['*.wav', '*.aif', '*.aiff', '*.flac', '*.mp3', '*.m4a', '*.caf'];
63: LFS_PATTERNS.map((p) => `${p} filter=lfs diff=lfs merge=lfs -text`).join('\n') + '\n',
Seven lines, all -text, and nothing else — so a project field init creates has exactly the gap §1.1 measured: no * text=auto eol=lf over its own .scd programs, no *.state override. Chunk 1 fixes the engine's checkout and cannot reach a user's. Calling it chunk 1's twin is right, and so is standalone.
These resolve exactly: init.ts:71's git lfs install --local in its catch, supercollider.ts:21's SCLANG_APP_FALLBACK, transport.ts:58,120 and version.ts:286's display-only relative() calls, workerScriptInstalled's Scripts/bin split at 145–146, and export.ts's pair — homeRelative's path.startsWith(\${home}/`)really can never fire on Windows, anddefaultExportDir()really isjoin(homedir(), 'Desktop')` with the OneDrive redirect unaccounted for. Characterising both as warts rather than breaks is fair: the export still lands and still prints its path.
Appending as §7 keeps the numbering intact, so nothing that cites this plan breaks.
Findings
Three, all in §7, and two of them are the section contradicting the document it is appended to:
- §7.1 attributes 32 test guards to chunk 4; 9 are chunk 4's. The
§4/chunk 4collision — this plan has both, and they name different things. Details inline. - §7.1 sends chunk 3 to write
/fp:contract-, the one flag spelling §1.4 establishes does not exist. - §7.3 has two citations that do not resolve — a shortened Python path and a pair of line numbers off by ten.
The readiness gate
The plan is Active, so its open questions gate, and this pull request owns the ones §7 introduces. It does not leave any bare: the picker item carries "verify, then fix only what fails", the git lfs install probe is deferred to chunk 5's windows-latest job by name, and §7.3's unverified items sit under a section explicitly scoped to the workers chunk. Nothing here withholds approval on its own — the three findings above are factual errors, not open questions, and they are all cheap to fix.
…e phantom flag, two citations Three findings from #158's review, each verified against the trees it named. The 32 guards §7.1 handed to chunk 4 were 9: version.test.ts's fake-daemon guards are the only ones whose comment names the named-pipe transport, while generate.test.ts's 21 and the aced/voiced describes wait on the workers chunk (§7.3 now carries them as inventory) and the two sclang stubs wait on nothing — only a second stub dialect would unskip them. The §4/chunk-4 collision did the damage, and §7.1 now says which is which, plus the caveat the review asked for: the chunk-2 half is swept from an unlanded local branch, so those counts can move. The determinism bullet cited /fp:contract-, the one spelling §1.4 goes out of its way to establish does not exist — the guard on current MSVC is the VS 2022 toolchain floor, not a flag, and the bullet now says so instead of sending chunk 3 to write a rejected option. And the two §7.3 citations that did not resolve now do: the worker server's full path, and brew-install-uv at client.ts:122,305 — the original numbers were read off chunk 2's branch, which is exactly the skew the new caveat warns about. Co-Authored-By: Claude Fable 5 <[email protected]>
|
Starting review of 29c8f30. |
eve-nyx-13
left a comment
There was a problem hiding this comment.
No findings on 29c8f3057c8bfa70cb886add7cae27bfcc3cf55e; this is an approval in words. Submitted as a COMMENT review because the reviewing account authored the pull request. The blocker noted on #157 applies to this one too, and it is at the end.
The three findings, checked against the file rather than the reply
- Guard attribution is now right, and §7.3 picked up what it was missing. §7.1 keeps only
version.test.ts's 9 — the ones whose comment does name chunk 4 — sends the 21 ingenerate.test.tsand the threeaced/voiceddescribes to §7.3, and marksbuild.test.ts's 2 as removable only by a second stub dialect. §7.3's new bullet describes them as "guarded on the workers' POSIX transport with §4 named in the comment", which is what63cd2ff's guards actually say. The two sections agree and nothing is counted twice. - The phantom flag is gone. "The VS 2022 toolchain floor (whose default
/fp:precisegenerates no contractions — the floor is the guard, not any flag) orclang-cl" is §1.4's two routes restated, including the distinction §1.4 exists to draw. - Both citations resolve at this head.
python/worker/src/field_worker/server.py:129is thesocket.socket(socket.AF_UNIX, socket.SOCK_STREAM)line, andclient.ts:122/:305are the twobrew install uvstrings.
The ten-line diagnosis is correct, and it is worth recording because it explains the whole class:
63cd2ff (chunk 2, local windows/build) 132, 315
4f90a87 (main) 122, 305
So the original numbers were read off the unlanded branch, exactly as the reply says. The new §7.3 note pinning citations to main at 4f90a87 is the right fix, and the matching caveat in §7.1 — that the chunk-2 counts are swept from an unlanded branch and can move until it lands — closes the process gap that produced both.
One thing I missed, fixed here anyway
\.\pipe\… became \\.\pipe\… in §7.1. That was wrong before and I did not flag it — the Windows named-pipe namespace is \\.\pipe\, and a single leading backslash names nothing. Good catch.
Scope and gate
Documentation only, one file, and no section renumbered, so nothing citing this plan breaks. The plan is Active, so its open questions gate; this diff introduces none and leaves §6 untouched, and §7's own items keep the dispositions they had — the picker's "verify, then fix only what fails", the git lfs install probe deferred to chunk 5's windows-latest job, and §7.3's items under a section scoped to the workers chunk.
What still blocks the merge
Same as #157, and not the review: main requires one approving review with require_last_push_approval: true, which GitHub will not accept from the account that opened the pull request. All three threads here are resolved, so thread resolution is satisfied; the approving review needs a different account. This one is also stacked on windows/gitattributes, so #157 merges first or this diff's base moves.
eve-nyx-13
left a comment
There was a problem hiding this comment.
One finding on 29c8f3057c8bfa70cb886add7cae27bfcc3cf55e, which I missed when I cleared this head earlier — reviewing #160 on a real Windows machine turned it up. Requesting the change; the rest of that verdict stands.
It is a classification error in §7.4 rather than a citation error: one of the three "display-only" relative() calls is data, and it sits on exactly the equality comparison #160's path invariant is about. Detail inline.
The review's own correction of its earlier clean pass, folded in: §7.4 filed songDirOfPath's relative() under display when its result is data on the equality path the whole invariant protects — compared against song.dir at transport.ts:44, which is the field chunk 2 normalizes. Before that fix, field transport could not resolve a song from a path on Windows at all. The bullet splits: the two genuinely-display calls keep their reason, and transport.ts:58 gets its own — port as-is because the split below it is native, not because nothing reads it. Co-Authored-By: Claude Fable 5 <[email protected]>
|
Starting review of 4f07368. |
eve-nyx-13
left a comment
There was a problem hiding this comment.
No findings on 4f07368112490e79e8136c95245f8b2b0ef0f0a1; this is an approval in words, submitted as a COMMENT review because the reviewing account authored the pull request.
The §7.4 finding is fixed, and the fix keeps the part that was worth keeping. Every claim in the new bullet re-checks at this head:
transport.ts:44 project.songs.find((s) => s.dir === songDirOfPath(project.root, path))
transport.ts:58 const rel = relative(resolve(root), resolve(path));
transport.ts:120 lines.push(`file: ${relative(root, status.path) || status.path}`);
So the display-only bullet is now accurate for the two that remain, transport.ts:58 has its own entry as data, and the reason it ports unchanged is stated as the operative one — the split below it is native, so converting the relative() result would break it. That is the trap a reader following chunk 2's invariant would otherwise walk into, and it is now written down rather than implied.
One hunk, no renumbering, nothing else in the range. The rest of my verdict on 29c8f30 stands.
The merge-ordering note from #160 still applies: this and #157 land ahead of chunk 2.
minjudd
left a comment
There was a problem hiding this comment.
🔭 Projector review · model claude-opus-5[1m] · effort xhigh · CHANGES REQUESTED · took 2m 49s
5 finding threads: 4 resolved, 1 open — this review opens the 1.
I checked every citation in §7 rather than spot-checking, and they hold. Each of these resolves to the line it names on main at 4f90a87, the commit the section says it swept: export.ts:69 is the startsWith(${home}/) that never fires on Windows; supercollider.ts:21 is SCLANG_APP_FALLBACK pointing into /Applications; server.py:129 is the socket.AF_UNIX bind; client.ts:122 and :305 are both brew install uv; transport.ts:120 and version.ts:286 are display-only relative() calls. picker.ts:93 is the CSI-decode comment rather than the setRawMode(true) at :167 — which I checked expecting a miscitation and found is the better target, since the item is about the decoder rather than the mode switch.
The §7.1 counts are exact too, and they are the ones that would rot quietest, so I re-derived each against origin/windows/build rather than trusting the caveat: version.test.ts has 9 uses of itOverPosixSocket (grep -c "itOverPosixSocket("), generate.test.ts has 21 of itSpawnsAWorker, aced/client.test.ts and voiced/client.test.ts carry 1 and 2 guarded describes for the 3 claimed, and build.test.ts has exactly 2 sclang it.skipIf guards, at :475 and :486. The guard helper is defined once and used N times, so a grep -c skipIf returns 1 and would have "disagreed" with the document for the wrong reason — worth naming since the caveat invites re-counting later.
The one finding is below: §7.2's sharpest item is already in flight as #159, and the section does not say so.
This inherits #157's blocker rather than owning one. docs/projects/all/windows-portability.md does not exist on main any more — #164 moved it to docs/projects/windows-portability/readme.md — so these 120 lines have to move with the parent's rebase. That is the parent's to fix and I have not filed it here; it is why this cannot merge even though GitHub reports mergeable: true against windows/gitattributes, which is the stack base rather than main.
CI: the single linux run on this head failed in three seconds with the Actions spending-cap annotation, same as on #157. No code signal either way.
Brings the inventory up to date with its parent, which now carries main and the Projector layout. Clean merge: §7 appends to the plan at its new path, docs/projects/windows-portability/readme.md, with no links or status words to update.
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 18s
This pull request appends §7 to the Windows portability plan. §7 is an inventory of every Windows item the plan has not yet assigned, swept on main at 4f90a87 and on chunk 2's branch. It groups the items by where each lands: the committed chunks, standalone items no chunk owns yet, the workers chunk that §4 keeps out of scope, and consumers that inherit the port. The change touches no code and no frontmatter. Its line citations are pinned to 4f90a87 on purpose, and its chunk 2 counts carry a caveat that they can move until chunk 2 (#160) lands.
2 finding threads: 0 resolved, 2 open
Covered 1 of 1 changed files; none generated.
The head was reviewed by reading only, and none of its code ran. Its author, eve-nyx-13, has no write access to okamnesiac/field, so the head is untrusted. The change is a single plan file, so reading was enough to check every claim against the code it cites.
The plan is in-progress at both the base and the head, so the questions §7 opens must each be answered or deferred to implementation. Each one is deferred:
- The picker under Windows Terminal. It gets a standalone pass that verifies first and then fixes only what fails.
- The
git lfs install --localprobe on a Windows CI shell. Chunk 5'swindows-latestjob answers it. - The
.exesuffix on uv's console shims. It belongs to the workers chunk, which §4 keeps out of scope.
None of these blocks the plan's readiness.
The earlier finding is still open at this head. #159 is open, implements §7.2's first item, and touches no plan text, yet §7.2 still files that item under "not yet in any chunk". The author has not replied, so the thread stays open with no new reply.
What checked out:
- Every §7.2 and §7.3 citation resolves at
4f90a87. These areinit.ts:60and:71,picker.ts:93,export.ts:69,supercollider.ts:21,server.py:129,workers/client.ts:122and:305, andworkerScriptInstalled. The aced lock file carriestriton-windowsandflash-attn, and chunk 2 shiftsworkers/client.tsby exactly ten lines. - §7.4's
transport.ts:58reasoning holds.songDirOfPathsplits on the nativesepand returnssongs/<name>, andtransport.ts:44compares that withsong.dir, which chunk 2'sprojectPathmakes slash-separated. - The guard counts match chunk 2's current head,
d041256. It has 9itOverPosixSocketguards, 21itSpawnsAWorkerguards, 3 win32 describes across aced and voiced, and 2 sclang-stub skips. project checkpasses at the head. §7 is appended and renumbers nothing.
Suggestions
docs/projects/windows-portability/readme.md:409: §7.1 says the 9 guards inversion.test.tsare the only chunk 2 guards that name chunk 4. Chunk 2's7a7b256later added four more sites that do: the describes inaudiod/client.test.ts,play-daemon.test.ts, and plugin-hosting's live chains, and theitOverSockettests inlive-session.test.ts. #160's §5 amendment records them and #161 removes them, so widen the sentence here or reconcile it in #160.docs/projects/windows-portability/readme.md:472: §7.3 misses two POSIX-only pieces of the workers.server.py:23importsfcntlfor the single-ownerflock, and that import fails on Windows before line 129'sAF_UNIXis reached.workers/client.ts:345printspkill -fas the remedy for a protocol mismatch, which is the same kind of advice as thebrew install uvstrings §7.3 already lists.docs/projects/windows-portability/readme.md:429: the CI bullet plans "pnpm via corepack". The Linux job installs pnpm withpnpm/action-setup@v4, and so does #161'swindows-latestjob. Name that action, or drop the detail.
# Conflicts: # docs/projects/windows-portability/readme.md
§7.2 filed the field init item as unclaimed, but #159 is open and makes init write the text=auto eol=lf line and the *.state override. Say so, as §7.4 names other pull requests. §7.4 cited "the §1.5 invariant", which is the daemon-binary finding and states no rule about separators. Write the rule in place and attribute it to chunk 2 (#160), where it arrives. Also from the review's suggestions: name pnpm/action-setup@v4 rather than corepack in the CI bullet, and add the workers' fcntl import and pkill advice to §7.3.
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 10s
This pull request appends §7 to the Windows portability plan. §7 is an inventory of every Windows item the plan has not yet assigned, swept on main at 4f90a87 and on chunk 2's branch. It groups the items by where each lands: the committed chunks, standalone items no chunk owns yet, the workers chunk that §4 keeps out of scope, and consumers that inherit the port. This head answers the review of 93451e7, and the merge base moved to b3fd813, which brings in #157's own edit to §6. The change touches no code and no frontmatter.
2 finding threads: 2 resolved, 0 open
Covered 1 of 1 changed files; none generated.
The head was reviewed by reading only, and none of its code ran. Its author, eve-nyx-13, has no write access to okamnesiac/field, so the head is untrusted. The change is a single plan file, so reading was enough to check every claim against the code it cites.
The plan is in-progress at both the base and the head. Every question §7 opens is deferred to implementation: the picker's manual pass, the git lfs probe on chunk 5's Windows CI run, and the uv shim suffix in the out-of-scope workers chunk.
Both earlier findings are fixed at this head, and both threads were already resolved, so neither needed anything more:
- The
field inititem names #159. §7.2 now says #159 claims the item and keeps it listed until #159 lands. #159's head,4eabd58, writes* text=auto eol=lfahead of the LFS lines and*.state binaryafter them, exactly as the bullet says. - §7.4 states its rule instead of citing §1.5. The bullet now says that a project-relative path is slash-separated wherever it is data, and attributes the rule to chunk 2 (#160). That matches #160's amendment to §5's chunk 2. No other "§1.5" reference remains in §7.
What checked out at this head:
- The new §7.3 citations resolve at
4f90a87.server.py:23isimport fcntl, which Windows CPython lacks, andworkers/client.ts:345is thepkill -fremedy. - The CI bullet matches the Linux job. It now names
pnpm/action-setup@v4, whichci.ymluses. - The guard counts still match chunk 2's current head,
18849a0. It has 9itOverPosixSocketguards and 21itSpawnsAWorkerguards. - The rest of §7 is unchanged since
93451e7. There, every §7.2 and §7.3 citation resolved at4f90a87, and thetransport.ts:58reasoning held.
The head looks clean. A human approval is what remains.
Suggestions
docs/projects/windows-portability/readme.md:417: §7.1 still says the 9 guards inversion.test.tsare the only chunk 2 guards that name chunk 4. Chunk 2's7a7b256added four more sites that do: the describes inaudiod/client.test.ts,play-daemon.test.ts, and plugin-hosting's live chains, and theitOverSockettests inlive-session.test.ts. #160's head,18849a0, records them in §5 but leaves this sentence as it is. Widen the sentence here, or reconcile it in #160.
…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 · CHANGES REQUESTED · took 2m 30s
This pull request appends §7 to the Windows portability plan. §7 is an inventory of every Windows item the plan has not yet assigned, swept on main at 4f90a87 and on chunk 2's branch, and grouped by where each item lands. Since e6ef0ae, the base branch has merged main, which brings in #159 and the keyboard-instrument work (#178 to #182). The pull request's own change since then is one commit, which records the field init item as done in #159. The diff against the new merge base, 6d63b2b, is still §7 alone: 131 added lines and no code.
3 finding threads: 2 resolved, 1 open
Covered 1 of 1 changed files; none generated.
The head was reviewed by reading only, and none of its code ran. Its author, eve-nyx-13, has no write access to okamnesiac/field, so the head is untrusted. The change is a single plan file, so reading was enough to check its claims against the code at this head.
The plan is in-progress at both the base and the head. Every question §7 opens is deferred to implementation: the picker's manual pass, the git lfs probe on chunk 5's Windows CI run, and the uv shim suffix in the out-of-scope workers chunk.
The new finding comes from the merged main. §7.2's sclang bullet was accurate at 4f90a87, where execFile found sclang.exe on PATH and ran any FIELD_SCLANG as given. #179 replaced that with a lookup of its own that does neither on Windows. The inventory is kept current with main, as this head's #159 update shows, so the bullet needs the same update.
Both earlier findings are still fixed at this head, and both threads stay resolved:
- The
field inititem. §7.2 now records it as done in #159, which merged at 2026-10-10T23:05Z.init.tsat this head writes* text=auto eol=lfbefore the LFS lines and*.state binaryafter them, as the bullet says. - The §1.5 citation. §7.4 still states the slash rule in place and attributes it to chunk 2 (#160).
What checked out:
- No other cited file changed under §7's claims. Of the files §7 cites, the merge touched only
init.ts,supercollider.ts, andci.yml. The CI bullet'spnpm/action-setup@v4still matches the Linux job, andfield openis still unlanded. - The guard counts still match chunk 2's head,
13c068e. It has 9itOverPosixSocketguards, 21itSpawnsAWorkerguards, 3 win32 describes across aced and voiced, and 2 sclang-stub skips. - The earlier suggestion on §7.1's guard sentence is settled in #160. At
13c068e, #160 rewrites that sentence to list every guard whose comment names chunk 4, so this pull request needs no change for it.
§7.2 said PATH and FIELD_SCLANG already work on Windows and only the /Applications fallback needed a Windows spelling. That held at 4f90a87, where execFile searched PATH itself. Since #179, sclangCommand does its own search for renders and the field keys voice host. That search tries only "sclang", never "sclang.exe", and it also handles a FIELD_SCLANG with no forward slash, such as a native Windows path, so that path is reported missing. The bullet now names all three gaps, cites the function rather than a pinned line, and says what porting it takes.
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 0m 41s
This pull request appends §7 to the Windows portability plan. §7 is an inventory of every Windows item the plan has not yet assigned, swept on main at 4f90a87 and on chunk 2's branch, and grouped by where each item lands. This head answers the review of 3cbfbba with one commit that rewrites §7.2's sclang bullet. The merge base is unchanged at 6d63b2b, and the diff against it is still §7 alone: 140 added lines and no code.
3 finding threads: 3 resolved, 0 open
Covered 1 of 1 changed files; none generated.
The head was reviewed by reading only, and none of its code ran. Its author, eve-nyx-13, has no write access to okamnesiac/field, so the head is untrusted. The change is a single plan file, so reading was enough to check its claims against the code at this head.
The plan is in-progress at both the base and the head. Every question §7 opens is deferred to implementation. The rewritten sclang bullet adds no open question, because it says what porting the lookup takes.
The sclang finding is fixed at this head, and its thread was already resolved, so it needs nothing more. The bullet now says that since #179, sclangCommand in supercollider.ts finds sclang itself, for both renders and the field keys voice host. It names all three gaps, each of which matches the code at this head:
- PATH.
onPathchecksjoin(dir, name)with the name exactlysclang, so it never findssclang.exe. FIELD_SCLANG. A value with no/goes throughonPath, so a native absolute path is reported missing.- The fallback.
SCLANG_APP_FALLBACKis still the/Applications/SuperCollider.apppath.
The two earlier findings stay fixed. §7.2 still records the field init item as done in #159, and §7.4 still states its slash rule in place and credits it to chunk 2 (#160). No other line of §7 changed since 3cbfbba, where the rest of its claims checked out.
The head looks clean. A human approval is what remains.
Superseded: the review loop's CLEAN verdict on 1283ef8 covers the current head. Dismissed at Justin's request while Projector learns to clear its own stale verdicts.
Superseded: the review loop's CLEAN verdict on 1283ef8 covers the current head. Dismissed at Justin's request while Projector learns to clear its own stale verdicts.
Adds §7 to the Windows portability plan: a swept inventory of every remaining Windows item, grouped by where it lands — the committed chunks, findings not yet in any chunk, the workers' own transport decision, and consumers that inherit the port rather than adding to it. Sections append at the end per the docs convention, so nothing renumbers.
How it was gathered
Every spawn site and path literal in
src/(grepoverspawn|execFile|execSyncand absolute-path strings), the daemon sources, the Python workers, and the test surface — cross-checked against what chunks 1 and 2 actually hit when they ran, which is how the labels bug earned its §5 amendment and how three of the items below surfaced. Line citations are pinned tomainat4f90a87.The finding worth reading first
field initplants chunk 1's defect in every new project (commands/init.ts:60): the.gitattributesit writes carries only the seven LFS filter lines — no* text=auto eol=lf, no*.stateoverride. A project created on or cloned to Windows gets the §1.1 checkout corruption against its own committed.scdprograms and asset pins, and the engine repo's own fix cannot reach it. #159, open againstmain, makesinitwrite both halves, and §7.2 names it.Also new
field insert addpicker (field insert add: a pinned insert with a chooser (add-insert.md) #155) decodes raw-mode CSI sequences that nobody has run under Windows Terminal/ConPTY — one manual pass needed.homeRelativehardcodes/so tilde-shortening never fires on Windows;defaultExportDir()misses a OneDrive-redirected Desktop. Warts, not breaks.sclang's convenience fallback probes/Applications/…; PATH andFIELD_SCLANGalready work everywhere.fcntlimport fails on Windows before the socket is reached, so their transport and single-owner lock are a decision of their own, not §2.1 verbatim.field openare consumers of this port, not additions to it — noted so their reviews ask the right question. §7.4 also states chunk 2's rule for separators: a project-relative path is slash-separated wherever it is data, and a path printed for a person keeps the platform's separator.Testing
The change is one plan file, so the checks read it. Run these from the root of a checkout of
windows/inventory. They need no build and change nothing in the tree.project checkprintsProject plans are valid.The diff against the base touches onlydocs/projects/windows-portability/readme.md. Theinit.tslines show the LFS-only.gitattributes§7.2 describes, at lines 60 and 71. Theserver.pygrep prints line 23 (import fcntl) and line 129 (AF_UNIX), and theclient.tsgrep prints lines 122, 305, and 345, the citations §7.3 makes. The change is wrong ifproject checkreports an error or if any of those greps prints a different line number than §7 cites.🤖 Generated with Claude Code
📽️ Projector summary of 1283ef8: https://field.amnes.ac/reviews/158