| 1 | # Paused work: Base's half |
| 2 | |
| 3 | Paul approved "clearer paused work" on 2026-11-24 (mockups |
| 4 | `polish-audit/paused-work/b/`, copy `copy-review/strings-final.json`). |
| 5 | Equipo owns the contract: `oficina/equipo` `feat/paused-work`, |
| 6 | `docs/api/equipo-v1.md` ("Talk to the Assistant") and its spec |
| 7 | `docs/superpowers/specs/2026-11-24-paused-work-design.md`. |
| 8 | |
| 9 | ## What Base does |
| 10 | |
| 11 | - **Opts in.** Every snapshot and event stream asks for |
| 12 | `job_states=paused`. Without it Equipo sends a paused job as `working` |
| 13 | with the same words. |
| 14 | - **Draws a paused job.** The pill has a still clock mark on `--st-pause` |
| 15 | (`#4B55C9` light, `#AEB8FF` dark; its icon is 6.1:1 and 7.9:1) and |
| 16 | Equipo's `result` as its status. The job view shows `detail`, and |
| 17 | "Carry on now" (`assistant.job.carry_on`) with |
| 18 | `assistant.job.carry_on_note` under it when the card has `carry_on`. |
| 19 | Base shows Equipo's words as given: they are already in the person's |
| 20 | time zone. |
| 21 | - **Draws stopped as a square.** It used to be two pause bars. Paused and |
| 22 | stopped have to look different. |
| 23 | - **Relays Carry on now.** `POST /ask/cards/{id}/carry_on` (see |
| 24 | `docs/api/base-native-v1.md`). The key is kept until an answer settles |
| 25 | the outcome. A 409 (`card_stale`, `not_paused`, `carry_on_unavailable`) |
| 26 | or a 404 reads the conversation afresh and is never resent. A failure |
| 27 | the person can retry says so inside the job view, next to the button, |
| 28 | because a phone's sheet covers the status line. A screen reader hears |
| 29 | it once: on the web from the view's one live region (the status line |
| 30 | stays quiet), and in the app as an accessibility announcement. |
| 31 | - **Tells Equipo the team's zone.** It sends `PUT |
| 32 | /api/v1/assistant/time-zone {"time_zone": BASE_TIMEZONE, |
| 33 | "only_if_unset": true}`, so a zone from the person's own device wins. It |
| 34 | sends it once per member each time Base starts and again on a new |
| 35 | connection. The call runs in the background with a 5 s bound, so it |
| 36 | never holds up a page or the member's lock. Base remembers any 2xx, and |
| 37 | any 4xx except 404 and 429. After a 5xx, a 429, a 404 (an Equipo |
| 38 | without the route yet, so the order of deploys doesn't matter) or a |
| 39 | timeout, it waits an hour before trying again. |
| 40 | - **Default zone.** `BASE_TIMEZONE` defaults to `Europe/Dublin` (Paul's |
| 41 | ruling). |
| 42 | |
| 43 | ## Not in this change (deferred) |
| 44 | |
| 45 | - **"Change the limit"** (`assistant.job.change_limit`, approved in |
| 46 | `paused-budget-view.html`, copy reviewed). Equipo's job card has no link |
| 47 | for it yet. When Equipo sends one (a card link with its own `rel`), Base |
| 48 | draws it in the job view of a spending-limit pause. |
| 49 | - **"Paused until 21:00 tonight" in the view** |
| 50 | (`assistant.job.paused_view`). The contract has a single `result`, so |
| 51 | the view repeats the pill's "Paused until 21:00". |
| 52 | - **The person's own zone from Base's clients.** Base sends the team's |
| 53 | zone only when the person has none. Relaying the browser's or the app's |
| 54 | own zone is for later. |
| 55 | - **Older clients of Base.** Base opts in for all of its clients. A tab |
| 56 | still running the old `ask.js` ignores a paused job until it reloads, |
| 57 | and a native build from before this change would drop it. No native |
| 58 | build has shipped yet. |
| 59 | |