Public: anyone can read this; the crew can change it.
Access 5: a visitor with no account is someone the forge knows, and what they made comes with them when they sign up #18069
Parked 2h 20m ago
A visitor with no account now has a signed id, a role in the CAN table, and a way to bring what they made into an account. Three things the issue lists are not done: the same-origin tab forge's and the Apple app's POST /visitor/work calls, the existing anonymous spawn, and the "same may() table".
-
Reviews
No review yet.
-
Checks
stopped parked by the crew deploy 54c9594
-
History
- Test: the suspended-visitor socket test uses a name that is not reserved 54c9594
- Merge main into mason/18051-access-5-a-visitor-with-no-account-is-so e27a76e
- Spend 3: the same cost reads and planned stop/delete as MCP tools and a terminal screen (#18206) c30e6bb
- Games: host the spark profiler viewer and its uploads in the forge (#18096) beabbda
- Games: a day after a mod set is installed, the games page says whether it helped, with take-back one tap away (#18201) 2243020
- Games: installing the quality set ships Essential Commands' config with only /home, /spawn and /tpa on (#18199) 7b84b2c
- Merge main into mason/18051-access-5-a-visitor-with-no-account-is-so de80e79
- Connections on an account: verified identities the person controls, each with its own uses, and a lookup that answers only on opt-in (#18120) 314f4eb
- Merge main into mason/18051-access-5-a-visitor-with-no-account-is-so cc90944
- A granted app's two-page print comes out as one sheet, printed on both sides (#18194) e2e7eb4
- Traces 5c: the trace list and one trace read through MCP tools and a terminal screen compare (#18183) cc38920
- Access 5a: a visitor principal is minted only when a visitor creates something, signed, with a role in may() and per-visitor limits (#18174) e261ee9
- Games: the forge pins forge-velocity d0635dac1654 (cannot throw into a command) (#18203) 08c4b42
- Merge main into mason/18051-access-5-a-visitor-with-no-account-is-so e00d80a
- Spend 2: plan a Stop or Delete from the cost row, refused on a read-only account, audited (#18170) fecfd88
- Mail from the owner's AWS account: the forge sets up SES, its DNS records and the mail key in one confirmed step (#18119) bd73c12
- Games: a mod-set install refuses a Modrinth slug that now points at a different project than the lock holds (#18200) fa82fd9
- may test: an anonymous visitor may keep_work 3b6f260
- Merge main into mason/18051-access-5-a-visitor-with-no-account-is-so 7130508
- Access 3b: MCP, pages, the terminal, games and infrastructure ask may(), one door per pull (#18186) 5a3de44
7 earlier comments · 1 event
I merged main into the branch again and pushed it. This time only src/generated/marks.ts conflicted.
It is a generated file, so I took main's version and re-ran bun scripts/own-source.ts to rebuild it. That covers both sides' marks without a hand merge, and no conflict markers remain. bun x tsc --noEmit printed nothing. test/own-source.test.ts and test/may.test.ts passed: 12 tests, 0 failures. I didn't run the wider suite, so the forge's check on this push is the full run.
I merged main into the branch again and pushed it. main had added its own visitor concept alongside the one on this branch, and the three conflicts came from the two overlapping.
docs/ROLES.md: I keptmain's description of the visitor (theforge_makercookie, thevisitor.makeaction, the daily caps). I added a sentence for this branch: what a visitor keeps can be brought into an account on sign-up.test/may.test.ts: an anonymous visitor now gets["forge.read", "forge.keep_work", "visitor.make"], which is both sides' actions.test/cookie-flags.test.ts: I kept bothmain'sforge_makerentry and this branch'sforge_vpentry, whichsrc/auth/visitor_principal.tssets.mainhad dropped the oldsrc/apps/feedback.tsentries because that code no longer sets a cookie, so I dropped them too. Two cookie checks failed until I did.
bun x tsc --noEmit printed nothing. These suites passed, 61 tests and 0 failures: may, cookie-flags, own-source, the visitor* tests and palette-roster. I did not run the whole suite, so the forge's check on this push is the full run.
I merged main into the branch again and pushed it. Only src/generated/marks.ts conflicted, as it did the last time.
It is a generated file, so I took main's version and rebuilt it with bun scripts/own-source.ts. No conflict markers remain. bun x tsc --noEmit printed nothing. test/own-source.test.ts, test/may.test.ts and test/cookie-flags.test.ts passed: 26 tests, 0 failures. I did not run the whole suite, so the forge's check on this push is the full run.
I merged main into the branch and pushed it. The only conflict was src/generated/screens.ts.
That file is generated, so I took main's version and re-ran bun scripts/own-source.ts to rebuild it instead of merging the two sides by hand.
bun x tsc --noEmit is clean. test/own-source.test.ts and test/palette-roster.test.ts pass (18 tests). I did not run the full suite, and I did not run scripts/gate.ts or scripts/design-lint.ts on this merge. The forge will run the full check on the push.
The pull's own change is untouched.
I fixed one of the two failing tests and pushed. The other fails on main too, so I left it alone.
- Fixed: the check's
test/apps-ws.test.tsfailure ("a visitor's socket closes when their account is suspended…") came from this pull. It makesvisitora reserved username, and that test created a user namedvisitor, socreateUserreturnedusername_reserved. I renamed the test user toveraintest/apps-ws.test.ts. The file now passes (11 of 11). I didn't run the rest of the suite. The forge re-runs the full check on this push. - Left alone:
test/data-browser.test.ts("every forge.db column that could hold a secret…") fails becauseconnection_lookup_audit.key_idis a new column not in the audited-clear list. The check log says it is red onmainat 5ce50ab too, so it isn't counted against this pull. I did not touch it. - Gate:
gate --fixprinted two "one implementation?" similarity notes (receiptsOf,visitorRoutes). I made no change for them and the push went through.
A visitor with no account now has a signed id, a role in the
CANtable, and a way to bring what they made into an account. Three things the issue lists are not done: the same-origin tab forge's and the Apple app'sPOST /visitor/workcalls, the existing anonymous spawn, and the "samemay()table". I ranbun x tsc --noEmit,bun scripts/design-lint.ts,bun test test/mcp-size.test.tsand about 400 related tests, all green. I did not run the whole suite; the forge's check does that.Threat note. The risk is account takeover and privacy: someone planting their things into a victim's account, or lifting a victim's device list.
visitor-principal), not the analytics one. Cookieforge_vp, shapev…;forge_visitorandc…ids are never accepted as one, and the two are never joined.POST /visitor/work, never on a read. Do-Not-Track and Global Privacy Control mean no id is given.confirmbound to account, session, device and chosen rows. The confirm comes from the page that account was shown. A forged, borrowed or missing one moves nothing, with or without a passkey on the account.What changed
src/auth/visitor_principal.ts: mints and verifies the signed id and builds its cookie and confirmation token. It reusescookieValueand therefusesTrackingcheck.src/core/visitor_work.ts: keeps what a visitor made (apps from the tab forge, notes, game players) and does the bringing and the undo. Thevisitor_principal,visitor_itemandvisitor_carrytables are in migration20261204052000-visitor-principal.src/core/roles.ts: avisitorrole withreadandkeep_work.docs/ROLES.mdis regenerated.visitor.*rows insettings/limits.ts: things per visitor (20), things per forge per day (1000), new ids per day (2000). Past one, the door answers 429./visitor/bring(list, bring, undo) andPOST /visitor/work, insrc/web/pages/visitor_bring.ts. After sign-in the front page says once that something waits./forges/move-inbrings the visitor'stab_appitems into the account that moves in.uundoes the newest bringing still inside its day.docs/features/visitor-carry.md, and two threat bullets indocs/threats/automated-attacker.md.test/cookie-flags.test.tsgained entries for the new cookie.test/visitor-carry.test.ts, 14 tests. They cover make as a visitor, bring, find it owned by the account, and a second visitor presenting the first's id without its signature being refused. They also cover forged, borrowed and missing confirms into a passkey account, a cross-site post, undo, limits, GPC/DNT, and the move-in hook.What I chose not to do
src/spawn/claim.ts) is untouched; moving it onto this model is a separate slice.POST /visitor/work(#18043, forge-apple #52) are theirs to add. There is no API route or MCP tool, somcp-sizeis unaffected.may()table":contract/can.ts'smay()is the evaluator for apps' contracts. The forge's own table isCAN, so the visitor role went there.canscreen list every ability, so a member now also sees "Keep what you make before you have an account: no".Try it. On the preview,
curl -i -d 'kind=tab_app&ref=notes&label=Notes' -H 'origin: <preview url>' <preview>/visitor/workreturns aforge_vpcookie. Open/visitor/bringsigned out, then signed in, to choose and bring the item, then undo it. On the terminal, open the palette entry "Brought in from a device".🤖 Generated with Claude Code
Closes #18051