| 1 | # Brief: revise Equipo plan 1 after review round 1 |
| 2 | |
| 3 | Edit `docs/superpowers/plans/2026-11-01-equipo-plan-1-foundation.md` in this |
| 4 | worktree to resolve every finding in |
| 5 | `docs/superpowers/plans/REVIEW-FINDINGS-plan-1-foundation-R1.md`, using the |
| 6 | decisions below. Verify each change against Rastrillo `v0.28.0` |
| 7 | (`git -C /home/paulca/amadan.net/rastrillo/rastrillo show v0.28.0:<path>`) |
| 8 | and the prototype at |
| 9 | `/home/paulca/amadan.net/carlos/platform-team-service/internal/team`. |
| 10 | |
| 11 | ## Decisions (made by the controller; do not reopen) |
| 12 | |
| 13 | - **P1-1:** use `pow.New` with `Difficulty: pow.NoProof` (token form with |
| 14 | `MinAge`, works without JavaScript; see `pow/browser_test.go` |
| 15 | `TestBrowserNoProofWorksWithoutJavaScript` at the tag). Add `pow.Schema` to |
| 16 | `BootSchema`, serve `pow.Assets()` if the form needs them, put the fields |
| 17 | in the sign-in form, and add a test that `auth.New` succeeds with the |
| 18 | production config. Not `ProofOff`. |
| 19 | - **P2-1:** the reviewer's fix: a separate `time_reservations` table keyed |
| 20 | by attempt, settled only in `Contain`, excluded from receipt and audited |
| 21 | settlement, counted only in period checks. Name the existing tests that |
| 22 | prove the call ledger is unchanged. |
| 23 | - **P2-2:** add `Project.DefaultBranch` entered by an owner (no repository |
| 24 | probing); Authority rejects a `DefaultRef` that differs and any `Ref` equal |
| 25 | to it, with tests. |
| 26 | - **P2-3:** test sign-in by email link through a capturing mailer. |
| 27 | - **P2-4, P2-5:** as the findings say. |
| 28 | - **P3s:** apply all of them: say configured mode drops account `CostMicros`; |
| 29 | allow lowering a budget below usage (new work blocks); `Authorize` false on |
| 30 | DB error; delete a removed member's sessions; document `EQUIPO_OWNERS` |
| 31 | first-boot-only; use the framework's `SigninScreen`/`ui` sign-in partial |
| 32 | if it exists at the tag and accepts the pow fields, otherwise the app's |
| 33 | own `signin.html`, and say which; unique on repository plus app; say how |
| 34 | the per-page speed test signs in; trim Task 5 Step 4 and the grounding |
| 35 | table to decisions; replace self-review items 2 and 5 with checks that |
| 36 | decide something. |
| 37 | |
| 38 | ## Paul's answers since the plan was written (apply them) |
| 39 | |
| 40 | - Equipo deploys under the **`oficina` CARLOS account on the flagship |
| 41 | console** (`https://console.carloku.com/a/oficina`). Resolve the "Questions |
| 42 | for Paul" section with this and make Task 10 use it. |
| 43 | - **Projects have a kind: app, website or repository.** One Projects list; |
| 44 | each card shows its kind (spec section 3.3, commit 3bb1dae). Add the kind |
| 45 | to Task 4's record and form and Task 8's overview. |
| 46 | - The rail no longer includes the console's Apps and Billing. Equipo's rail |
| 47 | is: team header; Conversation, Needs you, Journey, Projects; Specialists |
| 48 | (the five); a Team group with Connections, People, Settings |
| 49 | (`docs/mockups/nav.html`). Update Task 8 to match. |
| 50 | |
| 51 | ## Rules |
| 52 | |
| 53 | - Edit only the plan file. Do not commit or push. Do not write product code. |
| 54 | - Do not spawn Anthropic-model reviewers or other agents. |
| 55 | - No `.claude/HANDOFF.md`. Scratch under `$TMPDIR`, removed at the end. |
| 56 | - At the end of the plan, add a short "Round 1 dispositions" section: one |
| 57 | line per finding saying how it was resolved. |
| 58 | - Print a five-line summary when done. |
| 59 | |