Public: anyone can read this; the crew can change it.
The Apple app can list and answer the actions Talk is holding for a person #18342
Merged 27m ago, live in production
The Apple app can now list the Talk actions held for the caller. The answer route already existed, so this change adds only the list. bun x tsc --noEmit, the gate and the new tests are clean.
-
Reviews
ApprovedAdversarial pass, no finding. I checked the new GET for these cases: no auth returns 401; the agent, run, contribute and app tokens are refused by the shared ownAuth, which is the same check the POST uses; the list is scoped by waitingFor(user.id), so bob sees an empty list and ada's ids don't reach him; a read-only token may read its own list, which is reasonable. The POST is unchanged apart from the helper extraction. It still checks origin, rw scope and a 1000-byte body cap on bytes read. Another person gets 404, a second answer gets 409, and the tests assert no second effect. The OpenAPI row, the route-list entry and the timing allowlist reason are present. The how-to went into docs/features/talk.md and not README. The terminal already has the confirms screen, so the no-door note holds.
-
Checks
shipped production is serving it deploy 7406da3
-
History
- Describe GET /api/v1/conversation-confirms in the OpenAPI contract and name it in the timing allowlist ccae799
- Try: GET /api/v1/conversation-confirms with your own rw token on the preview lists what Talk holds for you bd6b2ca
- Rewrap comments; test builds its people in a loop 3b5c7f0
- Talk API: list the held actions waiting on the caller, beside the existing answer route (#18338) b310256
- Game door: lock automatically when the player leaves the network, as a setting (#18329) f698c54
- Connections: email_check.verified_at is read nowhere once #18222 lands, and is dropped when no release in play reads it (#18327) 0ccd5dd
- Connections: one place says an email is proven, with the sign-in proof reading it (#18320) 181d662
- Talk opens on the conversation the person was in, at the place they left it (#18322) 3eab8eb
- Universal runner: a Mac registers itself, ships TestFlight from main with the forge's secrets, and has one switch (#18291) 08c168a
- Game door: the desk snapshot carries each player's allowed servers, from whoMayReach (#18325) 9b34956
- Connections 1: one list of proven identities on the account, with the proven email and the Minecraft link moved into it (#18168) 278b2e3
- Game door: one Talk engine for game chat, web and iOS (#18316) 8304196
- Game door: a read-only switch and a one-hour write window the owner opens with a second factor (#18304) 1235063
- 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
- 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
The Apple app can now list the Talk actions held for the caller. The answer route already existed, so this change adds only the list. bun x tsc --noEmit, the gate and the new tests are clean. I also ran conversation-confirm and talk-door, the older tests for the answer route, and they pass. The forge's full check is still to run on this push.
What changed
- New route:
GET /api/v1/conversation-confirmsreturns{confirms: [...]}, oldest first, for the caller only. Each entry hasid,tool,does,arguments,createdAtandexpiresAt. These come fromwaitingConfirms, the same function the web card, Settings → Confirms and the terminal use, so the words are identical. - Who may ask: the route accepts the person's own session or their own token and refuses the forge's agent, runs and app tokens. That check is now one
ownAuthhelper shared by the list and the answer route, insrc/http/api/conversation_confirms.ts. I added the GET tosrc/http/lazy_lists.tsand described it indocs/features/talk.md. - Answering:
POST /api/v1/conversation-confirms/:idwith{answer: "yes"|"no"}was already there. It callssayYesandsayNo, the same functions the web uses, so the web's checks and receipt are unchanged.- Another person gets 404.
- A second answer gets 409 and does nothing more.
- Tests:
test/apple-held.test.tscovers list (including that another person sees none and no login gets 401), approve, decline, another person, and repeat. A heldclosestands in as the effect: approving closes the issue, while declining or a repeat leaves it as it was.
What I left out
- No
src/actions/apple_held.ts:waitingConfirms,sayYesandsayNoalready are the shared functions, and a wrapper would be dead code under the dead-code test. - No terminal change: the terminal's confirms screen already lists and answers these, so the commit says
No door:for that. src/web/pages/games_door.ts: not touched.
Try
GET /api/v1/conversation-confirmswith your own rw token on the preview lists what Talk is holding for you.POSTto/api/v1/conversation-confirms/<id>with{"answer":"no"}declines one.
The two failures that came from my change are fixed, and the fix is pushed as ccae7998b. The third, the first-view budget test, I did not touch: it passed in my local run and I didn't look into why it failed in the check.
GET /api/v1/conversation-confirms was new and neither test knew about it:
- OpenAPI contract: I added
src/contract/openapi/routes/getApiV1ConversationConfirms.tsand regenerated the route index withbun scripts/openapi-routes.ts. This fixes the "every JSON route has an OpenAPI row" failure. - Timing allowlist: I added the route to
UNTIMEDintest/route-timing-coverage.test.tswith the reason (one indexed read, no page to phase). This fixes the "no GET route answers 200 without a session phase" failure.
Locally I ran test/openapi-covers-routes.test.ts, test/route-timing-coverage.test.ts, test/openapi-routes.test.ts and test/attention-stamped.test.ts: 609 pass, 0 fail. The first-view budget test is in test/attention-stamped.test.ts. tsc --noEmit and gate.ts --fix ran clean, and I did not run the full suite.
The commit message says "No door", because the route's web and terminal sides already exist. The forge's check will run again on this push.
The Apple app can now list the Talk actions held for the caller. The answer route already existed, so this change adds only the list.
bun x tsc --noEmit, the gate and the new tests are clean. I also ranconversation-confirmandtalk-door, the older tests for the answer route, and they pass. The forge's full check is still to run on this push.What changed
GET /api/v1/conversation-confirmsreturns{confirms: [...]}, oldest first, for the caller only. Each entry hasid,tool,does,arguments,createdAtandexpiresAt. These come fromwaitingConfirms, the same function the web card, Settings → Confirms and the terminal use, so the words are identical.ownAuthhelper shared by the list and the answer route, insrc/http/api/conversation_confirms.ts. I added the GET tosrc/http/lazy_lists.tsand described it indocs/features/talk.md.POST /api/v1/conversation-confirms/:idwith{answer: "yes"|"no"}was already there. It callssayYesandsayNo, the same functions the web uses, so the web's checks and receipt are unchanged.test/apple-held.test.tscovers list (including that another person sees none and no login gets 401), approve, decline, another person, and repeat. A heldclosestands in as the effect: approving closes the issue, while declining or a repeat leaves it as it was.What I left out
src/actions/apple_held.ts:waitingConfirms,sayYesandsayNoalready are the shared functions, and a wrapper would be dead code under the dead-code test.No door:for that.src/web/pages/games_door.ts: not touched.Try
GET /api/v1/conversation-confirmswith your own rw token on the preview lists what Talk is holding for you.POSTto/api/v1/conversation-confirms/<id>with{"answer":"no"}declines one.Closes #18338