| 1 | # Brief: last gaps before Paul's certification run (Opus review of ad40828) |
| 2 | |
| 3 | Branch `final-gaps` from main ad40828. Read CONTROLLER-REPORT-approval- |
| 4 | controls.md and CONTROLLER-REPORT-certification-gaps.md. AUTHORISATION |
| 5 | as CODEX-BRIEF-live-turn-failures.md (paul@tito.io Claude + Codex only, |
| 6 | sequential, no full gate, no bundle, no credential contents, no |
| 7 | sign-ins); you may play the person via the guide's terminal reader. |
| 8 | Budget 25 model turns. Controller decisions: |
| 9 | |
| 10 | - H1 Codex tools that can never pass: `read_mcp_resource` (always |
| 11 | exposed by 0.165.0; Equipo's MCP server has no resources), |
| 12 | `request_user_input`, `write_stdin` (declined in run 4). Make each |
| 13 | genuinely exercisable in the workspace routing check: |
| 14 | * Equipo's MCP server serves exactly one static, read-only resource |
| 15 | (e.g. `equipo://routing-check`, short fixed text, no data, same for |
| 16 | every tuple; no other resources; list/templates reflect it) so |
| 17 | read_mcp_resource and the list tools pass on a real call. Keep the |
| 18 | coordinator's inventory rules consistent. |
| 19 | * request_user_input: the routing turn asks it once and the answer path |
| 20 | (automatic in routing, as today) completes it. |
| 21 | * write_stdin: the routing turn first starts a process with |
| 22 | exec_command that waits on stdin (e.g. `head -n1`), then writes to |
| 23 | it. |
| 24 | Prove all Codex workspace routing rows `pass` live for codex-Engineering. |
| 25 | If any tool truly cannot be exercised, stop and write the question. |
| 26 | - H2 Claude auto-allow (answers.go workspaceNativePath and the protected |
| 27 | check): auto-allow only ABSOLUTE paths under /workspace; a relative |
| 28 | `path`/`file_path` is never auto-allowed (it goes through the normal |
| 29 | person path, or is refused if that is what policy says). For Glob, |
| 30 | compute the pattern's literal base directory (components before the |
| 31 | first glob metacharacter) and run the symlink/protected check on |
| 32 | path+base; auto-allow only if that passes. Tests for relative paths, |
| 33 | `cd`-style relative escapes, and a pattern whose base is a symlink. |
| 34 | - H3 Fix the comment at 07d9f80 to state the residual race (a symlink |
| 35 | swapped after Equipo's check is still caught by Claude's own |
| 36 | symlink-aware deny rules for /home; recorded as accepted residual risk) |
| 37 | and add that to docs/superpowers/plans/CONTROLLER-REPORT-final-gaps.md. |
| 38 | - H4 Terminal reader: flush pending input (TCIFLUSH) before each prompt |
| 39 | so a stray line cannot answer the next prompt; test with a pty. |
| 40 | - H5 Targeted tests, ONE full `make -k ci` (rerun at most twice). Commit |
| 41 | subject < 80, body `Co-Authored-By: Astra <noreply@openai.com>`, push. |
| 42 | CONTROLLER-REPORT-final-gaps.md with the launch log. Scratch removed; |
| 43 | nothing running; no copy-review server. Print a five-line summary. |
| 44 | |