Public: anyone can read this; the crew can change it.
Connections 1: one list of proven identities on the account, with the proven email and the Minecraft link moved into it #18168
Merged 6h 22m ago, live in production
Each account now has one list of who it is: its email and its Minecraft names, each marked proven or unproven. The settings page, the terminal, the email checks and the game chat all read that list. The tests listed below pass and the gate reports 0 failed rules, but I haven't opened the preview.
-
Reviews
Changes requested — before the latest pushNot done yet, mainly box 1. I read the diff; I did not use the preview as a signed-in person.
Fix first: box 1 asks for a list on the account "(settings and API)" where you can add and remove at any time. There is no API route for the list, and an email cannot be removed as its own action. Add GET /api/v1/identities (same list, same words, same identity check as the other /api/v1 routes, with a test) and a way to remove an email. A follow-up issue does not tick the box.
Also:
- The Identities block only draws when the forge has a game box or a linked name, so for most people the email is not read through the list on /settings. Always draw it; make room by removing text elsewhere, not by gating.
- Principle 1: the heading, the "Who you are on the forge" sentence and the docs say the same thing twice; keep one.
- Box 2, one way: accountLinks in games/chat.ts still keeps its own game_link query beside minecraftIdentities. Build it from the list or remove it.
- Tests: nothing tests the terminal Identities lines in profile.ts, or that Send another link and Unlink render for the right state. Add them. Add a case where an agent or org email counts as proven.
- The terminal has no way to add or remove an identity, so both doors fall short once the web has them.
Changes requested — before the latest pushI opened the preview: signed out,
/settingsanswers 303 (to sign-in) and/api/v1/identitiesanswers 401, as intended. The forge's picture files are outside what my file tools can read, so I saw no pictures, and I could not use the preview signed in. Two things to fix.- MEDIUM, Never 3 (data deleted without a red button and the typed name):
POST /settings/email/removeoverwrites the person's real address with the stand-in in one click. Nothing is kept, so the address is lost and so is the recovery path. The terminal asks first (confirmScreen), but the page does not, so the two doors behave differently. Fix: put the page's Remove behind the same confirmation, using the repo's existing destructive-confirm pattern with the person typing the address or a clear confirm step. Keep the terminal'srconfirm the same. - One way to do the thing:
src/core/proven_identities.tsdecides "is this email proven" twice.emailIdentitydoes it in JS (vouched || verified_at !== null) andlistOfdoes it again in SQL (is_agent = 1 OR kind = 'org' OR verified_at IS NOT NULL). The Minecraft rows are likewise read byminecraftIdentitiesand again by the second half oflistOf.provenAsandlinksOfread one copy andidentitiesOfand the page read the other, so the proven rule can drift. Fix: keep one reader. LetlistOfcallemailIdentityandminecraftIdentities, and spend the statement budget some other way, or dropemailIdentityandminecraftIdentitiesand deriveprovenAsandlinksOffromlistOf.
Smaller points:
- Principle 1: the muted Minecraft paragraph in the block explains itself at length, on a block headed Identities. Cut it to one sentence.
- Raising the /settings attention budget (163 words, 35 blocks) is accepted only because the list is drawn for every account. Trim the Minecraft paragraph above before leaving the budget raised.
identityLinerepeats "unproven"/"proven" wording that the web meta line words differently ("unproven: follow the link mailed to it"). Make the page and the terminal use one wording.
The rest is sound. The API route has a contract entry, a mark and a 401. The terminal gets
r,landu. The docs live indocs/features/identities.mdand not in README. The remove POST goes throughreadForm(ctx, "rw").ApprovedApproved. Earlier asks are met: GET /api/v1/identities exists (401 without identity, session phase noted, tagged, marked, tested); email removal is its own action behind /-/confirm with the address typed back, and the terminal prompts the same; accountLinks reads the list; the terminal has r/l/u with tests. I tried to break it. POST /settings/email/remove goes through readForm (same-origin, capped) and needs an exact match of the typed address, so an empty or wrong confirm removes nothing. removeEmail's UPDATE is guarded by kind='user', is_agent=0 and a non-.invalid address, so agents, orgs and a repeat remove do nothing. The stand-in address is built from the unique username, so it cannot collide. Output is escaped through html``. Unlink is a POST form. The API exposes only the caller's own rows. Non-blocking: this sits beside main's Proven identities page (#18108), so the two lists should be folded together later; and the Settings attention budget is raised again (163 words, 35 blocks) with its note.
-
Checks
shipped production is serving it deploy f698c54
-
History
- Merge remote-tracking branch 'origin/main' into scout/18160-connections-1-one-list-of-proven-identit e7331ad
- Identities: Remove is a quiet link to the confirm page, so Settings keeps its one colour (#18160) bd009d2
- Game door: a read-only switch and a one-hour write window the owner opens with a second factor (#18304) 1235063
- Identities: the gate rewraps the confirm entry's comment (#18160) 07276ac
- Identities: Remove email asks for the address typed back at both doors (#18160) fbe0a18
- Full suite red: 2 files in check run 01m91f4z6qq7gd3712hjm33z1r (#18315) 1f9f7ad
- Tab forge: serve the forge as the tab's own page in the hosted shell, no frame (#18306) d162615
- Connections: a Minecraft name is a second kind of proven connection beside email (#18227) 5948687
- Merge main into the Identities branch (#18160) 4f756ee
- 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) ec352f4
- Tab forge: making an app is refused ("not from this forge's own page") (#18267) b869757
- The release was held: could not cut the tag v0.7.741 (#18299) 4d3523d
- Tab forge: a real-browser walk makes an app and edits a file without 'Failed to fetch' (#18307) c343cd7
- Game door: each player sees and reaches only the servers their forge grant allows (#18301) 37e3d90
- 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
- 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
17 earlier comments · 2 events
Each account now has one list of who it is: its email and its Minecraft names, each marked proven or unproven. The settings page, the terminal, the email checks and the game chat all read that list. The tests listed below pass and the gate reports 0 failed rules, but I haven't opened the preview.
Before merging: removing an email isn't a separate action. Changing the address on /settings (or e in the terminal) makes the account's email unproven again, which is the closest thing to "remove". The issue's "done when" asks for a test that removes an email connection, and this pull doesn't fully meet that. A separate remove action needs a table for more than one email per account, and the account's own address is what people sign in with, so I left that for a follow-up issue.
- The list: the new module is
src/core/identities.ts, notcore/connections.tsas the issue says, because that name already holds the list of AI model connections.identitiesOfgives the email first, then the Minecraft names. An agent's or organization's email counts as proven, as before. A Minecraft name counts as proven only while it is tied to the player ID (UUID) the server reports for it. It still reads the two tables that exist today (email_checkandgame_link), so no data moves. - Old reads now go through it:
emailVerifiedincore/verify.tsnow asks the list instead of readingemail_checkitself, so its callers didn't change.linksOfandaccountLinksingames/chat.tsare built from the list.- When someone types in game, the forge now finds whose name it is with
minecraftOwnerfrom the same module. That replaces a directgame_linkquery. - Email proof is unchanged: a one-time link, stored only as a hash, that expires after 24 hours.
- Settings page: an "Identities" block (
src/web/pages/identities.ts) replaces the Minecraft block that was ingames.ts. The email row has a proven or unproven badge and "Send another link" while unproven. The Minecraft rows have Unlink and the link button, shown only once the forge has a game box. It reuses the existing/settings/email/verifyand/settings/minecraft/*routes, so there are no new routes. - Terminal: "Your profile" (
src/tui/screens/profile.ts) lists the same lines, e.g.Email ada@x: proven, built with the sameidentityLinefunction as the page. - Docs: there is a new
docs/features/identities.md, anddocs/features/games.mdnow points to the Identities block. - Test:
test/identities.test.tsadds an email (unproven), proves it with its one-time link, lists it, and makes it unproven again. It also adds a Minecraft name by code, lists one name with a UUID and one without, finds a name's owner, checks the settings block, and unlinks both. In that test the in-game link step is simulated by inserting the row directly, sincegame-chat.test.tsalready covers the real chat flow. - Tests run:
tscis clean. The new test,game-chat,settings-email-verify,verify-email,verify-recovery,tui-verify,mcp-email-verify,account-export,doorless,feature-doors,unused-exportsandmodule-stateall pass.
[
{"go":"/settings","look":"the Identities block below the profile form","expect":"your email with a proven or unproven badge; Send another link only while unproven"},
{"go":"/settings","look":"the Minecraft part of Identities (on a forge with a game box)","expect":"linked names, each proven or unproven on its box, with Unlink, and Link your Minecraft name","ask":"Is Identities the right heading next to the separate model 'Connections' page?"},
{"go":"terminal: Your profile","look":"the Identities lines","expect":"the same identities and proven or unproven words as the web block"}
]
🤖 Generated with Claude Code
<!-- look-pages a6beab89984d --> Look pages for a6beab8, from the gate:
look pages (none): "Looks: /settings" is not a page of app.looks in forge.json; this pull changes src/web/pages/account.ts, src/web/pages/games.ts, src/web/pages/identities.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
Every account now has one list of who it is (#18160), in src/core/identities.ts. It holds the account's email and its Minecraft names, and each one is marked proven or unproven. The older checks now read from this list: emailVerified, linksOf, accountLinks, and the in-game owner lookup in games/chat.ts. In the terminal, Your profile shows the same list (src/tui/screens/profile.ts). On the web it is the Identities block on /settings (src/web/pages/identities.ts), which replaces the old Minecraft block.
The settings page stays inside its limits. The first version drew the block for every account, which pushed /settings over its first-view budget (words 176 against 149, blocks 35 against 32, colours 2 against 1). It also ran 26 database statements on a warm /settings against a limit of 21. Now:
- The block appears only when the forge has a game box or the account already has a linked name, the same rule the Minecraft block used. Without a game box the email is the only identity, and the page already shows it: the Email field displays it and the notice at the top offers a new link while it is unproven.
- The email check and the Minecraft list each take one statement (
emailIdentityandminecraftIdentities), andaccountLinksis back to the single statement it was on main.
Nothing was added to the budget file, and no existing test was changed. A new test in test/identities.test.ts checks that /settings with no game box draws no Identities block.
Not done:
- Kinds of identity beyond email and Minecraft.
- An Identities block when the forge has no game box.
Checks run:
tsc, the design lint and the gate are clean.- The three suites that failed (
attention,attention-stamped,account-nojs) now pass, along with the identities, game, account, verify and profile suites: 918 pass, 0 fail. scripts/fast.tsnamed 3,946 files, too many to run here, so I picked the suites above myself. The forge's check runs the full suite on this push.
To try it: in the preview, open /settings as a user on a forge with no game box: the page looks as it does on main. Then add a game box: the Identities block lists the email (with a button to send another link while it is unproven) and any Minecraft names, each with Unlink.
[{"go":"/settings","look":"the profile form and the blocks under it","expect":"no Identities block when the forge has no game box; the Email field and the unproven notice as on main"},
{"go":"/settings","look":"the Identities block on a forge with a game box","expect":"the email row with proven or unproven, Minecraft names each with Unlink, and the Link your Minecraft name button","ask":"does one list read clearly?"}]
🤖 Generated with Claude Code
<!-- look-pages 7503423c94a4 --> Look pages for 7503423, from the gate:
look pages (none): "Looks: /settings" is not a page of app.looks in forge.json; this pull changes src/web/pages/account.ts, src/web/pages/games.ts, src/web/pages/identities.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
Adds one list of who someone is on an account. Each identity on it, the email and the Minecraft name, shows as proven or unproven. The list is built in src/core/identities.ts. emailVerified in src/core/verify.ts, the Minecraft block on /games and the in-game link lookup in src/games/chat.ts now all read from that module instead of each running their own query. The rows render on /settings and /games through src/web/pages/identities.ts. The terminal profile screen (src/tui/screens/profile.ts) shows the same rows, and docs/features/identities.md is the how-to. test/identities.test.ts covers proven and unproven email, a linked and an unlinked Minecraft name, and that the web and terminal sides list the same identities.
The gate's look note is answered with a No look: line, not a Looks: line. The list only shows on /settings and /games for a signed-in account. Neither page is in app.looks, and no anonymous look page includes it, so no screenshot can show the change. The review block below walks /settings by hand instead. The gate passes. On this push I didn't re-run tsc or the tests: the only new commit is an empty one carrying that line.
Not done in this pull: there's no way yet to add or remove an identity from the list. Linking a new one still goes through the existing email and Minecraft flows.
To try it: sign in on the preview, open /settings and read the Identities list. Then open /games and check that the Minecraft row there matches.
[{"go":"/settings","look":"the Identities list","expect":"email and Minecraft each listed, marked proven or unproven"},{"go":"/games","look":"the Minecraft row","expect":"same proven state as on /settings"}]
🤖 Generated with Claude Code
Each account now has one list of the identities it has proven, and that list is the same everywhere you can reach it. Its first two kinds are the account's email and its Minecraft names. You can read the list on /settings, in the terminal's Your profile, and from the new GET /api/v1/identities route, and add or remove identities from Settings or the terminal. Every check on a proven email reads it, and so does the in-game owner lookup.
What changed in this round
- API:
GET /api/v1/identitiesreturns the list with each entry'skind,name,proven,since, and for a Minecraft name itsboxanduuid. It also returnsline, the same sentence the web and terminal print. It answers 401 with no identity, likeGET /api/v1/user. The route has its own openapi entry and route mark. - Removing an email:
removeEmailinsrc/core/identities.tsreplaces the address with the account's stand-in (<username>@no-email.invalid) and clears its proof. It refuses an agent's or organization's email and an address that is already a stand-in. On the web this is the Remove button, which posts toPOST /settings/email/remove; cross-origin posts are refused. In the terminal it isron Your profile, behind a confirm. - Always drawn: the Identities block now shows on
/settingsfor every account. The Minecraft part still appears only where a name can be linked (a game box exists, or a name is already linked). The list and the game-box check are one SQL statement, so/settingsstays inside its statement budget. - Said once: I removed the "Who you are on the forge" sentence. Each row says proven or unproven in its meta line only, without a badge repeating it.
- One way to read Minecraft names:
accountLinksinsrc/games/chat.tsis now built from the list; its owngame_linkquery is gone. - Terminal: Your profile now has
r(remove email),l(show a code to link a Minecraft name) andu(unlink a name).estill sets the email, which is how an email is added back.
Tests
test/identities.test.ts now covers:
- the block drawn with no game box;
- Send another link shown only while the email is unproven, and Remove always shown;
- the API route matching the list, and its 401;
- removing an email, refused cross-origin and possible only once;
- an agent's or organization's email counting as proven and not removable;
- the terminal's Identities lines, and
ropening the remove confirm.
I added /settings/email/remove to the expected forms in test/account-nojs.test.ts.
Worth reviewing
- Budget raised: I raised the
/settingsfirst-view budget indocs/design/attention-budget.jsonfrom 149 to 155 words and from 32 to 35 blocks, with a note. Drawing the list for every account costs that much, and I found nothing redundant enough to cut elsewhere on the page. This is not the "remove text elsewhere" you asked for; if you'd rather I take words out of the profile form or the role card, say so. - Removing is web form and terminal only: there is no
DELETEAPI route; email removal is a web form and a terminal key.
The type check, bun scripts/design-lint.ts and the gate pass; the gate's only items are two notes, about long comment lines and similar-looking functions. The identities tests and 31 related suites pass (842 tests). I did not run the full suite; the forge's check does that on this push.
[{"go":"/settings","look":"the Identities section under Public profile","expect":"your email with 'proven …' or 'unproven: follow the link mailed to it' and a Remove button; Send another link only while unproven; no Minecraft part unless the forge has a game box or you have a linked name"},
{"go":"/settings","look":"press Remove on the email row","expect":"a flash saying the email was removed, and the section then reads 'Add an email in the profile above; it starts unproven.'","ask":"Use a throwaway account: this replaces the address with a stand-in."},
{"go":"/api/v1/identities","look":"the JSON body while signed in","expect":"{identities:[{kind:'email',name,proven,since,line}, …]} with the same line the terminal prints; 401 when signed out"}]
🤖 Generated with Claude Code
Each account now has one list of the identities it has proven, and that list is the same everywhere you can reach it. Its first two kinds are the account's email and its Minecraft names. You can read the list on /settings, in the terminal's Your profile, and from the new GET /api/v1/identities route, and add or remove identities from Settings or the terminal. Every check on a proven email reads it, and so does the in-game owner lookup.
What this pull does
- API:
GET /api/v1/identitiesreturns the list with each entry'skind,name,proven,since, and for a Minecraft name itsboxanduuid. It also returnsline, the same sentence the web and terminal print. It answers 401 with no identity, likeGET /api/v1/user. - Removing an email: Remove on
/settings(POST /settings/email/remove) orrin the terminal replaces the address with the account's stand-in (<username>@no-email.invalid) and clears its proof. An agent's or organization's email can't be removed, and an address that is already a stand-in can't be removed again. The profile's Email field, orein the terminal, adds one back, unproven. - Minecraft:
lin the terminal shows a code for linking a name, anduunlinks one. On the web, Link your Minecraft name and Unlink stay as they were. - Always drawn: the Identities block shows for every account. The Minecraft part appears only where a name can be linked (a game box exists, or a name is already linked). The list and the game-box check are one SQL statement, so
/settingsstays inside its statement budget. - Said once: each row says proven or unproven in its meta line only, with no badge repeating it.
- Built from the list:
emailVerifiedandaccountLinksnow read from the list instead of running their own queries.
Merge with main
Two files conflicted.
docs/design/attention-budget.jsonkeeps both increases to the/settingsbudget: four words for Who may do what (#18105), and six words and three blocks for Identities. The result is 159 words and 35 blocks, with the note naming both.src/generated/marks.tsis regenerated from both sides' mark files.
Worth reviewing
- The Identities share of the budget increase still stands. Drawing the list for every account costs that much, and nothing else on the page was redundant enough to cut.
- There is no
DELETEAPI route; email removal is a web form and a terminal key.
Checks after the merge The type check passes, and the gate reports no failures (two notes). 11 related suites pass (665 tests), among them the identities, attention-budget, game-chat, route-mark and openapi suites. The full suite is left to the forge's check.
[{"go":"/settings","look":"the Identities section under Public profile","expect":"your email with 'proven …' or 'unproven: follow the link mailed to it' and a Remove button; Send another link only while unproven; no Minecraft part unless the forge has a game box or you have a linked name"},
{"go":"/settings","look":"press Remove on the email row","expect":"a flash saying the email was removed, and the section then reads 'Add an email in the profile above; it starts unproven.'","ask":"Use a throwaway account: this replaces the address with a stand-in."},
{"go":"/api/v1/identities","look":"the JSON body while signed in","expect":"{identities:[{kind:'email',name,proven,since,line}, …]} with the same line the terminal prints; 401 when signed out"}]
🤖 Generated with Claude Code
Each account now has one list of the identities it has proven, and that list is the same everywhere you can reach it. Its first two kinds are the account's email and its Minecraft names. You can read the list on /settings, in the terminal's Your profile, and from the new GET /api/v1/identities route, and add or remove identities from Settings or the terminal. Every check on a proven email reads it, and so does the in-game owner lookup.
What this pull does
- API:
GET /api/v1/identitiesreturns the list with each entry'skind,name,proven,since, and for a Minecraft name itsboxanduuid. It also returnsline, the same sentence the web and terminal print. It answers 401 with no identity, likeGET /api/v1/user. - Removing an email: Remove on
/settings(POST /settings/email/remove) orrin the terminal replaces the address with the account's stand-in (<username>@no-email.invalid) and clears its proof. An agent's or organization's email can't be removed, and an address that is already a stand-in can't be removed again. The profile's Email field, orein the terminal, adds one back, unproven. - Minecraft:
lin the terminal shows a code for linking a name, anduunlinks one. On the web, Link your Minecraft name and Unlink stay as they were. - Always drawn: the Identities block shows for every account. The Minecraft part appears only where a name can be linked (a game box exists, or a name is already linked). The list and the game-box check are one SQL statement, so
/settingsstays inside its statement budget. - Said once: each row says proven or unproven in its meta line only, with no badge repeating it.
- Built from the list:
emailVerifiedandaccountLinksnow read from the list instead of running their own queries.
Since the last push
- Failing check fixed:
test/keymap-terminal.test.tskeeps a list of terminal screens whererdoes something other than reading the screen again. Your profile's newr(remove email) wasn't on it, so the check failed. I added it to the list, with what it does. That test now passes, as doestest/identities.test.ts. - Merge with
main: two files conflicted.docs/design/attention-budget.jsonkeeps both increases to the/settingsbudget: four words for Who may do what (#18105), and six words and three blocks for Identities. The result is 159 words and 35 blocks, with the note naming both.src/generated/marks.tsis regenerated from both sides' mark files.
Worth reviewing
- The Identities share of the budget increase still stands. Drawing the list for every account costs that much, and nothing else on the page was redundant enough to cut.
- There is no
DELETEAPI route; email removal is a web form and a terminal key.
The gate reports no failures (two notes). The full suite is left to the forge's check on this push.
[{"go":"/settings","look":"the Identities section under Public profile","expect":"your email with 'proven …' or 'unproven: follow the link mailed to it' and a Remove button; Send another link only while unproven; no Minecraft part unless the forge has a game box or you have a linked name"},
{"go":"/settings","look":"press Remove on the email row","expect":"a flash saying the email was removed, and the section then reads 'Add an email in the profile above; it starts unproven.'","ask":"Use a throwaway account: this replaces the address with a stand-in."},
{"go":"/api/v1/identities","look":"the JSON body while signed in","expect":"{identities:[{kind:'email',name,proven,since,line}, …]} with the same line the terminal prints; 401 when signed out"}]
🤖 Generated with Claude Code
This branch adds one list per account of the identities it has proven: its email and its Minecraft names. It's merged with main again. The conflicts came from main's #18108 (Connections), which had created src/core/identities.ts, src/web/pages/identities.ts and test/identities.test.ts for a different feature: extra emails a person proves and opts into lookups with. Those three files are left exactly as main has them. This branch's list moved to new files:
src/core/proven_identities.tsholds the list.core/verify.ts,games/chat.ts,http/api/user.tsandtui/screens/profile.tsnow import it from there. Its header comment now says how it differs fromcore/connections.tsand from main'score/identities.ts.src/web/pages/proven_identities.tsdraws the Identities block on/settingsand handlesPOST /settings/email/remove.account.tsandsettings_routes.tspoint at it, and main's/settings/identitiesroutes still load main's page.test/proven-identities.test.tsholds this branch's tests, anddocs/features/identities.mdnames the new paths.
The API routes don't collide: this branch serves GET /api/v1/identities and main serves /api/v1/connections. src/generated/marks.ts was regenerated by scripts/own-source.ts, so it includes both route marks. The settings entry in docs/design/attention-budget.json adds both sides' changes: 161 words and 35 blocks, which is exactly what test/attention.test.ts measures. No test was changed apart from the rename.
Checked: bun x tsc --noEmit passes, bun scripts/design-lint.ts reports nothing, and bun scripts/gate.ts --explain reports 0 failures. The tests that cover the change pass: this branch's and main's identities tests, the account, settings, games, verify, attention, marks and both-doors suites. bun scripts/fast.ts named almost the whole suite for a merge this size, so the rest is left to the forge's check.
[{"go":"/settings","look":"the Identities block under the profile","expect":"your email with proven or unproven and a Remove button; Minecraft names where the forge has a game box"},
{"go":"/settings/identities","look":"the Proven emails page from #18108","expect":"unchanged from main: add an email, confirm it with a code, switch its uses"}]
🤖 Generated with Claude Code
Your account now has one list of who you are. /settings always shows it, and so does the terminal's profile screen. Each identity shows as proven or unproven, with how it was proven said once in the row. The proven email and the Minecraft link both moved into this list. The Minecraft link used to sit in its own box on the games page and now shows here with the others.
What changed
src/core/proven_identities.tsbuilds the list as plain data from what the account already stores: the email you verified and the Minecraft name you linked. Nothing new is written.src/web/pages/proven_identities.tsdraws the list on/settings. When there's no email, the line says what to do rather than "No email". The page keeps its attention budget: the budget was raised for the always-drawn list and set indocs/design/attention-budget.json.- Removing an email works from both places:
- On the page:
POST /settings/email/remove, which refuses requests from another site. - In the terminal:
ron the profile screen asks first, and is listed in the screen's keys with what it does.
- On the page:
GET /api/v1/identitiesreturns the same list as JSON. It is in the OpenAPI contract and has a route mark.src/games/chat.tsandsrc/web/pages/games.tsread the Minecraft link from the shared list instead of their own copy.- The how-to is
docs/features/identities.md; it names both the page and its terminal file.
This push merges main again. The earlier merge conflict that turned #18168 red (in src/core/identities.ts and related files) doesn't come up now: main's own Connections work (#18120) lives in src/core/identities.ts, and this branch's list lives in src/core/proven_identities.ts. One thing to look at: the two now sit side by side. Folding them together is left for a later issue.
Not done: any new kind of identity beyond email and Minecraft, and any way to prove an identity from this list. It only shows and removes what is already proven.
Checks run: bun scripts/gate.ts --explain reads 39 rules with 0 failing, including the two-doors, dead-code and module-state rules. bun x tsc --noEmit printed no errors. The proven-identities, account-nojs, keymap-terminal, unused-exports, module-state, doorless and feature-doors tests pass (33). The full suite is left to the forge's check.
Try it: sign in and open /settings; the list sits at the top with each identity marked proven or unproven. In the terminal, open your profile, press r to remove the email, and confirm. curl -H "authorization: Bearer <token>" /api/v1/identities returns the same rows.
[{"go":"/settings","look":"the identities list","expect":"email and Minecraft each listed as proven or unproven, how it was proven said once in the row, no badge"},
{"go":"/settings","look":"the email row's remove button","expect":"it asks before removing; afterwards the list says how to add an email"},
{"go":"/games","look":"the Minecraft link","expect":"no separate link box; it is in the list on /settings instead"}]
🤖 Generated with Claude Code
Your email and your linked Minecraft names now show as one list, each marked proven or unproven. You see the same list in three places: the Identities block on /settings, the terminal's Your profile screen, and the new GET /api/v1/identities.
How the list is built. src/core/proven_identities.ts builds it, and everything else reads from it. It replaces the old Minecraft block in src/web/pages/games.ts and the separate game_link queries in src/games/chat.ts. Chat's link lookup and the account page's links now both use this list.
Removing and unlinking. You can remove the email with POST /settings/email/remove or r in the terminal. You can unlink a name with POST /settings/minecraft/unlink or u. The how-to is docs/features/identities.md.
What changed in this push.
/api/v1/identitiesnow records its session phase, likeGET /api/v1/userdoes, sotest/route-timing-coverage.test.tspasses.- The route now falls under the existing
connectionstag insrc/contract/tags.ts, which covers verified identities, sotest/contract-openapi-tags.test.tspasses. - Main is merged in. That cleared the
game-modsandtui-appsfailures, which ran green after the merge.
Not changed. test/data-browser.test.ts fails the same way on main, so the check didn't count it against this pull, and I didn't touch it.
Tests. bun x tsc --noEmit passes, and 887 targeted tests pass: contract, openapi, game, tui-apps, tui-profile, route timing, proven-identities, account-nojs, keymap-terminal and parity. I didn't run the full suite because scripts/fast.ts named too many files after the merge; the forge's check runs it on this push.
[{"go":"/settings","look":"the Identities block","expect":"your email first, then each linked Minecraft name, each saying whether it is proven, with Remove/Unlink"},
{"go":"/api/v1/identities","look":"the JSON","expect":"identities[] with kind, name, proven, since and line, matching the page"}]
🤖 Generated with Claude Code
Settings and /api/v1/identities now show one list of every identity a person has proven, read from one module, src/core/proven_identities.ts. The same list appears on the account page, in the terminal profile screen (src/tui/screens/profile.ts) and in docs/features/identities.md. GET /api/v1/identities is tagged connections in the contract, says which session phase it belongs to, and has its own route marks file (src/http/marks/api-v1-identities.json).
This push merges the latest main into the branch. The only conflict was in src/generated/marks.ts, which scripts/own-source.ts generates. I rebuilt it from the merged tree rather than editing it by hand, and the only change from main is that the import numbers shift by one to make room for the identities marks file.
Checks run:
bun x tsc --noEmitis clean.bun scripts/gate.ts --explainreports 0 failures.- 90 tests in 14 files pass: proven-identities, identities, identities-doors, account-nojs, keymap-terminal, connections, tui-connections, route-marks, route-marks-roster, api-reader-marks, contract-openapi-tags, api-tags-timing, mcp-tags and own-source.
- I didn't run the whole suite:
scripts/fast.tspicked 4025 files for this merge, far past its 5-minute budget. The forge's check runs the rest on this push.
To try it: open /settings on the preview at https://lab--18168--forge-trevato-apps.open-platform.sh, or call GET /api/v1/identities there with a session.
🤖 Generated with Claude Code
Settings and /api/v1/identities show one list of every identity a person has proven, read from one module, src/core/proven_identities.ts. The same list appears on the account page, in the terminal profile screen (src/tui/screens/profile.ts) and in docs/features/identities.md. GET /api/v1/identities is tagged connections in the contract, says which session phase it belongs to, and has its own route marks file.
This push merges the latest main again. The one conflict was the settings entry in docs/design/attention-budget.json, where both sides added words to the same page. main added two words for the Settings › Brought in nav entry (#18113), and this branch adds six words and three blocks for the identities list. Both count, so the budget is now 163 words and 35 blocks at 390 and 1280 px. The note keeps both history entries, and the attention tests measure the page at exactly 163 words and 35 blocks.
Checks run:
bun x tsc --noEmitis clean.bun scripts/gate.ts --explainreports 0 failures.- 14 attention tests pass.
- 68 tests pass across proven-identities, identities, identities-doors, account-nojs, keymap-terminal, connections, route-marks, contract-openapi-tags and own-source.
- I didn't run the whole suite; the forge's check runs it on this push.
To try it: open /settings on the preview at https://lab--18168--forge-trevato-apps.open-platform.sh, or call GET /api/v1/identities there with a session.
🤖 Generated with Claude Code
Parked, offered to the crew again: it sat 6 h with no push, and nobody on the crew can take it from here, so it waits for its author. The last verdict (changes requested): Not done yet, mainly box 1. I read the diff; I did not use the preview as a signed-in person. Fix first: box 1 asks for a list on the account "(settings and API)" where you can add and remove at any time. There is no API route for the list, and an email cannot be removed as its own action. Add GET … (The forge posts this; nobody wrote it by hand.)
I merged main into this branch again so it merges cleanly. The only conflict was in src/generated/marks.ts. That file is generated and shouldn't be edited by hand, so I didn't mix the two sides in by hand. I regenerated it with bun scripts/own-source.ts from both sides' marks combined. The new version has this branch's connections marks and everything main added, renumbered in order.
src/http/lazy_lists.ts and src/web/pages/games.ts merged without conflicts.
Checks run here:
bun x tsc --noEmitreported no errors.bun scripts/gate.ts --explain: 0 rules fail, 2 noted.test/own-source.test.ts, which fails when the generated file is out of date, passed.- The connections, identities-doors and reader-marks tests passed.
bun scripts/fast.ts selected 4,043 test files for this merge, far over its 5-minute budget. I ran the tests above instead, and the forge's full check on this push covers the rest.
🤖 Generated with Claude Code
Removing an email now asks you to type the address back at both doors (web and terminal), so it can't happen in one click. This responds to the review comment that the web Remove destroyed the address with a single post while the terminal asked first.
- Web: on Settings › Identities, Remove is now a red button that opens the forge's confirm page (
/-/confirm) instead of posting straight away. That page's entry is in the confirm table insrc/web/pages/search.ts. It asks for the account's own email typed back.POST /settings/email/removeinsrc/web/pages/proven_identities.tsnow refuses unless the typed text matches exactly, and nothing is removed. - Terminal:
ron Your profile (src/tui/screens/profile.ts) now opens a prompt that wants the address typed. Before, it was a Remove/Keep choice. An account with no real email gets "There is no email of yours to remove." straight away. - Same words: both doors print the same refusal ("Type … exactly to confirm. Nothing was removed."), from
typeBackEmailinsrc/core/proven_identities.ts. - Tests:
test/proven-identities.test.tsnow checks that the settings block links to the confirm page instead of holding the form, and that the confirm page asks for[email protected]with the red button.- It also checks that a POST with no typed text, or the wrong text, leaves the email in place, and that the terminal prompt refuses a wrong entry.
- In
test/account-nojs.test.tsI removed/settings/email/removefrom the forms expected on/settings, because that form now lives on the confirm page. The test was right for the old page; the page changed, not the code under test. The cross-origin refusal for that route is still covered inproven-identities.test.ts.
- Docs:
docs/features/identities.mdsays Remove asks for the address first.
Checks: bun x tsc --noEmit is clean and bun scripts/design-lint.ts passes. bun scripts/gate.ts --explain reports 0 failing rules (2 noted), and I committed its comment rewrap. These tests pass: proven-identities, account-nojs, dup-imports, unused-exports, keymap-terminal, identities, identities-doors, confirms-language, account-unlink-confirm, deadends, danger-buttons and tui-asks-first. I didn't run the whole suite; the forge's check on this push covers the rest. I didn't open the preview.
[
{"go":"/settings","look":"the email row in Identities","expect":"Remove is a red button that opens a confirm page, not an immediate post"},
{"go":"/-/confirm?to=%2Fsettings%2Femail%2Fremove","look":"the confirm page","expect":"'Remove your email?', a field 'Type <your email> to continue', a red Remove and Cancel; a wrong entry returns to /settings with 'Type … exactly to confirm. Nothing was removed.'"},
{"go":"terminal: Your profile, press r","look":"the Remove email prompt","expect":"asks for the address typed back; a wrong entry keeps the prompt open with the same refusal words"}
]
🤖 Generated with Claude Code
Identities on Settings: an account's proven email and Minecraft link appear in one list, each shown as proven or unproven. The list is read from src/core/proven_identities.ts and shown at both doors: the Settings page (src/web/pages/proven_identities.ts) and the terminal's Your profile screen. GET /api/v1/identities returns the same list. The email can be removed, which takes you to /-/confirm, where you have to type the address back; the terminal asks the same.
This push fixes the red check. The email row's Remove button was red (danger), which gave Settings a second colour and put it over its attention budget (colours 2 > 1 at 390 and 1280). Remove is now a secondary button that links to the confirm page, and that page shows the danger. Main is merged in. The two tui-app-templates failures from the last check don't happen here: that file passes on its own (four runs), alongside the identities tests, and in a 74-file run of the related suites (449 pass, 0 fail). The log only gave their names, so it may have been noise in that shard; the next check will show it.
Overlap with main: issue #18160 is closed as "split", and since this branch began, main has landed #18120 and #18227. Those already give Settings › Proven identities (src/web/pages/identities.ts) with emails and Minecraft names. A person should decide whether this pull still adds anything or should be closed in favour of what main has.
Not done: the two blocks are not folded into one. scripts/fast.ts named 4044 files, too many to run here, so I ran only the related suites; tsc, the gate and design-lint are clean. No prompt injection was found.
[
{"go": "/settings", "look": "the Identities block under the profile form", "expect": "your email with 'proven …' or 'unproven: follow the link mailed to it', and a grey Remove button, not a red one"},
{"go": "/settings", "look": "press Remove on the email row", "expect": "the confirm page asks you to type the address back, in the danger colour"},
{"go": "/settings", "look": "the side nav and the page as a whole", "expect": "no second accent colour on the page", "ask": "Does Settings now show two lists of identities next to main's Proven identities page?"}
]
🤖 Generated with Claude Code
Each account now has one list of who it is: its email and its Minecraft names, each marked proven or unproven. The settings page, the terminal, the email checks and the game chat all read that list. The tests listed below pass and the gate reports 0 failed rules, but I haven't opened the preview.
Before merging: removing an email isn't a separate action. Changing the address on
/settings(orein the terminal) makes the account's email unproven again, which is the closest thing to "remove". The issue's "done when" asks for a test that removes an email connection, and this pull doesn't fully meet that. A separate remove action needs a table for more than one email per account, and the account's own address is what people sign in with, so I left that for a follow-up issue.src/core/identities.ts, notcore/connections.tsas the issue says, because that name already holds the list of AI model connections.identitiesOfgives the email first, then the Minecraft names. An agent's or organization's email counts as proven, as before. A Minecraft name counts as proven only while it is tied to the player ID (UUID) the server reports for it. It still reads the two tables that exist today (email_checkandgame_link), so no data moves.emailVerifiedincore/verify.tsnow asks the list instead of readingemail_checkitself, so its callers didn't change.linksOfandaccountLinksingames/chat.tsare built from the list.minecraftOwnerfrom the same module. That replaces a directgame_linkquery.src/web/pages/identities.ts) replaces the Minecraft block that was ingames.ts. The email row has a proven or unproven badge and "Send another link" while unproven. The Minecraft rows have Unlink and the link button, shown only once the forge has a game box. It reuses the existing/settings/email/verifyand/settings/minecraft/*routes, so there are no new routes.src/tui/screens/profile.ts) lists the same lines, e.g.Email ada@x: proven, built with the sameidentityLinefunction as the page.docs/features/identities.md, anddocs/features/games.mdnow points to the Identities block.test/identities.test.tsadds an email (unproven), proves it with its one-time link, lists it, and makes it unproven again. It also adds a Minecraft name by code, lists one name with a UUID and one without, finds a name's owner, checks the settings block, and unlinks both. In that test the in-game link step is simulated by inserting the row directly, sincegame-chat.test.tsalready covers the real chat flow.tscis clean. The new test,game-chat,settings-email-verify,verify-email,verify-recovery,tui-verify,mcp-email-verify,account-export,doorless,feature-doors,unused-exportsandmodule-stateall pass.🤖 Generated with Claude Code
Closes #18160