Public: anyone can read this; the crew can change it.
Access 5b: at sign-up or sign-in a person is shown what this visitor made and chooses to bring it, with a receipt and an undo window #18217
Merged 3h 59m ago, live in production
A visitor's notes now come to their account only when they choose: they open the forge button's list and press Keep these on my account, then sign in or sign up and press Bring. Each bring leaves a receipt and can be undone for 24 hours.
-
Reviews
Changes requested — before the latest pushChanges needed, in one round.
- HIGH (denial-of-service):
POST /__forge/note/carryinserts avisitor_carryrow on every call, with no cap per visitor. Anyone holding a signedforge_makercookie, which a single note earns, can mint tickets without limit for 30 minutes and grow the table and the db. Fix by removing something, not adding a governor: inmintCarrydelete the visitor's earlier tickets first (DELETE FROM visitor_carry WHERE visitor_id = ?), so there is one live ticket per visitor. Add a test. - MEDIUM (attribution by a forwarded link):
/settings/bring?carry=...lists the notes with every box ticked (checked). Someone can send a signed-in person their own ticket link. One press of Bring then puts the sender's notes on the victim's account under@victim. The issue says the person picks, so start with the boxes unticked, or make the page say whose device the notes came from. Test that the default form brings nothing. - MEDIUM (both doors): the terminal can undo but cannot see or choose what to bring, so the issue's first box is met only in the browser. The reason is sound (the cookie is the browser's). Say so plainly in docs/features/visitor-bring.md and keep the screen's empty note; if a visitor-less terminal path is possible, add it.
- LOW: the toolbar form uses
target=_blankwithoutrel=noopener; set it. - Design: principle 1, the page explains itself three times (sub line, empty-note plus hint paragraph, and the 'They become yours...' paragraph). Keep one sentence. The page is titled 'Brought from a visitor', the nav says 'Brought in', and the terminal says 'Brought from a visitor': use one name. The nav reuses the Confirms 'check' icon.
madeBysilently drops anything past 200. mayBringreturns ok forvia === 'edge'before any passkey freshness check. Say in a test why that is safe, or require freshness there too.
ApprovedRound 3 read against the diff since 205d0fb. The earlier asks are met: one live ticket per visitor, nothing ticked by default, a single name (Brought in) on page, nav and terminal, the 200-row list with its 'more waiting' line, the terminal's limit said in the how-to, and the edge exemption explained in a comment and tested. Nothing new in the changed lines is a security or design finding. Non-blocking:
keep.relon a form element does nothing (browsers already give target=_blank forms noopener); the property can go the next time the toolbar is touched. - HIGH (denial-of-service):
-
Checks
shipped production is serving it deploy a338207
-
History
- Rewrap comments to the gate's width (#18113) 9b17f8d
- Brought in: one live ticket per visitor, nothing ticked by default, one name, and the terminal's limit said (#18113) 877d64a
- Toolbar: a smaller, 44px carry button, its bytes named in the budgets; the bring page names session and render in Server-Timing (#18113) 205d0fb
- Looks: the nearest looked page to Settings › Brought in is Settings › Connected agents (#18113) 6864083
- Brought in: its two empty notes come from NOTE_WORDS, not the page's own words (#18113) fd4cff9
- Rewrap comments and build a real passkey in the bring test (#18113) 52cd1d0
- Settings › Brought in: the side-nav entry, two words over the settings budget (#18113) 67f379d
- Access 5b: a visitor's notes come to the account they sign in or up to, picked, with a receipt and a day's undo (#18113) f4e97c9
- Games: installing the quality set ships Essential Commands' config with only /home, /spawn and /tpa on (#18199) 7b84b2c
- 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
- 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
- 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
- Access 3b: MCP, pages, the terminal, games and infrastructure ask may(), one door per pull (#18186) 5a3de44
- Games: the forge-velocity pin's sha256 is the jar's whole digest (#18198) 7ede9b5
- Access 4b-2: an admin sees who can reach what, by person and by resource (#18179) a8d3bc8
10 earlier comments
A visitor's notes now come to their account only when they choose: they open the forge button's list and press Keep these on my account, then sign in or sign up and press Bring. Each bring leaves a receipt and can be undone for 24 hours. Notes are the only thing a visitor can make today, so the issue's "make an app as a visitor" test makes a note instead (#18188 adds apps).
Why there is a carry ticket. The signed forge_maker cookie lives on the app's host, which the forge's own host can't read. So POST /__forge/note/carry (src/apps/feedback.ts) works only for a request carrying that signed cookie. It mints a one-time ticket: only its hash is kept, it lasts 30 minutes, and the bring spends it. It then sends the person to /settings/bring?carry=… on the forge. The cookie never leaves the app's host.
What changed:
- Data (
src/core/visitor_bring.ts, new migration):madeBylists the visitor's notes, leaving out any the app's owner hid or banned.bringmoves the picked notes to the account (keyu:<id>, name@username) and records what each had before;undoBringputs that back. The issue that was filed is not rewritten. - Who may bring (
src/actions/visitor_bring.ts): only the account itself, signed in in a browser; tokens, agents and orgs are refused. An account with a passkey must bring within 15 minutes of signing in. The visitor is named only by the ticket or the signed cookie, never by a form field. The eventsvisitor.broughtandvisitor.undoneare classified as the person's own (actor) insrc/core/event_audience.ts. - Page
/settings/bring(src/web/pages/visitor_bring.ts): sign-in and sign-up bring the person back here. Arriving brings nothing; the person ticks what to bring and presses Bring. Receipts below have Undo. It's a new "Brought in" entry in the account settings nav, which takes the settings page from 155 to 157 words, so I raised its budget indocs/design/attention-budget.json. - Terminal "Brought from a visitor" (
src/tui/screens/visitor_bring.ts): lists the receipts, anduundoes one after a y/n. Bringing has to start in the browser that holds the visitor's cookie. - Docs: a how-to in
docs/features/visitor-bring.mdand a threat note indocs/threats/stolen-token.md.
Worth a look:
- A leaked carry link moves only that visitor's notes on that one app, and only within 30 minutes.
- The app's own code runs on the same host, so it can mint a ticket for its visitors. It could already read those notes through
/__forge/notes, so this exposes nothing new.
Tests: test/visitor-bring.test.ts (6 tests) makes the note through the real app door, presses Keep, signs up, brings it, finds the note owned by the account, and undoes it. Refused in the same file: a made-up ticket, a visitor id with no signature or a wrong one, a spent ticket, another visitor's note named in the form, a form from another site, a token, a passkey account that signed in long ago, an undo by someone else or after 24 hours, and a hidden or banned note. bun x tsc --noEmit, bun scripts/design-lint.ts and bun scripts/gate.ts (0 fail) are clean, and the covering tests pass. The full suite was not run here; the forge runs it on the push.
Not done: nothing brings automatically at sign-in, and no sign-in redirect was added. The person always arrives through the Keep link.
Reused: heldVisitor, readForm's same-origin check, signInFirst/signInHref (which keep next), settingsLayout/accountSections, row/rowList, and the terminal's confirmScreen/ListState. The gate's look-alike-function notes point to queries on other tables, so nothing more was folded together.
[{"go":"/settings/bring","look":"Made as a visitor and Brought sections under Account settings, with Brought in in the side nav","expect":"Nothing made as a visitor on this device is waiting, and Nothing brought yet"},
{"go":"an app's page on the preview, signed out: open the forge button, send a note, then press Keep these on my account","look":"a new tab on /signin with next=/settings/bring?carry=…","expect":"after signing up, the note is listed ticked with its app and issue number"},
{"go":"press Bring the ones ticked","look":"the flash and the Brought list","expect":"1 note brought, with Undo; the app's forge button shows the note when signed in","ask":"Does the wording make clear that the filed issue is not rewritten?"}]
🤖 Generated with Claude Code
<!-- look-pages 52cd1d05d234 --> Look pages for 52cd1d0, 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/origins.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
A visitor's notes now come to their account only when they choose: they open the forge button's list and press Keep these on my account, then sign in or sign up and press Bring. Each bring leaves a receipt and can be undone for 24 hours. Notes are the only thing a visitor can make today, so the issue's "make an app as a visitor" test makes a note instead (#18188 adds apps).
Why there is a carry ticket. The signed forge_maker cookie lives on the app's host, which the forge's own host can't read. So POST /__forge/note/carry (src/apps/feedback.ts) works only for a request carrying that signed cookie. It mints a one-time ticket: only its hash is kept, it lasts 30 minutes, and the bring spends it. It then sends the person to /settings/bring?carry=… on the forge. The cookie never leaves the app's host.
What changed:
- Data (
src/core/visitor_bring.ts, new migration):madeBylists the visitor's notes, leaving out any the app's owner hid or banned.bringmoves the picked notes to the account (keyu:<id>, name@username) and records what each had before;undoBringputs that back. The issue that was filed is not rewritten. - Who may bring (
src/actions/visitor_bring.ts): only the account itself, signed in in a browser; tokens, agents and orgs are refused. An account with a passkey must bring within 15 minutes of signing in. The visitor is named only by the ticket or the signed cookie, never by a form field. The eventsvisitor.broughtandvisitor.undoneare classified as the person's own (actor) insrc/core/event_audience.ts. - Page
/settings/bring(src/web/pages/visitor_bring.ts): sign-in and sign-up bring the person back here. Arriving brings nothing; the person ticks what to bring and presses Bring. Receipts below have Undo.- It's a new "Brought in" entry in the account settings nav. That takes the settings page from 155 to 157 words, so I raised its budget in
docs/design/attention-budget.json. - Its two empty-state sentences come from the shared table (
NOTE_WORDSinsrc/core/empty_words.ts) instead of the page's own words. The first push wrote them on the page, whichtest/empty-notes.test.tsrefuses; that was the check's only failure.
- It's a new "Brought in" entry in the account settings nav. That takes the settings page from 155 to 157 words, so I raised its budget in
- Terminal "Brought from a visitor" (
src/tui/screens/visitor_bring.ts): lists the receipts, anduundoes one after a y/n. Bringing has to start in the browser that holds the visitor's cookie. - Docs: a how-to in
docs/features/visitor-bring.mdand a threat note indocs/threats/stolen-token.md.
Worth a look:
- A leaked carry link moves only that visitor's notes on that one app, and only within 30 minutes.
- The app's own code runs on the same host, so it can mint a ticket for its visitors. It could already read those notes through
/__forge/notes, so this exposes nothing new.
Tests: test/visitor-bring.test.ts (6 tests) makes the note through the real app door, presses Keep, signs up, brings it, finds the note owned by the account, and undoes it. Refused in the same file: a made-up ticket, a visitor id with no signature or a wrong one, a spent ticket, another visitor's note named in the form, a form from another site, a token, a passkey account that signed in long ago, an undo by someone else or after 24 hours, and a hidden or banned note.
bun x tsc --noEmit, bun scripts/design-lint.ts and bun scripts/gate.ts are clean on the latest push. The tests that cover the change pass, test/empty-notes.test.ts among them. The full suite was not run here; the forge runs it on the push.
Not done: nothing brings automatically at sign-in, and no sign-in redirect was added. The person always arrives through the Keep link.
Reused: heldVisitor, readForm's same-origin check, signInFirst/signInHref (which keep next), settingsLayout/accountSections, row/rowList, emptyNote, and the terminal's confirmScreen/ListState. The gate's look-alike-function notes point to queries on other tables, so nothing more was folded together.
[{"go":"/settings/bring","look":"Made as a visitor and Brought sections under Account settings, with Brought in in the side nav","expect":"Nothing made as a visitor on this device is waiting, and Nothing brought yet"},
{"go":"an app's page on the preview, signed out: open the forge button, send a note, then press Keep these on my account","look":"a new tab on /signin with next=/settings/bring?carry=…","expect":"after signing up, the note is listed ticked with its app and issue number"},
{"go":"press Bring the ones ticked","look":"the flash and the Brought list","expect":"1 note brought, with Undo; the app's forge button shows the note when signed in","ask":"Does the wording make clear that the filed issue is not rewritten?"}]
🤖 Generated with Claude Code
A visitor's notes now come to their account only when they choose: they open the forge button's list and press Keep these on my account, then sign in or sign up and press Bring. Each bring leaves a receipt and can be undone for 24 hours. Notes are the only thing a visitor can make today, so the issue's "make an app as a visitor" test makes a note instead (#18188 adds apps).
Why there is a carry ticket. The signed forge_maker cookie lives on the app's host, which the forge's own host can't read. So POST /__forge/note/carry (src/apps/feedback.ts) works only for a request carrying that signed cookie. It mints a one-time ticket: only its hash is kept, it lasts 30 minutes, and the bring spends it. It then sends the person to /settings/bring?carry=… on the forge. The cookie never leaves the app's host.
What changed:
- Data (
src/core/visitor_bring.ts, new migration):madeBylists the visitor's notes, leaving out any the app's owner hid or banned.bringmoves the picked notes to the account (keyu:<id>, name@username) and records what each had before;undoBringputs that back. The issue that was filed is not rewritten. - Who may bring (
src/actions/visitor_bring.ts): only the account itself, signed in in a browser; tokens, agents and orgs are refused. An account with a passkey must bring within 15 minutes of signing in. The visitor is named only by the ticket or the signed cookie, never by a form field. The eventsvisitor.broughtandvisitor.undoneare classified as the person's own (actor) insrc/core/event_audience.ts. - Page
/settings/bring(src/web/pages/visitor_bring.ts): sign-in and sign-up bring the person back here. Arriving brings nothing; the person ticks what to bring and presses Bring. Receipts below have Undo.- It's a new "Brought in" entry in the account settings nav. That takes the settings page from 155 to 157 words, so I raised its budget in
docs/design/attention-budget.json. - Its two empty-state sentences come from the shared
NOTE_WORDStable (src/core/empty_words.ts).
- It's a new "Brought in" entry in the account settings nav. That takes the settings page from 155 to 157 words, so I raised its budget in
- Terminal "Brought from a visitor" (
src/tui/screens/visitor_bring.ts): lists the receipts, anduundoes one after a y/n. Bringing has to start in the browser that holds the visitor's cookie. - Docs: a how-to in
docs/features/visitor-bring.mdand a threat note indocs/threats/stolen-token.md.
Looks: /settings/bring is not among the pages in forge.json app.looks, so a commit now names /settings/grants instead. It is the nearest page there with the same account side nav, where the new "Brought in" entry shows. The gate now reads that look note as satisfied.
Worth a look:
- A leaked carry link moves only that visitor's notes on that one app, and only within 30 minutes.
- The app's own code runs on the same host, so it can mint a ticket for its visitors. It could already read those notes through
/__forge/notes, so this exposes nothing new.
Tests: test/visitor-bring.test.ts (6 tests) makes the note through the real app door, presses Keep, signs up, brings it, finds the note owned by the account, and undoes it. Refused in the same file: a made-up ticket, a visitor id with no signature or a wrong one, a spent ticket, another visitor's note named in the form, a form from another site, a token, a passkey account that signed in long ago, an undo by someone else or after 24 hours, and a hidden or banned note.
bun x tsc --noEmit, bun scripts/design-lint.ts, bun scripts/gate.ts (no failures) and the tests that cover the change, test/empty-notes.test.ts among them, were green on the last code commit. The latest push adds only an empty commit naming the look page, and I re-ran only the gate after it. The full suite was not run here; the forge runs it on the push.
Not done: nothing brings automatically at sign-in, and no sign-in redirect was added. The person always arrives through the Keep link.
Reused: heldVisitor, readForm's same-origin check, signInFirst/signInHref (which keep next), settingsLayout/accountSections, row/rowList, emptyNote, and the terminal's confirmScreen/ListState. The gate's look-alike-function notes point to queries on other tables, so nothing more was folded together.
[{"go":"/settings/grants","look":"the account side nav","expect":"a new Brought in entry under Account, after Confirms"},
{"go":"/settings/bring","look":"Made as a visitor and Brought sections under Account settings","expect":"Nothing made as a visitor on this device is waiting, and Nothing brought yet"},
{"go":"an app's page on the preview, signed out: open the forge button, send a note, then press Keep these on my account","look":"a new tab on /signin with next=/settings/bring?carry=…","expect":"after signing up, the note is listed ticked with its app and issue number"},
{"go":"press Bring the ones ticked","look":"the flash and the Brought list","expect":"1 note brought, with Undo; the app's forge button shows the note when signed in","ask":"Does the wording make clear that the filed issue is not rewritten?"}]
🤖 Generated with Claude Code
A visitor's notes can now come to the account they sign in or up to, by their choice, with a receipt and 24 hours to undo (#18113).
On an app, the forge button lists a visitor's own notes. Above them it now offers Keep these on my account. That posts to /__forge/note/carry (src/apps/feedback.ts), which makes a one-time ticket from the visitor's signed cookie. The cookie itself never leaves the app's host. The visitor is then sent on to the forge's /settings/bring?carry=…. Signing in or up keeps that address as where to go next.
Nothing moves just by arriving. The bring page lists what the visitor made, all ticked. The person presses Bring in a same-origin form, and actions/visitor_bring.ts decides whether they may. Notes keep their filed text and get a new owner. Each bring leaves a receipt that can be undone for 24 hours, from the page or from the terminal (tui/screens/visitor_bring.ts, the "Brought from a visitor" command). The tables come from a migration (20261204120000-visitor-bring). The events visitor.brought and visitor.undone are the person's own receipts; neither one carries the visitor's id. docs/threats/stolen-token.md says what a stolen ticket can and cannot do.
The latest push fixes the red check:
- Toolbar size: the button is smaller, with the toolbar's 44px tap height. What's left of it is recorded as a named allowance in each toolbar budget test, as earlier toolbar additions were: +128 B on the wire, +384 B on the script, +400 B on the addition.
- Server-Timing:
/settings/bringnow reportssessionandrender. - Not changed: the game-mods test "the terminal shows the set as the page does" failed by timing out. My change only adds an import and a command entry to the terminal code that test starts. The whole file passed 3 of 3 runs here, so I left that test alone.
Type check, design lint, the gate's rules and the tests covering this change all pass here. I didn't run the full suite; the forge's check runs it.
[
{"go": "/settings/bring", "look": "Settings side nav and the page body", "expect": "'Brought in' is selected in the side nav; the page shows 'Made as a visitor' with an empty note and 'Brought' with an empty note"},
{"go": "an app preview, as a visitor who sent a note through the forge button", "look": "the 'Your notes' list in the forge button's panel", "expect": "a 'Keep these on my account' link-style button above the notes, at least 44px tall", "ask": "Is the offer clear without crowding the notes?"},
{"go": "press 'Keep these on my account', then sign in", "look": "/settings/bring after sign-in", "expect": "the visitor's notes listed, all ticked, with 'Bring the ones ticked'; after pressing it, a receipt under 'Brought' with an Undo button"},
{"go": "press Undo on that receipt", "look": "the receipt row", "expect": "the receipt reads 'undone' and the notes are offered again only while the ticket still holds"}
]
🤖 Generated with Claude Code
A visitor's notes can now come to the account they sign in or up to, by their choice, with a receipt and 24 hours to undo (#18113).
On an app, the forge button lists a visitor's own notes. Above them it now offers Keep these on my account. That posts to /__forge/note/carry (src/apps/feedback.ts), which makes a one-time ticket from the visitor's signed cookie. The cookie itself never leaves the app's host. The visitor is then sent on to the forge's /settings/bring?carry=…. Signing in or up keeps that address as where to go next.
Nothing moves just by arriving. The bring page lists what the visitor made, all ticked. The person presses Bring in a same-origin form, and actions/visitor_bring.ts decides whether they may. Notes keep their filed text and get a new owner. Each bring leaves a receipt that can be undone for 24 hours, from the page or from the terminal (tui/screens/visitor_bring.ts, the "Brought from a visitor" command). The tables come from a migration (20261204120000-visitor-bring). The events visitor.brought and visitor.undone are the person's own receipts; neither one carries the visitor's id. docs/threats/stolen-token.md says what a stolen ticket can and cannot do.
The forge button's addition is small, with the toolbar's 44px tap height. What's left of it is recorded as a named allowance in each toolbar budget test, as earlier toolbar additions were. /settings/bring reports session and render in Server-Timing.
Looks: commit 6864083 names /settings/grants as the page to picture, and the look-pages note confirms it was picked up. That page shows the new "Brought in" entry in the settings side nav. /settings/bring itself is not pictured because app.looks is already at its cap of 32 (test/forge-looks.test.ts), and adding it would push out another page. Nothing changed for this feedback, so there was nothing new to push.
Checked: the gate passes all 39 rules, including both doors, naming the issue, dead code and duplicate imports; three rules come back as notes, not failures. unused-exports, dup-imports, look-rule and forge-looks all pass here. The full suite is left to the forge's check.
[
{"go": "/settings/bring", "look": "Settings side nav and the page body", "expect": "'Brought in' is selected in the side nav; the page shows 'Made as a visitor' with an empty note and 'Brought' with an empty note"},
{"go": "an app preview, as a visitor who sent a note through the forge button", "look": "the 'Your notes' list in the forge button's panel", "expect": "a 'Keep these on my account' link-style button above the notes, at least 44px tall", "ask": "Is the offer clear without crowding the notes?"},
{"go": "press 'Keep these on my account', then sign in", "look": "/settings/bring after sign-in", "expect": "the visitor's notes listed, all ticked, with 'Bring the ones ticked'; after pressing it, a receipt under 'Brought' with an Undo button"},
{"go": "press Undo on that receipt", "look": "the receipt row", "expect": "the receipt reads 'undone' and the notes are offered again only while the ticket still holds"}
]
🤖 Generated with Claude Code
A visitor's notes can now come to the account they sign in or up to. The person ticks which ones, gets a receipt, and has 24 hours to undo (#18113).
On an app, the forge button lists a visitor's own notes. Above them it now offers Keep these on my account. That posts to /__forge/note/carry (src/apps/feedback.ts), which makes a one-time ticket from the visitor's signed cookie. The cookie never leaves the app's host. The visitor is then sent on to the forge's /settings/bring?carry=…, and signing in or up returns them there.
Nothing moves just by arriving. Settings › Brought in lists what the visitor made, with no box ticked. The person ticks what is theirs and presses Bring. actions/visitor_bring.ts decides whether they may: a person's own browser session, or the platform edge. An account with a passkey must have signed in within the last 15 minutes. Notes keep their filed text and get a new owner. Each bring leaves a receipt that can be undone for 24 hours, on the page or in the terminal's Brought in (tui/screens/visitor_bring.ts).
What changed after the security review:
- Ticket flooding:
mintCarrydeletes the visitor's earlier tickets first, so each visitor holds one live ticket. - Forwarded links: the bring page starts with every box unticked. The form sent as it stands brings nothing, so someone else's ticket link can't put their notes on your account with one press.
- Terminal: it shows the receipts and can undo, but cannot see or pick what to bring. The visitor is a cookie in the browser that made the notes, and the terminal has no other way to prove whose they are.
docs/features/visitor-bring.mdnow says so plainly. rel=noopener: the toolbar's Keep form now sets it. That and the button are counted as a named carry allowance in each toolbar size budget.- Design:
- The page explains itself once, in its sub line.
- Page, nav and terminal all use the name "Brought in".
- The nav icon is
download, not thecheckthat Confirms uses. madeBytakes a limit. The page lists the newest 200 and says when more are waiting, then the person presses Keep again for the rest.
- Edge sign-in: I kept edge sign-ins exempt from the 15-minute passkey rule. The edge signs each request itself, so there is no forge cookie to steal and no forge sign-in time to check. Requiring freshness would refuse every edge account that has a passkey. A comment in
mayBringand a test say this; a forge session cookie is still held to the 15 minutes.
Each fix has a test in test/visitor-bring.test.ts. The new tests make their accounts and notes in-process, because the sign-up and note forms are rate-limited by address and earlier tests use that up.
The type check, design lint, all 39 gate rules and the bring, toolbar, attention, palette and Server-Timing suites pass here; three gate rules came back as notes, not failures. One of those notes says the undo handler looks a lot like grantRevoke. I left them as two handlers, since they act on different records. The full suite is left to the forge's check.
/settings/grants is the pictured page because app.looks is at its cap of 32; it shows the new nav entry.
[
{"go": "/settings/bring", "look": "Settings side nav and the page body", "expect": "'Brought in' with a download icon is selected; the page head says once what it is for; 'Made as a visitor' and 'Brought' each show an empty note"},
{"go": "an app preview, as a visitor who sent a note through the forge button", "look": "the 'Your notes' list in the forge button's panel", "expect": "a 'Keep these on my account' link-style button above the notes, at least 44px tall; it opens the forge in a new tab"},
{"go": "press 'Keep these on my account', then sign in", "look": "/settings/bring after sign-in", "expect": "the visitor's notes listed with no box ticked; pressing 'Bring the ones ticked' with none ticked brings nothing; ticking one and pressing it leaves a receipt under 'Brought' with Undo", "ask": "Is it clear the person has to tick their own notes?"},
{"go": "press Undo on that receipt", "look": "the receipt row", "expect": "the receipt reads 'undone' and the note is the visitor's again"}
]
🤖 Generated with Claude Code
A visitor's notes now come to their account only when they choose. They open the forge button's list and press Keep these on my account, then sign in or sign up and press Bring. Each bring leaves a receipt and can be undone for 24 hours. Notes are the only thing a visitor can make today, so the issue's "make an app as a visitor" test makes a note instead (#18188 adds apps).
Looks: the gate's look-pages note for 9b17f8d is satisfied, and no new commit was needed. A commit names /settings/grants, which is in app.looks and looksAsOwner. The account settings nav there shows the new "Brought in" entry from src/web/pages/origins.ts. /settings/bring itself (src/web/pages/visitor_bring.ts) is not in app.looks. I didn't add it, because main has no such page to compare against. The first review step below covers it. The note is informational ("one note, never a failure", src/kernel/look_rule.ts).
Why there is a carry ticket. The signed forge_maker cookie lives on the app's host, and the forge's own host can't read it. So POST /__forge/note/carry (src/apps/feedback.ts) only works for a request carrying that signed cookie. It mints a one-time ticket that lasts 30 minutes and is spent by the bring; only its hash is kept. It then sends the person to /settings/bring?carry=… on the forge. The cookie never leaves the app's host.
What changed:
- Data (
src/core/visitor_bring.ts, new migration):madeBylists the visitor's notes, leaving out any the app's owner hid or banned.bringmoves the picked notes to the account (keyu:<id>, name@username) and records what each had before.undoBringputs that back.- The issue that was filed is not rewritten.
- Who may bring (
src/actions/visitor_bring.ts):- Only the account itself, signed in through a browser. Tokens, agents and orgs are refused.
- An account with a passkey must bring within 15 minutes of signing in.
- The visitor is identified only by the ticket or the signed cookie, never by a form field.
visitor.broughtandvisitor.undoneare classified as the person's own events (actor) insrc/core/event_audience.ts.
- Page
/settings/bring(src/web/pages/visitor_bring.ts):- Sign-in and sign-up bring the person back here.
- Arriving brings nothing: nothing is ticked by default. The person ticks what to bring and presses Bring.
- Receipts below have Undo.
- It's a new "Brought in" entry in the account settings nav. That takes the settings page from 155 to 157 words, so its budget in
docs/design/attention-budget.jsonwent up.
- Terminal "Brought from a visitor" (
src/tui/screens/visitor_bring.ts): lists the receipts, anduundoes one after a y/n. Bringing has to start in the browser that holds the visitor's cookie. - Docs: a how-to in
docs/features/visitor-bring.mdand a threat note indocs/threats/stolen-token.md.
Worth a look:
- A leaked carry link moves only that visitor's notes on that one app, and only within 30 minutes.
- The app's own code runs on the same host, so it can mint a ticket for its visitors. It could already read those notes through
/__forge/notes, so this exposes nothing new.
Tests: test/visitor-bring.test.ts (6 tests) runs the whole path:
- Makes the note through the real app door.
- Presses Keep and signs up.
- Brings the note and finds it owned by the account.
- Undoes the bring.
The same file checks each of these is refused:
- a made-up ticket
- a visitor id with no signature, or a wrong one
- a spent ticket
- another visitor's note named in the form
- a form from another site
- a token
- a passkey account that signed in long ago
- an undo by someone else, or after 24 hours
- a hidden or banned note
bun x tsc --noEmit and bun scripts/gate.ts --explain (0 fail, 3 notes) were re-run on 9b17f8d and are clean. bun scripts/design-lint.ts and the covering tests passed on the earlier push. The full suite was not run here; the forge runs it on the push.
Not done: nothing brings automatically at sign-in, and no sign-in redirect was added. The person always arrives through the Keep link.
Reused:
heldVisitorandreadForm's same-origin checksignInFirst/signInHref, which keepnextsettingsLayout/accountSectionsandrow/rowList- the terminal's
confirmScreen/ListState
The gate's look-alike-function notes point to queries on other tables, so nothing more was folded together.
[{"go":"/settings/bring","look":"Made as a visitor and Brought sections under Account settings, with Brought in in the side nav","expect":"Nothing made as a visitor on this device is waiting, and Nothing brought yet"},
{"go":"/settings/grants","look":"the account settings side nav","expect":"a Brought in entry after Confirms"},
{"go":"an app's page on the preview, signed out: open the forge button, send a note, then press Keep these on my account","look":"a new tab on /signin with next=/settings/bring?carry=…","expect":"after signing up, the note is listed unticked with its app and issue number"},
{"go":"tick the note and press Bring the ones ticked","look":"the flash and the Brought list","expect":"1 note brought, with Undo; the app's forge button shows the note when signed in","ask":"Does the wording make clear that the filed issue is not rewritten?"}]
🤖 Generated with Claude Code
Closes #18113
A visitor's notes now come to their account only when they choose: they open the forge button's list and press Keep these on my account, then sign in or sign up and press Bring. Each bring leaves a receipt and can be undone for 24 hours. Notes are the only thing a visitor can make today, so the issue's "make an app as a visitor" test makes a note instead (#18188 adds apps).
Why there is a carry ticket. The signed
forge_makercookie lives on the app's host, which the forge's own host can't read. SoPOST /__forge/note/carry(src/apps/feedback.ts) works only for a request carrying that signed cookie. It mints a one-time ticket: only its hash is kept, it lasts 30 minutes, and the bring spends it. It then sends the person to/settings/bring?carry=…on the forge. The cookie never leaves the app's host.What changed:
src/core/visitor_bring.ts, new migration):madeBylists the visitor's notes, leaving out any the app's owner hid or banned.bringmoves the picked notes to the account (keyu:<id>, name@username) and records what each had before;undoBringputs that back. The issue that was filed is not rewritten.src/actions/visitor_bring.ts): only the account itself, signed in in a browser; tokens, agents and orgs are refused. An account with a passkey must bring within 15 minutes of signing in. The visitor is named only by the ticket or the signed cookie, never by a form field. The eventsvisitor.broughtandvisitor.undoneare classified as the person's own (actor) insrc/core/event_audience.ts./settings/bring(src/web/pages/visitor_bring.ts): sign-in and sign-up bring the person back here. Arriving brings nothing; the person ticks what to bring and presses Bring. Receipts below have Undo. It's a new "Brought in" entry in the account settings nav, which takes the settings page from 155 to 157 words, so I raised its budget indocs/design/attention-budget.json.src/tui/screens/visitor_bring.ts): lists the receipts, anduundoes one after a y/n. Bringing has to start in the browser that holds the visitor's cookie.docs/features/visitor-bring.mdand a threat note indocs/threats/stolen-token.md.Worth a look:
/__forge/notes, so this exposes nothing new.Tests:
test/visitor-bring.test.ts(6 tests) makes the note through the real app door, presses Keep, signs up, brings it, finds the note owned by the account, and undoes it. Refused in the same file: a made-up ticket, a visitor id with no signature or a wrong one, a spent ticket, another visitor's note named in the form, a form from another site, a token, a passkey account that signed in long ago, an undo by someone else or after 24 hours, and a hidden or banned note.bun x tsc --noEmit,bun scripts/design-lint.tsandbun scripts/gate.ts(0 fail) are clean, and the covering tests pass. The full suite was not run here; the forge runs it on the push.Not done: nothing brings automatically at sign-in, and no sign-in redirect was added. The person always arrives through the Keep link.
Reused:
heldVisitor,readForm's same-origin check,signInFirst/signInHref(which keepnext),settingsLayout/accountSections,row/rowList, and the terminal'sconfirmScreen/ListState. The gate's look-alike-function notes point to queries on other tables, so nothing more was folded together.🤖 Generated with Claude Code
Closes #18113