| 1 | # The Assistant pushes work through: jobs |
| 2 | |
| 3 | Date: 2026-11-13. Follows `2026-11-12-equipo-assistant-design.md` (slice 1, released to staging as Equipo 518203e2 and Base 9fdf0ca). |
| 4 | |
| 5 | ## What went wrong in the live check |
| 6 | |
| 7 | Paul asked Base for a website. The Assistant said it had "passed the request to the team". The Coordinator's own question then appeared as a second voice ("Yes. What should the website be about…?"). Paul answered it in the chat. The Assistant had never seen the question, so it answered his words as a new question about disability benefits. When he corrected it, the Assistant sent a clarification to "the team", the work stopped, and the chat told him someone had to review it in Equipo. A dead end. |
| 8 | |
| 9 | Paul's direction: Base speaks in outcomes and never names Equipo, the team or how work is done, unless asked. A Base user never has to go into Equipo. The Assistant pushes work through itself and only stops for decisions that are the person's. A job view may offer "Open in Equipo" as an optional link. |
| 10 | |
| 11 | ## The design |
| 12 | |
| 13 | ### 1. One voice |
| 14 | |
| 15 | Nothing from the Coordinator reaches the person directly. Every word in Base's chat is the Assistant's. |
| 16 | |
| 17 | - Team question cards are no longer mirrored into the Assistant lane. Only the go-ahead (merge) and Publish cards are, because those are the person's decisions and their wording comes from the instance. |
| 18 | - The "needs you in Equipo" blocked card is removed from the chat. A blocked job shows on its pill instead (section 3). |
| 19 | |
| 20 | ### 2. The Assistant answers the team itself, or asks once |
| 21 | |
| 22 | When a job's Coordinator turn raises a question, the instance queues a `team_update` turn for the Assistant whose note carries the question and its options. The Assistant then: |
| 23 | |
| 24 | - answers it itself with a new `team_reply{request, answer}` operation when the conversation already holds the answer (most of the time: the person said what they want), or |
| 25 | - asks the person once, in its own words, as a plain message, and passes their reply with `team_reply` in the turn that receives it. |
| 26 | |
| 27 | `team_reply` answers the open team question for that request through the question's own answer path (the same path the person's answer takes today, attributed to the person). `answer` must be one of the question's options when it has options; otherwise free text up to 2000 characters. The words-check that guards `team_request` does not apply: the Assistant may answer from context. It is a write: idempotency-keyed and audited without payload. |
| 28 | |
| 29 | The Assistant's lane always knows a job's open question: `team_status` returns it, and the next turn's opening note lists open questions for the person's jobs. |
| 30 | |
| 31 | ### 3. Jobs and the pill |
| 32 | |
| 33 | Each hand-off is a job with a short title the Assistant gives it (`team_request` gains `title`, up to 60 characters, such as "Building your website"). The instance projects the job into the Assistant lane as a new card kind `job`: `{id, revision, kind:"job", state, question:<title>, options:[], links:[], result:<stage line>}` with states: |
| 34 | |
| 35 | | state | shown as | |
| 36 | |---|---| |
| 37 | | `working` | the title with a quiet animated mark | |
| 38 | | `asking` | the title, "One question for you" (only while the Assistant waits for the person) | |
| 39 | | `ready` | the title, "Ready to try", with the preview link | |
| 40 | | `done` | the title, "Done", with the result link if any | |
| 41 | | `stopped` | the title, "Stopped" (only after the Assistant has tried to push it through, below) | |
| 42 | |
| 43 | Base draws a `job` card as a compact pill inside the conversation, updated in place. Tapping it opens a small job view: the stage line, the preview or site link, and a secondary "Open in Equipo" link (the only place Base names Equipo, and never a required step). The go-ahead and Publish cards attach under their job's pill. |
| 44 | |
| 45 | Routine progress produces no chat messages. The Assistant speaks only for an outcome (ready, published, done), a question it can't answer itself, or a stop it couldn't get past. |
| 46 | |
| 47 | ### 4. Pushing through |
| 48 | |
| 49 | When a job stops (its Coordinator turn ended without work, a step failed, or the work is blocked), the instance queues a `team_update` for the Assistant with the reason, and the Assistant tries to push it through before telling the person: |
| 50 | |
| 51 | - no work started: `team_nudge{request, words}` asks the Coordinator to proceed, quoting what the person wants; |
| 52 | - a failed step: `team_nudge` asks for a retry; |
| 53 | - blocked on access or setup only a person can grant: the pill shows `stopped`, the Assistant tells the person plainly what's needed, and the job view offers "Open in Equipo". |
| 54 | |
| 55 | At most two nudges per job without new words from the person; then the job is `stopped` and the Assistant says so in one line. |
| 56 | |
| 57 | ### 5. The Assistant's instructions |
| 58 | |
| 59 | - You are Base. Never name Equipo, the team, the Coordinator, runners, tasks, branches, merges, checks or repositories, unless the person asks how it works. |
| 60 | - When you hand work off, reply in a few words ("On it.") and give the job a title. Don't narrate progress; the pill shows it. |
| 61 | - Answer the team's questions yourself when the conversation holds the answer. Ask the person only when it doesn't, once, in your words. |
| 62 | - Push stopped work through (section 4) before reporting it. |
| 63 | - Keep answers short. Plain sentences; simple lists are fine. |
| 64 | |
| 65 | ### 6. Base |
| 66 | |
| 67 | - Draws `job` pills and the job view; attaches go-ahead and Publish cards to their job. |
| 68 | - Renders simple Markdown in Assistant messages: bold, italics, bullet and numbered lists, links (existing safe-link rules). |
| 69 | - Applies the wording approved in copy-review c3ipwcupsvwv7rpbj2kdbgrsyy (no "Equipo" in the chat, setup or Settings). |
| 70 | - Composer: the icon Send and Stop (Base e5bfdc1). |
| 71 | |
| 72 | ## Copy |
| 73 | |
| 74 | New strings are drafted, marked pending, and reviewed with Paul before any release (nothing ships unreviewed): the pill stage lines ("One question for you", "Ready to try", "Done", "Stopped"), the job view's labels and "Open in Equipo". The `team_update` notes and the Assistant's instructions are model-facing, not copy. |
| 75 | |
| 76 | ## Also in this work: job threads |
| 77 | |
| 78 | Hand-offs no longer post into the person's own Coordinator conversation. Each job gets its own Coordinator thread (lane `job:<id>`, wire protocol 21), listed in Equipo under "From Base"; the job card's title links to it (Paul, 2026-11-13). |
| 79 | |
| 80 | ## Out of scope |
| 81 | |
| 82 | Widgets, the move to base.oficina.works. (The docked chat layout was added to this work at Paul's request on 2026-11-13: Home on the left, Ask Base docked on the right under the header, open by default, closable, remembered per member; phones unchanged.) |
| 83 | |