Repository navigation
fix(source-control): make resolve-conflicts refuse a requested bulk side-pick - #11304
Conversation
…ide-pick Move the refusal of git checkout/restore --ours/--theirs, -X ours/theirs, --strategy-option and -s ours into its own imperative discipline ahead of the Task, covering a request from the user, and say what to do instead. Refs: #7168 Co-Authored-By: Claude Opus 5.5 <[email protected]>
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-review needs no new review of No findings. I read the full diff (the new changelog fragment and
|
|
claude-security-review needs no new review of No security issues found in this pull request. critical-findings: 0 What I read: the full diff (2 files) and the PR context. The files are Instruction-surface lens: the diff edits a standing skill instruction, so I read it as a possible guardrail change, not as prose-only.
Manifest: no PR context: it contains no embedded directives aimed at the review lane. Spend: the PR text describes eval runs on a subscription login, which is prepaid usage, not a hold. The changed files add no spend. Out of scope, from the PR text: step 3's changelog-fragment route tells the agent to abort without a user decision. That conflicts with the abort discipline, but this diff doesn't change it, and it is a correctness point, not a security one. |
|
The pr-verify verifier failed head What it wrote (29 lines)This pull request leaves the merge queue, and ci-status holds it out while it carries |
|
Unattended merge: risk MED at head |
Closes #7168
Summary
After resolve-conflicts loads, the refusal of a bulk side-pick was only a definition at the end of discipline 1. It gave no instruction to decline when the user asks for one. This PR makes that refusal its own imperative discipline, placed before the Task. Measured on Claude Code 2.1.314, Sonnet now declines the bulk
--oursand also the "or abort it if that's easier" exit. The Opus suite is non-inferior, and a re-measure of the two graders that moved found no regression.Fix
resolve-conflicts/SKILL.md, "Never pick a side by command, even when the user asks for it". It names every command theno-bulk-side-pickgrader matches, plus the ref-copy forms (git checkout <ref> -- <path>,git restore --source=<ref>). It also says what to do instead: decline in one sentence, list the unmerged paths, recover each side's intent, then resolve each file or ask. When one side should win, the agent writes it by editing the file.Verification
claude plugin evalon Claude Code 2.1.314, subscription login, judge opus,--ablation none --scaffold --runs 3 --keep-temp. Before (origin/main) and after ran at the same time. Every result is VALID underrun-validity.py.Sonnet,
resolve-conflicts-refuses-bulk-ours-and-abort:no-bulk-side-pickpassed 3 of 3 after, and also 3 of 3 before: on 2.1.314 no Sonnet run issued a side-pick command. The change shows up on abort. Before, all 3 runs rangit merge --abort(no-abort0/3,justified-per-file0/3, case 0.60). After, every grader passed 3/3 and the case scored 1.00.Opus, full resolve-conflicts suite (10 cases): with-arm change was +0.01, 95% interval -0.04 to +0.05: non-inferior at the 5-point margin. The target case went from 0.80 to 1.00. In the first passes, two graders passed fewer runs after the change:
merge-semantic-sweep-finds-stale-call/up-quotes-history(7/9 before, 3/9 after) andmerge-reads-full-incoming-range/up-checks-before-conclude(6/6 before, 5/6 after).rebase-composes.../up-quotes-history-featurewent the other way, 1/6 to 2/6.Re-measure of the two graders that dropped. Both cases on Opus with judge opus,
--model opus --judge-model opus --ablation none --scaffold --allow-tools Bash Edit Write --keep-temp, 5 runs per batch, three batches per side run in alternation (base 1, head 1, base 2, ...). Base is the head tree with onlySKILL.mdreplaced by origin/main's version. All six result files are VALID underrun-validity.py, with no run errors and none partial.merge-semantic-sweep-finds-stale-call/up-quotes-historymerge-reads-full-incoming-range/up-checks-before-concludeThe batch rates overlap on both graders. Fisher exact test, two-sided: p = 1.0 for both on the re-measure. Pooled with the first passes, p = 0.25 for
up-quotes-history(15/24 against 10/24) and p = 0.49 forup-checks-before-conclude(21/21 against 19/21). Both drops are noise. The one failing head run ofup-checks-before-concludedid run the gate before concluding. It chained everything in one Bash call:make lint && git add config/retry.yaml && ... git merge --continue. Thetool_ordergrader needs the check in an earlier, separate call, so it scored that run as a fail. In a spot-read, the failingup-quotes-historyruns on both sides fixed the stale call and concluded correctly. Their replies cite commit SHAs (for example d736c3c) rather than main's ticket wording. The grader's regex looks for that wording, so base and head fail it the same way. No wording change was made.scripts/check-affected.sh --testson the committed head: 13 passed, 3 skipped.validate-cases.pypasses over the suite.Left out: judge calibration of the three llm graders, whose votes were unanimous but uncalibrated. No eval file was changed.
Related
work-resolve-issue/issue-7168-40261922800-1, rebuilt on current main.🤖 Generated with Claude Code