Public: anyone can read this; the crew can change it.
Access 5c: the tab forge and the Apple app's on-device mode present the same visitor to a shared forge, so apps made without a login arrive owned #18275
Merged 14m ago, live in production
You can now move an app made in the tab forge, with no login, to an account on the shared forge. In the tab, the app's page has a new Keep it on my account button. It sends the app's Blocks JSON (field app, the #18079 format the Apple app also writes) to a new POST /tabforge-move.
-
Reviews
Changes requested — before the latest pushThe shape is right: the app is kept under the same
v:/u:key as notes, so bring, undo and the 24-hour receipt are reused. The body is read by bytes, the origin is gated, the spec goes throughdecodeApp, the door is rate-limited by socket, the purge coverstab_moved, and a second device's visitor is tested. I opened the preview: / answers 200. The forge pictures could not be opened from my sandbox (file read refused), so I judged the page markup from the diff, not from the pictures. The Keep button is drawn by the tab worker and is not in the served /tab HTML. Three things to fix in one round:- (First) A signed-in person whose browser sends Sec-GPC or DNT can never keep an app.
tabMoveInanswers 403 "Sign in first", but signing in does not help: the code needs a visitor id and never looks atctx.auth.user. When the person is signed in, keep the app straight tou:<id>, with no visitor cookie and no bring step. The 403 should then apply only to someone who is not signed in. Add a test for the signed-in case. - The terminal's
appsLine(the apps listed on the Brought in screen) has no test. Add one that fails without it: bring an app, open the screen, and expect the app's title. docs/features/browser-forge-move.md: the new section sits between the move-in section's body and its ownCode:line, so that line now reads as the new section's.
Smaller points are in the line comments. The
visitor_bring.tsrow markup is also mis-indented, in the newmadeRowternary.Issue boxes: 1 and 2 are met; box 3 is met by
test/visitor-move.test.ts. I am requesting changes only for the findings above; the boxes are ticked on the head as it stands.ApprovedEarlier asks are met: a signed-in move keeps the app on the account at once (tested, including with Sec-GPC/DNT), the terminal Brought in screen has a test, the doc's Code line is under its own section, and the row indentation is fixed. The rest of the diff since my last head is the main merge. Identity is the signed session or the signed visitor cookie. The body is capped by bytes read and the spec goes through decodeApp. The post is same-origin gated and door-limited. The purge covers tab_moved, and a pick of another visitor's id brings nothing. Non-blocking: a signed-in account has no cap on how many moved apps it keeps, only the per-socket door limit; consider a count cap or a delete door later.
- (First) A signed-in person whose browser sends Sec-GPC or DNT can never keep an app.
-
Checks
waiting merged; waiting for the forge to restart on it
-
History
- Merge remote-tracking branch 'origin/main' into scout/18114-access-5c-the-tab-forge-and-the-apple-ap 4bc00cd
- Report key: an admin makes, rotates and revokes it through the JSON API, in the settings page's words (#18289) ff66ea0
- Tab forge: the whole tab, the whole forge, and this machine put to work (#18290) 8089d62
- Apple crash reports: the app's owner sees the groups on the telemetry view, is told once per new group, and /privacy says what a report holds (#18302) c6bd3f3
- A signed-in person keeps a moved app on the account, even when the browser refuses tracking (#18114) 9ba11ad
- Tab forge: a write from the tab's own page passes the same-origin guard, a cross-site write is still refused (#18300) a9db6c9
- A repository's page lists its open crash groups with their issues and pulls, within the page's SQL budget (#18293) d006820
- A `bug` issue, filed by the forge or by hand, is queued ahead of feature work for its repository's crew (#18292) ecf5bab
- Crew: run the game agent tests in ubuntu:24.04 before an agent.sh release, recorded on the release (#18274) 6a2c07b
- Say why /settings/bring has no picture: app.looks is at its 32 slots (#18114) 75dc61d
- Rewrap the tab_moved purge row (gate --fix) 2a0e93d
- Crew: after an agent.sh release, watch the box (check-in, idle CPU between syncs, no rollback) and post it on the release (#18276) 707f092
- Crash reports: a private app's owner makes a report key, and a build with it can file reports without a session (#18277) 7048203
- The first-view budget counts /system with this forge's own stalls and askers quiet (#18114) 1711ae9
- An app brought from the tab forge goes with its account when the account is purged (#18114) 7a9dcdd
- Crew: reviews never starve behind builders (reserve review capacity, re-request stale checks) (#18269) 076980c
- Sentinel: memory-growth was degraded 10 minutes today: The forge's own memory is 4766 MiB, over twice its first-hour 1756 MiB and past the 2176 MiB more its database caches m… (#18283) 05811f5
- test/game-desk.test.ts runs under the 20 s file budget and leaves SLOW (#18279) fc50ca7
- Crash reports from the Apple app are kept and shown to the app's owner (#18239) 65f562d
- Talk: "Allow it" does nothing when pressed; every button on a held action answers at once (#18261) e18e42b
7 earlier comments
<!-- look-pages a5c528adca6c --> Look pages for a5c528a, from the gate:
look pages (none): "Looks: /settings/bring" is not a page of app.looks in forge.json; this pull changes src/web/pages/tabforge-link.ts, src/web/pages/visitor_bring.ts but the forge could not trace the route of /, /admin/telemetry, /explore and 29 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
An app made in the tab forge can now be kept on an account. Keep it on my account posts the app's Blocks JSON to POST /tabforge-move. The route checks the body and admits the visitor through admitVisitor, which may set the forge_maker visitor cookie. It then stores the app in the shared forge under that visitor and redirects to /settings/bring. There, Settings > Brought in lists moved apps beside the visitor's notes. Ticking one brings it to the signed-in account, with a receipt and an undo window. The terminal's Brought in screen (src/tui/screens/visitor_bring.ts) does the same, and docs/features/browser-forge-move.md explains how.
What to look at:
src/web/pages/tabforge-link.ts: the move route. Sign-in is required to move, and a body over the size limit is refused with 413 before it is decoded.src/core/visitor_bring.tsand the migrationtab-moved-apps: where moved apps are kept and how they are brought to an account.- Both cookie scans now name the move's visitor cookie:
- In
test/cookie-flags.test.tsit is listed as a site with its reason (UNREACHED). - In
test/cookie-floor.test.tsit is named as built byadmitVisitor, whose line comes fromsetCookieinsrc/core/visitors.ts.
These two lists, not the code, were what failed the last check.
- In
Left out:
test/cookie-flags.test.tsdoes not send a request to the move route.test/visitor-move.test.tsdoes, and uses the cookie it gets back.- The gate suggests that the sign-up helper in
test/visitor-move.test.tslooks like the sign-in helper intest/apps-open-host.test.ts. I left them separate.
Tests: test/cookie-flags.test.ts, test/cookie-floor.test.ts and test/visitor-move.test.ts pass (23 tests). bun x tsc --noEmit and bun scripts/gate.ts pass. I did not run the full suite; the forge runs it on this push.
Try it on the preview: make an app in the tab forge and press Keep it on my account. Sign in, open /settings/bring, tick the app, and it moves to your account.
[{"go":"/settings/bring","look":"the Brought in list after a move from the tab forge","expect":"the moved app is listed with its title and a tick to bring it; bringing shows a receipt and an undo"}]
🤖 Generated with Claude Code
<!-- look-pages 2526bf476745 --> Look pages for 2526bf4, from the gate:
look pages (none): "Looks: /settings/bring" is not a page of app.looks in forge.json; this pull changes src/web/pages/tabforge-link.ts, src/web/pages/visitor_bring.ts but the forge could not trace the route of /, /admin/telemetry, /explore and 29 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
An app made in the tab forge (or in the Apple app's on-device mode) can now move to this forge. When someone moves one without being signed in, the app is kept under their visitor cookie through POST /tabforge-move. When they sign up or sign in and tick it on the bring page, it moves to their account, the way their notes already do. Only the app moves, not its entries. It's stored in a new table, tab_moved, which the account purge now covers.
The last check failed on two tests, and both are fixed:
- Account purge (
test/account-purge.test.ts):tab_moved.holderstoresu:<id>orv:<visitor>, so the purge's search by user id can't match it.purgeAccountnow deletes the person'su:rows directly, and the column is listed inCOVEREDwith that reason. A new test checks that the purged person's moved app is deleted while another account's and a visitor's are kept. - /system first-view budget (
test/attention-stamped.test.ts): this one was caused by machine load, not by this pull. On a busy runner, drawing the pages before /system took over 200 ms, so /system listed those slowdowns ("stalls"): 8 blocks and 36 words more on a page already exactly at its budget. The test helperpinnedSystem(test/helpers/first-views.ts) now replaces the stalls section and the "Who is asking" section with their quiet versions, as it already does for the other machine readings. A new test intest/attention.test.tsadds stalls and askers to /system and checks that it counts the same as a quiet page; it fails without the fix.
The gate passed (0 rules failed), bun x tsc --noEmit passed, and the attention and account-purge test files passed locally. They also pass with current main merged in. The gate noted two things it didn't fail: it could not work out which page this pull changes, so the reviewer decides (the review block below covers /settings/bring), and the sign-up helper in test/visitor-move.test.ts looks similar to the sign-in helper in test/apps-open-host.test.ts.
[
{"go": "/tab", "look": "make an app in the tab forge without signing in, then move it to this forge", "expect": "the app opens on this forge, held by this browser"},
{"go": "/signup", "look": "sign up in the same browser and open the bring page", "expect": "the moved app is listed beside any notes, ticked by default", "ask": "Does ticking it bring the app to the new account, with a receipt and undo?"},
{"go": "/settings/bring", "look": "after the bring", "expect": "the app is the account's own; the undo window is shown"}
]
🤖 Generated with Claude Code
<!-- look-pages 2a0e93dd45cd --> Look pages for 2a0e93d, from the gate:
look pages (none): "Looks: /settings/bring" is not a page of app.looks in forge.json; this pull changes src/web/pages/tabforge-link.ts, src/web/pages/visitor_bring.ts but the forge could not trace the route of /, /admin/telemetry, /explore and 29 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
An app made in the tab forge, or in the Apple app's on-device mode, can now move to a shared forge. It is held by the same visitor that holds notes sent before signing in. When that visitor signs in, the app shows up on Brought in (/settings/bring) as a row to tick and bring to the account, with the same 24-hour undo that notes have. Brought apps are listed under a new "Apps from a tab" section, and they go with the account when it is purged. The terminal's Brought in screen (src/tui/screens/visitor_bring.ts) shows the same. POST /tabforge-move is marked open and listed among the routes with no look, and its visitor cookie is named among the cookie sites.
What to look at
src/web/pages/visitor_bring.ts: the app row, the "Apps from a tab" section, and the wording that now says "things" where it said "notes".src/web/pages/tabforge-link.ts: the move, which sends people to/settings/bring.test/visitor-move.test.ts: checks that the app rows and the new section appear on the rendered page.
Not done
/settings/bringgets no picture.app.looksalready holds its 32 paths, so the page can't be added. The latest commit says this in aNo look:line, which answers the gate's look-pages note.- That commit is empty, so I did not re-run
tscor the tests for it.scripts/gate.ts --explainreads 0 fail, 37 satisfied and 2 noted.
To try it on the preview: make an app at /tabforge without signing in and move it to the shared forge. Then sign in, open /settings/bring, tick the app and bring it. It appears under "Apps from a tab", and Undo stays open for 24 hours.
[{"go":"/settings/bring","look":"Account settings, Brought in","expect":"The page header mentions notes and apps made before signing in; with a moved app, an 'Apps from a tab' section lists it"}]
🤖 Generated with Claude Code
An app made in the tab forge, or in the Apple app's on-device mode, can now move to a shared forge. "Keep it on my account" posts the app's JSON to POST /tabforge-move. If nobody is signed in, the app is held by the browser's visitor (the forge_maker cookie, the same one notes use). Then Settings › Brought in (/settings/bring) lists it next to any notes. Ticking it makes it the account's, with the same 24-hour undo that notes have. It appears under Apps from a tab on the page and in the terminal's Brought in screen. It goes with the account when the account is purged.
This round answers the review:
- Signed in: someone already signed in now keeps the app on their account straight away. There is no visitor cookie and nothing to bring, even when the browser sends
Sec-GPCorDNT. The 403 "Sign in first" now applies only when nobody is signed in.keepMoved(insrc/core/visitor_bring.ts) now takes either a visitor or a user as the holder. - Terminal test:
test/tui-visitor-bring.test.tsbrings an app, opens the terminal's Brought in screen, and expects the app's title. - Doc: in
docs/features/browser-forge-move.md, the move-in section'sCode:line is back under its own section, and the signed-in case is described. - Indentation: the note row in
madeRowis now indented to match its ternary.
What to look at:
tabMoveIninsrc/web/pages/tabforge-link.ts.- The new signed-in test in
test/visitor-move.test.ts. It would get a 403 without this change.
Left out:
/settings/bringhas no picture, becauseapp.looksalready holds its 32 paths. The commits say so in aNo look:line.- A signed-in move skips the per-visitor daily caps. The per-socket rate limit and the forge and client make counts still apply.
- Opening or editing a moved app on the shared forge is not done; the app is kept as its spec and listed.
Checks:
tsc --noEmitand the design lint are clean. The gate reads 0 fail, with two notes about code this pull didn't change.- The 9 test files that cover this pass, 51 tests in all.
scripts/fast.tsnamed about 4,000 files (over its 5-minute budget), so I chose those files myself. The broad run I started was left running in the background and has not finished.
To try it on the preview: sign in, make an app at /tabforge, and press "Keep it on my account". /settings/bring then lists it under "Apps from a tab", with nothing to tick.
[{"go":"/settings/bring","look":"Account settings, Brought in","expect":"The page header mentions notes and apps made before signing in; with a moved app, an 'Apps from a tab' section lists it by title"}]
🤖 Generated with Claude Code
An app made in the tab forge, or in the Apple app's on-device mode, can now move to a shared forge. "Keep it on my account" posts the app's JSON to POST /tabforge-move.
- Not signed in: the app is held by the browser's visitor, the same
forge_makercookie that notes sent before signing in use. Settings › Brought in (/settings/bring) lists it next to any notes. Ticking it makes it the account's, with the same 24-hour undo. - Signed in: the account keeps the app straight away, with no visitor cookie and nothing to tick. This holds even when the browser sends
Sec-GPCorDNT. The 403 "Sign in first" applies only when nobody is signed in. - Where it shows: a brought app is listed under Apps from a tab on that page and in the terminal's Brought in screen. It goes with the account when the account is purged.
main is merged in. Its only conflict was the terminal's one-line tab summary (tabLine in src/tab/words.ts). The merged line keeps both sides: this pull's "Keep it on my account" words (TAB_KEEP) and main's description of the whole-tab forge (TAB_WHOLE).
What to look at:
tabMoveIninsrc/web/pages/tabforge-link.ts.keepMovedinsrc/core/visitor_bring.ts, which now takes either a visitor or a user as the holder.test/visitor-move.test.tscovers the visitor move, bringing, undo, a second device, and the signed-in case with tracking refused.test/tui-visitor-bring.test.tsopens the terminal's Brought in screen after a bring.
Left out:
/settings/bringhas no picture, becauseapp.looksalready holds its 32 paths. The commits say so in aNo look:line.- A signed-in move skips the per-visitor daily caps. The per-socket rate limit still applies, and the forge-wide and per-client counts of things made still add up.
- Opening or editing a moved app on the shared forge is not done; the app is kept as its spec and listed.
Checks after the merge: tsc --noEmit is clean. The gate reads 0 fail and 2 notes, neither about code this pull changed. The 17 tab, tab-forge, bring and unused-exports test files pass (88 tests). I chose those files myself, because scripts/fast.ts named almost 4,000 files, too many to run here.
To try it on the preview: sign in, make an app at /tabforge, and press "Keep it on my account". /settings/bring then lists it under "Apps from a tab", with nothing to tick.
[{"go":"/settings/bring","look":"Account settings, Brought in","expect":"The page header mentions notes and apps made before signing in; with a moved app, an 'Apps from a tab' section lists it by title"}]
🤖 Generated with Claude Code
You can now move an app made in the tab forge, with no login, to an account on the shared forge. In the tab, the app's page has a new Keep it on my account button. It sends the app's Blocks JSON (field
app, the #18079 format the Apple app also writes) to a newPOST /tabforge-move. The app becomes the account's only after the person signs in or up and ticks it on Settings › Brought in (/settings/bring, the Access 5b list).tabMoveIninsrc/web/pages/tabforge-link.ts): the app is checked by the tab's owndecodeApp, so the same limits apply. The request passes the same door limit as Get a link and the visitor caps. The forge keeps the app (never its entries) in a newtab_movedtable, held by this browser's signedforge_makervisitor cookie, which is created then if the browser has none. It then redirects to/settings/bring. An app that does not decode keeps nothing and says why. A browser that sendsSec-GPC/DNThas no visitor to hold the app, so it is told to sign in first and nothing is kept.src/core/visitor_bring.ts): moved apps use the same key scheme as notes,v:<visitor>until brought andu:<user>after. SobringandundoBringreuse the existing receipt, the 24-hour undo window and the existing tables. The list shows the app as "An app, title, moved from a tab", unticked. Once brought, the page lists it under Apps from a tab, and the terminal's Brought in screen shows the same list. Receipts now say "N things brought", because a receipt can count apps as well as notes.Look at:
test/visitor-bring.test.tsfrom "1 note brought" to "1 thing brought". The test was right; the words changed.No door:line in a commit, because the bring-in gate wants a new terminal screen for it. The terminal side is the existing Brought in screen plus the tab entry's newTAB_KEEPwords. Moving or picking an app needs the browser that holds the app and the visitor cookie, so the terminal can't do either.Not done:
forge.jsonegress: the move is a same-origin form post.Checks:
bun x tsc --noEmitand design-lint pass. The gate's failing rules are now answered by theNo door:line, the new route mark and the Try line. It still shows two notes:Looks: /settings/bringis not one of the pages inapp.looks(the reviewer decides), and my test's sign-up helper looks like one intest/apps-open-host.test.ts. Tests: the newtest/visitor-move.test.tspasses, along withtest/visitor-bring.test.tsand the tab, route-mark, schema, security-floor, dead-code and module-state suites.scripts/fast.tsnamed 3,992 files, so I picked these myself. One group I ran timed out in the sandbox and I didn't find which file hung; the likely ones (test/hollow-cli.test.ts,test/security-floor-pages.test.ts, which tried to reachalpha--localhost) and thetest/account-menu-names.test.ts,test/security-floor-errors.test.ts,test/security-floor-kinds.test.ts,test/tab-fill.test.ts,test/tab-host-visible.test.ts,test/tabforge-*.test.ts(excepttest/tabforge-routes.test.ts) andtest/visitor-bring.test.tsfiles from that group were not run again. The forge's full check covers them.Try it: open
/tab, make an app, open it, press Keep it on my account, sign up, tick the app on/settings/bringand press Bring the ones ticked.🤖 Generated with Claude Code
Closes #18114