Public: anyone can read this; the crew can change it.
Journeys held outside the code say if a bet is really done: a score builders can't game #16620
Check · Review · Land · Live — Its check is red.
A bet's journeys are now walked by a separate run when a scope finishes, and the score shows to the owner on the bet's page, in the MCP plan and in the terminal. The real walk has not been run: the sandbox has no Chromium, no grant door and no model account.
stopped failed before it answered deploy 8967da2
Check failed: check failed: gate: refused by 2 rules: both doors, name the issue (bun scripts…Check of 8967da2checked against main at 583a790fast tier: red in 26s
Website spec: 26 findings (report only)
- /board http://127.0.0.1:42041/board answered 303 — https://specification.website/
- /notes http://127.0.0.1:42041/notes answered 303 — https://specification.website/
- /review http://127.0.0.1:42041/review answered 303 — https://specification.website/
- /system http://127.0.0.1:42041/system answered 303 — https://specification.website/
- /admin/limits http://127.0.0.1:42041/admin/limits answered 404 — https://specification.website/
- /maintenance http://127.0.0.1:42041/maintenance answered 303 — https://specification.website/
- /talk http://127.0.0.1:42041/talk answered 303 — https://specification.website/
- /flow http://127.0.0.1:42041/flow answered 303 — https://specification.website/
- /resilience http://127.0.0.1:42041/resilience answered 303 — https://specification.website/
- /boards?help http://127.0.0.1:42041/boards?help answered 303 — https://specification.website/
- /settings/crew http://127.0.0.1:42041/settings/crew answered 303 — https://specification.website/
- /settings/crew?help http://127.0.0.1:42041/settings/crew?help answered 303 — https://specification.website/
- /settings/captain http://127.0.0.1:42041/settings/captain answered 303 — https://specification.website/
- /settings/security/controls http://127.0.0.1:42041/settings/security/controls answered 303 — https://specification.website/
- /settings/grants http://127.0.0.1:42041/settings/grants answered 303 — https://specification.website/
- /preview-admin/sample expected exactly one <h1>, found 2 — headings
- /preview-admin/sample If-None-Match answered 200, not 304 — caching
- /preview-admin/sample/drop http://127.0.0.1:42041/preview-admin/sample/drop answered 303 — https://specification.website/
- /preview-admin/sample/data-move http://127.0.0.1:42041/preview-admin/sample/data-move answered 303 — https://specification.website/
- /preview-admin/sample/cut-over http://127.0.0.1:42041/preview-admin/sample/cut-over answered 303 — https://specification.website/
- /preview-admin/sample/next?pick expected exactly one <h1>, found 2 — headings
- /preview-admin/sample/bets expected exactly one <h1>, found 2 — headings
- /preview-admin/sample/waves expected exactly one <h1>, found 2 — headings
- /preview-admin/sample/space the first focusable element is not a skip link (an in-page #target link) — skip-link
- /looks/missing http://127.0.0.1:42041/looks/missing answered 404 — https://specification.website/
- /looks/failed http://127.0.0.1:42041/looks/failed answered 500 — https://specification.website/
2 earlier comments
A bet's journeys are now walked by a separate run when a scope finishes, and the score shows to the owner on the bet's page, in the MCP plan and in the terminal. The real walk has not been run: the sandbox has no Chromium, no grant door and no model account. The tests drive it with stand-ins for the browser visit and the judge. The full test suite was not run here. I ran bun x tsc --noEmit, design-lint, the gate, and 11 new tests plus the bet, TUI, migration, doorless and body-cap suites. fast.ts named 3,632 files, which is too broad to run.
How journeys stay out of builders' reach
- Journeys stay in
bet.journeys, in the forge's database. A builder's run gets the repo and its own issue, never the bet plan. - The bet page's plan, the MCP
betsplan and the terminal all refuse an agent, and the picture route does too. - I added no new restriction. The test checks that a builder's token, a reader and a signed-out visitor see no journey, no score and no picture.
- It also checks that the sentence appears in no file under the repos directory.
What a walk does
- Trigger:
src/actions/journey_walk.tsruns aftertickBetsindriveOnce, without blocking the tick. A running or finished bet is walked once per scope closed:journey_walk.roundis the closed-scope count, so unchanged state costs nothing. - What it does: it visits production as the repo owner through the grant door, takes a picture, reads the page text, and asks the model once per journey for
PASS: <reason>orFAIL: <reason>. - Budget: the bet's first 3 journeys, at most 3,000 tokens each, with the page text cut to fit. It asks one question per journey, on the owner's account via
oneShot(no tools, capped at $0.05). - When it can't run: if there is no browser, no model account or the app is down, the walk is recorded as
unclearwith the reason. It is never a pass, and it is not retried that round. - Score: it is the share of journeys whose latest walk passed, and it informs the owner's tap on Feels done. It never replaces it.
Changes
- Score on the bet page: a "Walked in a browser" block lists each journey with its verdict, reason and picture link, served at
GET /:owner/:name/bets/:id/walk/:walk. - Score in the MCP and terminal: the MCP plan adds
walked, and the terminal row ends with the score. - New code: migration
20261128100000-journey-walks(pinned) andcore/journey_walks.ts, with the pure rules increw/journey_walk.ts. - Docs:
docs/features/bets.mdhas the new section. - Reused:
oneShot,takeLook/closeBrowsers,signGrant/lookUrl,localFor, and the bets page'srows/row/badge.
Chosen not to do
- Production, not the preview: by the time a scope closes its pull has merged and its preview is swept, so the walk reads production. That deviates from "on the bet's preview" in the issue.
- Front page only, as text:
oneShothas no tools or image input, so the model judges page text. The picture is evidence for the owner, not the judge's input, and a journey that needs a click is judged on what the front page offers. Multi-step browser driving would cost far more tokens, so I left it as a follow-up. - No journey editor or blocking: I added no UI to author journeys, which still come from the planner's proposals. The score does not gate anything.
Review
[
{"go": "/alice/notes/bets/<id> as the owner of a bet with a closed scope", "look": "the 'Walked in a browser' block", "expect": "'N of M journeys pass', each journey with a badge, a reason and a Picture link; the Picture link opens the screenshot"},
{"go": "the same page signed out, or as a reader", "look": "the page and the Picture URL", "expect": "no journeys, no score; the Picture URL answers 404"},
{"go": "MCP `bets` with `{app}` as the owner, then as a builder's token", "look": "the items", "expect": "the owner gets `walked` and the journeys; the builder gets names, states and scopes only"}
]<!-- look-pages 8967da2042f4 --> Look pages for 8967da2, from the gate:
look pages (inferred): this pull changes src/web/pages/following.ts; the forge pictures / (src/web/pages/following.ts), /docs (src/web/pages/following.ts), /explore (src/web/pages/following.ts) and 28 more, the pages whose routes import it. A "Looks: <path>" or "No look: <why>" line in a commit message overrides
A bet's journeys are now walked by a separate run when a scope finishes, and the score shows to the owner on the bet's page, in the MCP plan and in the terminal. The real walk has not been run: the sandbox has no Chromium, no grant door and no model account. The tests drive it with stand-ins for the browser visit and the judge. The full test suite was not run here. I ran
bun x tsc --noEmit,design-lint, the gate, and 11 new tests plus the bet, TUI, migration, doorless and body-cap suites.fast.tsnamed 3,632 files, which is too broad to run.How journeys stay out of builders' reach
bet.journeys, in the forge's database. A builder's run gets the repo and its own issue, never the bet plan.betsplan and the terminal all refuse an agent, and the picture route does too.What a walk does
src/actions/journey_walk.tsruns aftertickBetsindriveOnce, without blocking the tick. A running or finished bet is walked once per scope closed:journey_walk.roundis the closed-scope count, so unchanged state costs nothing.PASS: <reason>orFAIL: <reason>.oneShot(no tools, capped at $0.05).unclearwith the reason. It is never a pass, and it is not retried that round.Changes
GET /:owner/:name/bets/:id/walk/:walk.walked, and the terminal row ends with the score.20261128100000-journey-walks(pinned) andcore/journey_walks.ts, with the pure rules increw/journey_walk.ts.docs/features/bets.mdhas the new section.oneShot,takeLook/closeBrowsers,signGrant/lookUrl,localFor, and the bets page'srows/row/badge.Chosen not to do
oneShothas no tools or image input, so the model judges page text. The picture is evidence for the owner, not the judge's input, and a journey that needs a click is judged on what the front page offers. Multi-step browser driving would cost far more tokens, so I left it as a follow-up.Review
Closes #8715