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 2h 52m 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 3eab8eb
-
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
7 earlier comments · 2 events
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