| 1 | # Brief: live open round 3 — finish round 2, then Claude runtime home |
| 2 | |
| 3 | Same worktree/branch; round 2 work is UNCOMMITTED in the tree (read the |
| 4 | "Round 2" section of CONTROLLER-REPORT-live-open-failures.md). Same HARD |
| 5 | RULES as round 1. |
| 6 | |
| 7 | Controller decisions: |
| 8 | - E1 (answers your D2 question): YES. Allow, for Codex 0.165.0 only, in |
| 9 | the staged runtime home only, symlinks at exactly |
| 10 | `tmp/arg0-linux/codex-arg0<suffix>/{apply_patch,applypatch,codex-linux-sandbox}` |
| 11 | where `<suffix>` matches the pattern you observed (pin it narrowly), the |
| 12 | link is owned by the runner uid, and its target (read with Readlink, |
| 13 | never followed) is exactly the in-namespace pinned codex path the |
| 14 | launcher mounts (e.g. `/opt/codex`). Also allow the containing |
| 15 | directories. Any other symlink, name, or target stays |
| 16 | `runtime_special_entry`. Tests for each refusal. Make the replay pass |
| 17 | regardless of cancellation timing. |
| 18 | - E2 Claude runtime home (Opus review of 07f6984, Important 1+2): the |
| 19 | Claude preflight runs the full `-p` command and Open then walks the |
| 20 | runtime home; neither has been observed. Using the pinned claude in |
| 21 | ~/.local/share/equipo/try/bin with a fresh EMPTY CLAUDE_CONFIG_DIR under |
| 22 | $TMPDIR inside the launcher's bwrap shape, run the production Claude |
| 23 | preflight/Open path as far as it goes unauthenticated (like |
| 24 | TestCodexEmptyHomeReplay; skip when the binary is absent) and record the |
| 25 | runtime-home tree (names/kinds/modes only). Allow only recorded, |
| 26 | non-policy-bearing scratch/state entries for Claude 2.1.312 with the |
| 27 | same guards as Codex; keep `plugins`, `skills`, `agents`, `commands`, |
| 28 | `hooks`, `settings*.json`, `CLAUDE.md`, MCP config refused. If a |
| 29 | settings switch prevents an entry (e.g. disabling shell snapshots, |
| 30 | session env, IDE, plugins), prefer the switch and assert it. Give |
| 31 | Claude-specific fixed reason categories so an unexpected entry names |
| 32 | its category without echoing agent-controlled names. |
| 33 | - E3 Opus minors: share the auth argv constant between |
| 34 | capture_framing.go:18 and claude/launcher.go:331; check the manifest's |
| 35 | provider version as well as the binding's (capture_framing.go:19); fix |
| 36 | the comment at codex/config_readback.go:21-36 to say the two disabled |
| 37 | flags are not reflected in typed config and the live tool inventory |
| 38 | check (directlive/coordinator_inventory.go) is the real guard. |
| 39 | - E4 Targeted tests, then ONE full `make -k ci` (rerun at most twice). |
| 40 | Add "Round 3" to the controller report. Commit (subject < 80 chars, body |
| 41 | `Co-Authored-By: Astra <noreply@openai.com>`; separate commits for round |
| 42 | 2 and round 3 are fine), push `live-open-failures`. Scratch removed. |
| 43 | If blocked on a decision again, commit nothing, write the question in |
| 44 | the report and print it. Print a five-line summary. |
| 45 | |