| 1 | # Paused work: why it stopped, and what you can do |
| 2 | |
| 3 | Status: approved by Paul, 2026-11-24 (Option 2, "recommended", and all five |
| 4 | recommendations). Mockups: `polish-audit/paused-work/` (e/*.html, b/*.html). |
| 5 | Copy: Luna's review, `copy-review/strings-final.json` (46 strings). |
| 6 | |
| 7 | ## The problem |
| 8 | |
| 9 | Paul saw a report card whose stepper said **In progress** in green, its dot |
| 10 | pulsing, while nothing ran: Engineering's step was held for his Claude |
| 11 | allowance. The only sign was a grey line, "Waiting for your Claude allowance |
| 12 | to reset Tue 21:00 UTC". Base said the same job was "Building it". Nothing |
| 13 | said that Codex had room, and Run it now anyway lived only on the task page. |
| 14 | |
| 15 | ## Decisions (binding) |
| 16 | |
| 17 | 1. **Option 2.** On the conversation's report card and the task page a held |
| 18 | step shows: |
| 19 | - the stepper's current stop reads **Paused** in calm indigo, with a still |
| 20 | pause mark in its dot (never only colour), not green, not pulsing; |
| 21 | - a lead line naming what stopped and when it resumes, local time and |
| 22 | relative: "Paused until 21:00 tonight (in 9 hours): your Claude |
| 23 | allowance has run out" (bold up to the time); |
| 24 | - a "what happens next" line ("It carries on by itself then."); |
| 25 | - the single most useful action. |
| 26 | |
| 27 | Colour rule: **indigo** resumes by itself; **amber** with the Needs you |
| 28 | chip only the person can move it; **red** failed ("Stopped at 10:42", |
| 29 | Try again). Every reason the mockups list is covered: |
| 30 | |
| 31 | | Reason | Source | Tone | Stop | Lead / action | |
| 32 | | --- | --- | --- | --- | --- | |
| 33 | | Allowance out | hold `headroom`, connection limited or a window at 100% | indigo | Paused | until + `reason.headroom_out`; Run it now with/on X | |
| 34 | | Allowance kept back | hold `headroom`, below 100% | indigo | Paused | until + `reason.headroom_saving` (largest window %) | |
| 35 | | Budget reached | hold `budget` | indigo | Paused | until (the hold's wake-up) + `reason.budget`; Raise the budget | |
| 36 | | Busy | hold `busy` | indigo | Paused | `moment` + `reason.busy`; no action | |
| 37 | | Runner offline | step queued, placement `waiting_runner` | indigo | Paused | `since` + `reason.offline`; Check the machine | |
| 38 | | Spend unknown | hold `spend_unknown` | amber | Needs you | `lead.spend_unknown`; Resume | |
| 39 | | Nothing can run it | hold `no_connection` | amber | Needs you | `lead.no_connection`; Run it now with X, Connect a model | |
| 40 | | Deadline / no reset (NeedsHeld) | hold `needs_person` | amber | Needs you | the held card's recommendation, local + relative; Run it now with X | |
| 41 | | Runner too old | step failed, `*_update_required`, `*_unsupported`, `*_outdated`, `runner_too_old` | amber | Needs you | `lead.too_old`; Update the runner | |
| 42 | | Step failed | step failed, `work.reason.*` | red | Stopped | `lead.stopped` at the step's end; Try again | |
| 43 | | Review, rounds, conflict, branch moved, direction | `work.needs.*` | amber | Needs you | unchanged words, the lead layout | |
| 44 | |
| 45 | A hold without a known resume time reads "Paused since <held at>" with |
| 46 | the same reason. Copy's own hold card and placement lines are unchanged. |
| 47 | |
| 48 | 2. **The action names the model.** "Run it now with Codex" (Equipo's name for |
| 49 | the connection). The instance predicts what Run now would do by running |
| 50 | `schedule.Decide` itself, with Run now's leave (a release), over the task |
| 51 | creator's connections on the step's runner as last read. It offers: |
| 52 | - another subscription with room: "Run it now with Codex", "Codex has room now"; |
| 53 | - the held subscription's last share: "Run it now on Claude", "Uses some of the last 15%"; |
| 54 | - a metered connection: "Run it now with TensorX", "TensorX bills per use"; |
| 55 | - a hold even with leave, or a prediction it cannot make: no Run now. |
| 56 | |
| 57 | The prediction rides on the task's read shape (`steps[].paused.run_now`), |
| 58 | so the web, native and Base use one answer. The same action is on the |
| 59 | conversation's report card, not only the task page. |
| 60 | |
| 61 | **The promise is kept (review B1, controller ruling).** The prediction |
| 62 | uses the runner's own inputs: Review's Engineer (the family rule), |
| 63 | Research's first pass on the coordinator's family, and a fix round's |
| 64 | kept session. Run now's release is pinned to the predicted connection |
| 65 | (protocol 29: `ReleaseCommand.connection`, a dispatch's |
| 66 | `release_connection`). The runner decides without the leave first; if |
| 67 | that holds, it admits the leave on the pinned connection alone |
| 68 | (`schedule.DecidePinned`), never another family or a metered connection; |
| 69 | if that cannot run either, the step keeps the hold it had (a stale |
| 70 | reading included) and the release waits. Once Run now is written for a |
| 71 | hold it is not offered again, and a second tap answers 409 |
| 72 | `already_running` ("A request to run this work is already in progress."). |
| 73 | A runner below protocol 29 cannot be held to a connection: Encode |
| 74 | refuses a pinned release frame and drops a pinned dispatch's release, |
| 75 | and the instance offers it plain "Run it now anyway" (`run_now.plain`), |
| 76 | naming nothing, with no `carry_on`; when a pay-per-use connection could |
| 77 | take the step it says "This may use a plan that bills per use." |
| 78 | |
| 79 | **The tap carries what was shown (re-review R1).** The web form, the |
| 80 | native call and `wire.RunNow` send `offer`: the offer's connection id, or |
| 81 | `plain`. Run now is predicted again in the same transaction; anything |
| 82 | else (another connection, none, plain against a named offer or the |
| 83 | reverse) is refused, 409 `offer_changed` ("The option to run this work |
| 84 | has changed. Check the current option, then try again."), with nothing |
| 85 | written, and the page redraws with the offer as it is. Base's job card |
| 86 | keeps the connection behind `carry_on: true`; a change moves the card's |
| 87 | revision, so Carry on now on the old revision is `card_stale`, and the |
| 88 | release is pinned to the kept connection. The held card's own Run it |
| 89 | now names nothing and keeps its meaning. The instance's families are |
| 90 | the runner's (`provider.SubscriptionFamily`: Codex is `gpt`). |
| 91 | 3. **Indigo** from Equipo's palette (`--equipo-tone-paused-*`), AA contrast in |
| 92 | light and dark (checked in a test). |
| 93 | 4. **Time zone per person**, default `Europe/Dublin` (Paul, 2026-11-13). |
| 94 | Stored in `chat_person_zones`; `chat.Store.Zone(person)` reads it, so every |
| 95 | day boundary, digest and quiet hour that already asked for the person's |
| 96 | zone now gets it. The web app sends `Intl` quietly once per session or on |
| 97 | change; the native app sends its zone; Base passes its member's. Every |
| 98 | reset and resume time renders in the person's zone with no "UTC" suffix; |
| 99 | live lines add the relative part, history lines (switched, the held card's |
| 100 | stored question) keep the absolute local time. |
| 101 | 5. **Base** (the Assistant lane) gets a `paused` job state, `carry_on`, the |
| 102 | carry_on route and the time-zone route; the contract is in |
| 103 | `docs/api/equipo-v1.md`, "Talk to the Assistant", and below. |
| 104 | 6. **Native** (EquipoKit), the minimum: `ThinStep` decodes `hold` and |
| 105 | `run_now`; `TaskReport` and the stage track show the paused tone, the |
| 106 | lead line and the action, so the app stops showing a false green. |
| 107 | |
| 108 | ## Base contract |
| 109 | |
| 110 | A job card's `state` may be `paused`: a step of the job is held and carries |
| 111 | on by itself. `result` is short instance copy in the person's zone ("Paused |
| 112 | until 21:00", "Paused until midnight", "Paused until Thursday", or "Paused" |
| 113 | when no time is known). `detail` is one plain sentence that never names a |
| 114 | computer, model, runner, Equipo or an allowance. `carry_on` (boolean, absent |
| 115 | when false) says "Carry on now" is available: another plan of the person's |
| 116 | has room at no extra cost. |
| 117 | |
| 118 | `POST /api/v1/assistant/cards/{id}/carry_on` with |
| 119 | `{"revision": 7, "idempotency_key": "<key>"}` runs the held step now: Run |
| 120 | now's release on the predicted connection. `200 {"card": <job card>}`; the |
| 121 | same key again answers `200` with the card as it is now. `409` with the card |
| 122 | as it is now: `card_stale` (another revision), `not_paused`, |
| 123 | `carry_on_unavailable`. `404 not_found` for anything not one of the person's |
| 124 | job cards. |
| 125 | |
| 126 | `PUT /api/v1/assistant/time-zone` with `{"time_zone":"Europe/Dublin"}` (IANA) |
| 127 | sets the person's zone: `200 {"time_zone": "Europe/Dublin"}`, `422 |
| 128 | invalid_input` for a zone Equipo does not know. `PUT /api/v1/time-zone` is the |
| 129 | same for a device. |
| 130 | |
| 131 | **An older Base.** Base before this change keeps only the five states it |
| 132 | knows: it drops a `paused` card from the snapshot (the job vanishes on |
| 133 | reload) and ignores a `paused` event (the pill stays on "Building it"). So |
| 134 | `paused` is sent only to a client that asks for it, with `job_states=paused` |
| 135 | on `GET snapshot` and `GET events`. Any other client gets a paused card as |
| 136 | `working`, with the paused `result` and `detail` and no `carry_on`: the pill |
| 137 | turns, but its words say "Paused until 21:00". |
| 138 | |
| 139 | ## Kept current |
| 140 | |
| 141 | `projectJob` computes the state from the followed tasks' held steps; a hold |
| 142 | report already reaches it (saveTask, taskChanged). The housekeeping minute |
| 143 | (`HousekeepingTick`) reprojects paused job cards, so the relative words and a |
| 144 | zone change follow without a report, and the card moves only when its words |
| 145 | change. |
| 146 | |
| 147 | ## Known gaps |
| 148 | |
| 149 | - A hold that needs the person (spend unknown, nothing that can run it, |
| 150 | the deadline check) reads as working on Base's job card: its held card is |
| 151 | not a question card, so the job is not asking. Base's contract does not |
| 152 | ask for more today. |
| 153 | - A paused job with no known resume time has `result` "Paused" and no |
| 154 | `detail`: there is no reviewed sentence for it. |
| 155 | - A pinned Run now the runner cannot honour (its connection filled) waits |
| 156 | pending until the hold lifts; the page offers nothing more and a tap says |
| 157 | it is already in progress, but nothing says it did not start. |
| 158 | - On an open web page the relative part ("in 9 hours") moves only when the |
| 159 | page redraws on an event; Base's card is reprojected every minute. |
| 160 | |
| 161 | ## Not in this change |
| 162 | |
| 163 | The runner's own scheduling, Copy's hold card, placement lines, a person- |
| 164 | facing zone setting (the zone follows the device), native strings beyond the |
| 165 | paused report. |
| 166 | |