oficina / equipo Public

Accept delegated device API copy review

Review the four device API sections against wire schemas and handlers.
Correct auth, limits, retry and event details; mirror the accepted text
in the Plan 3 inventory and allow only these four dated acceptances.
Record local checks and the rejected out-of-scope marker probe.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
codex agent, operated by paul@keymail.dev pushed by paul@keymail.dev 97f906419aa6200ff249c983c74edbce410eab17 parent bf1f74c
3 files changed, +85 −33
  • docs/api/equipo-v1.md +36 −28
  • docs/superpowers/plans/CONTROLLER-REPORT-plan-3.md +42 −4
  • internal/plan3test/plan3_release_test.go +7 −1

CI cancelled — superseded by a newer push — run details

CI log
=== prepare ===
ci-box: machine: aarch64, 32 CPUs, 62 GiB memory, kernel 7.0.0-1017-aws
ci-box: python 3.12.3; Docker version 29.1.3, build 29.1.3-0ubuntu3~24.04.2
ci-box: user namespaces allowed: 233151
ci-box: cgroup: cgroup2fs
ci-box: disk /home/ci/work/repos/oficina__equipo/wt/copy-device-api: Type  Size Avail | ext4   96G   86G
ci-box: disk /home/ci/.cache/equipo-ci-box: Type  Size Avail | ext4   96G   86G
ci-box: bwrap: fetched and verified in 0.3s
ci-box: claude: fetched and verified in 1.6s
ci-box: codex: fetched and verified in 3.4s
ci-box: codex-code-mode-host: fetched and verified in 1.3s
ci-box: libwrap: fetched and verified in 0.3s
ci-box: socat: fetched and verified in 0.3s
npm warn deprecated node-domexception@1.0.0: Use your platform's native DOMException instead
ci-box: image pulled in 9.9s
ci-box: pi: installed and verified in 7.4s
ci-box: opencode: installed and verified in 2.3s
ci-box: chromium 156.0.8078.79-1~deb13u1: 76 packages fetched, verified and unpacked in 8.6s
ci-box: clone deepened in 2.9s
ci-box: file times set from content: 2716 files, 174 directories
ci-box: ready in 16.6s
=== copy ===
EQUIPO_RELEASE_COPY_CHECK=1 CGO_ENABLED=0 go test ./internal/equipotest -run '^TestReleaseCopyReviewed$' -count=1
ok  	amadan.net/oficina/equipo/internal/equipotest	0.242s
=== compile ===
go build ./...

amadan: job cancelled — a newer push superseded it
diff --git a/docs/api/equipo-v1.md b/docs/api/equipo-v1.md
index f780ff17..ddf8f291 100644
--- a/docs/api/equipo-v1.md
+++ b/docs/api/equipo-v1.md
@@ -1,8 +1,8 @@
# COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
-Use Equipo's person API to build a client for one team's instance. The contract is in [equipo-v1.openapi.json](equipo-v1.openapi.json). Responses use JSON, timestamps use UTC, and IDs are opaque unless a field is explicitly an integer.
+Use Equipo’s person API to build a client for one team’s instance. The contract is in [equipo-v1.openapi.json](equipo-v1.openapi.json). JSON responses use UTC timestamps. IDs are opaque unless a field is explicitly an integer.
-A paired device and a signed-in browser are not answered the same way. A device bearer reads the conversation, tasks, projects and the event stream from the conversation engine; see "Talk to your Coordinator from a device" below. The rest of this page, up to that section, describes the routes a browser session uses, and the ones a device shares with it: sign-in, devices, `/me`, notifications and errors.
+Device bearers and browser sessions use different handlers on some routes. A device bearer reads the conversation, tasks, projects and events from the conversation engine. See “Talk to your Coordinator from a device” below. The preceding sections describe the earlier person API, including sign-in, devices, `/me`, notifications and errors shared by both clients. Person API routes use the `/api/v1` prefix.
For a signed-in browser on the instance, fetch `/api/v1/me` to check your identity. Fetch `/api/v1/conversation` to read your conversation. Send a message with `POST /api/v1/conversation/messages`, an `Idempotency-Key` header, and this body:
@@ -40,13 +40,15 @@ A verified invitation recipient can read their invitation and post its secret to
## Retry writes and handle revisions
-Every mutation on these routes needs an `Idempotency-Key` of 1–256 bytes. The conversation engine's routes for devices do not; they say below what they need instead. Resource updates also need `If-Match: "<revision>"`. Use the revision returned by GET, and retain the original key, body and revision until the result is known. Retrying identical input returns the saved result after current access is checked. Reusing a key for changed input conflicts.
+The earlier person API requires an `Idempotency-Key` on every mutation. Use a nonblank UTF-8 value of 1–256 bytes. Resource updates also need `If-Match: "<revision>"`. These header requirements do not apply to the conversation engine’s device routes. Use the body fields described in “Talk to your Coordinator from a device” and the contract for each operation.
-A stale revision returns `409 revision_conflict`, with `current_revision` when the resource is visible. Fetch the current value before making a new decision. Missing preconditions return 428. Invalid fields return 422. Missing identity returns 401; denied access returns 403; unavailable or private resources return 404. Query or runner unavailability returns 503.
+Use the revision returned by GET. Keep the original key, body and revision until the result is known. Retrying identical input returns the saved result after current access is checked. Reusing a key for changed input conflicts.
-Project settings use one ETag for the combined settings visible to you. PATCH with an `action` of `approval`, `default_playbook`, or `rules`. Personal settings permit the `approval` action, including an empty approval mode to inherit the team setting. Connection choices have their own `connections_revision` in the settings response; use it for `PUT /projects/{id}/connections`. Owner roster entries and device list entries likewise carry their own resource revisions. Budgets use revision zero until configured.
+A stale revision returns `409 revision_conflict`, with `current_revision` when the resource is visible. Fetch the current value before making a new decision. Missing preconditions return 428. Invalid fields return 422. Missing identity returns 401. Denied access returns 403. Missing or private resources return 404. Query or runner unavailability returns 503.
-Mutations accept at most 64 KiB of JSON, and message text at most 16 KiB. Unknown fields, duplicate keys, null mutation fields and trailing JSON are rejected. Use the explicit input schema for each operation. When editing an installed playbook, retain its template reference.
+Project settings use one ETag for the combined settings visible to you. PATCH with an `action` of `approval`, `default_playbook`, or `rules`. Personal settings permit the `approval` action, including an empty approval mode to inherit the team setting. Connection choices have their own `connections_revision` in the settings response. Use it for `PUT /api/v1/projects/{id}/connections`. Owner roster entries and device list entries also carry their own resource revisions. Budgets use revision zero until configured.
+
+The earlier person API accepts at most 64 KiB of JSON per mutation and 16 KiB of message text. It rejects unknown fields, duplicate keys, null mutation fields and trailing JSON. Use the input schema for each operation. When editing an installed playbook, retain its template reference.
## Read lists and private setup state
@@ -58,29 +60,33 @@ Account setup responses contain only `id`, `state`, `mode`, and `command`. Run t
## Reconnect and answer questions
-After reconnecting, fetch the conversation, needs-you list and any open task again. Reconcile by resource ID and revision. Browser sessions can use the existing live invalidation stream to prompt these reads. A device reads `GET /api/v1/snapshot` and follows `GET /api/v1/events` instead, as described below. This API does not provide mobile push delivery.
+After reconnecting, fetch the conversation, needs-you list and any open task again. Reconcile by resource ID and revision. Browser sessions can use the existing live invalidation stream to prompt these reads. With a device bearer, read `GET /api/v1/snapshot` and follow `GET /api/v1/events` instead, as described below. This API does not provide mobile push delivery.
-The rest of this section is about the earlier questions, whose IDs do not start with `q_`. Fetch `/questions/{id}` before answering. A clarification accepts `kind: "clarification"` with `option_id` or `text`. A native permission question accepts `kind: "native"`, `behavior`, and only the `updated_input` shape permitted by that question. Post to `/questions/{id}/answer` using its original request revision and current person authentication. A notification action is never authentication. A cancelled, expired or superseded question cannot accept a new answer.
+The following answer operation applies to earlier person API questions. Their IDs do not start with `q_`. Fetch `/api/v1/questions/{id}` before answering. A clarification accepts `kind: "clarification"` with `option_id` or `text`. A native permission question accepts `kind: "native"`, `behavior`, and only the `updated_input` shape permitted by that question. Post to `/api/v1/questions/{id}/answer` with the question’s original request revision in `If-Match`, an `Idempotency-Key`, and current person authentication. A notification action is never authentication. A cancelled, expired or superseded question cannot accept a new answer.
-Subscribe with `POST /api/v1/notification-subscriptions`, a fresh request key, and `{"device_id":"<your device ID>"}`. Use the returned `cursor` for `GET /api/v1/notifications?cursor=<cursor>`. Each subscription has its own delivery and acknowledgement state. A bearer can use only its bound device. A browser session can manage its own devices.
+Subscribe with `POST /api/v1/notification-subscriptions`, a fresh `Idempotency-Key`, and `{"device_id":"<your device ID>"}`. Use the returned `cursor` for `GET /api/v1/notifications?cursor=<cursor>`. Each subscription has its own delivery and acknowledgement state. A bearer can use only its bound device. A browser session can manage its own devices.
-Keep polling with `next_cursor`, including after an empty page. Delivery may repeat; deduplicate by notification `id`. A notification contains only its kind, resource ID, resource revision, time, state and instance-relative link. For `question`, fetch `/api/v1/questions/{resource_id}`; for `task_ready`, fetch `/api/v1/tasks/{resource_id}`; for `card`, fetch `/api/v1/cards/{resource_id}`. An `interrupted` event links to the affected task or conversation; fetch that current view before retrying work. `superseded` means the event no longer represents current work. Acknowledgement never answers a question or approves work.
+Keep polling with `next_cursor`, including after an empty page. Delivery may repeat. Deduplicate by notification `id`. A notification contains only its kind, resource ID, resource revision, time, state and instance-relative link. For `question`, fetch `/api/v1/questions/{resource_id}`; for `task_ready`, fetch `/api/v1/tasks/{resource_id}`; for `card`, fetch `/api/v1/cards/{resource_id}`. An `interrupted` event links to the affected task or conversation. Fetch that current view before retrying work. `superseded` means the event no longer represents current work. Acknowledgement never answers a question or approves work.
-After receiving an event, post `{"notification_id":"<notification ID>"}` to `/api/v1/notification-subscriptions/{id}/ack` with a request key and the subscription revision in `If-Match`. Save the returned revision. Retry a lost acknowledgement with its original key, body and revision. Only delivered events can be acknowledged. An out-of-order acknowledgement is saved, but the subscription cursor advances only after all earlier recipient events are acknowledged. Another device keeps its unread state.
+After receiving an event, post `{"notification_id":"<notification ID>"}` to `/api/v1/notification-subscriptions/{id}/ack` with an `Idempotency-Key` and the subscription revision in `If-Match`. Save the returned revision. Retry a lost acknowledgement with its original key, body and revision. Only delivered events can be acknowledged. An out-of-order acknowledgement is saved, but the subscription cursor advances only after all earlier recipient events are acknowledged. Another device keeps its unread state.
-Subscriptions expire after thirty days or when their device credential expires, whichever comes first. Polling and acknowledgements do not renew them. Device revocation or roster removal disables them immediately. On `410 subscription_expired`, subscribe explicitly with a current credential and a new request key. On `410 cursor_expired`, fetch notifications without a cursor and check the conversation and Needs you for open questions. Start a replacement subscription to receive those events on a device again.
+Subscriptions expire after thirty days or when their device credential expires, whichever comes first. Polling and acknowledgements do not renew them. Device revocation or roster removal disables them immediately. On `410 subscription_expired`, subscribe explicitly with a current credential and a new `Idempotency-Key`. On `410 cursor_expired`, fetch notifications without a cursor and check the conversation and Needs you for open questions. Start a replacement subscription to receive those events on a device again.
-Acknowledged history is kept for at least thirty days. Cleanup preserves current questions and entries unread by an active subscription. Notifications without a subscription cursor provide a private snapshot but do not record delivery to a device. To unsubscribe, send an empty JSON object to `DELETE /api/v1/notification-subscriptions/{id}` with its current revision and a request key.
+Acknowledged history is kept for at least thirty days. Cleanup preserves current questions and entries unread by an active subscription. Notifications without a subscription cursor provide a private snapshot but do not record delivery to a device. To unsubscribe, send an empty JSON object to `DELETE /api/v1/notification-subscriptions/{id}` with its current revision and an `Idempotency-Key`.
-Web clients can follow the private Rastrillo notification topic through the browser session. Its name is `notifications/` followed by the lowercase SHA-256 hex digest of compact JSON `[team_id,address,subscription_id]`. Pass that topic with `@0` in the existing `/live?t=` protocol. Each stream write checks the current roster, device and subscription deadline. External mobile push delivery is not implemented.
+Web clients can follow the private Rastrillo notification topic through the browser session. Its name is `notifications/` followed by the lowercase SHA-256 hex digest of compact JSON `[team_id,address,subscription_id]`. Pass that topic with `@0` in the existing `/live?t=` protocol. Each stream write checks the current roster, device and subscription deadline.
## Talk to your Coordinator from a device
-With a device bearer, the conversation, tasks, projects and events come from the conversation engine. Every one of these routes takes only `Authorization: Bearer <token>`, except the event stream, which also takes a same-origin browser session. A request without a bearer gets `401 unauthenticated`. Every JSON response has `Cache-Control: no-store`, and every error has the `Error` body. The schemas for these routes are generated from the engine's own types and checked against answers the server gives a device. In an answer, a field is required when the server always sends it, may be null when the server can send null, and nothing else appears. A request body requires no field in the contract: the server rejects a field it does not know, and checks itself the fields each operation needs, answering `422 invalid_input` when one is missing or wrong. An input type that is also part of an answer has the suffix `Input`, such as `PreferencesInput`. The earlier person API's schemas that share a name with one of these carry the prefix `PersonAPI`, such as `PersonAPITask`.
+Use `Authorization: Bearer <token>` with a person device token for the conversation engine’s routes. Without a bearer, these routes return `401 unauthenticated`. The exception is `GET /api/v1/events`, which also accepts a browser session with `Sec-Fetch-Site: same-origin`. Every JSON response has `Cache-Control: no-store`. Errors use the `Error` schema unless an operation specifies a different body, such as `CardConflict` for a card answer conflict.
+
+The schemas are generated from the engine’s types and checked against captured device responses. Response fields are required when the server always sends them. Fields that can be null are marked nullable. Response objects allow no fields beyond those in their schema. Request schemas do not mark fields as required. The server rejects unknown fields and validates the fields each operation needs. Missing or invalid input returns `422 invalid_input`. Send JSON with `Content-Type: application/json`. These JSON request bodies are limited to 32 KiB. An input type also used in a response has the suffix `Input`, such as `PreferencesInput`. Earlier person API schemas with the same name have the prefix `PersonAPI`, such as `PersonAPITask`.
-Some paths are shared with the earlier person API, and the request decides which one answers. `GET /tasks`, `/needs-you`, `/runners`, `/connections` and `/specialists` answer a device bearer with the engine's lists, and a browser session with the earlier pages. `GET /tasks/{id}` and `POST /tasks/{id}/cancel` take the engine's task IDs, which start with `tk`; `GET /questions/{id}` takes IDs that start with `q_`; `GET` and `DELETE /connections/{id}` take IDs that start with `cn_`. Any other ID gets the earlier answer, with a bearer or a browser session. In the contract, each of these operations describes what a device gets, and its `x-earlierPersonAPI` holds the earlier answer and when it is served. A client generated from the contract does not see those earlier operations, so a browser client should not be generated from it for these paths. `GET` and `POST /projects` are the engine's alone and answer only a device bearer.
+Some paths are shared with the earlier person API. On `GET /api/v1/tasks`, `/api/v1/needs-you`, `/api/v1/runners`, `/api/v1/connections` and `/api/v1/specialists`, an `Authorization` header selects the engine’s handler. A browser session without that header uses the earlier handler.
-Start with `GET /api/v1/snapshot`. It returns everything a client shows, read in one transaction: `me`, the newest messages and their turns, the cards, tasks, projects, runners, connections, the Coordinator, and the event `cursor`. Read older messages with `GET /api/v1/messages?before=<message ID>&limit=<count>`, where `limit` is 1 to 200 and defaults to 50.
+Other shared paths select the handler by ID. `GET /api/v1/tasks/{id}` and `POST /api/v1/tasks/{id}/cancel` use the engine for IDs starting with `tk`. `GET /api/v1/questions/{id}` uses it for IDs starting with `q_`. `GET` and `DELETE /api/v1/connections/{id}` use it for IDs starting with `cn_`. Those engine handlers require a device bearer. Other IDs use the earlier handler with either a bearer or a browser session. Each shared operation in the contract describes the engine’s response. Its `x-earlierPersonAPI` extension records the earlier operation and when it applies. Do not generate a browser client for these paths from the main operation alone. `GET` and `POST /api/v1/projects` always use the engine and require a device bearer.
+
+Start with `GET /api/v1/snapshot`. It reads the initial client state in one transaction: `me`, the newest `messages`, their `turns` and any turns in flight, `cards`, `tasks`, `projects`, `runner`, `runners`, `connections`, `coordinator`, `housekeeping_summary`, and the event `cursor`. `runner` is the primary runner. Read older messages with `GET /api/v1/messages?before=<message ID>&limit=<count>`. `limit` is 1 to 200 and defaults to 50.
Send a message with `POST /api/v1/messages`:
@@ -88,28 +94,30 @@ Send a message with `POST /api/v1/messages`:
{"text":"What is left?","idempotency_key":"<a new key for each message>"}
```
-A new message is `201`, with the message and the turn that carries it. The same key and text again return `200` with the same result; the same key with other text is `409 idempotency_conflict`. To send images or files, upload each with `POST /api/v1/attachments` first, the file's bytes as the body, and add their IDs to `attachments`, at most five.
+Use a UTF-8 `idempotency_key` of 1–128 bytes. The prefixes `reply:`, `card:` and `handoff:` are reserved. Message text is trimmed before validation and storage, and is limited to 16 KiB. A new message returns `201` with the message and its turn. Retrying with the same key, trimmed text and attachment IDs in the same order returns `200` with the existing message and its current turn. Reusing the key with different text or attachments returns `409 idempotency_conflict`.
+
+To send images or files, upload each to `POST /api/v1/attachments` first. Send the file’s bytes as the body, its media type in `Content-Type`, and its name in the `filename` or `filename*` parameter of `Content-Disposition`. Each upload is limited to 10 MiB. Add the returned IDs to the message’s `attachments` array, at most five. The uploads must be yours and not already attached to another message. Text may be empty when you send attachments.
-Follow the conversation with `GET /api/v1/events?after=<cursor>`, a stream of Server-Sent Events. `after` wins over `Last-Event-ID`; with neither, the stream starts at the newest event. The stream opens with `retry: 2000`, then sends each event as `id: <cursor>`, `event: <type>` and `data:` with the event as JSON. A `ping` comes every 20 seconds, with only `{"type":"ping"}` as its data. A cursor older than the kept events is `410 cursor_expired`: read the snapshot again and follow from its cursor.
+Follow the conversation with `GET /api/v1/events?after=<cursor>`, a stream of Server-Sent Events. A nonempty `after` takes precedence over `Last-Event-ID`. With neither, the stream starts at the newest event. The stream opens with `retry: 2000`. Each stored event has an `id: <cursor>` line, an `event: <type>` line and a `data:` line containing the event as JSON. A `ping` arrives every 20 seconds, with only `{"type":"ping"}` as its data. A cursor older than the retained events returns `410 cursor_expired`. Read the snapshot again and follow from its cursor.
-Each event has `type`, `resource`, `id`, `revision` and `data`, and may have `turn_id`, `message_id` and `attempt`. `type` and `resource` together say what `data` holds, and the contract names a schema for each pair, such as `MessageEvent` or `ActivityStepEvent`:
+Each stored event has `cursor`, `type`, `resource`, `id`, `revision` and `data`. It may also have `turn_id`, `message_id` and `attempt`. The `type` and `resource` pair determines the `data` schema, such as `MessageEvent` or `ActivityStepEvent`:
-- `message`, `turn`, `card`, `project`, `runner`, `coordinator`, `connection`, `preference`, `thinking`, `task`, `step` and `question`, each with the resource of the same name, carry that resource as it is now.
-- `delta` with resource `turn` or `question` carries text to append to the draft of a running turn or question: `turn_id`, `offset` and `text`. Apply it only when `offset` equals the length of the draft you hold.
-- `activity` with resource `turn` or `question` says what the Coordinator is doing before or between its text: `kind` is `thinking` or `tool`, and `label` is the line to show. With resource `step` it carries a step's recent activity lines.
-- `housekeeping` with resource `housekeeping` carries the housekeeping summary; with resource `action` it carries one housekeeping action.
+- `message`, `turn`, `card`, `project`, `runner`, `coordinator`, `connection`, `preference`, `thinking`, `task`, `step` and `question`, each with the resource of the same name, carry the current resource.
+- `delta` with resource `turn` or `question` carries `turn_id`, `offset` and `text` to append to the draft. Apply it only when `offset` equals the draft’s length in UTF-8 bytes.
+- `activity` with resource `turn` or `question` describes work before or between text updates. Its `kind` is `thinking` or `tool`, and `label` is the line to display. With resource `step`, it carries the step’s recent activity lines.
+- `housekeeping` with resource `housekeeping` carries the housekeeping summary. With resource `action`, it carries one housekeeping action.
-Apply an event only when its `revision` is newer than what you hold. Deltas and activity are the exception: they have revision 0, a delta applies by its `offset`, and an activity line shows until more text comes or the turn ends. Roster removal or device revocation closes the stream.
+Apply a resource event only when its `revision` is newer than the revision you hold. Deltas and activity have revision 0. Apply deltas by `offset`. Show a turn or question activity line until more text arrives or that turn or question ends. Roster removal or device revocation closes the stream.
-Answer a card with `POST /api/v1/cards/{id}/answer`, one of its `options` and its revision:
+Answer a card with `POST /api/v1/cards/{id}/answer`. Send a `choice` from its `options` and its current revision:
```json
{"choice":"merge","revision":2}
```
-The answer is `200` with the card, your answer as a message, and its turn. When the answer starts no turn, `message` and `turn` are empty, with zero times and empty roles and states. A stale revision is `409` with code `card_stale`, and a card already answered is `409` with code `card_answered`. Both bodies carry the card as it is now in `card`.
+A successful answer returns `200` with `card`, `message` and `turn`. When the answer starts no turn, `message` and `turn` contain zero values, including zero timestamps and empty roles and states. An outdated revision on an actionable card returns `409 card_stale`. A card that is no longer actionable returns `409 card_answered`. Both use the `CardConflict` schema and include the current card in `card`.
-Cancel a turn in flight with `POST /api/v1/turns/{id}/cancel`. The answer is `202` with the turn's `attempt`, or `409 turn_ended` once the turn has ended. Post to a task's thread with `POST /api/v1/tasks/{id}/thread` and move a task to another project with `POST /api/v1/tasks/{id}/move`. The contract lists every other route and its body.
+Cancel a turn in flight with `POST /api/v1/turns/{id}/cancel`. It returns `202` with the turn’s `attempt`, or `409 turn_ended` once the turn has ended. Post to a task’s thread with `POST /api/v1/tasks/{id}/thread`. Move a task to another project with `POST /api/v1/tasks/{id}/move`. The contract lists the other routes and their request bodies.
## Talk to the Assistant
diff --git a/docs/superpowers/plans/CONTROLLER-REPORT-plan-3.md b/docs/superpowers/plans/CONTROLLER-REPORT-plan-3.md
index f8ec0673..cdcb918c 100644
--- a/docs/superpowers/plans/CONTROLLER-REPORT-plan-3.md
+++ b/docs/superpowers/plans/CONTROLLER-REPORT-plan-3.md
@@ -5851,13 +5851,13 @@ records remain unchanged.
| `api.unavailable` | This information is unavailable. Try again later. | 10 | Runtime; COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context) |
| `copyConversationCursorExpired` | This conversation page has expired. Open the conversation again. | 1 | Runtime constant; COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context) |
| `copyInviteExpired` | This invitation is no longer valid. Ask a team owner for a new one. | 15 | Runtime constant; COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context) |
-| `docs/api/equipo-v1.md / COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)` | # COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)<br><br>Use Equipo's person API to build a client for one team's instance. The contract is in [equipo-v1.openapi.json](equipo-v1.openapi.json). Responses use JSON, timestamps use UTC, and IDs are opaque unless a field is explicitly an integer.<br><br>A paired device and a signed-in browser are not answered the same way. A device bearer reads the conversation, tasks, projects and the event stream from the conversation engine; see "Talk to your Coordinator from a device" below. The rest of this page, up to that section, describes the routes a browser session uses, and the ones a device shares with it: sign-in, devices, `/me`, notifications and errors.<br><br>For a signed-in browser on the instance, fetch `/api/v1/me` to check your identity. Fetch `/api/v1/conversation` to read your conversation. Send a message with `POST /api/v1/conversation/messages`, an `Idempotency-Key` header, and this body:<br><br>```json<br>{"body":"What should we investigate next?"}<br>``` | 11, 20; notifications 19 | Document section; COPY REVIEW REQUIRED (device API, 2026-11-19) |
+| `docs/api/equipo-v1.md / COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)` | # COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)<br><br>Use Equipo’s person API to build a client for one team’s instance. The contract is in [equipo-v1.openapi.json](equipo-v1.openapi.json). JSON responses use UTC timestamps. IDs are opaque unless a field is explicitly an integer.<br><br>Device bearers and browser sessions use different handlers on some routes. A device bearer reads the conversation, tasks, projects and events from the conversation engine. See “Talk to your Coordinator from a device” below. The preceding sections describe the earlier person API, including sign-in, devices, `/me`, notifications and errors shared by both clients. Person API routes use the `/api/v1` prefix.<br><br>For a signed-in browser on the instance, fetch `/api/v1/me` to check your identity. Fetch `/api/v1/conversation` to read your conversation. Send a message with `POST /api/v1/conversation/messages`, an `Idempotency-Key` header, and this body:<br><br>```json<br>{"body":"What should we investigate next?"}<br>``` | 11, 20; notifications 19 | Document section; COPY ACCEPTED BY DELEGATION (Astra, 2026-11-19) |
| `docs/api/equipo-v1.md / Sign in a device` | ## Sign in a device<br><br>Generate an Ed25519 key pair on the initiating device. Keep the private key there. Send its public key as unpadded base64url to `POST /api/v1/auth/devices`, with a device label and a fresh `Idempotency-Key`:<br><br>```json<br>{"public_key":"&lt;base64url public key&gt;","label":"My phone"}<br>```<br><br>Keep `device_secret` private. Display `user_code` on the initiating device and open `verification_uri` in a browser. The signed-in person checks the device name and request time, then types the code from the initiating device. Opening the link does not approve anything. Approval requires a browser session; a bearer cannot approve another device.<br><br>The challenge lasts ten minutes. Decode its `challenge` field from base64url to a JSON array whose first element is the instance ID. Generate a fresh random nonce with at least 128 bits of entropy. Sign the UTF-8 encoding of this compact JSON array with Ed25519:<br><br>```json<br>["equipo.person.device.v1","&lt;instance ID&gt;","&lt;challenge ID&gt;","&lt;challenge&gt;","&lt;nonce&gt;"]<br>```<br><br>Submit `id`, `device_secret`, `challenge`, `nonce`, and the unpadded base64url `signature` to `POST /api/v1/auth/devices/exchange`. Supply an `Idempotency-Key`. Poll no more often than every five seconds. A pending approval returns `409 authorization_pending`; throttling returns `429 slow_down`. Start again after `410 device_expired`.<br><br>A successful exchange returns a bearer with audience `equipo.person.v1` and a thirty-day expiry. Use `Authorization: Bearer &lt;token&gt;` on person API requests. If the exchange response is lost, resend the same proof and nonce. For ten minutes after exchange, Equipo can return the same encrypted saved result. A different nonce cannot obtain another credential.<br><br>Read your devices with `GET /api/v1/auth/devices`. Revoke one with `DELETE /api/v1/auth/devices/{id}`, an empty JSON object, its current revision in `If-Match`, and a fresh request key. Revocation takes effect immediately. Removing a member or changing their session epoch also invalidates their credentials. Runner and provider credentials cannot authenticate a person. | 11, 20; notifications 19 | Document section; COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context) |
| `docs/api/equipo-v1.md / Browser requests and invitation acceptance` | ## Browser requests and invitation acceptance<br><br>Browser writes need the verified session cookie and evidence that the request came from the instance's own origin. Equipo checks Origin, Referer and browser fetch metadata. Bearer requests must omit cookies. Cross-origin browser requests are rejected even if they carry a bearer.<br><br>A verified invitation recipient can read their invitation and post its secret to `/api/v1/invites/{id}/accept` before joining the roster. That session cannot read other team resources until acceptance succeeds. Owners can create, inspect and revoke invitations. The share link is returned only by invitation creation and its authorized replay. | 11, 20; notifications 19 | Document section; COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context) |
-| `docs/api/equipo-v1.md / Retry writes and handle revisions` | ## Retry writes and handle revisions<br><br>Every mutation on these routes needs an `Idempotency-Key` of 1–256 bytes. The conversation engine's routes for devices do not; they say below what they need instead. Resource updates also need `If-Match: "&lt;revision&gt;"`. Use the revision returned by GET, and retain the original key, body and revision until the result is known. Retrying identical input returns the saved result after current access is checked. Reusing a key for changed input conflicts.<br><br>A stale revision returns `409 revision_conflict`, with `current_revision` when the resource is visible. Fetch the current value before making a new decision. Missing preconditions return 428. Invalid fields return 422. Missing identity returns 401; denied access returns 403; unavailable or private resources return 404. Query or runner unavailability returns 503.<br><br>Project settings use one ETag for the combined settings visible to you. PATCH with an `action` of `approval`, `default_playbook`, or `rules`. Personal settings permit the `approval` action, including an empty approval mode to inherit the team setting. Connection choices have their own `connections_revision` in the settings response; use it for `PUT /projects/{id}/connections`. Owner roster entries and device list entries likewise carry their own resource revisions. Budgets use revision zero until configured.<br><br>Mutations accept at most 64 KiB of JSON, and message text at most 16 KiB. Unknown fields, duplicate keys, null mutation fields and trailing JSON are rejected. Use the explicit input schema for each operation. When editing an installed playbook, retain its template reference. | 11, 20; notifications 19 | Document section; COPY REVIEW REQUIRED (device API, 2026-11-19) |
+| `docs/api/equipo-v1.md / Retry writes and handle revisions` | ## Retry writes and handle revisions<br><br>The earlier person API requires an `Idempotency-Key` on every mutation. Use a nonblank UTF-8 value of 1–256 bytes. Resource updates also need `If-Match: "&lt;revision&gt;"`. These header requirements do not apply to the conversation engine’s device routes. Use the body fields described in “Talk to your Coordinator from a device” and the contract for each operation.<br><br>Use the revision returned by GET. Keep the original key, body and revision until the result is known. Retrying identical input returns the saved result after current access is checked. Reusing a key for changed input conflicts.<br><br>A stale revision returns `409 revision_conflict`, with `current_revision` when the resource is visible. Fetch the current value before making a new decision. Missing preconditions return 428. Invalid fields return 422. Missing identity returns 401. Denied access returns 403. Missing or private resources return 404. Query or runner unavailability returns 503.<br><br>Project settings use one ETag for the combined settings visible to you. PATCH with an `action` of `approval`, `default_playbook`, or `rules`. Personal settings permit the `approval` action, including an empty approval mode to inherit the team setting. Connection choices have their own `connections_revision` in the settings response. Use it for `PUT /api/v1/projects/{id}/connections`. Owner roster entries and device list entries also carry their own resource revisions. Budgets use revision zero until configured.<br><br>The earlier person API accepts at most 64 KiB of JSON per mutation and 16 KiB of message text. It rejects unknown fields, duplicate keys, null mutation fields and trailing JSON. Use the input schema for each operation. When editing an installed playbook, retain its template reference. | 11, 20; notifications 19 | Document section; COPY ACCEPTED BY DELEGATION (Astra, 2026-11-19) |
| `docs/api/equipo-v1.md / Read lists and private setup state` | ## Read lists and private setup state<br><br>Lists default to fifty items and accept `limit` from 1 to 100. Pass the returned `next_cursor` back to the same route with the same identity. Cursors expire after twenty-four hours. They cannot be moved between people, routes or instances. Inserts may appear on later pages; deleted resources are not repeated from a saved snapshot. On 410, fetch the list again without a cursor.<br><br>Treat null counts, usage and allowance as unknown. They are not zero. Personal responses use `Cache-Control: no-store`. Keep your own conversation, device secrets and bearer credentials out of shared caches and logs.<br><br>Account setup responses contain only `id`, `state`, `mode`, and `command`. Run the command at the runner terminal to complete supported provider sign-in. The instance does not return credential-home paths or provider login codes. Connection revocation stops future use and requests containment of dependent work; it does not delete local credential files. Remembered team links grant no access to another instance. | 11, 20; notifications 19 | Document section; COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context) |
-| `docs/api/equipo-v1.md / Reconnect and answer questions` | ## Reconnect and answer questions<br><br>After reconnecting, fetch the conversation, needs-you list and any open task again. Reconcile by resource ID and revision. Browser sessions can use the existing live invalidation stream to prompt these reads. A device reads `GET /api/v1/snapshot` and follows `GET /api/v1/events` instead, as described below. This API does not provide mobile push delivery.<br><br>The rest of this section is about the earlier questions, whose IDs do not start with `q_`. Fetch `/questions/{id}` before answering. A clarification accepts `kind: "clarification"` with `option_id` or `text`. A native permission question accepts `kind: "native"`, `behavior`, and only the `updated_input` shape permitted by that question. Post to `/questions/{id}/answer` using its original request revision and current person authentication. A notification action is never authentication. A cancelled, expired or superseded question cannot accept a new answer.<br><br>Subscribe with `POST /api/v1/notification-subscriptions`, a fresh request key, and `{"device_id":"&lt;your device ID&gt;"}`. Use the returned `cursor` for `GET /api/v1/notifications?cursor=&lt;cursor&gt;`. Each subscription has its own delivery and acknowledgement state. A bearer can use only its bound device. A browser session can manage its own devices.<br><br>Keep polling with `next_cursor`, including after an empty page. Delivery may repeat; deduplicate by notification `id`. A notification contains only its kind, resource ID, resource revision, time, state and instance-relative link. For `question`, fetch `/api/v1/questions/{resource_id}`; for `task_ready`, fetch `/api/v1/tasks/{resource_id}`; for `card`, fetch `/api/v1/cards/{resource_id}`. An `interrupted` event links to the affected task or conversation; fetch that current view before retrying work. `superseded` means the event no longer represents current work. Acknowledgement never answers a question or approves work.<br><br>After receiving an event, post `{"notification_id":"&lt;notification ID&gt;"}` to `/api/v1/notification-subscriptions/{id}/ack` with a request key and the subscription revision in `If-Match`. Save the returned revision. Retry a lost acknowledgement with its original key, body and revision. Only delivered events can be acknowledged. An out-of-order acknowledgement is saved, but the subscription cursor advances only after all earlier recipient events are acknowledged. Another device keeps its unread state.<br><br>Subscriptions expire after thirty days or when their device credential expires, whichever comes first. Polling and acknowledgements do not renew them. Device revocation or roster removal disables them immediately. On `410 subscription_expired`, subscribe explicitly with a current credential and a new request key. On `410 cursor_expired`, fetch notifications without a cursor and check the conversation and Needs you for open questions. Start a replacement subscription to receive those events on a device again.<br><br>Acknowledged history is kept for at least thirty days. Cleanup preserves current questions and entries unread by an active subscription. Notifications without a subscription cursor provide a private snapshot but do not record delivery to a device. To unsubscribe, send an empty JSON object to `DELETE /api/v1/notification-subscriptions/{id}` with its current revision and a request key.<br><br>Web clients can follow the private Rastrillo notification topic through the browser session. Its name is `notifications/` followed by the lowercase SHA-256 hex digest of compact JSON `[team_id,address,subscription_id]`. Pass that topic with `@0` in the existing `/live?t=` protocol. Each stream write checks the current roster, device and subscription deadline. External mobile push delivery is not implemented. | 11, 20; notifications 19 | Document section; COPY REVIEW REQUIRED (device API, 2026-11-19) |
-| `docs/api/equipo-v1.md / Talk to your Coordinator from a device` | ## Talk to your Coordinator from a device<br><br>With a device bearer, the conversation, tasks, projects and events come from the conversation engine. Every one of these routes takes only `Authorization: Bearer &lt;token&gt;`, except the event stream, which also takes a same-origin browser session. A request without a bearer gets `401 unauthenticated`. Every JSON response has `Cache-Control: no-store`, and every error has the `Error` body. The schemas for these routes are generated from the engine's own types and checked against answers the server gives a device. In an answer, a field is required when the server always sends it, may be null when the server can send null, and nothing else appears. A request body requires no field in the contract: the server rejects a field it does not know, and checks itself the fields each operation needs, answering `422 invalid_input` when one is missing or wrong. An input type that is also part of an answer has the suffix `Input`, such as `PreferencesInput`. The earlier person API's schemas that share a name with one of these carry the prefix `PersonAPI`, such as `PersonAPITask`.<br><br>Some paths are shared with the earlier person API, and the request decides which one answers. `GET /tasks`, `/needs-you`, `/runners`, `/connections` and `/specialists` answer a device bearer with the engine's lists, and a browser session with the earlier pages. `GET /tasks/{id}` and `POST /tasks/{id}/cancel` take the engine's task IDs, which start with `tk`; `GET /questions/{id}` takes IDs that start with `q_`; `GET` and `DELETE /connections/{id}` take IDs that start with `cn_`. Any other ID gets the earlier answer, with a bearer or a browser session. In the contract, each of these operations describes what a device gets, and its `x-earlierPersonAPI` holds the earlier answer and when it is served. A client generated from the contract does not see those earlier operations, so a browser client should not be generated from it for these paths. `GET` and `POST /projects` are the engine's alone and answer only a device bearer.<br><br>Start with `GET /api/v1/snapshot`. It returns everything a client shows, read in one transaction: `me`, the newest messages and their turns, the cards, tasks, projects, runners, connections, the Coordinator, and the event `cursor`. Read older messages with `GET /api/v1/messages?before=&lt;message ID&gt;&amp;limit=&lt;count&gt;`, where `limit` is 1 to 200 and defaults to 50.<br><br>Send a message with `POST /api/v1/messages`:<br><br>```json<br>{"text":"What is left?","idempotency_key":"&lt;a new key for each message&gt;"}<br>```<br><br>A new message is `201`, with the message and the turn that carries it. The same key and text again return `200` with the same result; the same key with other text is `409 idempotency_conflict`. To send images or files, upload each with `POST /api/v1/attachments` first, the file's bytes as the body, and add their IDs to `attachments`, at most five.<br><br>Follow the conversation with `GET /api/v1/events?after=&lt;cursor&gt;`, a stream of Server-Sent Events. `after` wins over `Last-Event-ID`; with neither, the stream starts at the newest event. The stream opens with `retry: 2000`, then sends each event as `id: &lt;cursor&gt;`, `event: &lt;type&gt;` and `data:` with the event as JSON. A `ping` comes every 20 seconds, with only `{"type":"ping"}` as its data. A cursor older than the kept events is `410 cursor_expired`: read the snapshot again and follow from its cursor.<br><br>Each event has `type`, `resource`, `id`, `revision` and `data`, and may have `turn_id`, `message_id` and `attempt`. `type` and `resource` together say what `data` holds, and the contract names a schema for each pair, such as `MessageEvent` or `ActivityStepEvent`:<br><br>- `message`, `turn`, `card`, `project`, `runner`, `coordinator`, `connection`, `preference`, `thinking`, `task`, `step` and `question`, each with the resource of the same name, carry that resource as it is now.<br>- `delta` with resource `turn` or `question` carries text to append to the draft of a running turn or question: `turn_id`, `offset` and `text`. Apply it only when `offset` equals the length of the draft you hold.<br>- `activity` with resource `turn` or `question` says what the Coordinator is doing before or between its text: `kind` is `thinking` or `tool`, and `label` is the line to show. With resource `step` it carries a step's recent activity lines.<br>- `housekeeping` with resource `housekeeping` carries the housekeeping summary; with resource `action` it carries one housekeeping action.<br><br>Apply an event only when its `revision` is newer than what you hold. Deltas and activity are the exception: they have revision 0, a delta applies by its `offset`, and an activity line shows until more text comes or the turn ends. Roster removal or device revocation closes the stream.<br><br>Answer a card with `POST /api/v1/cards/{id}/answer`, one of its `options` and its revision:<br><br>```json<br>{"choice":"merge","revision":2}<br>```<br><br>The answer is `200` with the card, your answer as a message, and its turn. When the answer starts no turn, `message` and `turn` are empty, with zero times and empty roles and states. A stale revision is `409` with code `card_stale`, and a card already answered is `409` with code `card_answered`. Both bodies carry the card as it is now in `card`.<br><br>Cancel a turn in flight with `POST /api/v1/turns/{id}/cancel`. The answer is `202` with the turn's `attempt`, or `409 turn_ended` once the turn has ended. Post to a task's thread with `POST /api/v1/tasks/{id}/thread` and move a task to another project with `POST /api/v1/tasks/{id}/move`. The contract lists every other route and its body. | API doc: the conversation engine's routes for a device bearer | Document section; COPY REVIEW REQUIRED (device API, 2026-11-19) |
+| `docs/api/equipo-v1.md / Reconnect and answer questions` | ## Reconnect and answer questions<br><br>After reconnecting, fetch the conversation, needs-you list and any open task again. Reconcile by resource ID and revision. Browser sessions can use the existing live invalidation stream to prompt these reads. With a device bearer, read `GET /api/v1/snapshot` and follow `GET /api/v1/events` instead, as described below. This API does not provide mobile push delivery.<br><br>The following answer operation applies to earlier person API questions. Their IDs do not start with `q_`. Fetch `/api/v1/questions/{id}` before answering. A clarification accepts `kind: "clarification"` with `option_id` or `text`. A native permission question accepts `kind: "native"`, `behavior`, and only the `updated_input` shape permitted by that question. Post to `/api/v1/questions/{id}/answer` with the question’s original request revision in `If-Match`, an `Idempotency-Key`, and current person authentication. A notification action is never authentication. A cancelled, expired or superseded question cannot accept a new answer.<br><br>Subscribe with `POST /api/v1/notification-subscriptions`, a fresh `Idempotency-Key`, and `{"device_id":"&lt;your device ID&gt;"}`. Use the returned `cursor` for `GET /api/v1/notifications?cursor=&lt;cursor&gt;`. Each subscription has its own delivery and acknowledgement state. A bearer can use only its bound device. A browser session can manage its own devices.<br><br>Keep polling with `next_cursor`, including after an empty page. Delivery may repeat. Deduplicate by notification `id`. A notification contains only its kind, resource ID, resource revision, time, state and instance-relative link. For `question`, fetch `/api/v1/questions/{resource_id}`; for `task_ready`, fetch `/api/v1/tasks/{resource_id}`; for `card`, fetch `/api/v1/cards/{resource_id}`. An `interrupted` event links to the affected task or conversation. Fetch that current view before retrying work. `superseded` means the event no longer represents current work. Acknowledgement never answers a question or approves work.<br><br>After receiving an event, post `{"notification_id":"&lt;notification ID&gt;"}` to `/api/v1/notification-subscriptions/{id}/ack` with an `Idempotency-Key` and the subscription revision in `If-Match`. Save the returned revision. Retry a lost acknowledgement with its original key, body and revision. Only delivered events can be acknowledged. An out-of-order acknowledgement is saved, but the subscription cursor advances only after all earlier recipient events are acknowledged. Another device keeps its unread state.<br><br>Subscriptions expire after thirty days or when their device credential expires, whichever comes first. Polling and acknowledgements do not renew them. Device revocation or roster removal disables them immediately. On `410 subscription_expired`, subscribe explicitly with a current credential and a new `Idempotency-Key`. On `410 cursor_expired`, fetch notifications without a cursor and check the conversation and Needs you for open questions. Start a replacement subscription to receive those events on a device again.<br><br>Acknowledged history is kept for at least thirty days. Cleanup preserves current questions and entries unread by an active subscription. Notifications without a subscription cursor provide a private snapshot but do not record delivery to a device. To unsubscribe, send an empty JSON object to `DELETE /api/v1/notification-subscriptions/{id}` with its current revision and an `Idempotency-Key`.<br><br>Web clients can follow the private Rastrillo notification topic through the browser session. Its name is `notifications/` followed by the lowercase SHA-256 hex digest of compact JSON `[team_id,address,subscription_id]`. Pass that topic with `@0` in the existing `/live?t=` protocol. Each stream write checks the current roster, device and subscription deadline. | 11, 20; notifications 19 | Document section; COPY ACCEPTED BY DELEGATION (Astra, 2026-11-19) |
+| `docs/api/equipo-v1.md / Talk to your Coordinator from a device` | ## Talk to your Coordinator from a device<br><br>Use `Authorization: Bearer &lt;token&gt;` with a person device token for the conversation engine’s routes. Without a bearer, these routes return `401 unauthenticated`. The exception is `GET /api/v1/events`, which also accepts a browser session with `Sec-Fetch-Site: same-origin`. Every JSON response has `Cache-Control: no-store`. Errors use the `Error` schema unless an operation specifies a different body, such as `CardConflict` for a card answer conflict.<br><br>The schemas are generated from the engine’s types and checked against captured device responses. Response fields are required when the server always sends them. Fields that can be null are marked nullable. Response objects allow no fields beyond those in their schema. Request schemas do not mark fields as required. The server rejects unknown fields and validates the fields each operation needs. Missing or invalid input returns `422 invalid_input`. Send JSON with `Content-Type: application/json`. These JSON request bodies are limited to 32 KiB. An input type also used in a response has the suffix `Input`, such as `PreferencesInput`. Earlier person API schemas with the same name have the prefix `PersonAPI`, such as `PersonAPITask`.<br><br>Some paths are shared with the earlier person API. On `GET /api/v1/tasks`, `/api/v1/needs-you`, `/api/v1/runners`, `/api/v1/connections` and `/api/v1/specialists`, an `Authorization` header selects the engine’s handler. A browser session without that header uses the earlier handler.<br><br>Other shared paths select the handler by ID. `GET /api/v1/tasks/{id}` and `POST /api/v1/tasks/{id}/cancel` use the engine for IDs starting with `tk`. `GET /api/v1/questions/{id}` uses it for IDs starting with `q_`. `GET` and `DELETE /api/v1/connections/{id}` use it for IDs starting with `cn_`. Those engine handlers require a device bearer. Other IDs use the earlier handler with either a bearer or a browser session. Each shared operation in the contract describes the engine’s response. Its `x-earlierPersonAPI` extension records the earlier operation and when it applies. Do not generate a browser client for these paths from the main operation alone. `GET` and `POST /api/v1/projects` always use the engine and require a device bearer.<br><br>Start with `GET /api/v1/snapshot`. It reads the initial client state in one transaction: `me`, the newest `messages`, their `turns` and any turns in flight, `cards`, `tasks`, `projects`, `runner`, `runners`, `connections`, `coordinator`, `housekeeping_summary`, and the event `cursor`. `runner` is the primary runner. Read older messages with `GET /api/v1/messages?before=&lt;message ID&gt;&amp;limit=&lt;count&gt;`. `limit` is 1 to 200 and defaults to 50.<br><br>Send a message with `POST /api/v1/messages`:<br><br>```json<br>{"text":"What is left?","idempotency_key":"&lt;a new key for each message&gt;"}<br>```<br><br>Use a UTF-8 `idempotency_key` of 1–128 bytes. The prefixes `reply:`, `card:` and `handoff:` are reserved. Message text is trimmed before validation and storage, and is limited to 16 KiB. A new message returns `201` with the message and its turn. Retrying with the same key, trimmed text and attachment IDs in the same order returns `200` with the existing message and its current turn. Reusing the key with different text or attachments returns `409 idempotency_conflict`.<br><br>To send images or files, upload each to `POST /api/v1/attachments` first. Send the file’s bytes as the body, its media type in `Content-Type`, and its name in the `filename` or `filename*` parameter of `Content-Disposition`. Each upload is limited to 10 MiB. Add the returned IDs to the message’s `attachments` array, at most five. The uploads must be yours and not already attached to another message. Text may be empty when you send attachments.<br><br>Follow the conversation with `GET /api/v1/events?after=&lt;cursor&gt;`, a stream of Server-Sent Events. A nonempty `after` takes precedence over `Last-Event-ID`. With neither, the stream starts at the newest event. The stream opens with `retry: 2000`. Each stored event has an `id: &lt;cursor&gt;` line, an `event: &lt;type&gt;` line and a `data:` line containing the event as JSON. A `ping` arrives every 20 seconds, with only `{"type":"ping"}` as its data. A cursor older than the retained events returns `410 cursor_expired`. Read the snapshot again and follow from its cursor.<br><br>Each stored event has `cursor`, `type`, `resource`, `id`, `revision` and `data`. It may also have `turn_id`, `message_id` and `attempt`. The `type` and `resource` pair determines the `data` schema, such as `MessageEvent` or `ActivityStepEvent`:<br><br>- `message`, `turn`, `card`, `project`, `runner`, `coordinator`, `connection`, `preference`, `thinking`, `task`, `step` and `question`, each with the resource of the same name, carry the current resource.<br>- `delta` with resource `turn` or `question` carries `turn_id`, `offset` and `text` to append to the draft. Apply it only when `offset` equals the draft’s length in UTF-8 bytes.<br>- `activity` with resource `turn` or `question` describes work before or between text updates. Its `kind` is `thinking` or `tool`, and `label` is the line to display. With resource `step`, it carries the step’s recent activity lines.<br>- `housekeeping` with resource `housekeeping` carries the housekeeping summary. With resource `action`, it carries one housekeeping action.<br><br>Apply a resource event only when its `revision` is newer than the revision you hold. Deltas and activity have revision 0. Apply deltas by `offset`. Show a turn or question activity line until more text arrives or that turn or question ends. Roster removal or device revocation closes the stream.<br><br>Answer a card with `POST /api/v1/cards/{id}/answer`. Send a `choice` from its `options` and its current revision:<br><br>```json<br>{"choice":"merge","revision":2}<br>```<br><br>A successful answer returns `200` with `card`, `message` and `turn`. When the answer starts no turn, `message` and `turn` contain zero values, including zero timestamps and empty roles and states. An outdated revision on an actionable card returns `409 card_stale`. A card that is no longer actionable returns `409 card_answered`. Both use the `CardConflict` schema and include the current card in `card`.<br><br>Cancel a turn in flight with `POST /api/v1/turns/{id}/cancel`. It returns `202` with the turn’s `attempt`, or `409 turn_ended` once the turn has ended. Post to a task’s thread with `POST /api/v1/tasks/{id}/thread`. Move a task to another project with `POST /api/v1/tasks/{id}/move`. The contract lists the other routes and their request bodies. | API doc: the conversation engine's routes for a device bearer | Document section; COPY ACCEPTED BY DELEGATION (Astra, 2026-11-19) |
| `docs/plan-3-acceptance.md / COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)` | # COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)<br><br>Plan 3a adds a private coordinator conversation, shared task threads, editable<br>plans, sourced recommendations and personal preferences. Tasks 1–11 cover the 3a offline stop. Tasks 12–21 add invitations, runner/account<br>setup, specialist and playbook copies, remembered teams, device authentication<br>and a private notification feed. Production use still needs reviewed copy and certification<br>with Paul's dedicated provider accounts.<br><br>For the offline gate, run these commands from the `plan-3` checkout with on-disk<br>`TMPDIR` and the default Go caches:<br><br>```bash<br>CGO_ENABLED=0 go test ./internal/plan3test \<br> -run 'TestCoordinatorAcceptance3[AB]&#124;TestCoordinatorRelease&#124;TestPlan3ReleaseBoundaries&#124;TestPlan3Upgrade&#124;TestPersonAPIContractCoverage' -count=1<br>CGO_ENABLED=0 go build ./cmd/equipo ./cmd/equipo-runner<br>make migration-check<br>make budget<br>staticcheck ./...<br>go vet ./...<br>```<br><br>Use the pinned `go run honnef.co/go/tools/cmd/staticcheck@v0.7.0 ./...` invocation<br>if staticcheck is not installed. The controller runs `make ci` once before final<br>review. Individual task runs use targeted tests.<br><br>The acceptance test uses two fixture browser identities, loopback HTTP, the<br>runner service, durable capture and journal, and fake provider frames. It covers<br>bug, feature and recommendation proposals, editing, approval, project correction,<br>questions, routed replies, preference privacy, cancellation and interrupted-turn<br>recovery. The companion runner graph tests use local Git, fake providers and the<br>fake forge to check exact-candidate evidence, independent-family review,<br>publication readback and the wait for a person. These fixtures establish offline<br>behavior only.<br><br>The browser-session person API uses `/api/v1`. Fetch the current revision before<br>editing. Send it as `If-Match` and use an `Idempotency-Key` for a mutation. Retry<br>an identical request with the same key after a lost response. A different edit<br>needs a new key and the current revision. Plan 3b also accepts revocable person-device bearers. They never authenticate<br>as a runner and cannot approve another device. See [the API schema](api/equipo-v1.openapi.json).<br><br>List cursors are opaque and scoped to the person and stream. They expire after<br>24 hours. Tasks, journey, actionable work, cards and preferences use the latest<br>stored resource audit time, newest first, then ID to break ties. People use<br>address order. Conversation and thread messages use their stored sequence.<br>Changes can move an item ahead of an existing cursor; start again to see the<br>latest order. Lists read current authorized data and never carry stored copies<br>of private content in a cursor.<br><br>A contained uncertain coordinator turn waits for your choice. Retrying creates<br>new admitted work; resetting advances the coordinator generation. A refused<br>recovery does not make that choice for you. Cancellation and reset still need<br>containment before they can release a running account.<br><br>Before live use, review every pending entry in the controller report's<br>`Plan 3 copy inventory (for Paul's review)`, then follow<br>[the live scripts and checklists](superpowers/plans/LIVE-GATE-plan-3.md).<br>Record the offline result, copy-review result and live certification separately.<br>Keep release eligibility off until all three are complete. Equipo publishes<br>review branches and waits for the decision owner; you merge manually.<br><br><br>COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context). The 3b acceptance path uses fake official CLIs on disk,<br>temporary dedicated homes, actual pairing proofs, runner HTTP and application<br>transactions. It connects two same-provider accounts and an independent review<br>family, edits copied templates, chooses a project default, approves a feature<br>plan and answers a question with a device token. Separate runner fixtures use<br>local Git, trusted checks and a fake forge. Installation fixtures test missing<br>containment prerequisites, unsupported platforms and the stops-at-logout state.<br>These are layered tests, not a real-provider certification or one continuous<br>browser-to-merge run.<br><br>Upgrade tests start at schema 0018 with active tasks, historical evidence,<br>reservations, recovery charges and decision ownership, and at the end of 3a<br>with private conversation and preference data. They compare retained columns,<br>check the current schema and reopen the database and execution core twice.<br><br>The release check refuses pending runtime copy, the API guide, acceptance and<br>live instructions, and the consolidated inventory containing the onboarding<br>mockup proposals. No pending entry is treated as reviewed. The manifest still<br>needs exact live policy certificates and the supported terminal login evidence.<br>Paul and a teammate run section 3b separately after review and certification.<br>The controller runs `make ci` once; Task 21 runs the named tests, build, migration,<br>budget, vet, pinned staticcheck and the previously skipped `equipotest` package. | 11, 21 | Document section; COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context) |
| `docs/superpowers/plans/LIVE-GATE-plan-3.md / 3a` | ## 3a<br><br>Paul runs this gate after the controller has reviewed the offline results and<br>copy. Task 11 did not run it. Keep the release disabled until the reviewed live<br>bundle and the usable checks below pass. Fixtures cannot certify a production<br>provider, model, account or policy.<br><br>Use Linux/amd64, the enrolled runner, Paul's existing dedicated Equipo Claude<br>and Codex homes, and a disposable repository. Use the configuration and identity<br>file shapes in [the direct live guide](../../live-gate.md). Supply actual account<br>IDs, home IDs, model names, auth hosts, executable paths and machine fingerprint.<br>Do not copy interactive credentials, create a shared login, or put credentials<br>in the evidence. This pass needs no new sign-in or enrolment.<br><br>Before running:<br><br>- Finish the Plan 2b release gate. Its checked-in manifest still has no certified<br> tuples, binary digests or evidence references. A passing fixture is insufficient.<br>- Review the `3a copy inventory` in `CONTROLLER-REPORT-plan-3.md`, the API schema<br> prose and both Task 11 draft documents. Leave pending entries marked until Paul<br> approves them through the controller's review channel.<br>- Select `.equipo/checks.json` and a small reproducible defect in the disposable<br> repository. Record its default branch and starting commit. Record an acceptance<br> test for a small feature and a project document to cite in a recommendation.<br>- Confirm separate, positive call, input-token, output-token and duration limits<br> in the private `DirectLiveConfig`. Record job funding and remaining project/team<br> headroom. Set `Seconds` to at most 3600 for this run. Stop when the chosen bound<br> is reached. Never raise it automatically. The verifier calculates twice the<br> measured maximum, rounded up to 1,000, and checks the 23-reservation job floor.<br>- Confirm that `EQUIPO_LIVE_CONFIG` names that private file, `disposable` is true,<br> both selected homes belong to Paul, and `evidence_dir` is a new empty directory<br> outside scratch. Preserve that directory after the run. Configure the required<br> sentinels and protected paths from the direct live guide.<br>- Export the reviewed runner path variables from the direct live guide. Choose<br> the intended installation paths for `EQUIPO_TOOL_PROXY_PATH` and<br> `EQUIPO_RUNNER_EXECUTABLE`; they must not overwrite a running installation.<br> Certification binds the constructed policy and installed binaries.<br><br>Run this script from the reviewed `plan-3` checkout. It uses the existing<br>`directlive` driver once and verifies all five groups, including both coordinator<br>profiles. It does not enable instance execution or promote a manifest.<br><br>```bash<br>#!/usr/bin/env bash<br>set -euo pipefail<br>umask 077<br>: "${TMPDIR:?Set on-disk TMPDIR}"<br>: "${EQUIPO_LIVE_CONFIG:?Set the reviewed private config file}"<br>: "${EQUIPO_CLAUDE_PATH:?Set the pinned Claude executable}"<br>: "${EQUIPO_CODEX_PATH:?Set the pinned Codex executable}"<br>: "${EQUIPO_CODEX_CODE_MODE_HOST_PATH:?Set the pinned code-mode host}"<br>: "${EQUIPO_BWRAP_PATH:?Set bubblewrap 0.11.0}"<br>: "${EQUIPO_TOOL_PROXY_PATH:?Set the intended helper installation path}"<br>: "${EQUIPO_RUNNER_EXECUTABLE:?Set the intended runner installation path}"<br>: "${EQUIPO_RUNNER_STATE_DIR:?Set private runner state}"<br>: "${EQUIPO_ACCOUNT_BINDINGS_PATH:?Set private account bindings}"<br>: "${EQUIPO_AMADAN_CREDENTIAL_PATH:?Set the private forge credential path}"<br>: "${EQUIPO_WORKSPACE_ROOT:?Set the workspace root}"<br>: "${EQUIPO_SCRATCH_ROOT:?Set on-disk runner scratch}"<br><br>python3 - &lt;&lt;'PY'<br>import json, os<br>from pathlib import Path<br>c = json.loads(Path(os.environ['EQUIPO_LIVE_CONFIG']).read_text())<br>assert c['disposable'] is True<br>assert 0 &lt; c['funding']['Seconds'] &lt;= 3600<br>assert {b['binding']['Provider'] for b in c['bindings']} == {'claude', 'codex'}<br>evidence = Path(c['evidence_dir'])<br>assert evidence.is_absolute() and evidence.is_dir() and not any(evidence.iterdir())<br>assert Path(c['repository'], '.git').is_dir()<br>PY<br><br>read -r -p 'Type LIVE DISPOSABLE ONLY: ' equipo_confirmation<br>[[ "$equipo_confirmation" == 'LIVE DISPOSABLE ONLY' ]]<br>read -r -p 'Type RUN LIVE GATE: ' equipo_confirmation<br>[[ "$equipo_confirmation" == 'RUN LIVE GATE' ]]<br><br>CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -trimpath -buildvcs=false \<br> -ldflags '-s -w' -o "$EQUIPO_TOOL_PROXY_PATH" ./cmd/equipo-tool-proxy<br>CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -tags direct_live -trimpath \<br> -buildvcs=false -ldflags '-s -w' -o "$EQUIPO_RUNNER_EXECUTABLE" ./cmd/equipo-runner<br>EQUIPO_LIVE_DIRECT=1 CGO_ENABLED=0 go test -tags direct_live \<br> ./internal/runner/provider \<br> -run '^TestDirectLive(Contract&#124;Isolation&#124;Recovery&#124;Calibration&#124;Coordinator)$' \<br> -count=1 -timeout=70m<br>```<br><br>The bounded driver runs the Engineering implementation and reproduction, Review,<br>legacy Product, Scope, Research, Investigation, Copy, Design and Coordinator<br>profiles for Claude. It runs the same profiles except legacy Product for Codex.<br>This covers the new executable actions `scope`, `recommend`, `investigate`,<br>`copy`, `design` and `coordinate`, as well as the changed policies for existing<br>actions. `research` shares the Research profile. Every configured model needs its<br>own reviewed run and fresh evidence directory.<br><br>For each exact tuple, retain the configuration hash, provider/launcher/bwrap<br>versions, policy hash, executable digests, account and home identity, model,<br>tool inventory, sanitized captures, bounded usage and funding, and the<br>`index.json` and per-tuple `certification.json` files. Every assertion must name<br>an artifact and its digest. Missing observations stay uncertified. Check refresh,<br>readback, durable replay, no automatic redispatch, active cancellation and absence<br>of surviving descendants. A failure in one tuple cannot authorize it through a<br>passing tuple from the other provider.<br><br>The Codex coordinator profile includes three inert MCP resource tools by<br>controller ruling, Amadan discussion 7: `list_mcp_resources`,<br>`list_mcp_resource_templates`, and `read_mcp_resource`. Its only MCP server<br>exposes no resources. Require those tools plus the scoped Equipo coordinator<br>tools, with no shell, file, search, image or delegation capability. Claude has no<br>native-tool exception. Record an actual structured question and its answer for<br>both coordinator profiles.<br><br>The current `ManifestCandidate` deliberately excludes coordinator-only evidence.<br>Do not treat its specialist candidate as coordinator release approval. The<br>controller must review complete coordinator evidence and the release promotion<br>path before removing the corresponding `uncertified_policies` entries. Keep<br>`ActionCertified` false for any pending action. No handwritten certificate or<br>fixture digest can replace live evidence.<br><br>After certification and human release approval, Paul installs a versioned release<br>and explicitly enables execution for the disposable instance. Use two fixture<br>people in separate browser sessions and manual personal connection choices:<br><br>&#124; Check &#124; Paul does &#124; Expected evidence &#124;<br>&#124; --- &#124; --- &#124; --- &#124;<br>&#124; Bug &#124; Send “Fix the failing test in the disposable project.” Choose the project when asked, inspect and approve the plan. &#124; One task and thread, frozen reproduction, candidate commit, review from a family independent of every retained builder, checks on that exact candidate, review-branch head and description readback. &#124;<br>&#124; Feature &#124; Send “Add the small feature described in the acceptance document.” Edit a future step and correct the project before it starts. Approve the current plan. &#124; Revision conflict for a stale edit, unchanged started steps, frozen acceptance, exact candidate review/checks, publication readback. &#124;<br>&#124; Recommendation &#124; Send “Recommend one improvement and cite the project document.” Choose one permitted family. &#124; One answer with source IDs, revisions and content hashes. No branch or pretend software-fix evidence. &#124;<br>&#124; Question and thread &#124; Answer a current question, then explicitly route a private reply to the task thread. Read it as the other person. &#124; One answer effect, one routed reply, shared discussion visible to both, private history and preferences isolated. &#124;<br>&#124; Preference &#124; Confirm, correct and delete a preference, then start a fresh turn. &#124; Only the current confirmed value enters instructions. Team rules and authority remain unchanged. &#124;<br>&#124; Interrupted turn &#124; Stop the runner during one admitted coordinator turn, then restart it. &#124; No duplicate task, turn, tool effect or delivery. Unknown usage remains charged. A contained uncertain turn blocks its queue until Paul explicitly chooses retry or reset. &#124;<br>&#124; Cancel &#124; Cancel active work, wait for containment, then inspect its state. &#124; Cancellation acknowledgement, no new work for the cancelled attempt, no surviving process or retained account lease. &#124;<br>&#124; Manual merge &#124; Inspect the published branch, diff, review and checks. Merge it personally, then acknowledge the merge in Equipo. &#124; The app waits for the decision owner. Before Paul's merge the default branch has not moved. Record the merge commit and acknowledgement. &#124;<br><br>Record the run ID, release commit/version, task IDs, plan revisions, actual<br>provider families and accounts, candidate/review/check hashes, readback records,<br>question and cancellation outcomes, and Paul's merge reference in the controller<br>report. Stop the disposable instance and runner, verify that their children have<br>exited, and remove only scratch created for this run. Preserve the private evidence<br>bundle and the dedicated homes. Do not publish secrets or sign-in links. | 11, 17, 21 | Document section; COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context) |
| `docs/superpowers/plans/LIVE-GATE-plan-3.md / Install and pair a runner` | ### Install and pair a runner<br><br>COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context). Not run by Task 21. Paul and a teammate each run this<br>checklist with their own browser session, runner state and dedicated provider<br>accounts. Record two separate results. Neither person uses the other<br>person's bearer, account homes or saved bindings.<br><br>Before installing, the controller reviews the branch, the complete Plan 3 copy<br>inventory and the 3a policy evidence above. Both versioned release targets must<br>pass `copy-release-check` and `direct-release-check`. Empty certificates or any<br>remaining uncertified policy block this gate. Use Linux/amd64 for each runner<br>and Linux/arm64 for the instance. Mac is a browser client only; hosted and Mac<br>runner choices must have no launch action. No release was prepared by Task 21.<br><br>The owner creates an invitation for the teammate. The teammate verifies that<br>email address and accepts it. Choose a provider in onboarding, close the browser,<br>then reopen onboarding. The saved stage and provider must remain. Ask the owner<br>to assign the disposable project's work decision to the person running this<br>exercise, its merge decision to the person who will merge, and explicit bounded<br>team/project/coordinator budgets. Stop if the instance cannot report a budget.<br><br>On each Linux runner, use the generated installation command from onboarding.<br>For an auditable local copy, these are its equivalent steps. Fill in the reviewed<br>immutable release, HTTPS origin and instance ID; do not use `latest` or `dev`.<br>The bootstrap needs curl, Python 3 and sha256sum. The configured provider,<br>code-mode host, bubblewrap, Go, Git and Amadan executables must match the release<br>and its pinned checks. Keep their explicit path settings in the terminal.<br><br>```bash<br>set -euo pipefail<br>umask 077<br>: "${TMPDIR:?Set on-disk scratch}"<br>: "${EQUIPO_ORIGIN:?Set the reviewed HTTPS instance origin}"<br>: "${EQUIPO_INSTANCE_ID:?Copy the instance ID from onboarding}"<br>: "${EQUIPO_RELEASE_VERSION:?Set the reviewed immutable release}"<br>equipo_gate_dir=$(mktemp -d "$TMPDIR/equipo-3b-install-XXXXXXXX")<br>trap 'rm -rf "$equipo_gate_dir"' EXIT<br>curl --fail --silent --show-error --proto '=https' --tlsv1.2 \<br> "$EQUIPO_ORIGIN/releases/$EQUIPO_RELEASE_VERSION/install-v1.sh" \<br> -o "$equipo_gate_dir/install-v1.sh"<br>sh "$equipo_gate_dir/install-v1.sh" \<br> "$EQUIPO_ORIGIN" "$EQUIPO_RELEASE_VERSION" "$EQUIPO_INSTANCE_ID"<br>```<br><br>Check or edit the actual machine label at the terminal, then type `yes` to enrol.<br>Type the code printed by the runner into the signed-in pairing page. Check the<br>returned machine label and server request time before approving. Opening a link<br>with a code in its query must not prefill or approve it. The runner consumes its<br>one-use proof and saves its own credential. Keep that credential private.<br><br>Collect the release version/digests, architecture, actual label and pairing time,<br>plus these outcomes:<br><br>- A missing namespace prerequisite or AppArmor restriction fails containment<br> preflight before service enablement. Record the diagnostic, correct the host<br> configuration through its administrator, and rerun. Do not use an unconfined<br> fallback. Do not deliberately alter a shared host to manufacture this failure.<br>- `systemctl --user status equipo-runner.service` reports the installed release.<br> With lingering disabled, onboarding and the terminal report that the runner<br> stops at logout. They must not promise persistent service. If persistence is<br> needed, the host administrator enables it separately.<br>- Before login, the runner remains paired but has no usable account. Reopening<br> onboarding must distinguish pairing from account availability. | 11, 17, 21 | Document section; COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context) |
@@ -7851,3 +7851,41 @@ existing race in the Codex reading fixture: the probe could stop the fake CLI
after its answer but before its marker write. The fixture now writes its
marker before answering. The failed hosted test is the reproduction; the
same targeted test passes repeatedly after the ordering fix.
+
+## Delegated device API copy pass, 2026-11-19
+
+Paul delegated review of exactly the four device API sections marked pending
+in the inventory. Their revised text matches `docs/api/equipo-v1.md`, and
+only those rows received the Astra acceptance marker for 2026-11-19.
+Code samples and all other API sections are unchanged.
+
+The introduction distinguishes browser and device handlers. The retry
+section scopes the header and JSON limits to the earlier API. Reconnect
+instructions name the answer headers and distinguish earlier questions from
+engine questions. The device section corrects authentication exceptions,
+error bodies, snapshot and event fields, retry comparisons and UTF-8 delta
+offsets. It states the device JSON, message, key and upload limits.
+
+Checked against `internal/wire/wireschema`, the person API and chat handlers,
+their stores, and `internal/plan3test/person_api_device_contract_test.go`.
+The inventory test accepts the new marker only for these four section keys.
+No runtime copy or API behavior changed.
+
+Verification (Go commands used `CGO_ENABLED=0`; temporary files stayed under
+`../device-copy-work.ltq5wv`, with default Go caches):
+
+| Command | Result |
+|---|---|
+| `python3 scripts/plan3-copy-check.py` | Exit 1 before review; exit 0 after acceptance |
+| `go test ./internal/plan3test -run '^TestPlan3ReleaseBoundaries/inventory$' -count=1` | Exit 1 after marking the reviewed rows, before adding their scoped allowance. A temporary acceptance marker on the unreviewed “Sign in a device” row also failed. Restored byte-for-byte; final exit 0 |
+| `go test ./internal/plan3test -run '^TestPlan3ReleaseBoundaries/(inventory\|copy\|API)$\|^TestPersonAPIDevice(Contract\|Probes)$' -count=1` | Exit 0; inventory, copy refusal fixtures, route contract and device probes pass |
+| `make copy-release-check` | Exit 0 |
+| `go test ./internal/equipotest -run '^TestReleasePinsAndProvenance/(release\|release-runner)/(pending_plan3_docs\|missing_plan3_inventory)$' -count=1` | Exit 0; both release targets refuse pending API docs and a missing inventory |
+| `make fmt-check` | Exit 0 |
+| `python3 scripts/runner-dead-references.py` | Exit 0 |
+
+A separate comparison confirmed that exactly four API sections and four
+inventory rows changed, each row reproduces its section, code samples are
+unchanged, and prose uses curly quotes without em dashes. The test search
+found Markdown readers in `plan3_release_test.go` and release packaging
+fixtures in `runner_release_test.go`; the relevant tests above cover both.
diff --git a/internal/plan3test/plan3_release_test.go b/internal/plan3test/plan3_release_test.go
index 06c2ef2e..df651b68 100644
--- a/internal/plan3test/plan3_release_test.go
+++ b/internal/plan3test/plan3_release_test.go
@@ -186,9 +186,15 @@ func plan3CopyInventory(t *testing.T) {
acceptedReportActions := slices.Contains([]string{"roster.talk", "roster.round_busy", "roster.round_done", "roster.merge_busy", "roster.merge_done"}, key) && strings.HasSuffix(strings.TrimSuffix(cells[3], " |"), "COPY ACCEPTED BY DELEGATION (Astra, 2026-11-15)")
// Luna's delegated pass on the boot refusal for CARLOS mail submission.
acceptedInjection := slices.Contains([]string{"autonomy.title", "autonomy.lede", "autonomy.auto_merge_ci", "autonomy.auto_merge_ci_help", "autonomy.public_previews", "autonomy.public_previews_help", "autonomy.empty", "work.reason.base_checks_failed", "chat.merge.not.base_failed", "chat.merge.not.base_checks", "chat.merge.not.gates", "chat.merge.not.review_truncated", "work.reason.base_gate_unavailable", "work.reason.preview_secrets", "work.reason.preview_scanner", "work.reason.preview_public_disabled", "work.reason.preview_host", "work.reason.preview_headers", "autonomy.auto_merge_sensitive", "autonomy.auto_merge_sensitive_help", "work.reason.preview_header_missing", "preview.unsafe_question", "preview.unsafe_help", "preview.unsafe_open", "preview.wrapper_title"}, key) && strings.HasSuffix(strings.TrimSuffix(cells[3], " |"), "COPY ACCEPTED BY DELEGATION (Astra, 2026-11-19)")
+ acceptedDeviceAPI := slices.Contains([]string{
+ "docs/api/equipo-v1.md / COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)",
+ "docs/api/equipo-v1.md / Retry writes and handle revisions",
+ "docs/api/equipo-v1.md / Reconnect and answer questions",
+ "docs/api/equipo-v1.md / Talk to your Coordinator from a device",
+ }, key) && strings.HasSuffix(strings.TrimSuffix(cells[3], " |"), "COPY ACCEPTED BY DELEGATION (Astra, 2026-11-19)")
acceptedMail := key == "copyMissingSMTP" && strings.HasSuffix(strings.TrimSuffix(cells[3], " |"), "COPY ACCEPTED BY DELEGATION (Luna, 2026-11-17)")
acceptedCopy := strings.TrimSuffix(cells[3], " |") == "COPY ACCEPTED BY DELEGATION (Copy, record-bound) sha256:"+copydesk.Hash(rows[key])
- if !acceptedInjection && !acceptedMail && !acceptedAccess && !acceptedPlacementEdges && !acceptedPlacement && !acceptedReportActions && !acceptedRoster && !acceptedCopy && !strings.Contains(cells[3], "COPY REVIEW REQUIRED") && !acceptedAll && !acceptedGuide && !acceptedRound2 && !acceptedStarter && !acceptedDelegation && !approvedPublish && !approvedAssistant && !approvedJobs && !approvedOficina {
+ if !acceptedDeviceAPI && !acceptedInjection && !acceptedMail && !acceptedAccess && !acceptedPlacementEdges && !acceptedPlacement && !acceptedReportActions && !acceptedRoster && !acceptedCopy && !strings.Contains(cells[3], "COPY REVIEW REQUIRED") && !acceptedAll && !acceptedGuide && !acceptedRound2 && !acceptedStarter && !acceptedDelegation && !approvedPublish && !approvedAssistant && !approvedJobs && !approvedOficina {
t.Fatal("entry has no copy review status or applicable acceptance", key)
}
}