oficina / equipo Public

Plan 3 round 1 fix brief (Opus: NOT READY, one P1)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev 86852f10c477e15b151be76e50f54256d62de90c parent 3f402bc
1 file changed, +59 −0
  • docs/superpowers/plans/CODEX-BRIEF-plan-3-fixes-R1.md +59 −0

CI failed — run details

diff --git a/docs/superpowers/plans/CODEX-BRIEF-plan-3-fixes-R1.md b/docs/superpowers/plans/CODEX-BRIEF-plan-3-fixes-R1.md
new file mode 100644
index 00000000..6d5a0044
--- /dev/null
+++ b/docs/superpowers/plans/CODEX-BRIEF-plan-3-fixes-R1.md
@@ -0,0 +1,59 @@
+# Brief: revise plan 3 after Opus round 1 (NOT READY, one P1)
+
+Edit `docs/superpowers/plans/2026-11-04-equipo-plan-3-coordinator.md` only.
+Apply every finding with these controller decisions (do not reopen). Verify
+against the code on this branch as before. No provider runs.
+
+P1-1 (Task 7): drop provider-session resume for coordinators. Each
+coordinator turn starts a fresh provider session seeded from the instance's
+stored conversation context: a bounded recent window, the person's
+confirmed decisions and preferences, and scoped retrieval, as spec section
+3/4 already describes. No reliance on lease-local session files or the
+launcher's in-memory session table. `TestCoordinatorSessionContinuity` runs
+through the real Claude and Codex launchers (with recorded fixtures) across a
+lease close and a runner restart.
+
+P2 decisions
+1. Budgets: put plan 3's new code in named new packages (for example
+ `internal/equipo/conversation`, `internal/equipo/library`,
+ `internal/equipo/personapi`) rather than growing `team` and
+ `internal/equipo`; list each package's budget lines; move the browser
+ and acceptance tests to a new test package with its own time budget.
+2. CSRF: Task 10 replaces the global `csrf.Protect` with an explicit
+ dispatcher (cookie routes protected; runner and native bearer APIs
+ exempt), with an app-level test through the real handler that bearer
+ POSTs pass and cross-origin cookie POSTs fail. (The same defect was sent
+ to plan 2b's fix wave; depend on its fix if it lands first.)
+3. Task 4 lists and changes the provider files it needs
+ (`runtime_direct.go` step mapping, Claude `nativeTools` and the MCP tool
+ allowlist, Codex equivalents) and certifies the new policies.
+4. Rendered changes: the trusted executor renders the exact candidate; the
+ person's approval is bound to the candidate diff with the render as an
+ aid; `ApproveRenderedChange` requires the project's copy or design
+ decision owner.
+5. Add the test: an edit after review and checks requires fresh review,
+ checks and rendered approval.
+6. Pairing keeps the existing direction: the runner prints the code and the
+ person approves it in the browser (`BeginEnrolmentRequest`). Note that
+ the onboarding mockup will be updated to match.
+7. Install-time containment preflight (bwrap 0.11.0, unprivileged user
+ namespaces, the Ubuntu 24.04 AppArmor restriction) with an explicit
+ unavailable state that says what is missing; no sudo fixes.
+8. Fold the overnight rulings into Tasks 17 and 21: Claude's official
+ browser sign-in into the dedicated home, the code pasted at the runner's
+ terminal on a headless machine and never passing through the instance,
+ with a test; Mac runner shown as "coming later".
+9. Step selection prefers a connection other than the coordinator's when
+ one is eligible; otherwise the coordinator's turn shows a visible
+ waiting state; test both.
+10. API: add read-only `GET /people`, and owner roster and budget endpoints.
+
+P3: apply all (0021 table ownership; move the device-credential flow from
+Task 10 to 3b with Task 20; drop Task 18's link import/export; make the
+self-review bullets decide something; device approval shows label and time
+and requires typing the code; notification subscription expiry; report
+"runner stops at logout" when lingering is off).
+
+Append "Round 1 dispositions". No product code, commits or pushes; no
+agents; no copy-review server; scratch under `$TMPDIR` removed; network
+allowed. Print a three-line summary.