| 1 | # Brief: agents set things up — the coordinator creates projects |
| 2 | |
| 3 | Branch `agent-setup` from `chat-ui` f8d923b (chat UI round 2; it will |
| 4 | merge to main first; rebase onto main when it has). Paul (2026-11-06): |
| 5 | "I think there's too many fields here. Can you set up the first project? |
| 6 | The point here is to have agents recommend and do everything, even the |
| 7 | initial setup." |
| 8 | |
| 9 | Product rule from now on: a person should never fill a setup form to get |
| 10 | started. The coordinator recommends and performs setup; the person |
| 11 | confirms with one tap. Forms stay only as an optional "edit" path. |
| 12 | |
| 13 | Deliver (v1): |
| 14 | - R1 Runner reports, in its heartbeat, the repositories its forge |
| 15 | credential can reach (the keys of EQUIPO_AMADAN_CREDENTIAL_PATH's |
| 16 | `repositories`, e.g. amadan.net/oficina/equipo; names only, nothing |
| 17 | secret). The instance stores them per runner/person. |
| 18 | - R2 Coordinator tool (Equipo MCP, coordinator only): |
| 19 | `propose_project({repository, why})` → validates the repository is one |
| 20 | a runner of this person reports, infers everything else (name from the |
| 21 | repo, kind Repository, sensible defaults for account label, playbook, |
| 22 | approval inheriting the team), and posts a project card in the |
| 23 | conversation: "Set up <name> (<repo>)?" with one-tap **Set up** and |
| 24 | **Not now**. Set up creates the project (same validation/authorization |
| 25 | as today's form) and the card updates live. No project is created |
| 26 | without the tap. |
| 27 | - R3 Coordinator behaviour: when the person mentions a repo or app that |
| 28 | isn't a project yet, or the team has no projects, the coordinator |
| 29 | proposes it (prompt/instructions + tests with the fake CLI). The |
| 30 | conversation's empty state says, plainly, that you can just say what |
| 31 | you want fixed and Equipo will set up what it needs. |
| 32 | - R4 Project form: one required field (repository, chosen from the |
| 33 | reported list or typed); everything else under a collapsed "More |
| 34 | options". Existing projects unaffected. |
| 35 | - R5 The coordinator policy changes (new tool): update the policy |
| 36 | manifests/inventory as today; the coordinator becomes uncertified until |
| 37 | the controller re-runs the starter gate (expected; say which hashes |
| 38 | changed). Specialist policies must not change. |
| 39 | - New user-facing strings in copy.go marked `// COPY REVIEW PENDING`. |
| 40 | - Tests (unit + fake-CLI coordinator flow: mention repo → card → tap → |
| 41 | project exists), screenshots of the card and the empty state at 1280 |
| 42 | and 390 into docs/mockups/built/2026-11-06/, ONE full `make -k ci` |
| 43 | (rerun at most twice). Commit subject < 80, body |
| 44 | `Co-Authored-By: Astra <noreply@openai.com>`. You cannot push (no git |
| 45 | login here): commit only; the controller pushes. |
| 46 | CONTROLLER-REPORT-agent-setup.md. Loopback only; stop servers; scratch |
| 47 | removed; no copy-review server. Print a five-line summary. |
| 48 | |