Repository navigation
Keep the reviewed head's instruction files and skills away from Codex reviewers - #1432
Conversation
…ewers The Codex reviewer now launches with project_doc_max_bytes=0, so the reviewed head's AGENTS.md and AGENTS.override.md are not loaded, and with a skills.config entry disabling every skill under the checkout's .agents/skills and .codex/skills. The PR controls both surfaces; they now reach the reviewer only as evidence. ARCHITECTURE.md and CONTRACT.md state which instruction surfaces each reviewer loads. Closes #1107 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A skill directory under the reviewed checkout that links outside it is now rejected before anything behind the link is scanned, and a disable list too large for one process argument fails as a runner error, so neither can leave a PR-selected skill enabled or crash the launch. Refs #1107 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The repository skill list is now computed before the Codex version and help probes run, and any error while listing skills, including symlink loops and paths that cannot be encoded as UTF-8, fails the attempt as a runner error so the next reviewer family is tried. Refs #1107 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…po-instructions-2
There was a problem hiding this comment.
loopzero primary review by codex on c3c32168e8ffce639e63f71a1f2601e11ba89a4c, 87.6s: request_changes (1 critical, 1 important, 0 suggestion)
Settings per native call (launch configuration and CLI claims, not backend attestation):
- Call 1: requested model gpt-6.2-astra (effort medium); CLI-reported model gpt-6.2-astra (effort medium); configured model gpt-6.2-astra (effort medium)
Raw reviewer output
Native Codex transcript retained in the restricted local review receipt; public evidence is publisher-derived, not backend attestation. Exact raw SHA256: 0e9c888e170aef627dd7871d78a9f089c609f4c2ac1459c7da8760de38250356
A looping or dangling link at or under either skill root now fails the Codex attempt instead of being skipped, a symlinked SKILL.md is disabled by its target, and a DEL character in a skill path is escaped so the skills.config override stays valid TOML. Refs #1107 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
There was a problem hiding this comment.
loopzero delta review by codex on 15469fa011cbc136e64b16392ce0e1e1d0f90c41, 28.7s: request_changes (0 critical, 1 important, 1 suggestion)
Settings per native call (launch configuration and CLI claims, not backend attestation):
- Call 1: requested model gpt-6.2-astra (effort medium); CLI-reported model gpt-6.2-astra (effort medium); configured model gpt-6.2-astra (effort medium)
Raw reviewer output
Native Codex transcript retained in the restricted local review receipt; public evidence is publisher-derived, not backend attestation. Exact raw SHA256: 6e9071690fe7e5c2eb6276d18d8f87c0fb5d233ae0bd08a26eec6884a985dda8
|
|
||
|
|
||
| def _plant_skills(repo: Path) -> None: | ||
| for skill in (repo / ".agents/skills/a/b", repo / ".agents/skills/e\x7f", repo / ".codex/skills/c", repo / "docs/d"): |
There was a problem hiding this comment.
suggestion: Cover a symlink on SKILL.md itself
The argv test covers a symlinked directory, but every SKILL.md in the fixture is a regular file. Add a SKILL.md symlink to an in-checkout file with a different basename and assert that the disable entry contains the resolved target. This exercises the file-link behavior independently of directory traversal.
…po-instructions-2
|
@Mergifyio queue |
✅ Merged into
|
|
No description provided. |
Architecture-Review: unchanged; the merge retains the landed review policy and validates the skill parent paths at the existing pre-launch boundary. Co-Authored-By: Codex <noreply@openai.com>
Keep the reviewed head's instruction files and skills away from Codex reviewers
Context and goal
AGENTS.md(orAGENTS.override.md) as instructions and lists the skills under.agents/skillsand.codex/skills; a$namemention in the prompt, which carries PR text, also injects a skill's full body. The PR controls all of these files.project_doc_max_bytes=0turns project docs off. Codex has no switch that turns repository skills off as a group: itsskills.configlist disables individual skills by exactSKILL.mdpath or name. The Claude reviewer already runs with--setting-sources "", which keeps project settings andCLAUDE.mdout.Closes #1107
Acceptance
AGENTS.md,AGENTS.override.md,.agents/skills/*/SKILL.mdand.codex/skills/*/SKILL.mdleaves none of that text in the session rollout, including when the prompt mentions those skills by name (verified against the pinned Codex 0.167.0 and the current 0.170.0).project_doc_max_bytes=0and askills.configentry disabling everySKILL.mdunder the checkout's.agents/skillsand.codex/skills, including nested and symlinked skills. A skill directory linking outside the checkout fails the attempt before anything behind the link is scanned and before Codex starts, and so does a disable list too large for one process argument; both fail as an ordinary runner failure, so the next reviewer family is tried. The runner argv test asserts this; the existing Claude argv test still asserts--setting-sources "".Notes
codex debug prompt-inputand livecodex execsession rollouts): without options, AGENTS.override.md text and both skill descriptions appear;project_doc_max_bytes=0removes the project doc only;skills.include_instructions=falsehides the skill list but a$namemention still injected the skill body into the rollout; per-pathskills.configentries (link path or target path both match) removed every planted string from a live 0.167.0 rollout even with mentions. Codex ignored the head's.codex/config.toml(untrusted project) and did not discover skills under.claude/skills,.github/skills,skills/or nested.agents/skillsbelow the root.tests/test_runners.py::test_codex_ignores_repository_instructions_and_skillsfails on pre-fix source (noproject_doc_max_bytes=0) and passes after.--version,exec --help) runs; enumeration errors such as a symlink loop, and skill paths that cannot be encoded as UTF-8, now fail as runner errors (family fallback) instead of escaping. Tests log every fake Codex call and fail at the delta-reviewed head. This was the last review round under the budget.Base
main @ c5232bb
Base: c5232bb
Validation
Recorded for
062029ee2874uv run --group dev ruff check src tests: exit 0uv run --group dev tach check: exit 0uv run --python 3.14 python scripts/check_architecture_docs.py: exit 0scripts/size_budget.sh: exit 0uv run --group dev pytest -q: exit 0Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.Review