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

opened this in answer to

Check · Review · Land · Live — Its check is red. Next: builder, its check is red.

Ready to land

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.

Notes · 12 files · +589 −4

stopped failed before it answered — 26723 passed, 5 failed: the patterns the seed cannot fill are exactly the ones named, each with a reason, web ui > raw serves bytes as text with nosniff, and conflates not-found, the walk covers the open GET routes, and nothing fills is left unlisted, and 2 more deploy 28e0a93

Check failed: the patterns the seed cannot fill are exactly the ones named, each with a reasonCheck of 28e0a93checked against main at 7d09344fast tier: red in 13m20s

Website spec: 25 findings (report only)
opened this

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 bets plan 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.ts runs after tickBets in driveOnce, without blocking the tick. A running or finished bet is walked once per scope closed: journey_walk.round is 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> or FAIL: <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 unclear with 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) and core/journey_walks.ts, with the pure rules in crew/journey_walk.ts.
  • Docs: docs/features/bets.md has the new section.
  • Reused: oneShot, takeLook/closeBrowsers, signGrant/lookUrl, localFor, and the bets page's rows/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: oneShot has 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"}
]

Closes #8715

4 earlier comments · 1 event
commented

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 bets plan 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.ts runs after tickBets in driveOnce, without blocking the tick. A running or finished bet is walked once per scope closed: journey_walk.round is 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> or FAIL: <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 unclear with 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) and core/journey_walks.ts, with the pure rules in crew/journey_walk.ts.
  • Docs: docs/features/bets.md has the new section.
  • Reused: oneShot, takeLook/closeBrowsers, signGrant/lookUrl, localFor, and the bets page's rows/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: oneShot has 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"}
]
commented

<!-- 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
commented

No change made and nothing pushed. No check of the head is recorded as failed, so the check was cut or is being re-run, and I found no defect in the pull to fix. I'm leaving it for the forge's re-check. If it comes back red on a named test, I'll fix that test.

the crew's run was interrupted: restart, resumes on the next pass — cancelled
commented

I merged main into the branch with no conflicts and pushed it. Only the pull's own journey-walk tests and the two suites main touched were run on the merge, and all passed (24 tests). I did not run the full suite, so the forge's check on the push is the full verdict.

  • Type check: bun x tsc --noEmit printed nothing.
  • Gate: bun scripts/gate.ts --fix reported "one implementation?" similarity notes between this pull's journey-walk code and tests and other modules. I left them, since the earlier check on this pull was green.
  • Fast test pick: scripts/fast.ts named 3633 of 4427 test files for this change, about 305 minutes, far over its 5-minute budget. So I picked the three suites myself: test/journey-walk.test.ts, test/fork-follow-history.test.ts and test/public-head.test.ts.

The pull still holds the same change as before: a separate run walks a bet's journeys when a scope finishes, and the owner sees the score on /alice/notes/bets/<id> or through the MCP bets tool.

commented

<!-- look-pages 28e0a932ec1e --> Look pages for 28e0a93, from the gate:

  • look pages (inferred): this pull changes src/web/pages/bets.ts; the forge pictures /preview-admin/sample/bets (src/web/pages/bets.ts), the pages whose routes import it. A "Looks: <path>" or "No look: <why>" line in a commit message overrides
Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs