# Paused work: why it stopped, and what you can do

Status: approved by Paul, 2026-11-24 (Option 2, "recommended", and all five
recommendations). Mockups: `polish-audit/paused-work/` (e/*.html, b/*.html).
Copy: Luna's review, `copy-review/strings-final.json` (46 strings).

## The problem

Paul saw a report card whose stepper said **In progress** in green, its dot
pulsing, while nothing ran: Engineering's step was held for his Claude
allowance. The only sign was a grey line, "Waiting for your Claude allowance
to reset Tue 21:00 UTC". Base said the same job was "Building it". Nothing
said that Codex had room, and Run it now anyway lived only on the task page.

## Decisions (binding)

1. **Option 2.** On the conversation's report card and the task page a held
   step shows:
   - the stepper's current stop reads **Paused** in calm indigo, with a still
     pause mark in its dot (never only colour), not green, not pulsing;
   - a lead line naming what stopped and when it resumes, local time and
     relative: "Paused until 21:00 tonight (in 9 hours): your Claude
     allowance has run out" (bold up to the time);
   - a "what happens next" line ("It carries on by itself then.");
   - the single most useful action.

   Colour rule: **indigo** resumes by itself; **amber** with the Needs you
   chip only the person can move it; **red** failed ("Stopped at 10:42",
   Try again). Every reason the mockups list is covered:

   | Reason | Source | Tone | Stop | Lead / action |
   | --- | --- | --- | --- | --- |
   | Allowance out | hold `headroom`, connection limited or a window at 100% | indigo | Paused | until + `reason.headroom_out`; Run it now with/on X |
   | Allowance kept back | hold `headroom`, below 100% | indigo | Paused | until + `reason.headroom_saving` (largest window %) |
   | Budget reached | hold `budget` | indigo | Paused | until (the hold's wake-up) + `reason.budget`; Raise the budget |
   | Busy | hold `busy` | indigo | Paused | `moment` + `reason.busy`; no action |
   | Runner offline | step queued, placement `waiting_runner` | indigo | Paused | `since` + `reason.offline`; Check the machine |
   | Spend unknown | hold `spend_unknown` | amber | Needs you | `lead.spend_unknown`; Resume |
   | Nothing can run it | hold `no_connection` | amber | Needs you | `lead.no_connection`; Run it now with X, Connect a model |
   | Deadline / no reset (NeedsHeld) | hold `needs_person` | amber | Needs you | the held card's recommendation, local + relative; Run it now with X |
   | Runner too old | step failed, `*_update_required`, `*_unsupported`, `*_outdated`, `runner_too_old` | amber | Needs you | `lead.too_old`; Update the runner |
   | Step failed | step failed, `work.reason.*` | red | Stopped | `lead.stopped` at the step's end; Try again |
   | Review, rounds, conflict, branch moved, direction | `work.needs.*` | amber | Needs you | unchanged words, the lead layout |

   A hold without a known resume time reads "Paused since <held at>" with
   the same reason. Copy's own hold card and placement lines are unchanged.

2. **The action names the model.** "Run it now with Codex" (Equipo's name for
   the connection). The instance predicts what Run now would do by running
   `schedule.Decide` itself, with Run now's leave (a release), over the task
   creator's connections on the step's runner as last read. It offers:
   - another subscription with room: "Run it now with Codex", "Codex has room now";
   - the held subscription's last share: "Run it now on Claude", "Uses some of the last 15%";
   - a metered connection: "Run it now with TensorX", "TensorX bills per use";
   - a hold even with leave, or a prediction it cannot make: no Run now.

   The prediction rides on the task's read shape (`steps[].paused.run_now`),
   so the web, native and Base use one answer. The same action is on the
   conversation's report card, not only the task page.

   **The promise is kept (review B1, controller ruling).** The prediction
   uses the runner's own inputs: Review's Engineer (the family rule),
   Research's first pass on the coordinator's family, and a fix round's
   kept session. Run now's release is pinned to the predicted connection
   (protocol 29: `ReleaseCommand.connection`, a dispatch's
   `release_connection`). The runner decides without the leave first; if
   that holds, it admits the leave on the pinned connection alone
   (`schedule.DecidePinned`), never another family or a metered connection;
   if that cannot run either, the step keeps the hold it had (a stale
   reading included) and the release waits. Once Run now is written for a
   hold it is not offered again, and a second tap answers 409
   `already_running` ("A request to run this work is already in progress.").
   A runner below protocol 29 cannot be held to a connection: Encode
   refuses a pinned release frame and drops a pinned dispatch's release,
   and the instance offers it plain "Run it now anyway" (`run_now.plain`),
   naming nothing, with no `carry_on`; when a pay-per-use connection could
   take the step it says "This may use a plan that bills per use."

   **The tap carries what was shown (re-review R1).** The web form, the
   native call and `wire.RunNow` send `offer`: the offer's connection id, or
   `plain`. Run now is predicted again in the same transaction; anything
   else (another connection, none, plain against a named offer or the
   reverse) is refused, 409 `offer_changed` ("The option to run this work
   has changed. Check the current option, then try again."), with nothing
   written, and the page redraws with the offer as it is. Base's job card
   keeps the connection behind `carry_on: true`; a change moves the card's
   revision, so Carry on now on the old revision is `card_stale`, and the
   release is pinned to the kept connection. The held card's own Run it
   now names nothing and keeps its meaning. The instance's families are
   the runner's (`provider.SubscriptionFamily`: Codex is `gpt`).
3. **Indigo** from Equipo's palette (`--equipo-tone-paused-*`), AA contrast in
   light and dark (checked in a test).
4. **Time zone per person**, default `Europe/Dublin` (Paul, 2026-11-13).
   Stored in `chat_person_zones`; `chat.Store.Zone(person)` reads it, so every
   day boundary, digest and quiet hour that already asked for the person's
   zone now gets it. The web app sends `Intl` quietly once per session or on
   change; the native app sends its zone; Base passes its member's. Every
   reset and resume time renders in the person's zone with no "UTC" suffix;
   live lines add the relative part, history lines (switched, the held card's
   stored question) keep the absolute local time.
5. **Base** (the Assistant lane) gets a `paused` job state, `carry_on`, the
   carry_on route and the time-zone route; the contract is in
   `docs/api/equipo-v1.md`, "Talk to the Assistant", and below.
6. **Native** (EquipoKit), the minimum: `ThinStep` decodes `hold` and
   `run_now`; `TaskReport` and the stage track show the paused tone, the
   lead line and the action, so the app stops showing a false green.

## Base contract

A job card's `state` may be `paused`: a step of the job is held and carries
on by itself. `result` is short instance copy in the person's zone ("Paused
until 21:00", "Paused until midnight", "Paused until Thursday", or "Paused"
when no time is known). `detail` is one plain sentence that never names a
computer, model, runner, Equipo or an allowance. `carry_on` (boolean, absent
when false) says "Carry on now" is available: another plan of the person's
has room at no extra cost.

`POST /api/v1/assistant/cards/{id}/carry_on` with
`{"revision": 7, "idempotency_key": "<key>"}` runs the held step now: Run
now's release on the predicted connection. `200 {"card": <job card>}`; the
same key again answers `200` with the card as it is now. `409` with the card
as it is now: `card_stale` (another revision), `not_paused`,
`carry_on_unavailable`. `404 not_found` for anything not one of the person's
job cards.

`PUT /api/v1/assistant/time-zone` with `{"time_zone":"Europe/Dublin"}` (IANA)
sets the person's zone: `200 {"time_zone": "Europe/Dublin"}`, `422
invalid_input` for a zone Equipo does not know. `PUT /api/v1/time-zone` is the
same for a device.

**An older Base.** Base before this change keeps only the five states it
knows: it drops a `paused` card from the snapshot (the job vanishes on
reload) and ignores a `paused` event (the pill stays on "Building it"). So
`paused` is sent only to a client that asks for it, with `job_states=paused`
on `GET snapshot` and `GET events`. Any other client gets a paused card as
`working`, with the paused `result` and `detail` and no `carry_on`: the pill
turns, but its words say "Paused until 21:00".

## Kept current

`projectJob` computes the state from the followed tasks' held steps; a hold
report already reaches it (saveTask, taskChanged). The housekeeping minute
(`HousekeepingTick`) reprojects paused job cards, so the relative words and a
zone change follow without a report, and the card moves only when its words
change.

## Known gaps

- A hold that needs the person (spend unknown, nothing that can run it,
  the deadline check) reads as working on Base's job card: its held card is
  not a question card, so the job is not asking. Base's contract does not
  ask for more today.
- A paused job with no known resume time has `result` "Paused" and no
  `detail`: there is no reviewed sentence for it.
- A pinned Run now the runner cannot honour (its connection filled) waits
  pending until the hold lifts; the page offers nothing more and a tap says
  it is already in progress, but nothing says it did not start.
- On an open web page the relative part ("in 9 hours") moves only when the
  page redraws on an event; Base's card is reprojected every minute.

## Not in this change

The runner's own scheduling, Copy's hold card, placement lines, a person-
facing zone setting (the zone follows the device), native strings beyond the
paused report.
