oficina / equipo Public

Clone
git clone https://amadan.net/oficina/equipo

Plain git — no account needed to clone.

Download

Download this file

1# Brief: write Equipo plan 2 (Runner)
2
3You are writing an implementation plan, not code. Work in this worktree
4(`/home/paulca/amadan.net/oficina/equipo-plan-2`, branch `plan-2`, from main
5`e5c58ab`, which contains the built Foundation).
6
7## Read first
8
91. The spec: `docs/superpowers/specs/2026-11-01-equipo-design.md`, especially
10 sections 3.4, 6 (all of it: 6.1 to 6.9), 7, 9 and 10.
112. The roadmap: `docs/superpowers/plans/2026-11-01-equipo-roadmap.md`. Plan 2
12 is the Runner row. Do not plan rows 3 or 4.
133. The Paseo probe: `docs/superpowers/specs/2026-11-01-paseo-probe.md`. Its
14 "What the runner should rely on" list is binding: the structured client
15 connection for events, permissions and usage (CLI JSON only for bounded
16 commands, after checking real output); permission-ID responses; per-agent
17 MCP at creation; credential-home account routing; stop, then archive,
18 then verify no processes remain before acknowledging cancellation; a
19 local runner process per machine, not a Paseo plugin.
204. Plan 1 and what was built: `docs/superpowers/plans/2026-11-01-equipo-plan-1-foundation.md`
21 and the code under `internal/equipo` (app) and `internal/equipo/team`
22 (the execution core). Ground every interface in that code.
235. The carries from the plan 1 build, all of which plan 2 must address:
24 `amadan discuss show oficina/equipo 2` ("Plan 2 must carry"). In short:
25 push `refs/heads/<Ref>` fully qualified; `JobSpec.Project` from the same
26 project as the grant; admissions fixed at 5 s (AdmissionSeconds = 5 or
27 honour shorter windows); project/roster edits make running jobs stale
28 until Resume; decide whether lowering a limit blocks already-reserved
29 actions; Contain trusting LeaseDeadline on clock step-back; no delete for
30 projects/accounts (decide if plan 2 needs it); `periodSum` full scan under
31 the write lock.
326. How to write the plan: follow
33 `/home/paulca/.claude/plugins/cache/claude-plugins-official/superpowers/7.0.0/skills/writing-plans/SKILL.md`
34 exactly. Execution line: subagent-driven development.
35
36## Scope of plan 2
37
38Deliverable (roadmap row 2): Paul asks for a bug fix through a plain task
39form and gets an Amadan review branch with evidence; Journey and the
40specialist pages show it live; cancel works.
41
42- `equipo-runner` (separate Go binary in this module, user service, no root,
43 no inbound ports): enrol by device-code sign-in, outbound long-poll, claim
44 with fences, brief, workspace via Paseo, drive via the client connection,
45 questions and permissions relayed, finish, cancel (spec 6.9).
46- The runner's trusted check executor (spec 6.4), the frozen reproduction in
47 the instance's artefact store, evidence by task kind for **bugs only** in
48 this plan (features, copy/design and recommendations come with plan 3).
49- Publishing with the runner-held Amadan agent credential, exact candidate,
50 review branch only, never the default branch (spec 6.5), plus the
51 quarantine release (spec 6.7) before the execution store opens.
52- Connections discovered per machine, per person (spec 6.8, 7); model and
53 account choice for a step is the pinned or first allowed connection in
54 this plan; the coordinator's best-fit choice is plan 3.
55- The instance side: runner and enrolment endpoints with their own
56 audience-scoped credentials, the task form (repository from a saved
57 project, a bug description), the fixed bug plan (Engineering reproduce and
58 fix, Review review and checks, person merges), live Journey, specialist
59 pages and task detail, cancel.
60- Review uses a different model family from the builder (spec 3.2); if only
61 one family is connected, the task waits visibly.
62- UI: no coloured left-border accents (Paul's ruling, see
63 `docs/mockups/README.md`); follow `docs/mockups/nav.html`, `journey.html`
64 and `conversation.html` for the task card and step chips.
65- Copy goes in the repo's copy file and is marked for copy review.
66
67## Questions
68
69If something only Paul can decide blocks a task, put it under "Questions for
70Paul" at the end rather than guessing. Machine enrolment beyond docs-t1
71(tito-studio) is out of scope unless it falls out for free.
72
73## Output and rules
74
75Write the plan to `docs/superpowers/plans/2026-11-02-equipo-plan-2-runner.md`.
76Interfaces, test names and assertions, commands; not function bodies. End
77with the self-review. Do not write product code, do not commit or push, do
78not spawn Anthropic-model reviewers or other agents, no `.claude/HANDOFF.md`,
79scratch under `$TMPDIR` and removed at the end, everything outside this
80worktree read-only. Do not start Paseo agents. Print a five-line summary when
81done: task count, questions for Paul, contradictions found.
82