Repository navigation
Note prettier and ESLint in later - #88
Conversation
|
Starting review of 94ef69c. |
minjudd
left a comment
There was a problem hiding this comment.
Reviewed 94ef69c. Every number in the plan reproduces exactly, so I spent the review on the part measurement cannot check: whether the chunks do what the plan says they do.
What I re-derived, all with prettier 3.9.6 on copies — the repo was never written to, and git status is clean:
- The four dev dependencies, no
format/lintscript, no.prettierrc, noeslint.config.*, no.git-blame-ignore-revs, noblame.ignoreRevsFile. All confirmed. find src -name '*.ts' ! -name '*.test.ts'gives 8,939 lines, median 38, p99 96, 45 over 100 columns — four for four.- The table: 1916 across 40 files tuned, 13478 at defaults. Exact.
The 7× is real and the recommendation stands. Three things do not survive contact, and they are all about scope rather than arithmetic — the plan measures src/**/*.ts and then makes promises about the repository. The one that matters is chunk 2: a .prettierrc with no .prettierignore does not close §1's sharp edge, it moves it to docs/, where the same config rewrites 22 of 30 markdown files and 495 lines, including 16 lines of this plan document. That is the #83 accident again, larger, in the files whose wrapping is deliberate — and more likely afterwards than before, because a checked-in config is what makes reaching for prettier look safe.
Requesting changes for that one. The other two threads are a mismatch between §3's two numbers and a definition of done that cannot be met as scoped; the §2 thread requests nothing — it reports an ESLint run of the exact rule set, which comes back cleaner than the section claims.
On the direction that would show this is misjudged: the plan is right that a near-no-op tuned diff would mean prettier should just be adopted without ceremony, and it is not a no-op. But the reverse is worth stating too — of the 1,926 lines the tuned run touches, 1,072 are in test files, so the source the §3 statistics describe costs 854. Still not a no-op, still worth the ceremony, smaller than the headline.
One nit not worth a thread: the later.md entry leads with a link, where all eleven existing entries in that file lead with a bold name and put links in the prose. now.md uses link-first, so both styles exist in the repo — it is only within later.md that the new line is the odd one.
No objection to later.md over next.md. Nothing here is blocked on it, and the middle chunk is cheap enough to lift out whenever.
Neither is installed and no config exists, so anything that reaches for a formatter applies its own defaults — which is how a sixty-line change in #83 became three hundred and twelve and had to be reverted. A line, not a plan: nobody has committed to when, and the shape of the work is not in question. ESLint changes no bytes and could land tomorrow; prettier cannot, because a config matched to the existing style still rewrites about 1,900 lines. That is the whole of what there is to say until someone picks it up.
94ef69c to
596fa88
Compare
minjudd
left a comment
There was a problem hiding this comment.
Approving 596fa88. The plan document is gone and this is three lines in later.md — a to-do, which is what was wanted. Against main it is docs/projects/later.md | 3 +++ and nothing else.
All four earlier findings were about the document's scope claims, so deleting it retires them rather than answering them; resolving them on that basis. The line now leads with a bold name like the other eleven entries in the file, which was the one nit that outlived the document.
Disclosure: I wrote this head, at Justin's direction, so this approval records the state rather than an independent read of someone else's work.
…o date (#176) The project plans had drifted from `main`, and one rule in `docs/projects/README.md` was keeping them that way. The rule held a project at `in-progress` and `priority: now` after its code shipped, until real music had been made with it. Projector defines `completed` as "the project no longer needs work", so the rule bent both fields. Ten of the twelve projects at `now` had shipped, and `project list` could not tell them from the two still being built. This change removes the rule, closes projects when their work is done, and brings every open plan up to date with `main`. Eleven projects complete. `project-core`, `multi-rate`, `cross-rate-live`, `realtime`, `reverbs`, `nested-tracks`, `voice-generation`, `recording` and `add-insert` shipped. `watch` was superseded when realtime's chunk 3 (#139) replaced its play half. `engine-umbrella` is abandoned, because the docs now use "engine" for `field-audiod`. Each `**Outcome:**` line names what shipped and which acceptance clauses stand short, so closing a project does not claim more than was proven. For example, `reverbs` records that creek's room was never chosen, and `recording` records that its latency compensation has never been checked against an Apollo take. Owed work that would otherwise have closed with its parent moves somewhere it stays visible. Five draft stubs carry it: `track-rename` from project-core §6, `pickups` from nested-tracks §1.6, `streaming-rings` from realtime §7, `comping` from recording §10, and `apollo-session` from recording §11, §12.10 and §13.2. `apollo-session` holds the work that waits on a take recorded on the Apollo: the loopback latency measurement, the checks owed to the first hardware session, and the `hardware/` schema. `add-insert`'s editor handoff moves into plugin-hosting's chunk 3, which builds the `field open` it needs. After the audit, `plugin-hosting` is the only project at `now`. `remote`, `ui` and `streaming-rings` are at `next`; remote §9.1 records why its last chunk can wait for the site's render worker. Everything else is at `later`, including `windows-portability`. `windows-portability` and `ui` stay `draft`, though #157–#161 and #163 implement them. Each plan gives the flip to `in-progress` to the change that answers its open questions, and those questions are still open on `main`. #157 and #163 answer them and flip the status in the same diff, so the status moves when they merge. Their priorities get revisited once those PRs are reviewed. The plans that stay open lose the close-condition Outcome lines the rule gave them, and their bodies carry their progress instead. Text the audit found stale is corrected after each claim was checked against the code or the site's plan: - `plugin-hosting` §2 and §7 pointed the cross-machine cache at `remote-asset-store`, but the `remote` plan took that role. - `remote` §9.11 gains the answer the site's plan gave in audiofield-io §10.15. - `lint-and-format`'s reformat cost was re-measured with #88's own probe. It is now 5,209 lines across 86 files, up from 1,916 across 40. The plan's copy of the probe reformats a temporary copy of `src/`, so pasting it never rewrites the repository. - `splice` no longer claims to be Field's first interactive surface. - `automation` gains the tempo-map conflict with playback §3.6 as an open question. - `docs/README.md`, `architecture.md`, `audio-engine.md` and `project-model.md` stop describing shipped work as future. `AGENTS.md` drops `afconvert` from its stack list, because project-core §5 recorded it as superseded. `project init` also refreshed the generated Projector section of `AGENTS.md` to version 2, which adds the template's paragraph on opening dependent work as a `gh stack`. ## Testing Run these from the repository root on this branch. The first four read files only, need nothing built, and leave no state behind. ```sh project check ``` You should see `Project plans are valid.` and no `instructions-outdated` warning. Any error here, or the warning still printing, means a frontmatter edit or the `AGENTS.md` refresh is wrong. ```sh project list ``` `now` should list only `plugin-hosting`. `next` should list `remote` as `in-progress`, and `streaming-rings` and `ui` as `draft`. `later` should list every project as `draft`, including `windows-portability`, `apollo-session`, `comping`, `pickups` and `track-rename`. `completed` should include the eleven projects above. A completed project that still has unbuilt work with no stub to carry it, or an open project with nothing left to do, means a status edit is wrong. ```sh grep -rn "Stays open\|neighbours' precedent\|Shipping the code does not finish" docs/ ``` This should print nothing. Any match is a leftover of the removed rule. ```sh git diff --check origin/main ``` This should print nothing. To check the `lint-and-format` figures, run the four-line probe in `docs/projects/lint-and-format/readme.md` from the repository root, then `git status`. The probe needs the network for `pnpm dlx prettier@3`, and it leaves a reformatted copy of `src/` in a `mktemp` directory. It should print `5209`, then `86`, and `git status` should still be clean. A modified file under `src/` means the probe wrote to the repository. The Outcome lines and corrections cite PRs, sections and code that were checked against `main` at `3d26d52`, and the site's plan in the `audiofield` repository. Each "stands short" claim names a section of its own plan, so you can confirm it with `project show <name>` and the cited section. <!-- projector-summary v=1 sha=66b04ee498828290a904d5c87095fd14dcd0d22f --> 📽️ **Projector summary** of 66b04ee: https://field.amnes.ac/reviews/176
Neither is installed and no config exists, so anything that reaches for a formatter applies its own defaults — which is how a sixty-line change in #83 became three hundred and twelve and had to be reverted.
A line, not a plan: nobody has committed to when, and the shape of the work is not in question. ESLint changes no bytes and could land tomorrow; prettier cannot, because a config matched to the existing style still rewrites about 1,900 lines. That is the whole of what there is to say until someone picks it up.
Testing
Three lines in
later.md, no document. Nothing to run — but the one number in the line is worth being able to check, since it is the reason prettier is not free. On a copy, so the repo is never written to:1916, across 40 files. If that came back near zero the line would be wrong and prettier should just be adopted without ceremony. Clean up withrm -rf /tmp/fmt-probe;git statusin the repo should be clean afterwards.