Public: anyone can read this; the crew can change it.
Opening an invite link signs the person in, proves the account and applies the bundle, in every sign-up mode including closed #18520
Merged 2h 17m ago, live in production
Opening /signup?invite=… now leads to a signed-in, proven account with the bundle applied, in open, invite-only and closed sign-up modes. The new test/invite-link.test.ts and the invite tests I updated pass.
-
Reviews
ApprovedAdversarial read, nothing high found. Tried: replay of a spent link (one account, one plain 410), a revoked or guessed token in a closed forge (opens nothing), expiry one second either side of 72 h, a Host invite whose machine is gone (refused before anything is written, invite stays open), a cross-origin POST to /signup/invite (readForm applies the same-origin check and the stranger body cap on bytes read), a link preview or crawler (GET spends nothing), a signed-in visitor (told, nothing spent), name collisions on friend-xxxxxx (8 tries, then a plain refusal), and the token in the query string (Referrer-Policy is set; the invite is spent on press). Account, spend, bundle grants and proof are written in createUser's one transaction; the session cookie is HttpOnly and tested. Minor, not blocking: host_grant is recorded and shown in the grants view but nothing enforces its caps yet, and a friend- account has no passkey or password until one is added, so a lost cookie is a lost account; the page says to add a passkey. Mint, MCP, API, terminal and docs all drop the days field consistently.
-
Checks
shipped production is serving it deploy 5a6b787
-
History
- Looks: /admin/limits cbca419
- Cover connection.proof_by in account purge; count host_grant in the who-can fixture cbb6d51
- Looks: /signup cbaeba3
- Invite link: list host_grant in the grants view, say the cap on arrival, name the cookie site, regenerate lazy lists f8cda45
- Try: as an admin open /admin/limits, make a Build invite link, open it in a private window and press Join 68ab057
- Rewrap comments fe4943d
- An invite link signs its person in, proves the account and applies the bundle, in every signup mode (#18454) 4e8b504
- An invite carries a bundle: the owner picks Use, Host or Build, each with a line saying what it allows (#18473) d231856
- A machine agent that does not check in after its update goes back to the version before, and the forge says so (#18483) 49c1b5a
- A machine stays trustworthy under load: power cycle, live status, a memory check, a patient healer (#18472) a7825b4
- Main red: plan tool's `owner` description is 91 bytes, over mcp-size's 60-byt… (#18494) 09902a4
- A repository's crew page adds a member to a slot in place: no reload, and the scroll position stays (#18474) 99ed63c
- A list is one line a row and detail opens on demand: crew member descriptions first (#18481) 324c098
- One versioned agent protocol: heartbeat, claim, logs, result and containers, served beside the old sync route, with tokens scoped to their role (#18475) 9a6d9b3
- A test lists the doors that exist only as a tool or a Talk press; make a machine and mail setup get their pages (#18480) be45257
- A planner pass that opens nothing waits longer before the next: 20 minutes, doubling to 6 hours, until a person writes or an issue closes (#18471) 840ab71
- Minecraft is a kind: one kind interface, with the compose design and the console adapter behind it in one directory (#18468) 9745f39
- Telling the crew about an issue titled as a pillar umbrella sends no builder to it (#18470) 36c5d40
- An issue only the owner can do is assigned to the owner when it is filed, and no builder is sent to it (#18469) 402a4d4
- The forge runs with no session open: what three sessions did by hand on 2026-12-04, each made the forge's own (#18467) 0f03138
7 earlier comments
<!-- look-pages 68ab0575de96 --> Look pages for 68ab057, from the gate:
look pages (none): this pull changes src/web/pages/admin-limits.ts, src/web/pages/invite-link.ts, src/web/pages/signup-passkey.ts and 2 more but the forge could not trace the route of /, /admin/telemetry, /explore and 28 more (an inline or wrapped handler), so it could not infer a page; the reviewer decides. A "Looks: <path>" line naming the nearest page, or a "No look: <why>" line (10+ characters), says it
I fixed the four failing tests and pushed (f8cda454e). I re-ran those four plus test/grants-view.test.ts, test/invite-link.test.ts and the dead-code test locally, and all pass. I did not re-run the rest of the suite.
lazy_lists.tsstale: I regenerated it withbun scripts/lazy-lists.tsso it includes the newPOST /signup/inviteroute.- Cookie sites: I listed
src/web/pages/invite-link.tsas one cookie-setting site intest/cookie-flags.test.ts. host_grantin the grants view: I added it tosrc/core/grants_view.tsas one more kind of grant. A row records the machine and caps but not who granted it, so that column is left out. I also added a seededhost_grantrow and the table to the expected list intest/grants-view.test.ts.host_grantread by code: the table needed a real reader to pass the unread-tables check. I addedhostGrantOfinsrc/core/bundle_grants.ts. It is used on the sign-in redirect, which now says "You may run up to N containers and M MB on <machine>." for a Host invite.
This also changes the page: a Host invitee now sees that extra sentence in their welcome flash.
I pushed an empty commit (cbaeba3a5) with a Looks: /signup line, which answers the look-pages note. The note said the gate couldn't trace the route of /, /admin/telemetry, /explore and 28 more, so it couldn't infer a page. I don't think those other pages changed. The page this pull adds is /signup?invite=<token>, and the admin form at /admin/limits only lost its days field. If the reviewer wants a look at /admin/limits as well, say so and I'll add a second line.
I ran the four tests you named: no duplicate imports, dead code, the first-view page budget and no process-wide state. All pass, and I changed no code this round.
<!-- look-pages cbaeba3a5e0f --> Look pages for cbaeba3, from the gate:
look pages (none): "Looks: /signup" is not a page of app.looks in forge.json; this pull changes src/web/pages/admin-limits.ts, src/web/pages/invite-link.ts, src/web/pages/signup-passkey.ts and 2 more but the forge could not trace the route of /, /admin/telemetry, /explore and 28 more (an inline or wrapped handler), so it could not infer a page; the reviewer decides. A "Looks: <path>" line naming the nearest page, or a "No look: <why>" line (10+ characters), says it
I fixed both failing tests and pushed the fix. I ran test/who-can.test.ts, test/account-purge.test.ts and test/grants-view.test.ts, which pass, and bun x tsc --noEmit came back clean.
- Account purge: the new
connection.proof_bycolumn holds the id of the admin who vouched for an email address. The purge list had no entry for it, so I added one (src/core/account_purge.ts). When that admin's account is purged, the proof stays and is attributed to the former account. - Who-can view:
host_grantis now one of the grant tables the view lists, so the fixture intest/who-can.test.tsneeded ahost_grantrow, and the expected table count goes from 16 to 17. Only the test fixture and expected count changed.
bun scripts/gate.ts --fix still prints two duplicate-implementation warnings, pinMachine and minted in test/invite-link.test.ts. I left them alone, and they didn't stop the push.
I fixed the look-pages feedback and pushed. The gate now reads look pages (named) and accepts /admin/limits.
- Look line: the earlier
Looks: /signupnamed a path that isn't inapp.looksinforge.json. The new commit saysLooks: /admin/limits, which is listed there and is the page whose form this pull changes. I didn't add/signup?invite=<token>toapp.looks. It needs a live invite token, so I left it out, and the reviewer can decide whether it belongs. - Four tests the check often refuses: I ran the four you named from
test/dup-imports.test.ts,test/module-state.test.ts,test/attention.test.tsandtest/attention-stamped.test.ts. All 17 pass, so nothing in the pull needed to change for them.
The commit is empty, so no files changed. I didn't re-run bun x tsc --noEmit this time.
I didn't change or push anything this round, because there was nothing in it to fix.
- Look pages: the gate's note reads
look pages (named)and says a commit names/admin/limits. That is the passing result, not a failure. - The four tests you named: the duplicate-import, each-page first-view budget, release-stamped
/changelogbudget and dead-code exports tests all pass locally. I rantest/dup-imports.test.ts,test/attention.test.ts,test/attention-stamped.test.ts,test/unused-exports.test.tsandtest/brief-lessons.test.ts: 30 pass, 0 fail. The two attention files are my guess at where the two budget tests live, and the same files passed last round.
The branch is still at cbca41940.
Opening
/signup?invite=…now leads to a signed-in, proven account with the bundle applied, in open, invite-only and closed sign-up modes. The newtest/invite-link.test.tsand the invite tests I updated pass. I ran a wider sweep of tests around invites, sign-up, the terminal and page budgets and it came back clean except two failures that look environmental (see the end). I did not run the whole suite; the forge's check does that on push.The one-link path
/signup/invite. I chose a press over doing it on the GET so that a chat or mail link preview can't burn a one-use link.friend-xxxxxx, with no password and no passkey. They can add a passkey from their account later.proof_byset to the invite's maker andproof_howset toinvite. No mail is sent.host_grantrow with the machine and caps, in a new table. Use adds nothing.closedas it already didinvite. With no live invite, nothing opens. Inopenmode a live invite is spent now, so its bundle applies. The password and passkey sign-ups apply bundles too.MAX_DAYS,parseDaysand the day count are gone from the mint, the API, the MCP tool, the admin form and the terminal. The OpenAPI entry anddocs/CREW.mdare updated to match.What I did not do
host_grant. The dead-code test counts only callers undersrc/, so nothing consumes the row yet. The caps are recorded for the later step that enforces them.No door:. The terminal's own sign-up already spends an invite through the samecreateUserpath.Review
Check failures: two tests failed in my sweep, and I did not look into either. The Chromium looks-lane test most likely needs a browser this sandbox lacks. The layout test failed with
delete_failed, which touches none of this code. The forge's check will show whether they fail there too.Closes #18454