oficina / equipo Public

Brief: agents set things up, coordinator creates projects

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Paul Campbell pushed by claude agent, operated by paul@keymail.dev 63586e8cecafb4db1689d6bb0b822d52a913ae83 parent 96920a2
1 file changed, +47 −0
  • docs/superpowers/plans/CODEX-BRIEF-agent-setup.md +47 −0
diff --git a/docs/superpowers/plans/CODEX-BRIEF-agent-setup.md b/docs/superpowers/plans/CODEX-BRIEF-agent-setup.md
new file mode 100644
index 00000000..e5027452
--- /dev/null
+++ b/docs/superpowers/plans/CODEX-BRIEF-agent-setup.md
@@ -0,0 +1,47 @@
+# Brief: agents set things up — the coordinator creates projects
+
+Branch `agent-setup` from `chat-ui` f8d923b (chat UI round 2; it will
+merge to main first; rebase onto main when it has). Paul (2026-11-06):
+"I think there's too many fields here. Can you set up the first project?
+The point here is to have agents recommend and do everything, even the
+initial setup."
+
+Product rule from now on: a person should never fill a setup form to get
+started. The coordinator recommends and performs setup; the person
+confirms with one tap. Forms stay only as an optional "edit" path.
+
+Deliver (v1):
+- R1 Runner reports, in its heartbeat, the repositories its forge
+ credential can reach (the keys of EQUIPO_AMADAN_CREDENTIAL_PATH's
+ `repositories`, e.g. amadan.net/oficina/equipo; names only, nothing
+ secret). The instance stores them per runner/person.
+- R2 Coordinator tool (Equipo MCP, coordinator only):
+ `propose_project({repository, why})` → validates the repository is one
+ a runner of this person reports, infers everything else (name from the
+ repo, kind Repository, sensible defaults for account label, playbook,
+ approval inheriting the team), and posts a project card in the
+ conversation: "Set up <name> (<repo>)?" with one-tap **Set up** and
+ **Not now**. Set up creates the project (same validation/authorization
+ as today's form) and the card updates live. No project is created
+ without the tap.
+- R3 Coordinator behaviour: when the person mentions a repo or app that
+ isn't a project yet, or the team has no projects, the coordinator
+ proposes it (prompt/instructions + tests with the fake CLI). The
+ conversation's empty state says, plainly, that you can just say what
+ you want fixed and Equipo will set up what it needs.
+- R4 Project form: one required field (repository, chosen from the
+ reported list or typed); everything else under a collapsed "More
+ options". Existing projects unaffected.
+- R5 The coordinator policy changes (new tool): update the policy
+ manifests/inventory as today; the coordinator becomes uncertified until
+ the controller re-runs the starter gate (expected; say which hashes
+ changed). Specialist policies must not change.
+- New user-facing strings in copy.go marked `// COPY REVIEW PENDING`.
+- Tests (unit + fake-CLI coordinator flow: mention repo → card → tap →
+ project exists), screenshots of the card and the empty state at 1280
+ and 390 into docs/mockups/built/2026-11-06/, ONE full `make -k ci`
+ (rerun at most twice). Commit subject < 80, body
+ `Co-Authored-By: Astra <noreply@openai.com>`. You cannot push (no git
+ login here): commit only; the controller pushes.
+ CONTROLLER-REPORT-agent-setup.md. Loopback only; stop servers; scratch
+ removed; no copy-review server. Print a five-line summary.