Third of three things every subagent that built #16255 named as slowing it down; two small ones that touch the same habit.
Six test files each hand-roll a fake of the DigitalOcean or Hetzner API (test/pinned-*.test.ts). Adding two provider calls (an SSH key made and deleted around a create) meant editing the expected call sequence in all six, and later changes (a leading read, a plan read, a catalog seed) did it again. One helper in test/helpers/ that records calls and answers like each provider, with the common sequences named (create, replace, read), so a new call in a driver is one line in one place. The existing tests move onto it in the same change; no second way remains.
The repository has no formatter config and src/ uses long lines. An editor or agent hook that formats on save rewraps the whole file: a 45-line change became 189 changed lines, so agents change every existing src/ file by script to keep diffs honest. Add the formatter config that matches how src/ is written today (line width and all), so formatting a file is a no-op, and say in CLAUDE.md that it is there. Do not reformat the tree.
Proof: the pinned tests pass on the shared helper with fewer lines than before; running the formatter over src/ changes nothing.
Third of three things every subagent that built #16255 named as slowing it down; two small ones that touch the same habit.
test/pinned-*.test.ts). Adding two provider calls (an SSH key made and deleted around a create) meant editing the expected call sequence in all six, and later changes (a leading read, a plan read, a catalog seed) did it again. One helper intest/helpers/that records calls and answers like each provider, with the common sequences named (create, replace, read), so a new call in a driver is one line in one place. The existing tests move onto it in the same change; no second way remains.src/uses long lines. An editor or agent hook that formats on save rewraps the whole file: a 45-line change became 189 changed lines, so agents change every existingsrc/file by script to keep diffs honest. Add the formatter config that matches howsrc/is written today (line width and all), so formatting a file is a no-op, and say in CLAUDE.md that it is there. Do not reformat the tree.Proof: the pinned tests pass on the shared helper with fewer lines than before; running the formatter over
src/changes nothing.Files: test/helpers/, test/pinned-forge.test.ts, test/pinned-hetzner.test.ts, test/pinned-claim.test.ts, test/pinned-ceiling.test.ts, test/pinned-harden.test.ts, CLAUDE.md