oficina / equipo Public

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

Plain git — no account needed to clone.

Download

Download this file

Brief: write Equipo plan 2 (Runner)

You are writing an implementation plan, not code. Work in this worktree (/home/paulca/amadan.net/oficina/equipo-plan-2, branch plan-2, from main e5c58ab, which contains the built Foundation).

Read first

  1. The spec: docs/superpowers/specs/2026-11-01-equipo-design.md, especially sections 3.4, 6 (all of it: 6.1 to 6.9), 7, 9 and 10.
  2. The roadmap: docs/superpowers/plans/2026-11-01-equipo-roadmap.md. Plan 2 is the Runner row. Do not plan rows 3 or 4.
  3. The Paseo probe: docs/superpowers/specs/2026-11-01-paseo-probe.md. Its "What the runner should rely on" list is binding: the structured client connection for events, permissions and usage (CLI JSON only for bounded commands, after checking real output); permission-ID responses; per-agent MCP at creation; credential-home account routing; stop, then archive, then verify no processes remain before acknowledging cancellation; a local runner process per machine, not a Paseo plugin.
  4. Plan 1 and what was built: docs/superpowers/plans/2026-11-01-equipo-plan-1-foundation.md and the code under internal/equipo (app) and internal/equipo/team (the execution core). Ground every interface in that code.
  5. The carries from the plan 1 build, all of which plan 2 must address: amadan discuss show oficina/equipo 2 ("Plan 2 must carry"). In short: push refs/heads/<Ref> fully qualified; JobSpec.Project from the same project as the grant; admissions fixed at 5 s (AdmissionSeconds = 5 or honour shorter windows); project/roster edits make running jobs stale until Resume; decide whether lowering a limit blocks already-reserved actions; Contain trusting LeaseDeadline on clock step-back; no delete for projects/accounts (decide if plan 2 needs it); periodSum full scan under the write lock.
  6. How to write the plan: follow /home/paulca/.claude/plugins/cache/claude-plugins-official/superpowers/7.0.0/skills/writing-plans/SKILL.md exactly. Execution line: subagent-driven development.

Scope of plan 2

Deliverable (roadmap row 2): Paul asks for a bug fix through a plain task form and gets an Amadan review branch with evidence; Journey and the specialist pages show it live; cancel works.

  • equipo-runner (separate Go binary in this module, user service, no root, no inbound ports): enrol by device-code sign-in, outbound long-poll, claim with fences, brief, workspace via Paseo, drive via the client connection, questions and permissions relayed, finish, cancel (spec 6.9).
  • The runner's trusted check executor (spec 6.4), the frozen reproduction in the instance's artefact store, evidence by task kind for bugs only in this plan (features, copy/design and recommendations come with plan 3).
  • Publishing with the runner-held Amadan agent credential, exact candidate, review branch only, never the default branch (spec 6.5), plus the quarantine release (spec 6.7) before the execution store opens.
  • Connections discovered per machine, per person (spec 6.8, 7); model and account choice for a step is the pinned or first allowed connection in this plan; the coordinator's best-fit choice is plan 3.
  • The instance side: runner and enrolment endpoints with their own audience-scoped credentials, the task form (repository from a saved project, a bug description), the fixed bug plan (Engineering reproduce and fix, Review review and checks, person merges), live Journey, specialist pages and task detail, cancel.
  • Review uses a different model family from the builder (spec 3.2); if only one family is connected, the task waits visibly.
  • UI: no coloured left-border accents (Paul's ruling, see docs/mockups/README.md); follow docs/mockups/nav.html, journey.html and conversation.html for the task card and step chips.
  • Copy goes in the repo's copy file and is marked for copy review.

Questions

If something only Paul can decide blocks a task, put it under "Questions for Paul" at the end rather than guessing. Machine enrolment beyond docs-t1 (tito-studio) is out of scope unless it falls out for free.

Output and rules

Write the plan to docs/superpowers/plans/2026-11-02-equipo-plan-2-runner.md. Interfaces, test names and assertions, commands; not function bodies. End with the self-review. Do not write product code, do not commit or push, do not spawn Anthropic-model reviewers or other agents, no .claude/HANDOFF.md, scratch under $TMPDIR and removed at the end, everything outside this worktree read-only. Do not start Paseo agents. Print a five-line summary when done: task count, questions for Paul, contradictions found.