oficina / equipo Public

Record Paul's approval of the glance API copy

Remove the copy-review marker from the glance paragraph, refresh the
Talk to the Assistant inventory row and accept its approval marker
(copy-review mbvzxmewxxgud4ksakdb2m7pye, 2026-11-14).
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Paul Campbell pushed by paul@keymail.dev 4d5172973eb279179e406c95e8bccdca590e1e77 parent 07a3e63
3 files changed, +2 −3
  • docs/api/equipo-v1.md +0 −1
  • docs/superpowers/plans/CONTROLLER-REPORT-plan-3.md +1 −1
  • internal/plan3test/plan3_release_test.go +1 −1

CI passed — run details

diff --git a/docs/api/equipo-v1.md b/docs/api/equipo-v1.md
index be51d82f..e0b28e40 100644
--- a/docs/api/equipo-v1.md
+++ b/docs/api/equipo-v1.md
@@ -90,7 +90,6 @@ A new message is `201`, with the message and its turn. The same key and text aga
Follow the conversation with `GET /api/v1/assistant/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, whose own `data` field holds the message, turn, delta, glance, card or activity. The types are `message`, `turn`, `delta`, `glance`, `card` and `activity`, and a `ping` comes every 20 seconds. A cursor that is too old is `410 cursor_expired`. Read the snapshot again and follow from its cursor.
-<!-- COPY REVIEW REQUIRED -->
When a turn that answers you starts, a `glance` event may come first: one short line to show while the Assistant works on its answer, such as "Looking into your invoices". Its `data` has `turn_id` and `text`. The text is one line of at most 8 words and 60 characters, with no markdown. Show it for the turn until the turn's first `delta` or its message arrives. A glance is never a message, and nothing keeps it: only a stream open at the time gets it, with no `id:` line and a `cursor` of 0, and reading the events again does not bring it back. Not every turn has one, none comes after the turn's first `delta` or once the turn has ended, and a `team_update` turn never has one. Glances need your runner on protocol 23 or later.
A message has `role` `person` or `assistant`. A turn's `kind` is empty when it answers you, and `team_update` when the Assistant tells you, on its own, what the team did with something you asked for. A `team_update` turn may end with no message: its state is `replied` and its `reply_id` is empty. Cancel a turn in flight with `POST /api/v1/assistant/turns/{id}/cancel` and an empty JSON object. The answer is `202` with the turn's `attempt`, or `409 turn_ended` once the turn has ended.
diff --git a/docs/superpowers/plans/CONTROLLER-REPORT-plan-3.md b/docs/superpowers/plans/CONTROLLER-REPORT-plan-3.md
index c497a14f..9cbbdec9 100644
--- a/docs/superpowers/plans/CONTROLLER-REPORT-plan-3.md
+++ b/docs/superpowers/plans/CONTROLLER-REPORT-plan-3.md
@@ -6543,7 +6543,7 @@ records remain unchanged.
| `assistant.outcome.publish_failed` | Your site could not be published. | Assistant Publish card's result when nothing was published (assistant, 2026-11-13) | Runtime; COPY APPROVED (Paul, 2026-11-13, copy-review jbltdd2mvwblrz4en6xfhv6d2y, unchanged) |
| `assistant.outcome.publish_declined` | Your site was not published. | Assistant Publish card's result after Not now (assistant, 2026-11-13) | Runtime; COPY APPROVED (Paul, 2026-11-13, copy-review jbltdd2mvwblrz4en6xfhv6d2y, unchanged) |
| `assistant.outcome.publish_site` | Open your site | Assistant Publish card: the published site link's label (assistant, 2026-11-13) | Runtime; COPY APPROVED (Paul, 2026-11-13, copy-review jbltdd2mvwblrz4en6xfhv6d2y, unchanged) |
-| `docs/api/equipo-v1.md / Talk to the Assistant` | ## Talk to the Assistant<br><br>The routes under `/api/v1/assistant` serve Base's chat with the Assistant. Every route, `events` included, takes only `Authorization: Bearer &lt;token&gt;` with a person device token (audience `equipo.person.v1`). A session cookie is not accepted, and a request without a bearer gets `401 unauthenticated`. Every response has `Cache-Control: no-store`. Errors have the same body as the rest of this API: `code`, `copy_key`, `request_id` and, where it applies, `current_revision`.<br><br>The Assistant keeps its own conversation. Its messages, turns, cards and events never appear in the Coordinator's, and an ID from the Coordinator's conversation is `404 not_found` on every Assistant route.<br><br>Start with `GET /api/v1/assistant/snapshot`. It returns `me`, the newest messages and their turns, the cards, the event `cursor`, and `available`. `available` is false when you have no runner of your own, or when your runner needs an update before it can answer the Assistant. Read older messages with `GET /api/v1/assistant/messages?before=&lt;message ID&gt;&amp;limit=&lt;count&gt;`. `limit` is 1 to 200 and defaults to 50. The `before` in the response is the cursor for the page before; it is empty at the start of the conversation.<br><br>Send a message with `POST /api/v1/assistant/messages` and a key of your choosing, 1 to 128 bytes, in the body:<br><br>```json<br>{"text":"What can I do here?","idempotency_key":"&lt;a new key for each message&gt;"}<br>```<br><br>A new message is `201`, with the message and its turn. The same key and text again return `200` with the same result; the same key with other text is `409 idempotency_conflict`. Without a runner of your own the answer is `409 no_runner`, and with a runner that needs an update it is `409 runner_too_old`. Nothing is stored in either case. The Assistant takes words only, so a message with `attachments` is `422 invalid_input`.<br><br>Follow the conversation with `GET /api/v1/assistant/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, whose own `data` field holds the message, turn, delta, card or activity. The types are `message`, `turn`, `delta`, `card` and `activity`, and a `ping` comes every 20 seconds. A cursor that is too old is `410 cursor_expired`. Read the snapshot again and follow from its cursor.<br><br>A message has `role` `person` or `assistant`. A turn's `kind` is empty when it answers you, and `team_update` when the Assistant tells you, on its own, what the team did with something you asked for. A `team_update` turn may end with no message: its state is `replied` and its `reply_id` is empty. Cancel a turn in flight with `POST /api/v1/assistant/turns/{id}/cancel` and an empty JSON object. The answer is `202` with the turn's `attempt`, or `409 turn_ended` once the turn has ended.<br><br>A card has `id`, `revision`, `kind`, `state`, `question`, `options`, `links` and `result`. Its kind is `question`, `confirm`, `outcome`, `connect` or `job`. A `job` card has states of its own, below; any other card is `open`, `answered` or `resolved`. `options` and `links` are always arrays, never null. A link has `label` and `url`, and may have `rel`: `rel: "equipo"` marks a link to the job's page in Equipo. Answer an open card with `POST /api/v1/assistant/cards/{id}/answer`, one option's `value` and the card's revision:<br><br>```json<br>{"choice":"Yes","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: treat that as no new turn. 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`. Answering a `question` card also needs your runner, so it can be `409 no_runner` or `409 runner_too_old`.<br><br>When you ask for real work, such as building or fixing something, the Assistant hands it off as a job with a short title and sees it through. It answers questions about the job itself when your conversation already holds the answer, and asks you only when it does not. If the job stops, it tries to get it going again before telling you. It speaks up when the job is ready, done or stuck, or when it needs your answer, and otherwise stays quiet: the job card shows how the job is going.<br><br>Each job has one `job` card, updated in place as the work goes on, so the same card `id` comes again in `card` events with a higher `revision`. Its `question` is the job's title, `result` its short status, `detail` one sentence more, and `started_at` when it began. Its state is `working`, `asking`, `ready`, `done` or `stopped`. A job card takes no answer: answering one is `404 not_found`. Its links may include something to try, the published site, and the job's page in Equipo. A go-ahead or Publish card for a job carries `job`, the job card's `id`. `job`, `detail` and `started_at` are left out when they do not apply.<br><br>A job runs in its own thread, which you can follow in Equipo. Its messages, turns and cards never appear in the conversation that `/api/v1/snapshot` returns. Handing work off needs your runner on protocol 22 or later. A runner on protocol 19, 20 or 21 can still answer the Assistant, but cannot start a job.<br><br>Tell Equipo where your Base operations live with `PUT /api/v1/assistant/host`:<br><br>```json<br>{"origin":"https://base.example","token":"&lt;token from Base&gt;"}<br>```<br><br>The origin is `https://` and a host name with no path, or `http://` on loopback only. It must be on the instance's `EQUIPO_ASSISTANT_HOSTS` list, or the answer is `403 host_not_allowed`. The token is 20 to 512 visible ASCII characters, with no spaces. The answer is `200` with `origin` and `revision`; the token is never given back. A second `PUT` replaces the first. | API doc: the Assistant's routes under /api/v1/assistant, for Base, now with jobs and job threads (assistant, 2026-11-13) | API; COPY APPROVED (Paul, 2026-11-14, copy-review cvaxhn3pwgpxhpssj5cgizqtrq) |
+| `docs/api/equipo-v1.md / Talk to the Assistant` | ## Talk to the Assistant<br><br>The routes under `/api/v1/assistant` serve Base's chat with the Assistant. Every route, `events` included, takes only `Authorization: Bearer &lt;token&gt;` with a person device token (audience `equipo.person.v1`). A session cookie is not accepted, and a request without a bearer gets `401 unauthenticated`. Every response has `Cache-Control: no-store`. Errors have the same body as the rest of this API: `code`, `copy_key`, `request_id` and, where it applies, `current_revision`.<br><br>The Assistant keeps its own conversation. Its messages, turns, cards and events never appear in the Coordinator's, and an ID from the Coordinator's conversation is `404 not_found` on every Assistant route.<br><br>Start with `GET /api/v1/assistant/snapshot`. It returns `me`, the newest messages and their turns, the cards, the event `cursor`, and `available`. `available` is false when you have no runner of your own, or when your runner needs an update before it can answer the Assistant. Read older messages with `GET /api/v1/assistant/messages?before=&lt;message ID&gt;&amp;limit=&lt;count&gt;`. `limit` is 1 to 200 and defaults to 50. The `before` in the response is the cursor for the page before; it is empty at the start of the conversation.<br><br>Send a message with `POST /api/v1/assistant/messages` and a key of your choosing, 1 to 128 bytes, in the body:<br><br>```json<br>{"text":"What can I do here?","idempotency_key":"&lt;a new key for each message&gt;"}<br>```<br><br>A new message is `201`, with the message and its turn. The same key and text again return `200` with the same result; the same key with other text is `409 idempotency_conflict`. Without a runner of your own the answer is `409 no_runner`, and with a runner that needs an update it is `409 runner_too_old`. Nothing is stored in either case. The Assistant takes words only, so a message with `attachments` is `422 invalid_input`.<br><br>Follow the conversation with `GET /api/v1/assistant/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, whose own `data` field holds the message, turn, delta, glance, card or activity. The types are `message`, `turn`, `delta`, `glance`, `card` and `activity`, and a `ping` comes every 20 seconds. A cursor that is too old is `410 cursor_expired`. Read the snapshot again and follow from its cursor.<br><br>When a turn that answers you starts, a `glance` event may come first: one short line to show while the Assistant works on its answer, such as "Looking into your invoices". Its `data` has `turn_id` and `text`. The text is one line of at most 8 words and 60 characters, with no markdown. Show it for the turn until the turn's first `delta` or its message arrives. A glance is never a message, and nothing keeps it: only a stream open at the time gets it, with no `id:` line and a `cursor` of 0, and reading the events again does not bring it back. Not every turn has one, none comes after the turn's first `delta` or once the turn has ended, and a `team_update` turn never has one. Glances need your runner on protocol 23 or later.<br><br>A message has `role` `person` or `assistant`. A turn's `kind` is empty when it answers you, and `team_update` when the Assistant tells you, on its own, what the team did with something you asked for. A `team_update` turn may end with no message: its state is `replied` and its `reply_id` is empty. Cancel a turn in flight with `POST /api/v1/assistant/turns/{id}/cancel` and an empty JSON object. The answer is `202` with the turn's `attempt`, or `409 turn_ended` once the turn has ended.<br><br>A card has `id`, `revision`, `kind`, `state`, `question`, `options`, `links` and `result`. Its kind is `question`, `confirm`, `outcome`, `connect` or `job`. A `job` card has states of its own, below; any other card is `open`, `answered` or `resolved`. `options` and `links` are always arrays, never null. A link has `label` and `url`, and may have `rel`: `rel: "equipo"` marks a link to the job's page in Equipo. Answer an open card with `POST /api/v1/assistant/cards/{id}/answer`, one option's `value` and the card's revision:<br><br>```json<br>{"choice":"Yes","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: treat that as no new turn. 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`. Answering a `question` card also needs your runner, so it can be `409 no_runner` or `409 runner_too_old`.<br><br>When you ask for real work, such as building or fixing something, the Assistant hands it off as a job with a short title and sees it through. It answers questions about the job itself when your conversation already holds the answer, and asks you only when it does not. If the job stops, it tries to get it going again before telling you. It speaks up when the job is ready, done or stuck, or when it needs your answer, and otherwise stays quiet: the job card shows how the job is going.<br><br>Each job has one `job` card, updated in place as the work goes on, so the same card `id` comes again in `card` events with a higher `revision`. Its `question` is the job's title, `result` its short status, `detail` one sentence more, and `started_at` when it began. Its state is `working`, `asking`, `ready`, `done` or `stopped`. A job card takes no answer: answering one is `404 not_found`. Its links may include something to try, the published site, and the job's page in Equipo. A go-ahead or Publish card for a job carries `job`, the job card's `id`. `job`, `detail` and `started_at` are left out when they do not apply.<br><br>A job runs in its own thread, which you can follow in Equipo. Its messages, turns and cards never appear in the conversation that `/api/v1/snapshot` returns. Handing work off needs your runner on protocol 22 or later. A runner on protocol 19, 20 or 21 can still answer the Assistant, but cannot start a job.<br><br>Tell Equipo where your Base operations live with `PUT /api/v1/assistant/host`:<br><br>```json<br>{"origin":"https://base.example","token":"&lt;token from Base&gt;"}<br>```<br><br>The origin is `https://` and a host name with no path, or `http://` on loopback only. It must be on the instance's `EQUIPO_ASSISTANT_HOSTS` list, or the answer is `403 host_not_allowed`. The token is 20 to 512 visible ASCII characters, with no spaces. The answer is `200` with `origin` and `revision`; the token is never given back. A second `PUT` replaces the first. | API doc: the Assistant's routes under /api/v1/assistant, for Base, now with jobs and job threads (assistant, 2026-11-13) | API; COPY APPROVED (Paul, 2026-11-14, copy-review mbvzxmewxxgud4ksakdb2m7pye) |
| `copy.title` | Copy | Copy specialist | COPY ACCEPTED BY DELEGATION (Astra, 2026-11-13) |
| `copy.lede` | Choose which projects Copy can review for you. | Copy specialist | COPY ACCEPTED BY DELEGATION (Astra, 2026-11-13) |
diff --git a/internal/plan3test/plan3_release_test.go b/internal/plan3test/plan3_release_test.go
index 4589e5af..2c4a79df 100644
--- a/internal/plan3test/plan3_release_test.go
+++ b/internal/plan3test/plan3_release_test.go
@@ -176,7 +176,7 @@ func plan3CopyInventory(t *testing.T) {
// Paul's own review of the Assistant lane's strings and API section.
approvedAssistant := strings.HasSuffix(strings.TrimSuffix(cells[3], " |"), "COPY APPROVED (Paul, 2026-11-13, copy-review jbltdd2mvwblrz4en6xfhv6d2y, unchanged)") || strings.HasSuffix(strings.TrimSuffix(cells[3], " |"), "COPY APPROVED (Paul, 2026-11-13, copy-review 64nswfjbrpsw2pezhyi7y3nenq, unchanged)") || strings.HasSuffix(strings.TrimSuffix(cells[3], " |"), "COPY APPROVED (Paul, 2026-11-13, copy-review c3ipwcupsvwv7rpbj2kdbgrsyy, unchanged)")
// Paul's own review of the jobs strings and the API section's job prose.
- approvedJobs := strings.HasSuffix(strings.TrimSuffix(cells[3], " |"), "COPY APPROVED (Paul, 2026-11-14, copy-review cvaxhn3pwgpxhpssj5cgizqtrq, unchanged)") || strings.HasSuffix(strings.TrimSuffix(cells[3], " |"), "COPY APPROVED (Paul, 2026-11-14, copy-review cvaxhn3pwgpxhpssj5cgizqtrq)")
+ approvedJobs := strings.HasSuffix(strings.TrimSuffix(cells[3], " |"), "COPY APPROVED (Paul, 2026-11-14, copy-review cvaxhn3pwgpxhpssj5cgizqtrq, unchanged)") || strings.HasSuffix(strings.TrimSuffix(cells[3], " |"), "COPY APPROVED (Paul, 2026-11-14, copy-review cvaxhn3pwgpxhpssj5cgizqtrq)") || strings.HasSuffix(strings.TrimSuffix(cells[3], " |"), "COPY APPROVED (Paul, 2026-11-14, copy-review mbvzxmewxxgud4ksakdb2m7pye)")
acceptedRoster := strings.HasPrefix(key, "roster.") && strings.HasSuffix(strings.TrimSuffix(cells[3], " |"), "COPY ACCEPTED BY DELEGATION (Astra, 2026-11-14)")
acceptedCopy := strings.TrimSuffix(cells[3], " |") == "COPY ACCEPTED BY DELEGATION (Copy, record-bound) sha256:"+copydesk.Hash(rows[key])
if !acceptedRoster && !acceptedCopy && !strings.Contains(cells[3], "COPY REVIEW REQUIRED") && !acceptedAll && !acceptedGuide && !acceptedRound2 && !acceptedStarter && !acceptedDelegation && !approvedPublish && !approvedAssistant && !approvedJobs {