Repository navigation
fix(source-control): make fix-ci resolve every path in the checkout - #13044
Conversation
In the pull-request skill's ci --ci flow, an agent sometimes joined a context-file path to the loaded plugin copy's directory and aimed its fix there instead of at the workspace file with the same relative path. State, where the context file's fields are described, that every path and every edited file is relative to the pull request's checkout, never this skill's own directory. Refs #13009 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_015te8CsyoyMhoEcPAAHxicU
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
claude-security-review reviewed Security review: PR #13044I found no security issues. I read both changed files in full.
The diff changes no trust control, merge hold, token scope, plugin manifest, workflow or executable code. The PR context file holds no embedded text telling the lane to pass the PR, skip a check, drop a finding or post elsewhere. There were no earlier findings from this lane and the round cap does not apply. Spend: none in this diff. The 126 eval runs in the PR description drew on prepaid model usage and already happened; the change adds no spend. critical-findings: 0 |
|
claude-review reviewed Code review: no findingsI read every hunk in both changed files ( What changed: one paragraph in the "The context file" section of Checked:
No spend or cost implications. |
Closes #13009
Summary
In the pull-request skill's
ci --ci(fix-ci) flow, an agent sometimes joined a context-file path to the loaded plugin copy's directory and aimed its fix there, instead of at the workspace file with the same relative path. In plugin eval the sandbox denied that edit. In a real lane the plugin copy may be writable, so such a fix could land in the installed plugin and leave the pull request unfixed.Fix
plugins/source-control/skills/pull-request/reference/ci-ci.md: new paragraph where the context file's fields are described. Everypathin the file, and every file the agent edits, is relative to the working directory (the pull request's checkout), and is never resolved against the skill's own directory, even when the same relative path exists in both..changes/source-control/fix-13009-fix-ci-edit-target-1063ef73.md: patch fragment.No guard hook: done-when 1 accepts the text form, and the eval below met done-when 2.
Verification
Measured under a preregistration posted before any run. Result: 126 runs (Sonnet, Opus judge, Claude Code 2.1.318), and
run-validity.py --scaffoldedjudged all 19 result files VALID.pull-request-ci-mode-makes-room-without-cutting-criterion-lineon this branch had 0 of 18 runs with an Edit or Write under the plugin copy, and 18/18 passed. The scorer could see such an edit: all 18 traces cite both the plugin copy's path and the workspace'sskills/run-review/SKILL.md. Main's rate was about 1 in 30 (0 of 12, then 1 of 18), so 0 of 18 meets the criterion but does not show the behavior is gone.pull-request-ci-mode-*cases, 6 runs per arm: identical pass counts before and after in every case.fixes-shell-lintis 0/6 on both arms because the host'sshellcheckdoes not run inside the eval sandbox, so it is an environment limit, not this change.check-affectedpassed.Related
🤖 Generated with Claude Code
https://claude.ai/code/session_015te8CsyoyMhoEcPAAHxicU