Repository navigation
Conversation
…er and undefined (#1442)
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Review ledgerRound 1: 22aa318 {"findings":[{"id":"R1","role":"code","class":"architecture 13 manual made false","outcome":"fixed","path":"src/drivers/AGENTS.md","round":"1","fix":"4c0c079e8a5756741ea9efed9d2a052d33a252ea"}]}Written by an agent. |
Agents now search code shapes with ast-grep instead of grep, so a helper's body written out again is easy to find. This follows the [ast-grep guide for AI agents](https://ast-grep.github.io/advanced/prompting.html): a standing `AGENTS.md` instruction plus its agent skills. - `@ast-grep/cli` 0.51.3 is a dev dependency (`pnpm exec ast-grep`), allowed to build its binary, and ignored by Fallow because nothing imports it. - `AGENTS.md` gains a Code search section; `EXPLORATION.md` points to it. - `toolchain.md` lists the commands and six traps, each measured on this repo. - `.claude/settings.json` loads ast-grep's plugin (two skills) from an inline marketplace pinned to `0613dc7f`, because a plugin can add hooks. A new machine runs `claude plugin install ast-grep@simlock-pinned --scope project` once. ast-grep is for search only; lint rules stay in oxlint and `src/lint-rules.test.ts`. How I checked it: - On the pre-#1849 tree, one shape search found 107 copies of the error-message fallback, against 12 named helpers. - grep finds 0 of the 2 multi-line `<div onClick>` in `ui/src`; ast-grep finds both. - A/B: 6 Opus agents, 3 with the skill, all scored 100%. The skill ships because the guide recommends it. - A headless session in a fresh worktree lists both skills. ## Review Spec review: skipped. Code review: skipped. Claims review: 1 blocking, 1 fixed, 0 notes. Rounds: 2. Tokens: 0.8M. Runs: 3. Cost USD: 0.4263. Agent seconds: 152. Assessment: complete *Written by an agent.*
Closes #1442
Status
Implement: done (build 4/4, audit 3/3, fix 4/4) Review: r1 + fix-check + r2 (spec) passed, 0 open Hardware: n/a Gate: running
Next: gate on #1849 (the whole stack)
Done when
src/shared/exists with anindex.tsexportingerrorMessage, anAGENTS.mdholding the admission rule of Modules touched, and aCLAUDE.mdholding@AGENTS.md;docs/internal/ARCHITECTURE.md's module table has asharedrow linking that manual, and its dependency table has ashared-imports-nothingrow —src/shared/index.test.tsandsrc/docs-manuals.repo.test.tspass; rows read in review..dependency-cruiser.mjshasshared-imports-nothingandshared-imports-nothing-unresolved, andcli-router-imports-no-component-values,updater-imports-littleandmodules-imports-littleallowsrc/shared/, and they andhost-load-imports-ports-onlysay so in their comments —src/lint-rules.test.tsB2/B3pathCases; comments read in review.git grep -nE 'instanceof Error \? [A-Za-z_.]+\.message : String\(' -- 'src/*.ts' ':!*.test.ts'prints exactly one line, insrc/shared/, andgit grep -n 'function errorMessage' -- 'src/*.ts'prints exactly one line, insrc/shared/. The two test-file unwraps of F3 remain — both greps run in the audit; code lens re-derived all 98 converted files.src/mcp/connect.tscalls the shared helper and has noisSimlockErrorfast path of its own — read in the audit and review; B1'sSimlockErrorcase.src/lint-rules.test.tsholds the cases and the copy check of Tests, andsrc/cli/lazy-loading.test.tspasses unchanged — both files run in the audit; lazy-loading test not in the diff.pnpm checkpasses — CI at the head commit (checked before the gate).Assumptions
none
Review
Spec review: 0 blocking, 0 fixed, 0 notes. Code review: 1 blocking, 1 fixed, 0 notes. Claims review: 0 blocking, 0 fixed, 0 notes.
Rounds: 2. Tokens: 2.1M.
Runs: 9. Cost USD: 3.1936. Agent seconds: 1477.
Assessment: complete
Completion conditions
src/shared/exists, exportserrorMessage, and its manual says what may go in it —src/shared/index.ts,src/shared/AGENTS.md; Done when line 1.src/shared/, and so doesgit grep -n 'function errorMessage' -- 'src/*.ts'— Done when line 4.src/shared/importing anything but a sibling failspnpm lint—src/lint-rules.test.tsB2pathCases.src/shared/failspnpm check— the copy check insrc/lint-rules.test.ts(B4), probed in the audit.src/cli/lazy-loading.test.tspasses unchanged, andpnpm checkpasses — Done when lines 7 and 8.Written by an agent.