Repository navigation
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]>
…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]>
…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]>
…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]>
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]>
…-portability.md chunk 2) The first red run found the largest defect somewhere the plan never looked: label pkgs derive from song.dir, which was raw relative() output — songs\creek on Windows — so no typed label or pattern could ever match, and ~70 tests failed with "no such label" while `git status` and `field check` both looked fine. The fix states the invariant the model already half-enforced (its schemas reject `\` in YAML paths): project-relative paths are slash-separated wherever they are data — song.dir, diagnostics, the session JSON the daemon reads, projectRelative's output — and native only where they are genuinely local, like BuildOutcome.outputPath. The build side of the chunk: daemonBinary() gains the .exe suffix, build:native gains --config Release (MSVC is multi-config; single-config generators ignore it), SIGPIPE is guarded out on _WIN32 with its "on every platform" comment amended to say which mechanism holds there, and server.cpp gets the chunk-4 stub — serve mode refuses with a pointer at the plan while --render, --render-live and --scan run as plain subprocesses, which is what lets the binary link before the named-pipe transport exists. Small discoveries, each fixed where it lay: pnpm is a .cmd shim execFile cannot spawn (the one test that shells it gets shell on win32); the stub worker is a shebang script Windows cannot exec, so a .js/.mjs interpreter override runs through process.execPath now — more hermetic on every platform; a test helper built .venv/bin where the probe reads .venv/Scripts; two suffix assertions compared native paths against /-joined strings. Transport-bound tests are guarded per test with the reason beside them, linux-portability decision-4 style: 9 fake-daemon tests in version.test.ts, 21 stub-spawning tests in generate.test.ts, three describes in aced/voiced, two #!/bin/sh sclang fakes in build.test.ts. The version.test.ts guards name chunk 4; the generate.test.ts and aced/voiced guards name the workers' own future chunk (§4), which is not chunk 4; the sclang stubs name none, because only a second stub dialect would remove them (#158 review corrected the original sentence here, which claimed chunk 4 for all of them). With the daemon binary absent, the remaining failures on this machine are all "field-audiod is not built" — the compiler landing turns them into the chunk's verification run. Co-Authored-By: Claude Fable 5 <[email protected]>
The same defect the watch tests had, found by the readiness run: build.test.ts compared native outputPath values against /-joined literals, so both assertions failed on Windows while the paths they checked were correct. Co-Authored-By: Claude Fable 5 <[email protected]>
…dows-portability.md chunk 2) M_PI is not standard C++: glibc and Apple's libc++ define it in cmath, MSVC does not without a macro, and the daemon used it six times across biquad, mixdown and resample. All six are std::numbers::pi now — the identical double, so no render changes anywhere — and the include is <numbers>, which the C++20 floor already pays for. The second finding is the sharper one: LiveSession::Track had an implicit copy constructor nothing ever used, so clang never instantiated the vector<ChainStage> copy path it references and the code built for a year over unique_ptrs that cannot copy. MSVC's STL compiles that path eagerly and refused. Track is explicitly move-only now, which is what it always was in fact. With the binary present, the serve-mode tests run and refuse at the chunk-2 stub, so they take the same per-test guard as the fake-daemon tests: audiod/client, play-daemon, plugin-hosting's live chains, and the four socket tests in live-session skip on win32 naming chunk 4, while the --render, --render-live and --scan subprocess tests run. Verified in batches on the Windows machine: every test file passes — real DSP through field-audiod.exe --render, the live session renderer through --render-live, offline plugin hosting through --scan — and field-dsp-check reports all block partitions bit-identical, resampler included. Under full parallel load this OneDrive-synced, Defender-watched machine drops an occasional spawn; every such failure re-ran green in isolation, and CI shares none of those conditions. Co-Authored-By: Claude Fable 5 <[email protected]>
The one nit from #160's review: <numbers> landed between <cmath> and <cstdint>, breaking the ordering biquad.cpp and mixdown.cpp both keep. Co-Authored-By: Claude Fable 5 <[email protected]>
…(windows-portability.md chunks 4-5) Named pipes, as decision 2.1 chose, with the request handling shared: handleLine, dispatch, broadcast and connectionCount now exist once above the I/O layer, and only the transport splits per platform. The Windows arm is CreateNamedPipeA with FILE_FLAG_FIRST_PIPE_INSTANCE carrying the flock (the stampede test passes with six clients racing a fresh project), an overlapped accept loop whose shutdown wake is a bounded 200ms poll rather than a wake protocol that has to be right, and CancelIoEx standing in for SHUT_RD - which taught the chunk its lesson: a cancel is an event where SHUT_RD is a state. A reader inside dispatch at shutdown would issue a fresh read and keep serving a chatty client forever, so the reader now checks running each cycle, and the shutdown drain is one peek deep - exactly the bytes buffered at the half-close, the way SHUT_RD's EOF bounds it. Round trips measure 1.3ms. The TS side: socketPathFor's win32 branch answers a pipe name derived from the lowercased resolved root (NTFS compares case-insensitively; two spellings must not mint two daemons), the spawn hands the daemon the full name via --socket so both ends agree by construction, and version.test.ts's fake daemons bind what the probe dials - which is what retires the nine guards chunk 2 planted there, along with the serve-mode describes and live-session's four socket tests. New shared test helper removeTempProject: Windows cannot delete a directory that is a live process's cwd, and the daemon takes a moment to exit after quit, so the removal retries where POSIX returns on the first pass. Chunk 5 rides along, too small to review alone: playWithAfplay on win32 fails with the build hint per decision 2.2, and a windows-latest CI job mirrors the Linux job minus the Python gates - written to shape but unverified on a runner, since Actions billing currently starts no jobs at all. Verified on the machine: 8/8 daemon protocol including the concurrent- shutdown and stampede tests, 12/12 play-daemon, 25 passed 1 skipped plugin hosting with live hosted chains, 20/20 audiod suite, and the plan's definition-of-done transcript verbatim - a real session with a dirty chain, live through WASAPI (Speakers, FxSound @ 48000 Hz), position streaming in musical time, steered from a second terminal, clean exit. Batched suite: 618 passed, 41 skipped, four load-flakes each green in isolation per the plan's standing caveat about this machine. Co-Authored-By: Claude Fable 5 <[email protected]>
review) The finding is right and it is the ordinary shutdown path, not a rare race: `connected = running && GetOverlappedResult(...)` short-circuits when running goes false, so the pending ConnectNamedPipe was never reaped, and `ov` — a stack local of the accept thread — stayed owned by the kernel. The destructor then joins that thread, freeing the frame, and only afterwards closes the handle, which is exactly when the kernel writes the completion status. The review probed it under MSVC rather than arguing from documentation: Internal goes 0x103 → 0xC000014B across the CloseHandle, i.e. the write lands after the free. It had not bitten because a just-freed stack is usually still mapped, which is luck about page lifetime. Both exits from the iteration now reap: a `pending` flag tracks whether the connect is still outstanding, and the cancel-and-wait runs before either the break or the continue, so no path leaves the kernel holding a pointer into a frame that is about to go. The reap also promotes a connect that completed between the poll and the cancel to a real client, rather than dropping a connection the kernel already accepted. readLoop needed no change and is the contrast the review names: every GetOverlappedResult there already waits before its scope ends. Verified: 20 spawn/quit cycles over exactly the path the finding describes — a parked instance mid-connect at shutdown, no client arriving — all 20 exit 0, none slow. The daemon suites pass; the comparison worth recording is that live-session was *worse* without this fix (8 failed) than with it (1, and that one passes alone in 2.7s against a 5 s default timeout on a machine that has been building all day). Co-Authored-By: Claude Fable 5 <[email protected]>
The guard was win32-only, so Linux without a built daemon still spawned afplay and died with ENOENT naming a macOS binary — and docs/cli.md's description of a deliberate macOS-only fallback was ahead of the code. afplay is dead code off macOS by definition; refusing with the build hint loses nothing anywhere and makes the manual's sentence true. The message drops the platform name since it now serves two. Co-Authored-By: Claude Fable 5 <[email protected]>
…iew) The guard covered every non-macOS platform while the comment above it still said Windows and cited a Windows-scoped decision — and the Linux policy call had no plan recording it, since linux-portability.md predates the fallback question. §2.2 gains the amendment recording the widening with its reasoning (afplay is dead code off macOS; the guard is the build hint versus an ENOENT naming a tool the machine never had), and the comment now points at the amendment rather than overclaiming the original decision's scope. Co-Authored-By: Claude Fable 5 <[email protected]>
mute joins gain_db/pan on the placement (the loop entry's enabled: shape), excluded in planFor so the stem spec, its action key, the deps, and the live session all agree — a toggle re-keys, re-muting is a cache hit, and a source consumed only by muted placements leaves the deps, all proven in build.test.ts. The plan-limits header regenerates byte-identical: mute never reaches the wire. Solo never touches a file. applySolo filters a freshly loaded song before the graph builds: the soloed subtree stays whole, its carriers keep only the inputs that lead to it, send receivers stay audible transitively (the shared-room case), and muted placements cannot carry the solo — soloing through a muted path renders honest silence. compileSession takes it as an option; compiling without it is the un-solo. Four tests pin the walk on creek's own shape. Co-Authored-By: Claude Fable 5 <[email protected]>
The server is field's own process (ui.md §4): field ui <song> compiles the session, connects the daemon, serves the built client, and carries one WebSocket per view — daemon events and snapshots down, transport ops and edits up. A fader or mute 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. Two guards because the socket accepts writes: Origin plus a per-launch token on the upgrade, and every edit carries the sha256 of the file bytes it came from — stale is reject-and-refresh, never write-through. Solo holds server-side and swaps the session compiled with the solo option; while held, every file edit is a swap of the soloed compile, because a ramp addresses (track, input index) in the daemon's session and the soloed session's indexes are not the un-soloed compile's. The client is a Vite + React workspace package (ui/), hand-rolled CSS: a transport bar with the musical readout, one flat lane per main placement — the nested tree stays under the hood — with gain (write-on-release), pan, mute, and solo on track lanes. Musical time is projected server-side by the formatPosition the CLI already owns; samples still never cross the daemon socket. Stack additions, recorded against project-core.md §5 by this diff: ws (the WebSocket server), react/react-dom + vite in the ui workspace. Verified end to end on the machine: snapshot lanes correct, play through real WASAPI with position events flowing, mute written to main.yaml and reflected back through the watch, solo and un-solo swapping live, and a stale-hash edit rejected with a refresh. Co-Authored-By: Claude Fable 5 <[email protected]>
ninjudd's plan from #156, brought over whole and flipped Active by the diff that implements it. §6 is new, at the end so §1-§5 keep their numbers for citation: mute's schema line (the non-goal fell exactly as §3 predicted), solo as a session-only alternate feed with its carrier walk, the flat-lane layout, the one deviation (musical time projects in the server, with playback.md §3.6 untouched), §5's remaining questions answered by the flip, and the stack additions recorded against project-core.md §5. now.md carries the line. Co-Authored-By: Claude Fable 5 <[email protected]>
|
Starting review of a441279. |
eve-nyx-13
left a comment
There was a problem hiding this comment.
Findings below; requesting changes on a441279a1f1161aebb130f9dfb48981d6ee7e157. Submitted as a COMMENT review because the reviewing account authored the pull request.
Two findings, neither in the code: a (DECIDED) stack record this diff diverges from while saying it updated it, and a collision with #156, which is still open and is someone else's.
What I checked in the code, and what held
- The solo walk passes its tests — 4/4 in
src/model/solo.test.tsat this head, including the case the algorithm exists for: the soloed subtree, its carriers keeping only the inputs that lead to the solo, and send receivers audible transitively. solo.tsis 5,560 bytes of real implementation. The pull request's file list reports it as+0-0, which is a GitHub artifact rather than an empty file — I checked because an empty module under a passing-looking test file is exactly the shape of a bad merge.- The server is bound correctly for what it is.
http.listen(port, '127.0.0.1'), and the upgrade path checksOriginagainst this server's own addresses and a per-launch token, with the comment saying why the bind alone is not enough (localhost excludes the network, not other local processes). That is the right posture for a localhost tool, and the token rather than the origin is doing the real work, which is also right. - Solo really is session-only.
compileSessionapplies it to the loaded copy after validation and beforebuildGraph, so the files are untouched and the un-soloed session comes back by compiling without the option — matching what §6 claims.
The readiness gate
ui.md arrives at status: Active, so every question open in it is this diff's to answer. §5 carries six bullets: two settled (DECIDED) before this (React vs Next, the TUI), and four left as leanings — browser tab vs shell, where the client lives, fader drags, styling. §6 answers all four, and defers the live-ramp option explicitly rather than by hedge, noting its rollback obligations. The gate is satisfied.
One note, not a finding
This is based on windows/transport, and it does not need to be. The only file it shares with that stack is src/graph/live.ts, and the two edits are nowhere near each other — #160 changes the session-JSON path line, this adds the solo option and the applySolo call in compileSession. No shared symbols, no ordering requirement. As it stands the UI cannot merge until four Windows pull requests do, which is a five-deep chain for work that has nothing to do with the port. Rebasing onto main would cost moving two commits and would let this merge on its own schedule. Your call — it is a sequencing choice, not a defect, and the pull request is correctly scoped either way (three commits, twenty-one files).
The §6 sentence claimed the stack additions were recorded against project-core.md §5 while this branch never touched that file — and §5's DECIDED text said single package at repo root, which the workspace quietly overturned. The record now changes where AGENTS.md says decided records change: §5 gains a dated amendment for the ui/ workspace member (a DOM/bundler toolchain does not belong in the CLI's strict Node-only config), for ws (the daemon socket is unreachable from a browser), and for react + vite scoped to the member — each with what it amends. The §6 bullet now points at the record instead of asserting it exists. Co-Authored-By: Claude Fable 5 <[email protected]>
|
Starting review of 6e44f26. |
eve-nyx-13
left a comment
There was a problem hiding this comment.
No new findings on 6e44f265c433e70db64ddb6bb31474251d76d4a2. Submitted as a COMMENT review because the reviewing account authored the pull request. Not an approval, and the reason is the still-open thread rather than anything in this head — see the end.
The stack record is genuinely recorded now
project-core.md §5 gains a dated amendment at line 205, inside §5 (which spans 188–217) and above ## 6, so nothing renumbered and no citation into that document broke. Every claim in it checks against the diff:
root package.json + ws ^8.18.0 (dependencies)
+ @types/ws ^8.5.0 (devDependencies)
ui/package.json + react, react-dom (dependencies)
+ vite, @vitejs/plugin-react, @types/react…
So "react + vite inside the workspace member only, where the root package never sees them" is exactly true, and ws really is the one addition the root package takes. The amendment also declines to claim more than it changed — "The parenthetical's packages/ restructure stays unclaimed: this is one member beside the root package, not the split" — which is the right reading of §5's carve-out and keeps the packages/ decision available rather than quietly spent.
ui.md §6 now points at that amendment instead of asserting it, so the sentence that sent a reader to §5 and the thing they find there finally agree.
The #156 thread, and why leaving it open is right
You kept it open on the grounds that it is a coordination decision with ninjudd's pull request rather than something this loop settles, and that is the correct call — it matches the rule that a finding is not resolved by the person who did not fix it, and there is nothing to fix here in the first place. The conflict is still real at this head:
git merge-tree a321ca8 (#156) 6e44f26 (#163) -> exit 1
So the position is unchanged: this pull request should not merge before that question is answered, because merging it is what creates the add/add conflict for whoever lands second. That is the one thing outstanding, it needs another person, and it is not a defect in this diff.
Everything I verified on a441279 — the solo walk's 4/4, the 127.0.0.1 bind with the origin-and-token upgrade check, solo staying session-only in compileSession, and §5's four leanings all answered by §6 — is untouched by this range and stands.
Three defects, found by opening the thing — which nothing before this
had done. The protocol tests all passed because they drove the
WebSocket directly; the render path had no coverage at all, and that is
exactly where the bugs were.
The blank page: devicesResponseSchema returns {name, default} objects
and the device picker rendered them as React children, so React threw
error #31 during the first render and took the whole page down. A
mis-declared interface in the client hid it from the compiler. The
picker now renders d.name and selects by the status device or the
declared default.
The mute break: materialize copies to a temp path and renames over the
destination, which is how a rebuild avoids truncating bytes a daemon is
streaming (watch.md §1.6). That is POSIX semantics — the reader keeps
its inode — and Windows refuses with EPERM unless the reader opened the
file share-delete, which JUCE's streams do not. So every
rebuild-behind-the-play failed while playing, which is what clicking
mute triggers. Materialize now returns early when the destination
already holds exactly these bytes (the common case under watch, and the
one that was failing), and renames with a bounded retry otherwise,
failing with the cause named rather than a bare errno.
The invariant test asserted the mechanism rather than the property: its
runner copied its input, so a re-key produced identical bytes and the
"fresh inode" assertion was checking a rebuild with nothing to write.
It now uses a spec-sensitive runner so the rename path is genuinely
exercised, and a second test pins the other half — an already-correct
artifact is left alone, which is the half Windows enforces.
Also: the window is an Electron shell rather than a browser tab, since
a tab in whatever browser is default is not what "open my project"
should mean; the page paints its own uncaught errors instead of going
blank; and the shell mirrors the renderer console to the terminal,
which is how the React error above was found.
Co-Authored-By: Claude Fable 5 <[email protected]>
|
Starting review of ae2f5aa. |
eve-nyx-13
left a comment
There was a problem hiding this comment.
Findings below; requesting changes on ae2f5aaad723843f89d46bed999aa89d32591608. Submitted as a COMMENT review because the reviewing account authored the pull request.
Both bugs are real and both fixes are right. The finding is that the shell arrived with none of its paperwork, one commit after the same class of gap was fixed here.
The two bugs, and why the fixes convince
The blank window. Snapshot.devices.devices was typed string[] where the server sends {name, default}[], so {d} rendered an object as a React child and React blanked the tree. The type correction plus d.name is the actual fix rather than a guard around the symptom, and the device <select> now reads its value from status.device?.name with the default marked — which is what the server was offering all along.
The Windows rebuild-under-playback. This is the better catch of the two, and the reasoning holds up: POSIX lets you rename over a file a reader holds open because the reader keeps its inode — which is exactly what watch.md §1.6 leans on — and Windows refuses with EPERM unless the reader opened with FILE_SHARE_DELETE, which JUCE's streams do not. Two fixes, and the ordering between them is the good part:
- Skip when the bytes are already right.
existsSync(out) && size matchthen a hash check, and return without touching the path. Under watch this is the common case, so the contended rename mostly stops happening at all rather than being retried. renameOverwritebounds the rest, retryingEPERM/EACCES/EBUSYfor 3s and then failing with a sentence naming the cause instead of a bare errno.
The test correction is the part I would have missed. The old rename test used countingRunner, which copies its input, so both passes produced identical bytes — it asserted a fresh inode against a rebuild with nothing to write, and would have started failing against the new skip path for the right reason. Splitting it into a varying-runner test for the rename and a countingRunner test for the no-op is the correct shape, and both pass. Whole file green here: 20/20.
The findings
- The desktop shell reverses §6's "browser tab, no shell", in the pull request that wrote §6, with no documentation in the range and a code comment citing an amendment that does not exist.
electronis also a fourth stack addition against a §5 amendment that names three — added one commit ago at this review's request. Detail inline. - The Electron profile path is a fixed directory in the shared temp dir. Linux-only, low, one line.
Not findings, but worth naming
renameOverwrite waits with Atomics.wait, which blocks the event loop for up to 3 seconds. The comment justifies the synchronous choice — materialize sits in the build's sync path and yielding would let a second materialize interleave — and I think that is right. Worth knowing that under field ui the same process serves the WebSocket, so a contended rename freezes position updates for the duration; the skip-when-identical path is what keeps that rare, which is another reason it earns its place ahead of the retry.
The rest of the shell reads carefully: the fallback when Electron is absent, the console mirror with a signature shim for both Electron event shapes, setWindowOpenHandler denying navigation away, window-all-closed ending the session on every platform including macOS, and the deliberate absence of a single-instance lock with the reason written down. The CSP and the main.tsx last-resort error handlers are the right response to "a blank window has no diagnosis in it".
…ron is named (#163 review) Three documentation defects behind one code change, all of them the same defect: the shell shipped and the paperwork did not follow it. ui.md §6 said "browser tab, no shell" — this pull request's own claim about what the implementation settled — while the implementation opens an Electron window and spells the tab as an opt-out. §6 now records the shell, and records it with the reason that actually fired rather than §5's: adjacency with chunk 3's plugin editors never came up (those editors do not exist), and what did come up on the first session that opened the thing is that a blank tab cannot be diagnosed remotely. The first render crashed on a React error nobody could see; the shell mirroring the renderer console to the terminal is what found it. §5's "leaning: browser first" gets its disposition, saying the lean was wrong about which cost bites first. project-core.md §5 named three additions one commit ago, at this review's request, and electron makes four — the one worth arguing about, being a whole Chromium and Node runtime with a download step and a security cadence, rather than a library. The amendment names that weight, what it buys (a window that owns its lifetime, and failures visible to whoever can fix them), its confinement to the ui/ workspace member's devDependencies, and Tauri as the rejected alternative with why. Also from the review: the shell's profile directory is per-user, since tmpdir() is shared on Linux and a fixed name there belongs to whoever launches first — whose second user's failure would arrive as exactly the cache noise that line exists to suppress. Co-Authored-By: Claude Fable 5 <[email protected]>
|
Starting review of bb8d00a. |
eve-nyx-13
left a comment
There was a problem hiding this comment.
One finding on bb8d00ab9ca711f1b30c3e6073349817cc9e3fff, about scope rather than content. Submitted as a COMMENT review because the reviewing account authored the pull request.
Both findings from the last head are fixed, and fixed properly
The shell now has its record, and the record is honest about having changed its mind. project-core.md §5 gains a second amendment naming electron with its actual weight — "a whole Chromium and Node runtime, a post-install download, and a release cadence with security updates attached" — what it buys, its confinement to the member's devDependencies, the fallback when it is absent, and Tauri as the rejected alternative with the reason (a Rust toolchain this stack does not have). That is the (DECIDED) shape AGENTS.md asks for rather than a bare mention.
ui.md §5's bullet is settled rather than left leaning, and says the useful thing: "the lean was wrong about which cost bites first — adjacency never came up; being unable to see a blank window's console did, on the first day the thing was opened." §6 replaces "browser tab, no shell" with the reversal stated outright, including "this bullet said 'browser tab, no shell' when first written, and shipped the opposite two days later". A plan that records being wrong about its own prediction is worth more than one that quietly agrees with itself.
And ui.ts:314 now cites "ui.md §6, settling §5's open question" — a section that exists — with the weight pointed at project-core.md §5.
The profile path is field-ui-profile-${process.getuid?.() ?? 'win'}, which is the fix exactly.
The finding
docs/projects/all/ui-timeline.md is a new 313-line plan for the UI's second face, riding a commit about the shell record. The plan is fine — Draft, so its open questions gate nothing; next.md updated as the convention wants; both cross-references resolve; and nothing in ui.md points at it, so it is fully separable. The issue is that it lands inside a squash whose message will say "The UI's first version, implemented". Detail inline.
Note
ui-timeline.md arriving at status: Draft is why its §10 — six open questions, several frank leanings — withholds nothing here. Worth naming explicitly so the exemption is visible rather than looking like the gate was forgotten: Draft claims no readiness, so open questions in it block nothing, and the verdict on this head comes from the rest of the review alone.
…ron is named (#163 review) Three documentation defects behind one code change, all of them the same defect: the shell shipped and the paperwork did not follow it. ui.md §6 said "browser tab, no shell" — this pull request's own claim about what the implementation settled — while the implementation opens an Electron window and spells the tab as an opt-out. §6 now records the shell, and records it with the reason that actually fired rather than §5's: adjacency with chunk 3's plugin editors never came up (those editors do not exist), and what did come up on the first session that opened the thing is that a blank tab cannot be diagnosed remotely. The first render crashed on a React error nobody could see; the shell mirroring the renderer console to the terminal is what found it. §5's "leaning: browser first" gets its disposition, saying the lean was wrong about which cost bites first. project-core.md §5 named three additions one commit ago, at this review's request, and electron makes four — the one worth arguing about, being a whole Chromium and Node runtime with a download step and a security cadence, rather than a library. The amendment names that weight, what it buys (a window that owns its lifetime, and failures visible to whoever can fix them), its confinement to the ui/ workspace member's devDependencies, and Tauri as the rejected alternative with why. Also from the review: the shell's profile directory is per-user, since tmpdir() is shared on Linux and a fixed name there belongs to whoever launches first — whose second user's failure would arrive as exactly the cache noise that line exists to suppress. Co-Authored-By: Claude Fable 5 <[email protected]>
…ron is named (#163 review) Three documentation defects behind one code change, all of them the same defect: the shell shipped and the paperwork did not follow it. ui.md §6 said "browser tab, no shell" — this pull request's own claim about what the implementation settled — while the implementation opens an Electron window and spells the tab as an opt-out. §6 now records the shell, and records it with the reason that actually fired rather than §5's: adjacency with chunk 3's plugin editors never came up (those editors do not exist), and what did come up on the first session that opened the thing is that a blank tab cannot be diagnosed remotely. The first render crashed on a React error nobody could see; the shell mirroring the renderer console to the terminal is what found it. §5's "leaning: browser first" gets its disposition, saying the lean was wrong about which cost bites first. project-core.md §5 named three additions one commit ago, at this review's request, and electron makes four — the one worth arguing about, being a whole Chromium and Node runtime with a download step and a security cadence, rather than a library. The amendment names that weight, what it buys (a window that owns its lifetime, and failures visible to whoever can fix them), its confinement to the ui/ workspace member's devDependencies, and Tauri as the rejected alternative with why. Also from the review: the shell's profile directory is per-user, since tmpdir() is shared on Linux and a fixed name there belongs to whoever launches first — whose second user's failure would arrive as exactly the cache noise that line exists to suppress. Co-Authored-By: Claude Fable 5 <[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 5m 46s over 2 heads
This pull request adds field ui <song>, a desktop face for a playing song: a server inside field's own process serves a React client, in an Electron window or a browser tab, over one WebSocket guarded by Origin and a per-launch token. Every edit ends as YAML written through the comment-preserving Document editor, carries the sha256 of the bytes it came from, and is loaded as the project would be before it is written, so neither a stale view nor an edit that would turn the song red reaches the file. It ships the transport, a mute: placement field that silences a placement and its sends, solo as a session-only alternate feed, a timeline with waveforms, clip move, split, and trim, and an insert panel with an EQ curve ported from the native biquad code. It flips the UI plan to in-progress with §6 recording what shipped, and leaves live ramps during a fader drag, and solo on audio placements, for later.
23 finding threads: 23 resolved, 0 open
Covered 45 of 46 changed files. pnpm-lock.yaml was skipped as generated.
This head looks clean. No finding thread is open, and this review opens none, so a human approval is what remains.
Disclosures
- Reviewed without running the head.
eve-nyx-13has no write access to this repository, and the commits name an author outside it, so no test, build, script, or gate from the head ran here. Nothing ran for this head at all. The previous review's disclosures list the standalone scripts that ran then. - What this review read. The merge base is still
0b26d94, so every file no commit sinceeb413a8touched has the diff that the full review ofeb413a8read. This review read the 24 commits since then in full: 20 that answer that review's 21 findings, and 4 that answer its suggestions. It followed each change out to the callers it affects. - The head moved mid-review. The review started on
203c91a.739fc22added four commits that refuse a front trim before converting it, commit a solo only after its swap succeeds, let space run the transport from a focused button, and keep the shell's window on its session. - CI. Both jobs were still running at
739fc22when this review was written. The run on203c91awas cancelled by the next push. - Earlier findings. All 21 findings from the review of
eb413a8are fixed at this head. The fix session resolved 18 of them, and each was checked against the code here. This review resolved the other three with afixedreply. The two findings from the review of04a0857were settled before. - The author's own threads. Five threads from
eve-nyx-13's self-review are still open, and they are the author's to resolve. The repository's ruleset requires every thread resolved before a merge. All five are addressed or obsolete at this head: the receive index (07447dd), the duration spelling (bd30180), and the fades (8a00e01for trims, and the load-before-write check for a split) are fixed. The thread on the olddocs/projects/all/ui.mdpath is outdated by the move, and the one ondaw-featurespoints atnext.md, which no longer exists. - The plan flip.
docs/projects/ui/readme.mdmoves fromdrafttoin-progress. All six of §5's questions are settled, so the flip owes no open question. §6 now records the timeline, the clip edits, and the insert editor as non-goals the first version crossed, each with its reason.project checkpasses on this head's plans.
Suggestions
src/model/cables.ts:440: In the audible pass, a mute that makes a receiver's parent paths disagree setsanyError, which nothing reads after that pass, and the receiver keeps the first parent's arrivals. Muting a sender in one of two homes therefore silences, or keeps, the shared receiver's reverb in both, depending on which parent edge comes first. Report the disagreement, or treat it as silent.src/model/cables.ts:520:field explainspells a cable whose every sender placement is muted as0 arrivals at samples. Say that the cable is silent because its senders are muted.docs/build-graph.md:197: The mix-assembly §1 citation now follows the new mute sentence, so it appears to back the mute claim. Move it back after "render daemon".ui/src/Timeline.tsx:378: Each frame during playback re-renders every row and rebuilds each 1,200-bucket waveform path. Memoize the path perpeaksarray and wrapRowinReact.memo.src/model/solo.ts:81: Carriers keep their send cables, but their receivers never become audible, so soloing a row inside a bus with a reverb send drops the bus reverb. Root the receivers of kept carrier cables, or narrow the header comment to match.src/model/levels.ts:65andsrc/commands/arrangement.ts:54:field explainandfield arrangementstill show muted placements as audible. Skip or label them.ui/src/App.tsx:335: The EQ curve and auto-gain use the session rate, while a track with its ownrate:designs its filters at that rate. Carry the track's rate on the lane.src/commands/ui-timeline.ts:170: This repeatslocalMapsfromui.ts, and both build tempo maps at the session rate wheregraph.tsuses the track's rate. Share one helper.src/commands/ui.ts:825:http.listenruns after the daemon session loads and has no'error'listener, so a taken--portreplaces the playing session and then crashes. Listen before loading the session.src/commands/ui.ts:210:snapshot().lanes,UiLane, andfile.sha256are built for every snapshot and never read by the client. Drop them.src/commands/ui.ts:862: The session token travels in the shell's argv, which other users can read from/procon a shared Linux host, andshell.cjs:23uses a predictable profile path under the shared temp directory. Pass the URL through the environment, and create the profile withmkdtemp.ui/package.json:21:vite^6pulls a secondesbuildbeside the one vitest'svite7 uses. Use^7.pnpm-lock.yaml:electron43.4.1 has GHSA-qmv3-fv6v-rmhq (high, fixed in 43.5.0), and theundici7.29.0 under@electron/gethas advisories fixed in 7.29.1. Neither is reachable from a shell that loads only the local page, and a lockfile refresh within the existing ranges clears both.src/commands/ui-edits.test.ts:83: Thefullhelper and the tempo constants repeat across describe blocks. Hoist them.
What was checked
- The insert edit.
applyInsertEdititerates the keys ofsetand takes each value from the validated parse, so the defaults that.partial()fills in never reach the file. - Mute and sends. The cable walk decides structure and diagnostics with every placement counted, then computes the arrivals that sound without muted edges.
graph.tsdrops a cable with no arrivals as an input, so the receiver stops depending on the sender. The memos are per cable, so the second pass never leaks into the next cable. - Solo and frozen stems.
compileSessionbuilds its files withbuild(project, graph, nodes)from its own soloed graph, whose node keys match the labels it builds, so a frozen carrier gets its soloed stem. A solo is held only after its swap succeeds, and it is dropped when its track disappears. - The writes. Every file-writing message runs through one promise chain. Each write loads the project with the edited text through a synchronous, single-load override, and is refused with the first error that was not there before. A
samerecompile only pushes a snapshot. - The timeline. Each row keeps its index in the unfiltered
inputs:list. Children start atstartSample − (source_offset − slip), scaled from the placed track's rate. An open window lasts for the source's frames minus the read offset, which is the lengthstem.tsresolves. - The edits' arithmetic. A musical split or front trim advances
source_offsetby the distance the window edge moved to its tick. Trims refuse fades that would outgrow the clip, and a front trim before the track's start is refused before any tick conversion. - The server's edges. Pause and stop push a snapshot with the transport's sample. The cross-rate guard reads the WAV header when the ledger has no rate. A shell that exits non-zero before any view connects falls back to a browser. The teardown stops the transport and terminates open sockets.
- The client. The width slider and the faders write once on release, by pointer or key, and faders are keyed by file and entry. The frame loop runs only while playing and redraws once per anchor move. A song without
time:moves its playhead at the session rate..tl-laneisolates its own stacking context. Space runs the transport from a focused button, with the button's own activation cancelled. - The shell. Electron opens only
httpandhttpslinks externally, andwill-navigatekeeps the window on the session's origin. - The docs. The
muteandfield uitext indocs/tracks.md,docs/build-graph.md, anddocs/architecture.md, and the §6 bullets in the UI plan, match the code at this head.
# Conflicts: # native/audiod/src/capture.cpp
The keyboard-instrument chunks from main brought keys.cpp, which MSVC would reject twice. Its non-blocking stdin check used poll and read from <poll.h> and <unistd.h>; on Windows it now asks PeekNamedPipe, and a closed pipe reads as ERROR_BROKEN_PIPE. It also called MidiOutput::createNewDevice, which JUCE declares only on macOS and Linux because Windows has no virtual MIDI ports; there the helper now refuses with the message it gives any failed publish. keys/helper-native.test.ts skips its round trip on win32 for want of a virtual port, as it already does on Linux without ALSA, and record-midi-daemon's daemon describe takes the serve-mode guard, naming chunk 4. The plan records the port in a chunk 2 amendment, adds the new describe to §7.1's list, and records in §7.2 that field keys cannot publish a source on Windows.
# Conflicts: # docs/projects/windows-portability/readme.md
… port #160 guarded record-midi-daemon's daemon describe on win32, naming chunk 4. This is chunk 4, so the describe runs on Windows again, and its tests that need a published source now meet the reason Windows still cannot run them: there are no virtual MIDI ports, so --keys refuses. publish() reports that as unavailable on win32, as it already does on Linux without ALSA, and those tests skip; advertising record-midi and refusing to arm with no source still run. The plan's chunk 4 paragraph lists the guard with the ones it retired.
§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.
Justin decided the open daw-features thread: the four §16 picks become projects. Each gets a short stub plan at status draft, priority later, with its goal and a pointer back to its catalogue section: detail-pane (§2), actions-and-macros (§6), sound-browser (§14), and key-conforming (§15). §16 links each pick to its project, and the goal line now says the catalogue commits to nothing itself while its picks graduate into projects, as these four have.
The comment on the two sclang-stub tests said a real sclang.exe goes through the same spawn untouched. Since #179, runScProgram finds sclang through sclangCommand first, which looks for "sclang" without ".exe" and treats a native FIELD_SCLANG path as a name to search for, so on Windows a real sclang never reaches the spawn. The comment now says so and points at windows-portability.md §7.2, which records the gap.
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 25s
This pull request adds field ui <song>, a desktop face for a playing song: a server inside field's own process serves a React client, in an Electron window or a browser tab, over one WebSocket guarded by Origin and a per-launch token. Every edit ends as YAML written through the comment-preserving Document editor, carries the sha256 of the bytes it came from, and is loaded as the project would be before it is written. It ships the transport, a mute: placement field, solo as a session-only alternate feed, a timeline with clip edits, and an insert panel with an EQ curve. This head merges main's keyboard stack into the base and turns the daw-features catalogue's four picks into project stubs at priority: later.
23 finding threads: 23 resolved, 0 open
Covered 49 of 50 changed files. pnpm-lock.yaml was skipped as generated.
This head looks clean. No finding thread is open, and this review opens none, so a human approval is what remains.
Disclosures
- Reviewed without running the head.
eve-nyx-13has no write access to this repository, and the commits name an author outside it, so no test, build, script, or gate from the head ran here. Nothing ran for this head. - What changed since
739fc22. The base moved from0b26d94tobeb3394, which brings main's keyboard stack (#178–#182), #159, and #176. Measured against each head's own base, this pull request's diff is unchanged in every file except the five that02f988etouches:daw-featuresand four new project stubs. The merged55b712had one conflict, insrc/cli.ts, and the resolution keeps bothfield uiand main's newrecordwording. - CI. Both jobs were still running at
02f988ewhen this review was written. - Earlier findings. All 23 finding threads stay resolved, and the code they concern is unchanged at this head.
- The author's own threads.
eve-nyx-13's self-review threads are the author's to resolve, and the repository's ruleset requires every thread resolved before a merge. At this head,02f988eanswers thedaw-featuresone: the four picks are now projects. - The plans. The four stubs (
actions-and-macros,detail-pane,sound-browser,key-conforming) arrive atdraftandlater, each with a title, a goal, and a pointer to its catalogue section, which is whatdocs/projects/README.mdasks of a project with no plan yet. None claims readiness.project checkpasses on this head's plans.
Suggestions
src/commands/ui-timeline.ts:215: Arecord:entry, whether it holds audio or MIDI takes, is labelledinput Nand has neither a waveform nor a source length, so it is drawn to the song's end. Name it by its generator name, and size and draw it from the chosen take's file, or from itsvoice-renderoutput for a MIDI take.src/model/cables.ts:440: In the audible pass, a mute that makes a receiver's parent paths disagree setsanyError, which nothing reads after that pass, and the receiver keeps the first parent's arrivals. Report the disagreement, or treat it as silent.src/model/cables.ts:520:field explainspells a cable whose every sender placement is muted as0 arrivals at samples. Say that the cable is silent because its senders are muted.docs/build-graph.md:198: The mix-assembly §1 citation now follows the mute sentence, so it appears to back the mute claim. Move it back after "render daemon".ui/src/Timeline.tsx:378: Each frame during playback re-renders every row and rebuilds each 1,200-bucket waveform path. Memoize the path perpeaksarray and wrapRowinReact.memo.src/model/solo.ts:81: Carriers keep their send cables, but their receivers never become audible, so soloing a row inside a bus with a reverb send drops the bus reverb. Root the receivers of kept carrier cables, or narrow the header comment to match.src/model/levels.ts:66andsrc/commands/arrangement.ts:54:field explainandfield arrangementstill show muted placements as audible. Skip or label them.ui/src/App.tsx:335: The EQ curve and auto-gain use the session rate, while a track with its ownrate:designs its filters at that rate. Carry the track's rate on the lane.src/commands/ui-timeline.ts:170: This repeatslocalMapsfromui.ts, and both build tempo maps at the session rate wheregraph.tsuses the track's rate. Share one helper.src/commands/ui.ts:825:http.listenruns after the daemon session loads and has no'error'listener, so a taken--portreplaces the playing session and then crashes. Listen before loading the session.src/commands/ui.ts:210:snapshot().lanes,UiLane, andfile.sha256are built for every snapshot and never read by the client. Drop them.src/commands/ui.ts:862: The session token travels in the shell's argv, which other users can read from/procon a shared Linux host, andshell.cjs:23uses a predictable profile path under the shared temp directory. Pass the URL through the environment, and create the profile withmkdtemp.ui/package.json:21:vite^6pulls a secondesbuildbeside the one vitest'svite7 uses. Use^7.pnpm-lock.yaml:electron43.4.1 has GHSA-qmv3-fv6v-rmhq (high, fixed in 43.5.0), and theundici7.29.0 under@electron/gethas advisories fixed in 7.29.1. Neither is reachable from a shell that loads only the local page, and a lockfile refresh within the existing ranges clears both.src/commands/ui-edits.test.ts:83: Thefullhelper and the tempo constants repeat across describe blocks. Hoist them.
What was checked
- Mute on a
record:entry.planForfilters muted entries atgraph.ts:403, beforewithTakesexpands a record entry into its take at line 427. A muted entry that records MIDI therefore drops out of the stem's spec, and itsvoice-rendernode stops being a dependency, as a muted audio take does. The cable walk reads onlytrack:edges, so record entries never reach it. - Solo over record entries.
soloViewkeeps every input of an audible track, record entries included, and keeps only track placements in a carrier. Under a solo,buildGraphtherefore mintsvoice-rendernodes only for the record entries that stay, and nothing consumes the ones it skips. voice-renderincompileSession. The live session's non-live dependencies now includegen:nodes for MIDI takes.build(project, graph, nodes)finds each one ingraph.nodes, becausebuildGraphminted it under that label, and it builds with the same argumentsbuildLabels(root, toBuild)passed. Main changed nothing inlive.ts.field ui's edits on record entries. A split clones the entry, and both halves mint the same generator name, so the load-before-write check refuses it with main's own diagnostic. A move or trim of a record entry moves the window that its take fills. The newinstrument:validation inproject.tsruns inside that same load, so an edit cannot leave a MIDI entry without its instrument either.- The merge. Main's additions to
graph.ts(mintingvoice-rendernodes, andwithTakesplacing a MIDI take's render) and toproject.ts(instrument validation) sit beside this pull request's mute filter, cable filter, andloadProjectoverride without touching them. Thecli.tsresolution keeps both commands.
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 37s
This pull request adds field ui <song>, a desktop face for a playing song: a server inside field's own process serves a React client, in an Electron window or a browser tab, over one WebSocket guarded by Origin and a per-launch token. Every edit ends as YAML written through the comment-preserving Document editor, carries the sha256 of the bytes it came from, and is loaded as the project would be before it is written. It ships the transport, a mute: placement field, solo as a session-only alternate feed, a timeline with clip edits, and an insert panel with an EQ curve. This head carries up one base commit, c82062a, which rewrites a comment in src/graph/build.test.ts.
23 finding threads: 23 resolved, 0 open
Covered 49 of 50 changed files. pnpm-lock.yaml was skipped as generated.
This head looks clean. No finding thread is open, and this review opens none, so a human approval is what remains.
Disclosures
- Reviewed without running the head.
eve-nyx-13has no write access to this repository, and the commits name an author outside it, so no test, build, script, or gate from the head ran here. Nothing ran for this head. - What changed since
02f988e. The base moved frombeb3394to1df6eb6, through #160'sc82062aand #161's merge. That moves one comment insrc/graph/build.test.ts, in therunScProgramblock, which this pull request does not touch. Measured against each head's own base, this pull request's diff is identical in every file, and the mergeff0e86ehad no conflicts. So everything the review of02f988echecked holds here line for line, including how mute, solo, and the UI's edits meet main's MIDIrecord:entries andvoice-rendergenerator. - CI. Both jobs were still running at
ff0e86ewhen this review was written. At02f988e, Linux passed and the next push cancelled Windows. - Earlier findings. All 23 finding threads stay resolved, and the code they concern is unchanged at this head.
- The author's own threads.
eve-nyx-13's self-review threads are the author's to resolve, and the repository's ruleset requires every thread resolved before a merge. - The plans. The four stubs (
actions-and-macros,detail-pane,sound-browser,key-conforming) arrive atdraftandlater, each with a title, a goal, and a pointer to its catalogue section, which is whatdocs/projects/README.mdasks of a project with no plan yet. None claims readiness.project checkpasses on this head's plans.
Suggestions
src/commands/ui-timeline.ts:215: Arecord:entry, whether it holds audio or MIDI takes, is labelledinput Nand has neither a waveform nor a source length, so it is drawn to the song's end. Name it by its generator name, and size and draw it from the chosen take's file, or from itsvoice-renderoutput for a MIDI take.src/model/cables.ts:440: In the audible pass, a mute that makes a receiver's parent paths disagree setsanyError, which nothing reads after that pass, and the receiver keeps the first parent's arrivals. Report the disagreement, or treat it as silent.src/model/cables.ts:520:field explainspells a cable whose every sender placement is muted as0 arrivals at samples. Say that the cable is silent because its senders are muted.docs/build-graph.md:198: The mix-assembly §1 citation now follows the mute sentence, so it appears to back the mute claim. Move it back after "render daemon".ui/src/Timeline.tsx:378: Each frame during playback re-renders every row and rebuilds each 1,200-bucket waveform path. Memoize the path perpeaksarray and wrapRowinReact.memo.src/model/solo.ts:81: Carriers keep their send cables, but their receivers never become audible, so soloing a row inside a bus with a reverb send drops the bus reverb. Root the receivers of kept carrier cables, or narrow the header comment to match.src/model/levels.ts:66andsrc/commands/arrangement.ts:54:field explainandfield arrangementstill show muted placements as audible. Skip or label them.ui/src/App.tsx:335: The EQ curve and auto-gain use the session rate, while a track with its ownrate:designs its filters at that rate. Carry the track's rate on the lane.src/commands/ui-timeline.ts:170: This repeatslocalMapsfromui.ts, and both build tempo maps at the session rate wheregraph.tsuses the track's rate. Share one helper.src/commands/ui.ts:825:http.listenruns after the daemon session loads and has no'error'listener, so a taken--portreplaces the playing session and then crashes. Listen before loading the session.src/commands/ui.ts:210:snapshot().lanes,UiLane, andfile.sha256are built for every snapshot and never read by the client. Drop them.src/commands/ui.ts:862: The session token travels in the shell's argv, which other users can read from/procon a shared Linux host, andshell.cjs:23uses a predictable profile path under the shared temp directory. Pass the URL through the environment, and create the profile withmkdtemp.ui/package.json:21:vite^6pulls a secondesbuildbeside the one vitest'svite7 uses. Use^7.pnpm-lock.yaml:electron43.4.1 has GHSA-qmv3-fv6v-rmhq (high, fixed in 43.5.0), and theundici7.29.0 under@electron/gethas advisories fixed in 7.29.1. Neither is reachable from a shell that loads only the local page, and a lockfile refresh within the existing ranges clears both.src/commands/ui-edits.test.ts:83: Thefullhelper and the tempo constants repeat across describe blocks. Hoist them.
What was checked
- Mute on a
record:entry.planForfilters muted entries atgraph.ts:403, beforewithTakesexpands a record entry into its take at line 427. A muted entry that records MIDI therefore drops out of the stem's spec, and itsvoice-rendernode stops being a dependency, as a muted audio take does. The cable walk reads onlytrack:edges, so record entries never reach it. - Solo over record entries.
soloViewkeeps every input of an audible track, record entries included, and keeps only track placements in a carrier. Under a solo,buildGraphtherefore mintsvoice-rendernodes only for the record entries that stay, and nothing consumes the ones it skips. voice-renderincompileSession. The live session's non-live dependencies now includegen:nodes for MIDI takes.build(project, graph, nodes)finds each one ingraph.nodes, becausebuildGraphminted it under that label, and it builds with the same argumentsbuildLabels(root, toBuild)passed. Main changed nothing inlive.ts.field ui's edits on record entries. A split clones the entry, and both halves mint the same generator name, so the load-before-write check refuses it with main's own diagnostic. A move or trim of a record entry moves the window that its take fills. The newinstrument:validation inproject.tsruns inside that same load, so an edit cannot leave a MIDI entry without its instrument either.- The merge. Main's additions to
graph.ts(mintingvoice-rendernodes, andwithTakesplacing a MIDI take's render) and toproject.ts(instrument validation) sit beside this pull request's mute filter, cable filter, andloadProjectoverride without touching them. Thecli.tsresolution keeps both commands.
# Conflicts: # package.json # src/graph/live.ts
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 1m 11s
This pull request adds field ui <song>, a desktop face for a playing song: a server inside field's own process serves a React client, in an Electron window or a browser tab, over one WebSocket guarded by Origin and a per-launch token. Every edit ends as YAML written through the comment-preserving Document editor, carries the sha256 of the bytes it came from, and is loaded as the project would be before it is written. It ships the transport, a mute: placement field, solo as a session-only alternate feed, a timeline with clip edits, and an insert panel with an EQ curve. This head merges main, now its base, after the stack beneath it (#157, #158, #160, #161) and #162 squash-merged there.
24 finding threads: 23 resolved, 1 open
Covered 49 of 50 changed files. pnpm-lock.yaml was skipped as generated.
Disclosures
- Reviewed without running the head.
eve-nyx-13has no write access to this repository, and the commits name an author outside it, so no test, build, script, or gate from the head ran here. Nothing ran for this head. - What changed since
ff0e86e. The base is nowmainatb912ce8. Measured against each head's own base, this pull request's diff is identical in every file, so everything the reviews of02f988eandff0e86echecked holds here line for line, including how mute, solo, and the UI's edits meet main's MIDIrecord:entries andvoice-rendergenerator. What is new is the base around it: #162'sdocs/cli.mdmanual, which the one finding below is about. - CI. Both jobs were still running at
0ecfc4dwhen this review was written. Atff0e86e, Windows failed 11 tests, the same 11 that failed on its base: two inrecord-midi-daemon.test.ts("advertises record-midi", and "refuses to arm for MIDI where there is no MIDI source"), and nine invoice-host.test.ts, three under "resolving an instrument" and six under "the voice host process". All of them come from the base, not from this pull request. - Earlier findings. All 23 earlier finding threads stay resolved, and the code they concern is unchanged at this head.
- Outside this pull request.
docs/cli.mdonmainalso leaves outfield keys, which #178 added. That gap is the base's own, so it is not a finding here. - The author's own threads.
eve-nyx-13's self-review threads are the author's to resolve, and the repository's ruleset requires every thread resolved before a merge. - The plans. The four stubs (
actions-and-macros,detail-pane,sound-browser,key-conforming) arrive atdraftandlater, each with a title, a goal, and a pointer to its catalogue section, which is whatdocs/projects/README.mdasks of a project with no plan yet. None claims readiness.project checkpasses on this head's plans.
Suggestions
src/commands/ui-timeline.ts:215: Arecord:entry, whether it holds audio or MIDI takes, is labelledinput Nand has neither a waveform nor a source length, so it is drawn to the song's end. Name it by its generator name, and size and draw it from the chosen take's file, or from itsvoice-renderoutput for a MIDI take.src/model/cables.ts:440: In the audible pass, a mute that makes a receiver's parent paths disagree setsanyError, which nothing reads after that pass, and the receiver keeps the first parent's arrivals. Report the disagreement, or treat it as silent.src/model/cables.ts:520:field explainspells a cable whose every sender placement is muted as0 arrivals at samples. Say that the cable is silent because its senders are muted.docs/build-graph.md:198: The mix-assembly §1 citation now follows the mute sentence, so it appears to back the mute claim. Move it back after "render daemon".ui/src/Timeline.tsx:378: Each frame during playback re-renders every row and rebuilds each 1,200-bucket waveform path. Memoize the path perpeaksarray and wrapRowinReact.memo.src/model/solo.ts:81: Carriers keep their send cables, but their receivers never become audible, so soloing a row inside a bus with a reverb send drops the bus reverb. Root the receivers of kept carrier cables, or narrow the header comment to match.src/model/levels.ts:66andsrc/commands/arrangement.ts:54:field explainandfield arrangementstill show muted placements as audible. Skip or label them.ui/src/App.tsx:335: The EQ curve and auto-gain use the session rate, while a track with its ownrate:designs its filters at that rate. Carry the track's rate on the lane.src/commands/ui-timeline.ts:170: This repeatslocalMapsfromui.ts, and both build tempo maps at the session rate wheregraph.tsuses the track's rate. Share one helper.src/commands/ui.ts:825:http.listenruns after the daemon session loads and has no'error'listener, so a taken--portreplaces the playing session and then crashes. Listen before loading the session.src/commands/ui.ts:210:snapshot().lanes,UiLane, andfile.sha256are built for every snapshot and never read by the client. Drop them.src/commands/ui.ts:862: The session token travels in the shell's argv, which other users can read from/procon a shared Linux host, andshell.cjs:23uses a predictable profile path under the shared temp directory. Pass the URL through the environment, and create the profile withmkdtemp.ui/package.json:21:vite^6pulls a secondesbuildbeside the one vitest'svite7 uses. Use^7.pnpm-lock.yaml:electron43.4.1 has GHSA-qmv3-fv6v-rmhq (high, fixed in 43.5.0), and theundici7.29.0 under@electron/gethas advisories fixed in 7.29.1. Neither is reachable from a shell that loads only the local page, and a lockfile refresh within the existing ranges clears both.src/commands/ui-edits.test.ts:83: Thefullhelper and the tempo constants repeat across describe blocks. Hoist them.
What was checked
- Mute on a
record:entry.planForfilters muted entries atgraph.ts:403, beforewithTakesexpands a record entry into its take at line 427. A muted entry that records MIDI therefore drops out of the stem's spec, and itsvoice-rendernode stops being a dependency, as a muted audio take does. The cable walk reads onlytrack:edges, so record entries never reach it. - Solo over record entries.
soloViewkeeps every input of an audible track, record entries included, and keeps only track placements in a carrier. Under a solo,buildGraphtherefore mintsvoice-rendernodes only for the record entries that stay, and nothing consumes the ones it skips. voice-renderincompileSession. The live session's non-live dependencies now includegen:nodes for MIDI takes.build(project, graph, nodes)finds each one ingraph.nodes, becausebuildGraphminted it under that label, and it builds with the same argumentsbuildLabels(root, toBuild)passed. Main changed nothing inlive.ts.field ui's edits on record entries. A split clones the entry, and both halves mint the same generator name, so the load-before-write check refuses it with main's own diagnostic. A move or trim of a record entry moves the window that its take fills. The newinstrument:validation inproject.tsruns inside that same load, so an edit cannot leave a MIDI entry without its instrument either.- The merge. Main's additions to
graph.ts(mintingvoice-rendernodes, andwithTakesplacing a MIDI take's render) and toproject.ts(instrument validation) sit beside this pull request's mute filter, cable filter, andloadProjectoverride without touching them. Thecli.tsresolution keeps both commands.
The merge with main brought in docs/cli.md, the task-oriented manual for every field command, and it did not mention field ui. It now has a section on opening a song in the UI: what the window does, the client build it needs first, the URL and token it prints (real output from a scratch project), its three options, and the browser fallback. The command reference gains its row.
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 49s
This pull request adds field ui <song>, a desktop face for a playing song: a server inside field's own process serves a React client, in an Electron window or a browser tab, over one WebSocket guarded by Origin and a per-launch token. Every edit ends as YAML written through the comment-preserving Document editor, carries the sha256 of the bytes it came from, and is loaded as the project would be before it is written. It ships the transport, a mute: placement field, solo as a session-only alternate feed, a timeline with clip edits, and an insert panel with an EQ curve. Its base is main. Since the last review, this head adds a field ui section to docs/cli.md.
24 finding threads: 24 resolved, 0 open
Covered 50 of 51 changed files. pnpm-lock.yaml was skipped as generated.
This head looks clean. No finding thread is open, and this review opens none, so a human approval is what remains.
Disclosures
- Reviewed without running the head.
eve-nyx-13has no write access to this repository, and the commits name an author outside it, so no test, build, script, or gate from the head ran here. Nothing ran for this head. - What changed since
0ecfc4d. The base is unchanged atb912ce8. The only new commit,f61b4a1, adds an "Open a song in the UI" section and a command-reference row todocs/cli.md, and touches nothing else. Every other file's diff is identical to the one the reviews of02f988e,ff0e86e, and0ecfc4dread, including how mute, solo, and the UI's edits meet main's MIDIrecord:entries andvoice-rendergenerator. - CI. Both jobs were still running at
f61b4a1when this review was written. At0ecfc4d, Linux passed and the next push cancelled Windows. Atff0e86e, Windows failed 11 tests, the same 11 that failed on its base: two inrecord-midi-daemon.test.ts("advertises record-midi", and "refuses to arm for MIDI where there is no MIDI source"), and nine invoice-host.test.ts, three under "resolving an instrument" and six under "the voice host process". All of them come from the base, not from this pull request. - Earlier findings. The CLI manual thread is fixed at this head, and the fix session had already resolved it. The new section's statements match the code: the three options, the
pnpm --dir ui buildrefusal (ui.ts:766), the loopback URL with its token, the browser fallback, and that Ctrl-C or closing the window stops the transport. Its row is in the command reference. The other 23 threads stay resolved, and the code they concern is unchanged. - Outside this pull request.
docs/cli.mdonmainalso leaves outfield keys, which #178 added. That gap is the base's own, so it is not a finding here. - The author's own threads.
eve-nyx-13's self-review threads are the author's to resolve, and the repository's ruleset requires every thread resolved before a merge. - The plans. The four stubs (
actions-and-macros,detail-pane,sound-browser,key-conforming) arrive atdraftandlater, each with a title, a goal, and a pointer to its catalogue section, which is whatdocs/projects/README.mdasks of a project with no plan yet. None claims readiness.project checkpasses on this head's plans.
Suggestions
src/commands/ui-timeline.ts:215: Arecord:entry, whether it holds audio or MIDI takes, is labelledinput Nand has neither a waveform nor a source length, so it is drawn to the song's end. Name it by its generator name, and size and draw it from the chosen take's file, or from itsvoice-renderoutput for a MIDI take.src/model/cables.ts:440: In the audible pass, a mute that makes a receiver's parent paths disagree setsanyError, which nothing reads after that pass, and the receiver keeps the first parent's arrivals. Report the disagreement, or treat it as silent.src/model/cables.ts:520:field explainspells a cable whose every sender placement is muted as0 arrivals at samples. Say that the cable is silent because its senders are muted.docs/build-graph.md:198: The mix-assembly §1 citation now follows the mute sentence, so it appears to back the mute claim. Move it back after "render daemon".ui/src/Timeline.tsx:378: Each frame during playback re-renders every row and rebuilds each 1,200-bucket waveform path. Memoize the path perpeaksarray and wrapRowinReact.memo.src/model/solo.ts:81: Carriers keep their send cables, but their receivers never become audible, so soloing a row inside a bus with a reverb send drops the bus reverb. Root the receivers of kept carrier cables, or narrow the header comment to match.src/model/levels.ts:66andsrc/commands/arrangement.ts:54:field explainandfield arrangementstill show muted placements as audible. Skip or label them.ui/src/App.tsx:335: The EQ curve and auto-gain use the session rate, while a track with its ownrate:designs its filters at that rate. Carry the track's rate on the lane.src/commands/ui-timeline.ts:170: This repeatslocalMapsfromui.ts, and both build tempo maps at the session rate wheregraph.tsuses the track's rate. Share one helper.src/commands/ui.ts:825:http.listenruns after the daemon session loads and has no'error'listener, so a taken--portreplaces the playing session and then crashes. Listen before loading the session.src/commands/ui.ts:210:snapshot().lanes,UiLane, andfile.sha256are built for every snapshot and never read by the client. Drop them.src/commands/ui.ts:862: The session token travels in the shell's argv, which other users can read from/procon a shared Linux host, andshell.cjs:23uses a predictable profile path under the shared temp directory. Pass the URL through the environment, and create the profile withmkdtemp.ui/package.json:21:vite^6pulls a secondesbuildbeside the one vitest'svite7 uses. Use^7.pnpm-lock.yaml:electron43.4.1 has GHSA-qmv3-fv6v-rmhq (high, fixed in 43.5.0), and theundici7.29.0 under@electron/gethas advisories fixed in 7.29.1. Neither is reachable from a shell that loads only the local page, and a lockfile refresh within the existing ranges clears both.src/commands/ui-edits.test.ts:83: Thefullhelper and the tempo constants repeat across describe blocks. Hoist them.
What was checked
- Mute on a
record:entry.planForfilters muted entries atgraph.ts:403, beforewithTakesexpands a record entry into its take at line 427. A muted entry that records MIDI therefore drops out of the stem's spec, and itsvoice-rendernode stops being a dependency, as a muted audio take does. The cable walk reads onlytrack:edges, so record entries never reach it. - Solo over record entries.
soloViewkeeps every input of an audible track, record entries included, and keeps only track placements in a carrier. Under a solo,buildGraphtherefore mintsvoice-rendernodes only for the record entries that stay, and nothing consumes the ones it skips. voice-renderincompileSession. The live session's non-live dependencies now includegen:nodes for MIDI takes.build(project, graph, nodes)finds each one ingraph.nodes, becausebuildGraphminted it under that label, and it builds with the same argumentsbuildLabels(root, toBuild)passed. Main changed nothing inlive.ts.field ui's edits on record entries. A split clones the entry, and both halves mint the same generator name, so the load-before-write check refuses it with main's own diagnostic. A move or trim of a record entry moves the window that its take fills. The newinstrument:validation inproject.tsruns inside that same load, so an edit cannot leave a MIDI entry without its instrument either.- The merge. Main's additions to
graph.ts(mintingvoice-rendernodes, andwithTakesplacing a MIDI take's render) and toproject.ts(instrument validation) sit beside this pull request's mute filter, cable filter, andloadProjectoverride without touching them. Thecli.tsresolution keeps both commands.
Superseded: the review loop's CLEAN verdict on f61b4a1 covers the current head. Dismissed at Justin's request while Projector learns to clear its own stale verdicts.
… mute in explain, and the port bound first (#187) The reviews of #163, the UI's first version, ended clean but left a list of suggestions that the pull request merged without. This change works through that list. It takes the security-shaped items first, then the ones that make the view or the CLI say something untrue, then the tidying. Three items need a musical or product decision rather than a code change, and they are listed at the end with their options. ## Security - **A patched Electron.** `electron` 43.4.1 carries GHSA-qmv3-fv6v-rmhq (high), fixed in 43.5.0, and the `undici` 7.29.0 that `@electron/get` pulls in has advisories fixed in 7.29.1. Neither is reachable from a shell that loads only the local page, but a refresh within the existing ranges clears both: `electron` is now `^43.7.9` and `undici` resolves to 7.30.0, and pnpm regenerated the lockfile. - **The session token stays out of argv.** `field ui` passed the session URL, token included, to the shell on its command line, where other users can read it from `/proc` on a shared Linux host and from `ps` elsewhere. It now travels in the shell's environment as `FIELD_UI_URL`. - **No shared, predictable profile path.** The shell's profile was a fixed `field-ui-profile-<uid>` directory under the shared temp directory, which another user could create first and so own. `field ui` now makes it with `mkdtemp` on each launch, hands it to the shell as `FIELD_UI_PROFILE`, and removes it after the shell has exited. Removing it on Electron's quit, as a first version of this change did, fails on Windows, where Chromium still holds the profile's files open at that point. ## Correctness - **The port is bound before the session loads.** `field ui` loaded the song into the daemon, which replaces whatever it was playing, and only then listened on `--port`, with no error listener. A taken port cost the playing session and then crashed the process with an unhandled `EADDRINUSE`. The server now binds first and refuses a taken port with a message naming `--port`. The missing-client-build check moved ahead of the daemon too, and any failure while connecting closes the port. - **Mute shows up where it is asked about.** `field explain` listed the paths through a muted placement at their placement gains, and `field arrangement` listed a muted placement like any other. explain now marks such a path "muted on this path, so it is silent here" and keeps listing it, because "placed, but muted" is the answer to why a track is quiet. arrangement labels the placement "muted". - **A silent cable says so.** A cable whose every sender placement is muted printed `0 arrivals at samples ` in `field explain`. Both ends now say the cable is silent because the sender's placements are muted. - **The EQ curve uses the track's rate.** The insert panel drew a track's EQ at the session rate, but a track with its own `rate:` designs its filters at that rate. Each lane now carries `trackRate`, the track's own rate or the song's, as `graph.ts` decides it, and the panel draws at that rate. - **Generator lanes have names.** A `record:` entry was labelled `input N` in the timeline, and two `supercollider:` or `generative:` entries in one track showed the same name. All three are now named as the graph names them: the track's name, or `<track>-<id>`. - **The docs say what mute and `--browser` do.** `docs/tracks.md` says that `field explain` and `field arrangement` mark muted placements, and `docs/cli.md` says that `--browser` passes the token-bearing URL on a command line. ## Tidying - **Citation order in `build-graph.md`.** The mix-assembly §1 citation now sits beside the sentence it backs, not after the mute sentence. - **Unused snapshot fields are gone.** Snapshots no longer carry `lanes` or the main file's hash, which the view never read and which cost a parse and a second file read on every snapshot. - **The waveform path is built once per envelope**, not once per row per frame while playing. `React.memo` on the row would not help, because the playhead prop changes every frame. - **One vite.** The UI moves to `vite ^7`, so the lockfile carries the single vite 7 that vitest already uses, and one esbuild. - **One clock helper.** The view and its edits build an owner track's tempo and meter maps through one `ownerClock` helper. - **Shared test helpers.** The edit tests' repeated clock and `full()` helper are hoisted. ## Left for a decision - **A mute that makes a receiver's parents disagree** (`cables.ts`, the audible pass). When a receiver is placed in two parents and a muted sender placement leaves the parents hearing different arrivals, the second pass keeps the first parent's arrivals silently, so the receiver's reverb is either kept or silenced in both homes, depending on file order. The options are to report it as an error, which turns the song red when you mute; to treat the cable as silent in both homes; or to keep today's first-parent answer and say so. Which one is right is a musical call. - **A soloed row inside a bus loses the bus's sends** (`solo.ts`). Carriers keep their send cables, but the receivers of those cables never become audible, so soloing a row inside a bus with a reverb send drops the bus reverb. The options are to root those receivers, so the solo is heard through the bus's reverb, as many DAWs' solo-in-place does; or to narrow the header comment to say a carrier's sends are not heard. That is a product call. - **Cross-rate owners and record lanes in the timeline.** The view and its edits work in session samples. An absolute position inside a track whose own `rate:` differs from the session's is therefore drawn and edited unscaled, and a record lane is still drawn from its entry's window, not from where its chosen take sounds. Fixing either needs the drawn block separated from the window arithmetic that trims and splits send back, which is a protocol change worth its own plan rather than a follow-up item. - **vitest 4.** `pnpm audit` still reports two critical `tinypool` advisories and a moderate `vitest` one, all in the test runner, and fixed only from vitest 4.1.11. A major upgrade of the test runner belongs in its own change. The two high advisories under `postcss` (`nanoid`, `source-map-js`) are fixed here by a refresh within their ranges. - **The browser path's token.** `--browser` and the browser fallback still pass the token-bearing URL on a command line; `docs/cli.md` now says so. Closing it needs a one-use launch code that the server exchanges for the session token, which is a protocol change of its own. ## Testing Run these from the root of a checkout of `ui/review-followups`. `pnpm build:native` builds the daemon into `native/audiod/build`, which the daemon tests need. `pnpm --dir ui build` writes the client to `ui/dist`. Nothing else changes in the tree. ```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 992 passed | 1 skipped (993)`, a Vite build that ends `✓ built`, and `Project plans are valid.` The tests for the behavior changes are: - **`src/commands/ui.test.ts`.** The port case holds a port, runs `field ui` against it, and expects the refusal with no daemon running for the project. Before this change it timed out on an unhandled `EADDRINUSE` after spawning a daemon. - **`src/model/levels.test.ts` and `src/commands/arrangement.test.ts`.** They check the muted labels. - **`src/model/cables.test.ts`.** It checks the silent cable's wording from both ends. - **`src/commands/ui-timeline.test.ts`.** It checks `trackRate` and the record lane names. A failure in any of these means the change regressed. The shell's changes (`FIELD_UI_URL` and the `mkdtemp` profile) cannot be exercised by these tests, which never start Electron. To check them by hand on macOS, run `field ui <song>` in a project with a built daemon. The window should open on the session and play. While it is open, `ps -ax | grep shell.cjs` should show no `?t=` token in the shell's arguments, and `ls "$TMPDIR"` should show a `field-ui-profile-` directory with a random suffix that disappears after you close the window, without an error dialog. On Windows, that missing dialog is the check that matters, and these tests cannot make it. 🤖 Generated with [Claude Code](https://claude.com/claude-code) <!-- projector-summary v=1 sha=9857529f4fe62efd356578b379cc971595e3eed1 --> 📽️ **Projector summary** of 9857529: https://field.amnes.ac/reviews/187
Implements the UI plan — ninjudd's plan from #156, which this diff moves from
status: draftatpriority: nexttostatus: in-progressatpriority: 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 besidegain_db/pan— the loop entry'senabled: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.planForexcludes 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 inbuild.test.tsandcables.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.tscomputes 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-preservingDocumentmachinery 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--browseror 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 sameTempoMap/MeterMapfromsrc/time/tempo.tsto 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
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.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.limit,reverb,plate, andhall, and foreqa response curve with draggable bands. The curve's arithmetic issrc/audio/eq-response.ts, a term-by-term port ofbiquad.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;electronas the shell.The diff also adds
docs/projects/daw-features/readme.mdatstatus: 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 atpriority: later:detail-pane,actions-and-macros,sound-browser, andkey-conforming.Verified end to end, on real hardware
That run was eve's, on Windows, before the timeline and the review fixes. CI's
linuxandwindowsjobs 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/firston macOS or Linux.pnpm build:nativebuilds the daemon intonative/audiod/build, which the daemon tests need, andpnpm --dir ui buildwrites the client toui/dist, whichfield uiserves. SetELECTRON_SKIP_BINARY_DOWNLOAD=1for the install if you do not need the desktop shell.ELECTRON_SKIP_BINARY_DOWNLOAD=1 pnpm install --frozen-lockfile pnpm build:native pnpm typecheck pnpm test pnpm --dir ui build project checkYou should see a clean typecheck,
Test Files 77 passed (77)andTests 984 passed | 1 skipped (985), a Vite build that ends✓ built, andProject plans are valid.The view's server-side logic is covered bysrc/commands/ui-edits.test.ts, which compares written YAML byte for byte,src/commands/ui-timeline.test.ts, which checks each lane'sentry, a child row's origin pastslipandsource_offset, and an open window's length,src/commands/ui.test.ts, which checks that a request path cannot leaveui/dist,src/graph/live.test.ts, which checks a frozen track under a solo against the daemon, andsrc/model/cables.test.ts, which checks a muted sender. A failure inui-timeline.test.tswould 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
📽️ Projector summary of f61b4a1: https://field.amnes.ac/reviews/163