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

A new app's own instructions promise a check the forge never runs #192

shipped production is serving it opened this has it

Landed in pull #203 · run

opened this

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.

Suggested: Mason.

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs