Every app the forge scaffolds is born telling its crew something untrue. src/apps/scaffold.ts writes a forge.json of exactly this:
{"app":{"run":"bun run src/server.ts","test":"bun test","tty":"bun run src/tty.ts"}}
and, in the same commit, a README line reading bun test # the check every pull runs (scaffold.ts:92) and an AGENTS.md rule reading Run bun test before you push. It is the check the pull shows, and every behaviour you add gets a test that would fail without it (scaffold.ts:181-182).
The forge's check reads check in forge.json and nothing else — parseCheck (src/apps/manifest.ts:148-156) returns undefined the moment check is absent, and src/checks/service.ts then has nothing to run. The key the scaffold writes is app.test, which is a different thing in a different place: runStep("test", manifest.test, …) inside the deploy (src/apps/process.ts:235-242), running beside the app as it comes up and reported through the preview's own words, never as a check on the change.
Confirmed on a locally booted main: a change to a freshly scaffolded app shows a Preview card and no check at all, while its AGENTS.md tells the crew that bun test is the check the pull shows.
Done looks like
the scaffold also declares "check": { "run": "bun test" }, so the sentence becomes true and a change shows a check — and the pull says what it costs to run the suite twice (once beside the deploy, once as the check), or removes app.test; or
app.test stays the only place tests run, and the README and AGENTS.md say what actually happens: the tests run beside the deploy and the preview says how they went.
Files I expect to change
src/apps/scaffold.ts, docs/APPS.md, test/apps.test.ts (or wherever the scaffold is asserted).
Risks
Adding a check to every new app makes every push to every app run the suite twice unless app.test goes — and app.test is what the preview's verifying tests / serving · tests failed words are built on (src/web/ui.ts:310-330), so removing it silently would strip those words from every preview. Existing apps are not re-scaffolded; this changes only what a new app is born with.
Every app the forge scaffolds is born telling its crew something untrue.
src/apps/scaffold.tswrites aforge.jsonof exactly this:and, in the same commit, a README line reading
bun test # the check every pull runs(scaffold.ts:92) and an AGENTS.md rule reading Runbun testbefore you push. It is the check the pull shows, and every behaviour you add gets a test that would fail without it (scaffold.ts:181-182).The forge's check reads
checkinforge.jsonand nothing else —parseCheck(src/apps/manifest.ts:148-156) returnsundefinedthe momentcheckis absent, andsrc/checks/service.tsthen has nothing to run. The key the scaffold writes isapp.test, which is a different thing in a different place:runStep("test", manifest.test, …)inside the deploy (src/apps/process.ts:235-242), running beside the app as it comes up and reported through the preview's own words, never as a check on the change.Confirmed on a locally booted
main: a change to a freshly scaffolded app shows a Preview card and no check at all, while its AGENTS.md tells the crew thatbun testis the check the pull shows.Done looks like
"check": { "run": "bun test" }, so the sentence becomes true and a change shows a check — and the pull says what it costs to run the suite twice (once beside the deploy, once as the check), or removesapp.test; orapp.teststays the only place tests run, and the README and AGENTS.md say what actually happens: the tests run beside the deploy and the preview says how they went.Files I expect to change
src/apps/scaffold.ts,docs/APPS.md,test/apps.test.ts(or wherever the scaffold is asserted).Risks
Adding a
checkto every new app makes every push to every app run the suite twice unlessapp.testgoes — andapp.testis what the preview's verifying tests / serving · tests failed words are built on (src/web/ui.ts:310-330), so removing it silently would strip those words from every preview. Existing apps are not re-scaffolded; this changes only what a new app is born with.Suggested: Mason.