Design: how the runner drives Paseo
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 file changed,
+49
−0
docs/superpowers/specs/2026-11-01-equipo-design.md+49 −0
No CI script — run details
diff --git a/docs/superpowers/specs/2026-11-01-equipo-design.md b/docs/superpowers/specs/2026-11-01-equipo-design.md| index f9ce1a02..44e1bd81 100644 |
| --- a/docs/superpowers/specs/2026-11-01-equipo-design.md |
| +++ b/docs/superpowers/specs/2026-11-01-equipo-design.md |
| @@ -368,6 +368,55 @@ time, attempts) still apply. If Paseo cannot run two Claude accounts on |
| one machine, each Claude account lives on a different machine (docs-t1, |
| tito-studio) and pinning still works; the probe in section 7 decides which. |
| +### 6.9 How the runner drives Paseo |
| + |
| +Each enrolled machine runs **`equipo-runner`** (**call**: a small Go binary, |
| +a user service under systemd or launchd, no root, no inbound ports). |
| + |
| +1. **Enrol.** The person runs `equipo-runner enrol`, approves it in the |
| + browser (a device-code sign-in to their Equipo instance) and gets a runner |
| + credential bound to them and that machine. The runner asks the local Paseo |
| + which providers and profiles are signed in and reports them as that |
| + person's connections on that machine. |
| +2. **Wait for work.** The runner holds an outbound HTTPS connection to the |
| + instance and long-polls for steps assigned to a connection on this |
| + machine. It sees only its own person's steps. |
| +3. **Claim and brief.** It claims a step (fenced, as in the prototype) and |
| + receives the brief: repository, base commit, review branch, the step's |
| + instructions, the specialist's standing instructions, the person's |
| + relevant confirmed preferences, provider, model, settings and limits. |
| +4. **Workspace.** It keeps one clone per project, fetched from Amadan with |
| + its agent credential, registers it as a Paseo project, and creates a |
| + Paseo worktree workspace on the review branch from the base commit. |
| +5. **Run.** It starts a Paseo agent in that workspace (`paseo run --json` |
| + with the provider, model and mode, the brief as the prompt) and follows |
| + its timeline (`paseo logs`, `inspect`, `wait`), turning it into Equipo |
| + events: progress, usage, questions. |
| +6. **Questions.** When the agent asks something or needs a permission, the |
| + runner relays it to the instance (to the coordinator, then to a person if |
| + needed) and sends the answer back with `paseo send`. |
| +7. **Finish.** It records the resulting commit, hands reproductions and |
| + checks to the check executor (section 6.4), uploads artefacts and, for a |
| + publish step, pushes the review branch (section 6.5). Then it archives |
| + the agent and workspace. |
| +8. **Cancel.** `paseo stop`, then archive, then report the stop as |
| + acknowledged. |
| + |
| +Coordinators (section 6.6) are long-lived Paseo agents driven the same way |
| +through `paseo send`. They act through a small **Equipo tool server** that the |
| +runner provides to the agent (propose a plan, ask a person, read a project, |
| +settle a proposal), so their decisions arrive as structured calls, not parsed |
| +prose. |
| + |
| +**Probe before building** (**call**): verify on docs-t1 that Paseo's CLI or |
| +daemon API gives the runner (a) machine-readable timeline and usage per |
| +agent, (b) agent questions and permission requests as events it can answer, |
| +(c) MCP or tool-server configuration per agent, and (d) two Claude accounts |
| +side by side (Paseo already keeps separate provider homes per daemon home, |
| +which suggests yes). Gaps are requests to Paseo. An alternative worth |
| +weighing in the probe is shipping the runner as a Paseo plugin rather than |
| +a separate process. |
| + |
| ## 7. Models and accounts |
| Paul: assign a particular Claude account to a particular project, and also |