Repository navigation
Reject invalid repository skill parent links before Codex launch - #1578
Merged
Merged
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
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>
…po-instructions-2
…78/1479-skill-parent-links
Architecture-Review: unchanged; the existing pre-launch checkout containment rule now also covers the parent directories. Co-Authored-By: Codex <noreply@openai.com>
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>
There was a problem hiding this comment.
loopzero primary review by claude on a817d44d5a7b1ef85c1ae791d837fb94f1714b34, 26.8s: approve (0 critical, 0 important, 1 suggestion)
Same-family fallback: every configured family contributed (claude, codex). Cross-family review is preferred.
Settings per native call (launch configuration and CLI claims, not backend attestation):
- Call 1: requested model claude-opus-5-5 (effort medium); CLI-reported model claude-opus-5-5 (effort unknown); configured model claude-opus-5-5 (effort medium)
Findings without a file location:
- suggestion: Parent-level containment is new but untested —
_repository_skill_pathsnow resolves.agentsand.codexstrictly and checks they stay inside the checkout (runners.py:529-531) before it descends intoskills. As a result,.agents -> /outsidenow fails even when the outside directory has noskillschild. Before this change it was rejected only if/outside/skillsexisted. The task names this containment as a goal, buttest_codex_skill_links_leaving_the_checkout_fail_before_scan_or_launchonly covers.codex/skills/hostand.agents/skills, so nothing pins the new boundary. Add".agents"(or".codex") to that parametrize list. It fits on the existing line, so the test file still has no net line increase, and it checks the error is raised before any scan or Codex call.
Native Claude output is retained in the restricted local review receipt.
eowca
marked this pull request as ready for review
November 26, 2026 07:24
Contributor
Author
|
@Mergifyio queue |
✅ Merged into
|
Contributor
Author
|
No description provided. |
Closed
14 of 22 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Reject invalid repository skill parent links before Codex launch
Context and goal
Closes #1479
Acceptance
Validation
Recorded for
a817d44d5a7buv 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 0On #1432's head 062029e, all four added cases fail at the Codex version probe. With this change, 13 focused Codex skill and launch tests pass. The test file shrinks by one line. This uses the same path validation and pre-launch failure boundary as #1432.
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.Review