oficina / equipo Public

Plan 2b round 1 fix brief (Opus: READY AFTER FIXES)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev 97efa98c765f648f5cae1de833fe5ab13b2d84cf parent d9dc6e5
1 file changed, +73 −0
  • docs/superpowers/plans/CODEX-BRIEF-plan-2b-fixes-R1.md +73 −0

CI passed — run details

diff --git a/docs/superpowers/plans/CODEX-BRIEF-plan-2b-fixes-R1.md b/docs/superpowers/plans/CODEX-BRIEF-plan-2b-fixes-R1.md
new file mode 100644
index 00000000..28806a85
--- /dev/null
+++ b/docs/superpowers/plans/CODEX-BRIEF-plan-2b-fixes-R1.md
@@ -0,0 +1,73 @@
+# Brief: revise plan 2b after Opus round 1 (READY AFTER FIXES)
+
+Edit `docs/superpowers/plans/2026-11-03-equipo-plan-2b-direct.md` only.
+Apply every finding below with these controller decisions (do not reopen).
+Verify against code and installed CLIs as before. No provider runs.
+
+P2s
+1. Pin Claude's tools: an exact `--tools` list per specialist (Engineering:
+ Bash, Read, Write, Edit, Glob, Grep; Review and Product: Read, Glob, Grep,
+ Bash), plus our MCP tools; never WebFetch, WebSearch, Task/subagents or
+ Skill. Assert it in `TestClaudeLaunchPolicy` and include it in the policy
+ hash.
+2. Codex approvals: `approvalPolicy:"on-request"` with
+ `approvalsReviewer:"user"`, and `--strict-config`. Approval requests for
+ Equipo's own MCP tools are answered by the runner after broker
+ validation (fence, attempt, tool, arguments); every other approval
+ request is relayed to a person. Certify the deny profile and on-request
+ together in Task 11b's live certification.
+3. Claude stream-json input mode: Task 5 begins with an authorised
+ recording run (at most two tiny runs on a home with allowance) that
+ captures the stdin user envelope, `--session-id` in that mode and
+ per-turn `result.usage` in one long-lived process; fixtures are pinned
+ from that recording, not from the argv probes.
+4. Credentials: Equipo connections use **dedicated Equipo credential homes**
+ that the person signs in to once per account during enrolment
+ (documented as Paul's step); shared interactive homes (ZeroSub homes,
+ `~/.claude`, `~/.codex`) are refused. Token refresh is allowed only for
+ dedicated homes, through an egress allowlist entry for the provider's
+ auth host. A new credential generation with the same identity between
+ turns triggers a fresh preflight and bind, not containment or a dead
+ connection; a different identity stops the step.
+5. Check build cache: the module cache is read-only inside checks; the
+ build cache is per check under attempt scratch; the host build cache is
+ never mounted.
+6. CI: add a pinned bubblewrap 0.11.0 check to `runner-prerequisites`.
+ Task 2 must push and confirm the Amadan CI workers allow unprivileged
+ user namespaces and pidfds; if they do not, the namespace tests run in a
+ named CI job on a capable runner and the plan says which, never skipped.
+7. Removal sweep: add everything listed (runner-flow.mjs and
+ runner_flow_test.go, runner_release_test.go:50-99, Makefile:135-145,
+ scripts/live-gate.sh:6-22, the process-gate tests
+ containment_r{1,2,3}_test.go, ci_proc_test.go, residual_process_test.go,
+ process_linux_test.go) and a zero-dead-references gate over non-legacy
+ files for `node|npm|\.mjs|paseo|equipo-runner|trial`.
+8. Split Task 11 into 11a (offline cutover and removal) and 11b (release and
+ live certification). Migration 0018 sets `revoked_at` on open
+ `supervised_trials` and isolation-acknowledgement rows with an audit
+ event, and drops nothing.
+
+P3s (apply all)
+- Keep the Go helper as PID 1 (reaper and relay owner); its pidfd exit is
+ the proof. Drop `--as-pid-1` for the harness.
+- Assert the real invariant: namespace membership is unchanged by a cgroup
+ move.
+- Hash Codex per-thread and per-turn RPC policy parameters into the attempt
+ manifest; refuse per-turn overrides.
+- Say the Claude identity check is trust-on-first-use in
+ `TestAccountHomeBinding`.
+- Add `/egress` and the tool-socket path to both providers' inner deny
+ lists.
+- Say where authenticated launch records live before 0018 (runner events).
+- Pin one literal hash in `TestAmadanDescriptionLengthHash` computed by
+ Amadan's handler (the empty value is
+ `sha256:66687aadf862bd776c8fc18b8e9f8e20089714856ee233b3902a591d0d5f2925`;
+ add one non-empty value computed with Python's hashlib and struct).
+- Set `CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC=1` and `DISABLE_AUTOUPDATER`
+ (not `CLAUDE_CODE_DISABLE_AUTO_UPDATE`).
+- Note Go PDEATHSIG fires when the forking thread exits; lock the OS thread
+ for the fork.
+
+Append "Round 1 dispositions". No product code, commits or pushes; no
+agents; no copy-review server; scratch under `$TMPDIR` removed. Print a
+three-line summary.