| 1 | # Brief: live open round 2 — Codex runtime home (controller decision) |
| 2 | |
| 3 | Same worktree/branch `live-open-failures`, at 07f6984. Read |
| 4 | CONTROLLER-REPORT-live-open-failures.md first. Same HARD RULES as round 1 |
| 5 | (never read account-home contents, never launch providers against Paul's |
| 6 | homes, no live gate, read-only on ~/.local/share/equipo*). |
| 7 | |
| 8 | Problem: in the disposable STAGED runtime home, pinned codex 0.165.0 |
| 9 | app-server creates at startup `.tmp`, `tmp`, `goals_1.sqlite`, |
| 10 | `installation_id`, `memories_1.sqlite`, `queue_1.sqlite`, `skills/.system` |
| 11 | (your empty-home recording). The runtime-home validator refuses `.tmp` and |
| 12 | `skills`, so every Codex specialist open would fail again. |
| 13 | |
| 14 | Controller decision (fixed): |
| 15 | - D1 Skills: first look for a 0.165.0 config/feature switch that stops the |
| 16 | bundled system skills being installed or loaded (check `codex --help`, |
| 17 | `app-server --help`, `-c` keys accepted under `--strict-config`, the |
| 18 | config readback in the recorded `equipo:3` response, the binary's |
| 19 | feature list via `codex features list` if it exists). Verify with the |
| 20 | empty-home probe. If a switch exists, add it to the launcher's argv for |
| 21 | every Codex launch (specialist + coordinator), keep `skills` refused, |
| 22 | and assert the config readback shows it disabled. |
| 23 | If NO switch exists: allow `skills/.system` only when its whole tree |
| 24 | (relative paths, kinds, modes, sizes, sha256 of each file) matches a |
| 25 | recorded manifest captured from the pinned binary in an empty home and |
| 26 | pinned to codex.ExecutableSHA256; anything else under `skills` refused. |
| 27 | Also verify via config/tool readback that no skill-provided tool is |
| 28 | exposed to specialists; if one is, refuse. |
| 29 | - D2 Scratch and state: allow exactly `.tmp`, `tmp` (directories, owned by |
| 30 | the runner uid, no setuid, no symlinks escaping), `installation_id` |
| 31 | (regular file), and the sqlite files `goals_1.sqlite`, |
| 32 | `memories_1.sqlite`, `queue_1.sqlite` plus their `-shm`/`-wal` |
| 33 | siblings (regular files), all in the staged runtime home only, never |
| 34 | the source home. Nothing else new. Memories: if a config key disables |
| 35 | Codex memories, set it too and check the readback. |
| 36 | - D3 Replay: an end-to-end test that runs the real pinned codex app-server |
| 37 | in an empty bwrap home through the production specialist Open path as |
| 38 | far as it can go unauthenticated (it should now fail on the missing |
| 39 | account, not on containment). Same for the coordinator. Skip with a |
| 40 | clear message when the pinned binary is absent (CI), so CI stays green. |
| 41 | - D4 Targeted tests, then ONE full `make -k ci` (rerun at most twice). |
| 42 | Update the controller report with a "Round 2" section. Commit subject |
| 43 | < 80 chars, body `Co-Authored-By: Astra <noreply@openai.com>`, push. |
| 44 | Scratch under $TMPDIR removed. Print a five-line summary. |
| 45 | |