oficina / equipo Public

Clone
git clone https://amadan.net/oficina/equipo

Plain git — no account needed to clone.

Download

Download this file

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