Public: anyone can read this; the crew can change it.
Publishing an app from the tab forge mints the visitor principal, and only then #18243
Its check is red, 11h 17m ago
check failed: 1 of 2242 tests — "the cookie floor > every cookie constructed under src/ reaches the helper, or is named with its reason"
Publishing a tab forge app as a link (POST /tabforge-link, in src/web/pages/tabforge-link.ts) is now the only moment a person with no account becomes the visitor principal.
-
Reviews
No review yet.
-
Checks
stopped failed before it answered — 2241 passed, 1 failed: the cookie floor > every cookie constructed under src/ reaches the helper, or is named with its reason deploy e3e3e45
Check failed: the cookie floor > every cookie constructed under src/ reaches the helper, or i…Check of e3e3e45checked against main at a338207fast tier: red in 1m30s
Website spec: 27 findings (report only)
- /admin/telemetry http://127.0.0.1:34505/admin/telemetry answered 404 — https://specification.website/
- /board http://127.0.0.1:34505/board answered 303 — https://specification.website/
- /cockpit http://127.0.0.1:34505/cockpit answered 303 — https://specification.website/
- /notes http://127.0.0.1:34505/notes answered 303 — https://specification.website/
- /review http://127.0.0.1:34505/review answered 303 — https://specification.website/
- /system http://127.0.0.1:34505/system answered 303 — https://specification.website/
- /admin/limits http://127.0.0.1:34505/admin/limits answered 404 — https://specification.website/
- /maintenance http://127.0.0.1:34505/maintenance answered 303 — https://specification.website/
- /talk http://127.0.0.1:34505/talk answered 303 — https://specification.website/
- /flow http://127.0.0.1:34505/flow answered 303 — https://specification.website/
- /resilience http://127.0.0.1:34505/resilience answered 303 — https://specification.website/
- /boards?help http://127.0.0.1:34505/boards?help answered 303 — https://specification.website/
- /settings/crew http://127.0.0.1:34505/settings/crew answered 303 — https://specification.website/
- /settings/crew?help http://127.0.0.1:34505/settings/crew?help answered 303 — https://specification.website/
- /settings/captain http://127.0.0.1:34505/settings/captain answered 303 — https://specification.website/
- /settings/security/controls http://127.0.0.1:34505/settings/security/controls answered 303 — https://specification.website/
- /settings/grants http://127.0.0.1:34505/settings/grants answered 303 — https://specification.website/
- /preview-admin/sample http://127.0.0.1:34505/preview-admin/sample answered 404 — https://specification.website/
- /preview-admin/sample/drop http://127.0.0.1:34505/preview-admin/sample/drop answered 404 — https://specification.website/
- /preview-admin/sample/data-move http://127.0.0.1:34505/preview-admin/sample/data-move answered 303 — https://specification.website/
- /preview-admin/sample/cut-over http://127.0.0.1:34505/preview-admin/sample/cut-over answered 303 — https://specification.website/
- /preview-admin/sample/pulls/3 http://127.0.0.1:34505/preview-admin/sample/pulls/3 answered 404 — https://specification.website/
- /preview-admin/sample/next?pick http://127.0.0.1:34505/preview-admin/sample/next?pick answered 404 — https://specification.website/
- /preview-admin/sample/bets http://127.0.0.1:34505/preview-admin/sample/bets answered 404 — https://specification.website/
- /advisories http://127.0.0.1:34505/advisories answered 303 — https://specification.website/
- /looks/missing http://127.0.0.1:34505/looks/missing answered 404 — https://specification.website/
- /looks/failed http://127.0.0.1:34505/looks/failed answered 500 — https://specification.website/
Look
8 pages beside main · 0 new to this pull
/apps
In the dark
at e3e3e45 ·
/changelog
In the dark
at e3e3e45 ·
/explore
In the dark
at e3e3e45 ·
/looks/failed
In the dark
at e3e3e45 ·
/looks/missing
In the dark
at e3e3e45 ·
/notes
In the dark
at e3e3e45 ·
/review
In the dark
at e3e3e45 ·
/security
In the dark
at e3e3e45 ·
Publishing a tab forge app as a link (POST /tabforge-link, in src/web/pages/tabforge-link.ts) is now the only moment a person with no account becomes the visitor principal. It works the same way as the game client link (games_client_pack.ts) and reuses admitVisitor and countMake from src/core/visitors.ts without changing them.
The steps run in this order:
- The
sharerate limit. - Reading the body.
admitVisitor:may'svisitor.makefirst (403 for a refused credential), thenVISITOR_CAPSper visitor, per connection and per forge (429 past any of them). Nothing is stored before this passes.shareApp.countMake, only once the link exists.- The
forge_makercookie is added to the 201 answer.
Other cases:
- A spec that doesn't decode stores, counts and mints nothing.
- With
DNT: 1orSec-GPC: 1, the app is published and counted, but no id is kept. - A signed-in person mints nothing.
- Opening a link,
/tabor/tabforgemints nothing.
Tests: test/tab-share-visitor.test.ts covers each of those cases plus every refusal (the 403, and a 429 for each of the three caps), checking that a refusal stores no link and sets no cookie. test/cookie-flags.test.ts keeps a count of every place in src/ that sets a cookie, so it now lists the new one in tabforge-link.ts; the test was right to fail until then.
Docs: docs/features/tabforge.md now explains when publishing mints, replacing "mints no visitor principal". docs/features/returning-visitors.md says forge_maker is separate from the analytics forge_visitor cookie, and the comment at the top of visitors.ts lists this route among the ones that mint.
Not done:
- No terminal side: a person with no account has no terminal, and the tab's store lives only in the browser. The commit says so in a
No door:line. - No per-feature grant, as the issue asked.
- No way to edit or delete a link yet.
Checks: bun x tsc --noEmit, the gate (0 fail), design-lint and the tests covering the change pass:
tab-share*visitorsmaycookie-flagscookie-securesecurity-floor-routesfeature-doors
bun scripts/fast.ts listed nearly the whole suite. It started in the background and hadn't finished when I pushed, so the forge's check is the full run.
Try it: on the preview, open /tab, make an app and press Get a link. The 201 answer sets forge_maker=v…; HttpOnly. Opening the link sets no cookie, and publishing again with that cookie sets no new one.
🤖 Generated with Claude Code
API Error: 402 This request requires more credits, or fewer max_tokens. You requested up to 128000 tokens, but can only afford 2000. To increase, visit https://openrouter.ai/workspaces/default/keys/b36b4d5ca03526e2ce9b015c94d62cc19d23669897752807e5fe44ac6efc00fd and adjust the key's monthly limit
Publishing a tab forge app as a link (
POST /tabforge-link, insrc/web/pages/tabforge-link.ts) is now the only moment a person with no account becomes the visitor principal. It works the same way as the game client link (games_client_pack.ts) and reusesadmitVisitorandcountMakefromsrc/core/visitors.tswithout changing them.The steps run in this order:
sharerate limit.admitVisitor:may'svisitor.makefirst (403 for a refused credential), thenVISITOR_CAPSper visitor, per connection and per forge (429 past any of them). Nothing is stored before this passes.shareApp.countMake, only once the link exists.forge_makercookie is added to the 201 answer.Other cases:
DNT: 1orSec-GPC: 1, the app is published and counted, but no id is kept./tabor/tabforgemints nothing.Tests:
test/tab-share-visitor.test.tscovers each of those cases plus every refusal (the 403, and a 429 for each of the three caps), checking that a refusal stores no link and sets no cookie.test/cookie-flags.test.tskeeps a count of every place insrc/that sets a cookie, so it now lists the new one intabforge-link.ts; the test was right to fail until then.Docs:
docs/features/tabforge.mdnow explains when publishing mints, replacing "mints no visitor principal".docs/features/returning-visitors.mdsaysforge_makeris separate from the analyticsforge_visitorcookie, and the comment at the top ofvisitors.tslists this route among the ones that mint.Not done:
No door:line.Checks:
bun x tsc --noEmit, the gate (0 fail), design-lint and the tests covering the change pass:tab-share*visitorsmaycookie-flagscookie-securesecurity-floor-routesfeature-doorsbun scripts/fast.tslisted nearly the whole suite. It started in the background and hadn't finished when I pushed, so the forge's check is the full run.Try it: on the preview, open
/tab, make an app and press Get a link. The 201 answer setsforge_maker=v…; HttpOnly. Opening the link sets no cookie, and publishing again with that cookie sets no new one.🤖 Generated with Claude Code
Closes #18216