| 1 | # Review findings: plan 2 (Runner), round 1 (Opus 5.5), at 6d88d2b |
| 2 | |
| 3 | Verdict: **NOT READY** (three P1s). Condensed from the reviewer's report; |
| 4 | citations are the reviewer's. |
| 5 | |
| 6 | ## P1 |
| 7 | |
| 8 | - **P1-1 (Tasks 13, 17): the tool server has no channel to the runner.** The |
| 9 | MCP tool process is spawned by the harness from `mcpServers` (probe §5); |
| 10 | its stdio belongs to the harness, so "inherited pipes" (plan:306) do not |
| 11 | exist, and Task 17 forbids any listener (plan:374,376). Submissions never |
| 12 | arrive. Fix: one specified channel (per-attempt Unix socket in a 0700 |
| 13 | runner directory, Task 17 narrowed to "no TCP/inet listener", or a spool |
| 14 | directory); the attempt capability must not appear in argv; test with the |
| 15 | real `tool` verb under a fake harness. |
| 16 | - **P1-2 (Task 15): containment is never acknowledged.** `ProcessInspector` |
| 17 | is injected (plan:333) and no task builds a production one; Paseo does not |
| 18 | own process trees (probe §4). Dependent steps wait on Contain (plan:342) |
| 19 | and pending-containment attempts count against `MaxConcurrentAttempts`=2 |
| 20 | (scheduler.go:164), so review never starts. Fix: a Linux inspector (env |
| 21 | marker via `createAgent` env, `/proc` scan by marker or worktree cwd, Paseo |
| 22 | terminals and executor process groups, PID + start ticks + boot ID, |
| 23 | unreadable entries = unknown coverage) with a real-subprocess test for a |
| 24 | child that strips its environment. |
| 25 | - **P1-3 (Tasks 10, 13, 17): agents can read the runner's credentials.** |
| 26 | "Harness read restrictions" (plan:251) are never chosen, configured or |
| 27 | tested; the runner bearer, cleanup capabilities and Amadan credential are |
| 28 | same-user 0600 files. A prompt-injected agent can read them and post |
| 29 | executor-style results. Fix: permission mode per provider; deny-read paths |
| 30 | passed at agent creation; a `ReadIsolation` preflight that refuses |
| 31 | dispatch when absent; a live-gate sentinel test per path. |
| 32 | |
| 33 | ## P2 |
| 34 | |
| 35 | 1. Task 2: any edit pauses the whole team (plan:104,113); fence only jobs |
| 36 | whose grant version/epoch changed (authority.go:130). |
| 37 | 2. Task 9: daemon credentials need `@getpaseo/server/daemon-control` |
| 38 | (unpinned) and stop exists only as `DaemonClient.cancelAgent`; pin it or |
| 39 | require `PASEO_PASSWORD`, and name the export per `Client` method. |
| 40 | 3. Tasks 8, 14: `Admit` is not idempotent (actions.go:280); a lost reply |
| 41 | strands the action. Return the stored ticket for the same attempt, fence |
| 42 | and request ID within the admission window. |
| 43 | 4. Task 11: deleted or skipped tests can pass; record the base test-name set, |
| 44 | require a superset, add `t.Skip` and deleted-file assertions. |
| 45 | 5. Task 11: the reproduction overlay contradicts "without overwriting |
| 46 | candidate source" (plan:268); specify a scratch copy and the collision |
| 47 | rule. |
| 48 | 6. Hidden forward dependencies: Task 7 needs Tasks 8 and 10; Task 8's tests |
| 49 | need Tasks 11-13; Task 6's runner side needs Tasks 9 and 17. Split or |
| 50 | reorder. |
| 51 | 7. Core schema versioning unassigned (Tasks 2, 3, 7 add columns; parity test |
| 52 | pinned at `SchemaVersion = 3`, store.go:22); name the bump and migrate step |
| 53 | per task. |
| 54 | 8. Task 3: token limits are fixture numbers; a trivial live turn used about |
| 55 | 29,600 input+cached tokens; each turn reserves all remaining job tokens; |
| 56 | unknown usage dead-ends the job. Size from a measured live turn, bound the |
| 57 | per-turn reservation, report cached input separately. |
| 58 | |
| 59 | ## P3 |
| 60 | |
| 61 | Carry 7 has no pinning test; `Reproduce` needs a candidate-hash parameter |
| 62 | (evidence.go:135); say the writer DSN is safe only with one connection; state |
| 63 | oficina hibernation and witness survival; CI needs Node for |
| 64 | `runner-adapter-test`; `MCPServer` lacks `type: "stdio"`; the cleanup |
| 65 | capability lets a removed member's runner understate usage; account routing |
| 66 | is left to a live capability. Cuts that keep row 2 intact: cross-machine Git |
| 67 | bundles and chunked blobs, lost-enrolment-response recovery, EventSource live |
| 68 | refresh and Journey pagination, possibly the owner provider allowlist. |
| 69 | |
| 70 | Confirmed: carries 1-6 and 8 mapped; core API claims; Rastrillo `Writer()` |
| 71 | and `migrate.Applied`; Paseo `idempotencyKey`, timeline refetch/subscribe, |
| 72 | `respondToPermission`, archive; qualified-ref push with empty |
| 73 | `--force-with-lease`; recovery and replay otherwise sound. |
| 74 | |