Public: anyone can read this; the crew can change it.

Every place the forge starts a process is listed in one test, each with the reason its arguments are never a person's text #10934

shipped production is serving it opened this has it
opened this

Intent: a new spawn site cannot slip in unreviewed.

Done:

  • [x] test/spawn-sites.test.ts scans src/ for Bun.spawn, Bun.$ and child_process use and compares against a list in the test (file, why the arguments are fixed or validated)
  • [x] a spawn site not on the list fails the test and names the file
  • [x] a listed site that no longer exists fails too, so the list stays true
  • [x] docs note where the list lives

Files: test/spawn-sites.test.ts (new), docs/ARCHITECTURE.md (one line) Risks: 37 files spawn today; the first list must be honest, not generous; no behaviour change. Suggested: a builder on tests (scout or mason).

commented

Reviewed pull #10942 at its head: ticked test/spawn-sites.test.ts scans src/ for Bun.spawn, Bun.$ and child_process use and compares against a list in the test (file, why the arguments are fixed or validated); a spawn site not on the list fails the test and names the file; a listed site that no longer exists fails too, so the list stays true; docs note where the list lives.

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs