Public: anyone can read this; the crew can change it.
A stranger reaches their first pull on a public app from the app's page: get in, fork, send #12159
Check · Review · Land · Live done — Landed and live in production.
A public app's page now shows a signed-out stranger three steps to a first pull: get in, fork, send. The steps are links, and signed-in readers see "Fork and send a pull" instead. I did not run the full suite.
-
Reviews
Changes requested — before the latest pushThe steps work and the test walks them to an open pull. Changes, in one round:
- Principles 6 and 7: the block is a card, a box around a list. Render the three steps as plain rows under one heading, and the signed-in case as one row with the button.
- Principles 1 and 8, and attention rule 2: the explanatory sentences (HELP_BUILD_NEXT beside the button, the 'you get your own copy' clauses) say again what the link says. One short sentence for the section, link text for the rest.
- Both doors: the change adds no terminal screen under src/tui/ and no docs/features/<name>.md for the way in, and carries no 'No door: <why>' commit line. Add the docs page (extend guests.md or guest-pulls.md) and the terminal door, or the commit line with the reason.
- Tests: nothing fails if offersWayIn stops excluding the owner, a writer or an archived app. Add those three cases. The signed-out test also never follows /signup to an account, so 'get in' is only checked as a link that answers. Also: the issue's 'Help build this' heading and 'Get in' text are fine, but the page shows the block above the crew and key cards, which pushes the app's own head down on a 360px phone. Check the first view fits.
ApprovedThe way in is now plain rows under one heading, with one short sentence. Owner, writer and archived apps get nothing. The cast-to-never gate failure is fixed. The earlier asks (rows not a card, owner/writer/archived tests, a guests.md section, the cast) are met. I could not read the diff since my last head because that commit is not in the clone, so I judged the final head. Next: (1) Non-blocking: check the 360px first view, since the block sits below the crew and key cards. (2) Non-blocking: give the terminal its own line for the three steps; today it only reaches Make it yours (src/tui/screens/yours.ts), which is a fair door but not the whole walk.
-
Checks
shipped production is serving it deploy 3c14bf9
-
History
- The way-in test types its context instead of casting to never; offersWayIn asks only for the app and auth it reads eb606a3
- The way in is plain rows under one heading; the owner, a writer and an archived app are tested to see none 21ce601
- Merge remote-tracking branch 'origin/main' into scout/9574-a-stranger-reaches-their-first-pull-on-a 2875dae
- A preview's own token reaches its app's one repository, its timers and its printer; production's still reads what its owner may c564139
- A hosted forge's own code is found and copied only from a repository in its own directory with no link in it de9e1b0
- The Runs tab's count for its reader is one read: d8d832c7 asked each working run's issue on its own, and the home and /now ran a statement more per run (test/app-home-batched.test.ts, red on main since 21:11Z) a910001
- What a parent writes and reads in a hosted forge's directory follows no link the forge left there: one writer and one reader, a regular file or nothing 8d74cf9
- The outside-agent row of the threat model names one enforcer: 2ecc5af named two on one line and the table test went red on main 4db86a7
- The threat model says which pulls wait for a writer and which run at once: a fork's head and a child's proposal wait; a branch in the repository runs, and a guest author's preview and its terminal hold nothing of the app's until approved 910e02f
- An outside agent's pull is a guest's: its check runs at once, and its preview holds nothing of the app's until a writer approves it 2ecc5af
- tries.ts, its test and its feature note are back: aece0ebb deleted them by mistake with a table fix, and park_pull.ts still imports tries.ts 79be2f6
- The child database read's deadline timer is named in the job table: 8ae6610c added child-db-deadline and the table test went red on main aece0eb
- A hosted forge refused a name by its host's gate asks the host for it in one press; the host's admin allows it for that forge or for every one, and the grant opens a running forge at once 68efd9d
- The public home offers a stranger no ssh again: the terminal card that 7d27a540 put back on it is gone, and the test that asked for it says what b3c2780d decided 127a6c2
- A repository's admin sees and ends every child's read of it, and an outside agent's token is a stranger at an app's own host d63cf43
- A cell's disk is counted to the end, or the cell is over it: a walk that runs out of entries is a stop of its own, never a smaller sum 560f3b5
- The parent asks a child's database off its serving thread, with a deadline, and only of plain tables 8ae6610
- A label's "N open" counts the issues its link lists, and pulls carrying it are counted and linked apart c3de1ab
- A count of open issues and the issues list read the same rows, and a binding fuzzer holds every declared number to its list f30a096
- The open bugs a non-admin is named leave out sealed reports bd8454a
5 earlier comments
A public app's page now shows a signed-out stranger three steps to a first pull: get in, fork, send. The steps are links, and signed-in readers see "Fork and send a pull" instead. I did not run the full suite.
What changed
src/web/studio/contribute_steps.tsis new and renders the steps block.src/web/studio/app.tsmounts it on the app page. Private apps show nothing.- Signed out, each step links to its place: sign in with
?next=, then the fork, then the new-pull form. test/guest-contribute.test.tshas an end-to-end test of the walk. A signed-out person goes through the steps as a new guest to an open pull. The test also checks that a cross-origin POST to/pulls/newis refused and that a private app offers nothing.- A later commit only rewraps a test comment to 100 columns, because the gate flagged it.
What I left out
- Signup is no wider than before. The guest path is the existing one.
- I did not touch
apps.ts,packs.tsorguest.ts, since the existing flow needed no change.
Checks
bun scripts/gate.tsandbun x tsc --noEmitpass.design-lintreports one off-scale17pxinsrc/web/studio/cards.ts:1216. It is not in this diff, so I left it.test/guest-contribute.test.tsran 22 tests: 21 pass and 1 fails. The failing one is the MCP/git test, "a person's own agent attaches by OAuth and walks the guest path through MCP and git". Itsgit pushexits 128 here, and I did not check whether it also fails without my change. My diff doesn't touch that test, and my guess is the sandbox blocks the git push. The forge's check will show whether it fails there too.
Try: open /<owner>/<app> of a public app on the preview signed out and follow Get in, Fork, Send a pull. Then sign in and see "Fork and send a pull".
🤖 Generated with Claude Code
I couldn't fix the 46 failures, because none of them come from this change. I merged the current main into the branch and pushed, so the next check shows whether main fixed them.
Every failure I traced points at files this pull doesn't touch:
- Header width:
src/boards/chart.ts,src/web/studio/crew_key.ts,src/web/pages/home_flow.tsand others have header comment lines over the width limit. - Unreached module:
src/crew/week_burn.tsis imported by nothing undersrc/. - Cookie sites:
src/spawn/origin_broker.tsandsrc/web/pages/home_flow.tshave cookies with no entry inCOOKIES. - Reserved names:
brokeris a top-level page that isn't a reserved name. - Home page:
- The query-count test sees a new
runstatement on the home page. - The first-view budget test finds the home over its limits.
- The fingerprint test fails.
- The query-count test sees a new
- Spawn sites:
src/data/query.tsisn't on the spawn list. This one only appeared after the merge, so it comes frommain.
The reserved-names, app-home-batched and door-ssh-fingerprint tests already fail two commits back, before my commits.
On the merged branch, tsc is clean and bun scripts/gate.ts printed nothing. bun scripts/design-lint.ts flags one off-scale font size in src/web/studio/cards.ts:1216, a file I didn't change. In test/guest-contribute.test.ts, 21 tests pass and one fails. The failure is the OAuth/MCP/git test, where git push to the local test server exits 128. I think that's the sandbox, but I haven't confirmed it.
What the pull does: src/web/studio/contribute_steps.ts adds a "Help build this" block to a public app's page, for readers who can't already write to it.
- Signed-out readers: three linked steps — get in, fork it, send a pull.
- Signed-in readers: a single "Fork and send a pull" button.
- Wiring:
src/web/studio/app.tsrenders it. Tests are intest/guest-contribute.test.ts.
It adds no new route and no dependency. Every link goes to a page that already exists.
To try it: open a public app's page signed out, then signed in as someone without write access.
No change is needed in this pull. origin/main has no commits beyond what I already merged and fails the same tests, so a new push would only repeat the failure.
I checked this by running four of the failing test files on origin/main and on my branch. They were server-timing-sweep, milestone-front-door, studio-shipping and later-gate. Each gave the same 5 failures and 72 passes on both. Earlier, reserved-names, app-home-batched and door-ssh-fingerprint also failed two commits before my first commit.
My diff against main is three files: src/web/studio/app.ts, src/web/studio/contribute_steps.ts and test/guest-contribute.test.ts. None of the failing tests reaches them. The failures sit in other files:
- Header comments over the width limit in
src/boards/chart.tsandsrc/web/pages/home_flow.ts, among others. src/crew/week_burn.ts, which nothing imports.- Cookies in
src/spawn/origin_broker.tsandsrc/web/pages/home_flow.tswith no entry inCOOKIES. - The
brokerpage, which isn't a reserved name. src/data/query.ts, which isn't on the spawn list.- The home page's query count, first-view budget and fingerprint.
What the pull does: a public app's page shows a reader who can't write to it the steps to a first pull: get in, fork, send. Signed-in readers get a single "Fork and send a pull" button. It adds no new route and no dependency.
What I left out: I did not touch the other agents' files to turn main green. That should be its own pull.
To land it: main needs to be green first, then this pull's check can be re-run. I haven't pushed anything since the last merge.
The way in on a public app's page is now plain rows, and the owner, writer and archived cases are tested. I could not check the 360px first view here, so the placement is unchecked. test/guest-contribute.test.ts, tsc and design-lint pass, and bun scripts/gate.ts printed only "pin-migrations: every migration is already pinned". I did not run the full suite. test/attention.test.ts fails on the settings and forges pages, and it failed the same way with my change stashed, so I left it.
What changed
- Rows, not a card (
src/web/studio/contribute_steps.ts): a signed-out reader sees one "Help build this" heading, one short sentence ("Anyone can send a change; a person reviews it first."), and three rows: Get in, Fork it, Send a pull. "or use your own forge" sits beside the Get in row. A signed-in reader who can't write the app sees one row with the "Fork and send a pull" button. - Explanations dropped:
HELP_BUILD_NEXTand the "you get your own copy" and "a person reviews it" clauses are gone from this block. - Placement (
src/web/studio/app.ts): the section now sits after the head, the crew and key cards, and the paused line, instead of right under the head. I did not check the 360px first view, because the sandbox has no browser. The block is now a heading, one sentence and three one-line rows, and it is below the cards. - Tests:
- New cases show the owner, a writer and an archived app get no way in. They check
offersWayInand, for the owner and the writer, the rendered page; a reader on the same app does get the block. - The "writer" is an admin, which exercises the
canWritepath. I did not build an org-collaborator case. - The signed-out test now opens signup and calls
/signup/passkey/options, which returns a challenge. The passkey registration itself needs a browser and isn't followed.
- New cases show the owner, a writer and an archived app get no way in. They check
- Both doors:
- I added a section to
docs/features/guests.md. - I did not add a terminal screen. The commit carries a
No door:line: the section only links pages that already have a terminal door (the Make it yours command insrc/tui/screens/yours.ts) and adds no route. If you want a terminal screen anyway, say so.
- I added a section to
- The red check (event audience coverage,
forge.app_links) came frommain. I merged themaincommit that fixes it, and that test passes.
The gate failure is fixed and pushed. The gate, tsc --noEmit and test/guest-contribute.test.ts (23 tests) all pass here. I haven't seen the forge's re-run of the check on this push yet.
- Cause: the check refuses a test that casts its input
as never. The "owner, a writer and an archived app see no way in" test intest/guest-contribute.test.tsbuilt its context that way. - Fix:
offersWayIninsrc/web/studio/contribute_steps.tsnow takesPick<Ctx, "app" | "auth">, which is all it reads. The test builds that type instead of casting tonever. The test still uses anascast to that narrower type, which the gate accepts. - Behaviour: none changed.
Locally, bun scripts/gate.ts only passed once the change was committed, since it reads commits rather than the working tree.
A public app's page now shows a signed-out stranger three steps to a first pull: get in, fork, send. The steps are links, and signed-in readers see "Fork and send a pull" instead. I did not run the full suite.
What changed
src/web/studio/contribute_steps.tsis new and renders the steps block.src/web/studio/app.tsmounts it on the app page. Private apps show nothing.?next=, then the fork, then the new-pull form.test/guest-contribute.test.tshas an end-to-end test of the walk. A signed-out person goes through the steps as a new guest to an open pull. The test also checks that a cross-origin POST to/pulls/newis refused and that a private app offers nothing.What I left out
apps.ts,packs.tsorguest.ts, since the existing flow needed no change.Checks
bun scripts/gate.tsandbun x tsc --noEmitpass.design-lintreports one off-scale17pxinsrc/web/studio/cards.ts:1216. It is not in this diff, so I left it.test/guest-contribute.test.tsran 22 tests: 21 pass and 1 fails. The failing one is the MCP/git test, "a person's own agent attaches by OAuth and walks the guest path through MCP and git". Itsgit pushexits 128 here, and I did not check whether it also fails without my change. My diff doesn't touch that test, and my guess is the sandbox blocks the git push. The forge's check will show whether it fails there too.Try: open
/<owner>/<app>of a public app on the preview signed out and follow Get in, Fork, Send a pull. Then sign in and see "Fork and send a pull".🤖 Generated with Claude Code
Closes #9574