Public: anyone can read this; the crew can change it.
The real-cell proof walks the stranger's path: claim link, first ask makes a new app, green lands live, second change lands #12062
This adds a real-cell test that walks the stranger's path, but I could not run the walk itself here, so it has never executed. The sandbox can't bind a unix socket or start a cell. The test skips under FORGETESTSOCKET and says so.
stopped parked by the crew deploy 488f1cc
3 earlier comments
This adds a real-cell test that walks the stranger's path, but I could not run the walk itself here, so it has never executed. The sandbox can't bind a unix socket or start a cell. The test skips under FORGE_TEST_SOCKET and says so. Locally, bun x tsc --noEmit, scripts/gate.ts and the related repository tests pass. The first real run will be the forge's check on this push. If it comes back red, the failure message names the phase that ran out or the assertion that failed.
What changed
test/spawn-stranger-cell.test.tsis the test, besidespawn-cell-e2e.test.tsand using its helpers.test/helpers/real-stranger-e2e.tsdoes the walk, in its own process like the other cell helpers, soFORGE_CELLS=offdoesn't reach it. It posts a forge name to the home page's start form with no account and brings up the child in a real cell at the default size.- It then claims the forge with the forge's own name as username and a password, with no email. Next it posts "a page that says hello and shows today's date" through the form on the forge's first screen.
- The test asserts that:
- The cell holds 2048 MiB and 1 CPU.
- The ask is filed on a new app, never
asker/forge, and the forge's own copy has no issue. - The first pull merges on green and the app's URL serves "Hello!" with today's date.
- A second ask ("also say goodbye above the notes") also merges and serves "Goodbye" with the first change kept.
- No response was 429 and no stop was recorded for the child.
test/helpers/stranger-claude.shis the only stub. The parent already handsFORGE_CLAUDEto its cells (#12001), so no change to the crew runner was needed. The cell hides the temp directory, so the stub lives in the repository.- The stub makes one fixed edit to the app template's
src/page.ts, and it approves as the reviewer. The second pull needs that approval because the first-change rule applies only once (#12055). Everything else is real: the cell, the crew's clone and push, the pull, its check and the deploy. docs/features/real-cell-proof.mddescribes the walk.
Budget
- I named the budget: the test's timeout is 560 s. The phases are cell up 120 s, each pull 240 s and each page 90 s.
- That is over the 5-minute shard budget in the worst case, so I named it rather than hid it.
Left out and unconfirmed
- Requests carry no
Originheader, which the origin gate treats as a non-browser caller. A browser-faithfulOriginwould need the child's public address. - The "pull pasted from the forge's check" item can only be filled once the check has run.
- Running the same journey on production is still for a person, as the issue says.
- The stub's
sededit was checked only against the baked template file, so it assumes the child's new app is scaffolded from that template. - The crew's own sandbox nested inside the child's cell is untested.
To try it: on a host with bwrap and socat, run bun test test/spawn-stranger-cell.test.ts without FORGE_TEST_SOCKET.
🤖 Generated with Claude Code
The gate failure is fixed and pushed. The gate and bun x tsc --noEmit both pass locally. I didn't run any tests, since the only change is comment wrapping.
The gate flagged two comment lines in test/helpers/real-stranger-e2e.ts for running past 100 columns, at lines 72 and 87. I rewrapped both across two lines each. No code changed.
The gate only sees committed changes, so it kept reporting the old lines until I committed the rewrap.
The forge's check will run again on this push.
Still red. I can't run cells here, so I haven't found the cause of the failure. I pushed a fix aimed at the most likely one, and the next check run will show whether it was right.
What the failed run showed. The walk got through most of the stranger's path:
- The forge started in a cell at the Small limits.
- The claim worked, and the ask was filed on a new app,
asker/page-says. - The first pull (#2) merged with its check green.
It then waited 90 seconds for the new app's URL to show "Hello!" and never saw it. The only statuses seen were 200, 303 and 404, and the log doesn't say which request returned 404.
What I changed in test/helpers/real-stranger-e2e.ts:
- The wait for the app to serve is now 180 seconds, because a deploy in a loaded cell may take longer than 90. The overall timeouts in
test/spawn-stranger-cell.test.tsgrow to match. - The result line now includes
lastApp(the host asked, its status, thex-forge-appheader, and the first 160 characters of the body) and the app's full repository row. If the wait runs out again, the failure will say what the app host answered instead of only that it ran out.
bun scripts/gate.ts and bun x tsc --noEmit pass locally. If the next run still fails, lastApp should show whether the app was never routed (404), served a page without the edit, or was still deploying.
This adds a real-cell test that walks the stranger's path, but I could not run the walk itself here, so it has never executed. The sandbox can't bind a unix socket or start a cell. The test skips under
FORGE_TEST_SOCKETand says so. Locally,bun x tsc --noEmit,scripts/gate.tsand the related repository tests pass. The first real run will be the forge's check on this push. If it comes back red, the failure message names the phase that ran out or the assertion that failed.What changed
test/spawn-stranger-cell.test.tsis the test, besidespawn-cell-e2e.test.tsand using its helpers.test/helpers/real-stranger-e2e.tsdoes the walk, in its own process like the other cell helpers, soFORGE_CELLS=offdoesn't reach it. It posts a forge name to the home page's start form with no account and brings up the child in a real cell at the default size.asker/forge, and the forge's own copy has no issue.test/helpers/stranger-claude.shis the only stub. The parent already handsFORGE_CLAUDEto its cells (#12001), so no change to the crew runner was needed. The cell hides the temp directory, so the stub lives in the repository.src/page.ts, and it approves as the reviewer. The second pull needs that approval because the first-change rule applies only once (#12055). Everything else is real: the cell, the crew's clone and push, the pull, its check and the deploy.docs/features/real-cell-proof.mddescribes the walk.Budget
Left out and unconfirmed
Originheader, which the origin gate treats as a non-browser caller. A browser-faithfulOriginwould need the child's public address.sededit was checked only against the baked template file, so it assumes the child's new app is scaffolded from that template.To try it: on a host with bwrap and socat, run
bun test test/spawn-stranger-cell.test.tswithoutFORGE_TEST_SOCKET.🤖 Generated with Claude Code
Closes #12050