oficina / equipo Public

Plan 2 round 1 findings (Opus) and fix brief

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev a66c96e6248ede5b0f1aac50c096c5b1dac01e90 parent 6d88d2b
2 files changed, +120 −0
  • docs/superpowers/plans/CODEX-BRIEF-plan-2-runner-fixes-R1.md +47 −0
  • docs/superpowers/plans/REVIEW-FINDINGS-plan-2-runner-R1.md +73 −0

CI passed — run details

diff --git a/docs/superpowers/plans/CODEX-BRIEF-plan-2-runner-fixes-R1.md b/docs/superpowers/plans/CODEX-BRIEF-plan-2-runner-fixes-R1.md
new file mode 100644
index 00000000..7309ae8f
--- /dev/null
+++ b/docs/superpowers/plans/CODEX-BRIEF-plan-2-runner-fixes-R1.md
@@ -0,0 +1,47 @@
+# Brief: revise Equipo plan 2 after review round 1
+
+Edit `docs/superpowers/plans/2026-11-02-equipo-plan-2-runner.md` in this
+worktree to resolve every finding in
+`docs/superpowers/plans/REVIEW-FINDINGS-plan-2-runner-R1.md`, using the
+decisions below. Verify each change against the code and the installed Paseo
+packages, as the original brief required.
+
+## Decisions (made by the controller; do not reopen)
+
+- **P1-1:** a per-attempt Unix socket in a 0700 runner directory. Task 17's
+ assertion becomes "no TCP or inet listener". The attempt capability reaches
+ the tool through a 0600 file whose path is in the tool's environment, never
+ in argv. Test with the real `tool` verb under a fake harness.
+- **P1-2:** the reviewer's Linux inspector, as specified in the findings,
+ built in Task 15 and wired in Task 17, with the real-subprocess test.
+- **P1-3:** read isolation is **required**. Add a `ReadIsolation` capability
+ to the provider preflight; dispatch is refused for any provider or mode
+ that cannot deny reads of the runner state directory, the Amadan
+ credential, the Paseo home credentials and `~/.ssh`. Verify what each
+ provider supports from its installed CLI and documentation: Claude Code's
+ sandbox deny-read settings, and Codex's sandbox (`-s`, and
+ `sandbox_permissions`; check whether omitting `disk-full-read-access`
+ confines reads). Record the finding per provider in the plan. Add a
+ live-gate sentinel test per path. If a provider cannot be confined, the
+ plan says so plainly and that provider is ineligible; do not weaken the
+ gate.
+- **P2s 1-8:** as the findings propose. For P2-8, Task 18 measures a real
+ turn and sets the project limits from it; per-turn reservations are
+ bounded; cached input is reported separately.
+- **Cuts (apply all):** cross-machine Git bundles and chunked blobs (docs-t1
+ only); lost-enrolment-response recovery; EventSource live refresh and
+ Journey pagination (use a plain periodic page refresh for live views); the
+ owner provider/family allowlist (moves to plan 4; the review-family rule
+ stays).
+- **P3s:** apply all that are a sentence or a test; list any you leave with
+ the reason.
+
+## Rules
+
+- Edit only the plan file. Do not commit or push. No product code.
+- Do not spawn Anthropic-model reviewers or other agents. Do not start Paseo
+ agents.
+- No `.claude/HANDOFF.md`. Scratch under `$TMPDIR`, removed at the end.
+- Add a "Round 1 dispositions" section: one line per finding.
+- Print a five-line summary, including the read-isolation result for Claude
+ and for Codex.
diff --git a/docs/superpowers/plans/REVIEW-FINDINGS-plan-2-runner-R1.md b/docs/superpowers/plans/REVIEW-FINDINGS-plan-2-runner-R1.md
new file mode 100644
index 00000000..a5a90cee
--- /dev/null
+++ b/docs/superpowers/plans/REVIEW-FINDINGS-plan-2-runner-R1.md
@@ -0,0 +1,73 @@
+# Review findings: plan 2 (Runner), round 1 (Opus 5.5), at 6d88d2b
+
+Verdict: **NOT READY** (three P1s). Condensed from the reviewer's report;
+citations are the reviewer's.
+
+## P1
+
+- **P1-1 (Tasks 13, 17): the tool server has no channel to the runner.** The
+ MCP tool process is spawned by the harness from `mcpServers` (probe §5);
+ its stdio belongs to the harness, so "inherited pipes" (plan:306) do not
+ exist, and Task 17 forbids any listener (plan:374,376). Submissions never
+ arrive. Fix: one specified channel (per-attempt Unix socket in a 0700
+ runner directory, Task 17 narrowed to "no TCP/inet listener", or a spool
+ directory); the attempt capability must not appear in argv; test with the
+ real `tool` verb under a fake harness.
+- **P1-2 (Task 15): containment is never acknowledged.** `ProcessInspector`
+ is injected (plan:333) and no task builds a production one; Paseo does not
+ own process trees (probe §4). Dependent steps wait on Contain (plan:342)
+ and pending-containment attempts count against `MaxConcurrentAttempts`=2
+ (scheduler.go:164), so review never starts. Fix: a Linux inspector (env
+ marker via `createAgent` env, `/proc` scan by marker or worktree cwd, Paseo
+ terminals and executor process groups, PID + start ticks + boot ID,
+ unreadable entries = unknown coverage) with a real-subprocess test for a
+ child that strips its environment.
+- **P1-3 (Tasks 10, 13, 17): agents can read the runner's credentials.**
+ "Harness read restrictions" (plan:251) are never chosen, configured or
+ tested; the runner bearer, cleanup capabilities and Amadan credential are
+ same-user 0600 files. A prompt-injected agent can read them and post
+ executor-style results. Fix: permission mode per provider; deny-read paths
+ passed at agent creation; a `ReadIsolation` preflight that refuses
+ dispatch when absent; a live-gate sentinel test per path.
+
+## P2
+
+1. Task 2: any edit pauses the whole team (plan:104,113); fence only jobs
+ whose grant version/epoch changed (authority.go:130).
+2. Task 9: daemon credentials need `@getpaseo/server/daemon-control`
+ (unpinned) and stop exists only as `DaemonClient.cancelAgent`; pin it or
+ require `PASEO_PASSWORD`, and name the export per `Client` method.
+3. Tasks 8, 14: `Admit` is not idempotent (actions.go:280); a lost reply
+ strands the action. Return the stored ticket for the same attempt, fence
+ and request ID within the admission window.
+4. Task 11: deleted or skipped tests can pass; record the base test-name set,
+ require a superset, add `t.Skip` and deleted-file assertions.
+5. Task 11: the reproduction overlay contradicts "without overwriting
+ candidate source" (plan:268); specify a scratch copy and the collision
+ rule.
+6. Hidden forward dependencies: Task 7 needs Tasks 8 and 10; Task 8's tests
+ need Tasks 11-13; Task 6's runner side needs Tasks 9 and 17. Split or
+ reorder.
+7. Core schema versioning unassigned (Tasks 2, 3, 7 add columns; parity test
+ pinned at `SchemaVersion = 3`, store.go:22); name the bump and migrate step
+ per task.
+8. Task 3: token limits are fixture numbers; a trivial live turn used about
+ 29,600 input+cached tokens; each turn reserves all remaining job tokens;
+ unknown usage dead-ends the job. Size from a measured live turn, bound the
+ per-turn reservation, report cached input separately.
+
+## P3
+
+Carry 7 has no pinning test; `Reproduce` needs a candidate-hash parameter
+(evidence.go:135); say the writer DSN is safe only with one connection; state
+oficina hibernation and witness survival; CI needs Node for
+`runner-adapter-test`; `MCPServer` lacks `type: "stdio"`; the cleanup
+capability lets a removed member's runner understate usage; account routing
+is left to a live capability. Cuts that keep row 2 intact: cross-machine Git
+bundles and chunked blobs, lost-enrolment-response recovery, EventSource live
+refresh and Journey pagination, possibly the owner provider allowlist.
+
+Confirmed: carries 1-6 and 8 mapped; core API claims; Rastrillo `Writer()`
+and `migrate.Applied`; Paseo `idempotencyKey`, timeline refetch/subscribe,
+`respondToPermission`, archive; qualified-ref push with empty
+`--force-with-lease`; recovery and replay otherwise sound.