| 1 | # Review brief: Equipo plan 1 (Foundation), round 1 of 3 |
| 2 | |
| 3 | Repo oficina/equipo, branch `design`, commit d8d5ce1. |
| 4 | Under review: `docs/superpowers/plans/2026-11-01-equipo-plan-1-foundation.md` |
| 5 | (written by Astra). |
| 6 | Authorities: `docs/superpowers/specs/2026-11-01-equipo-design.md` (rev 2, |
| 7 | approved by Paul 2026-11-01), `docs/superpowers/plans/2026-11-01-equipo-roadmap.md`, |
| 8 | the brief `docs/superpowers/plans/CODEX-BRIEF-plan-1-foundation.md`, and the |
| 9 | suite doctrine `/home/paulca/amadan.net/oficina/suite/docs/superpowers/specs/2026-09-05-suite-sharing-doctrine.md`. |
| 10 | |
| 11 | You are an independent reviewer. Read the plan, then the code it names, and |
| 12 | check every claim against that code: Rastrillo at |
| 13 | `/home/paulca/amadan.net/rastrillo/rastrillo` (the plan pins tag `v0.28.0`; |
| 14 | use `git show v0.28.0:<path>` to read tagged files), memoria at |
| 15 | `/home/paulca/amadan.net/oficina/memoria`, and the prototype at |
| 16 | `/home/paulca/amadan.net/carlos/platform-team-service/internal/team` and |
| 17 | `internal/teamcontract` (platform commit `ceee7a67`). |
| 18 | |
| 19 | ## Fixed: do not re-argue |
| 20 | |
| 21 | - Paul's rulings recorded in the spec (marked "Paul"): separate Oficina app, |
| 22 | multiplayer, coordinators per person, Paseo engine, categories not names, |
| 23 | hierarchical rail and drill-down phone, connections per person, egress |
| 24 | needed, configurable phone landing and plan approval. |
| 25 | - Scope: Foundation only (roadmap row 1). Missing runner, coordinator or |
| 26 | product-view work is not a finding. |
| 27 | - Mockups since the plan was written dropped the console's Apps and Billing |
| 28 | from the rail (the plan already treats the standalone rail as authoritative). |
| 29 | |
| 30 | ## What to check |
| 31 | |
| 32 | 1. Does every Rastrillo and memoria API, command, flag and path the plan |
| 33 | names exist at the pinned versions, with the stated signatures? Would |
| 34 | Task 1's scaffold route actually produce a buildable app? |
| 35 | 2. Will the prototype move (Task 2) compile and keep its tests passing under |
| 36 | `internal/equipo/team`, given its imports and the module change? |
| 37 | 3. Sign-in, roster and authority (Tasks 3 and 6): can a removed member, a |
| 38 | form-supplied actor or a forged project binding gain access or authority? |
| 39 | Does anything fail open on a DB error? |
| 40 | 4. Budgets (Task 5): does the team-ceiling/project-limit mapping match spec |
| 41 | 6.7 without breaking the prototype's reservation invariants? |
| 42 | 5. Is each task independently testable, in a sensible order, with no hidden |
| 43 | dependency on a later task? |
| 44 | 6. Proportion: is anything in the plan a transcript of code rather than a |
| 45 | decision, or a line that decides nothing? |
| 46 | |
| 47 | ## Severity |
| 48 | |
| 49 | - **P1**: unsafe, would not compile, a test fails, or it would not work. |
| 50 | Blocks the build. |
| 51 | - **P2**: wrong or missing. Fixed without reopening this review. |
| 52 | - **P3**: clarity or polish. Goes on a follow-up list; never a reason for |
| 53 | another round. |
| 54 | |
| 55 | A P1 states its failure scenario and the evidence (file:line). Do not raise |
| 56 | a P2 to P1 to keep the review open. |
| 57 | |
| 58 | ## Output |
| 59 | |
| 60 | Findings ranked P1, P2, P3. Each gives the task, the problem, the evidence |
| 61 | (file:line, verified), the failure scenario, a concrete fix and the |
| 62 | invariant or trust boundary it breaks. End with exactly one verdict: |
| 63 | |
| 64 | - **READY**: no P1 and no P2. |
| 65 | - **READY AFTER FIXES**: no P1. The listed P2s are fixed without another |
| 66 | round. |
| 67 | - **NOT READY**: one or more P1s, listed. |
| 68 | |
| 69 | Do not edit files. Do not spawn subagents of your own. Do not run full test |
| 70 | suites; targeted `go build`/`go vet` or a single test in a scratch copy under |
| 71 | `$TMPDIR` is fine. Keep Go caches at their defaults. |
| 72 | |