Skip to content

fix(source-control): Sonnet still applies --ours to every file after resolve-conflicts loads #7168

Closed

Description

@kyle-sexton

Observed

With the #7070 trigger fix (PR #7157), /source-control:resolve-conflicts fires on the eval case resolve-conflicts-refuses-bulk-ours-and-abort in 3 of 3 runs on Opus, Sonnet and Haiku. On Sonnet, though, 2 of the 3 with-plugin runs still ran git checkout --ours on every conflicted file after the skill had loaded (Claude Code 2.1.296, 3 runs per arm). The skill body refuses a bulk side-pick, so Sonnet is not following that part of the body. Opus and Haiku did not do this.

Fix wanted

Find out why Sonnet applies the bulk side-pick after loading the skill: check where the refusal sits in SKILL.md and how it is worded. Change the body so Sonnet follows it, and keep eval evidence of no loss on Opus (skill-criteria.md). Acceptance: on Sonnet, the case's no-bulk-side-pick grader passes in at least 3 of 3 with-plugin runs, and the full resolve-conflicts suite on Opus shows no regression.

Refs: #7070

Activity

  1. added
    needs-triage
    on Oct 11, 2026
  2. github-actions commented on Oct 11, 2026

    @github-actions
    Contributor

    Proposed work class: work-class: scoped
    Basis: automated intake triage; the lanes App applied this class.

    Size: Small
    Complexity: Medium
    Uncertainty: Knowable
    Flags: none
    Blocked by: none

    Understood: after resolve-conflicts loads, Sonnet still runs a bulk git checkout --ours in 2 of 3 runs. The fix is to reword the SKILL.md refusal so Sonnet follows it, without loosening the graders. The acceptance is that no-bulk-side-pick passes 3 of 3 on Sonnet and the Opus suite shows no regression. Nothing is missing from the issue. The refinement comment already lays out the criteria. I found no duplicates. #7147 and #7157 are related but not duplicates.

    Automated triage, applied by the lanes App.

  3. added theissue type on Oct 12, 2026
  4. removed
    needs-triage
    on Oct 12, 2026
  5. kyle-sexton commented on Oct 13, 2026

    @kyle-sexton
    MemberAuthor

    Owner batch-ratified this admission in an attended session on 2026-10-12: work-class: scoped. Rule: class C1-C3, no trust surface, the independent check confirmed the recorded decision, and no owner step remains.

  6. added
    agent-ready
    and removed
    agent-ready
    on Oct 13, 2026
  7. github-actions commented on Oct 25, 2026

    @github-actions
    Contributor

    The triage sweep dispatched intake triage for this issue (attempt 1 of 2).

  8. added
    status: ready
    needs-owner-decision
    and removed
    status: ready
    on Oct 25, 2026
  9. melodic-automation-lanes commented on Oct 25, 2026

    @melodic-automation-lanes
    Contributor

    Not admitted to the issue lane: no trusted-human acceptance criteria: a listed human must put the confirmed - [ ] criteria in the body or post them as their own comment, or, on an issue a listed human filed, intake's newest refinement comment must hold them unedited. Admission takes the issue once each of those is met, when intake triages it again (.github/actions/resolve-config/admission-rules.json).

  10. melodic-automation-lanes commented on Oct 25, 2026

    @melodic-automation-lanes
    Contributor

    The latest triage verdict holds nothing: the issue is at status: ready.

  11. 4 remaining items

  12. added
    status: ready
    on Oct 26, 2026
  13. kyle-sexton commented on Oct 26, 2026

    @kyle-sexton
    MemberAuthor

    This was generated by AI.

    Releasing the hold: no question is open. The latest status: needs-decision came from admission ("no trusted-human acceptance criteria"), which ran before the refinement comment holding the criteria was posted. This issue was filed by a listed human, so the unedited refinement counts as its spec (owner Q78). The label comes off and intake triage is dispatched again so admission reads the refinement.

  14. added
    agent-ready
    needs-human
    and removed
    agent-ready
    on Oct 26, 2026
  15. melodic-automation-lanes commented on Oct 26, 2026

    @melodic-automation-lanes
    Contributor

    The work-resolve-issue lane stopped partway through this issue and needs a person.

    Why, in the run's own words:

    The SKILL.md change and its changelog fragment are written and pass the repository checks, but the issue's acceptance is measured: Sonnet must pass no-bulk-side-pick in 3 of 3 with-plugin runs, and the full resolve-conflicts suite on Opus must show no regression (skill-criteria.md Measurement). This lane can run no eval harness, no claude CLI and no interpreter, so neither measurement ran. A person or an eval-capable lane has to run both before this ships.

    What the run says it did not do:

    • Eval run of resolve-conflicts-refuses-bulk-ours-and-abort on Sonnet (3 with-plugin runs, no-bulk-side-pick must pass 3 of 3). This is the issue's acceptance and was not run: the lane has no eval harness, claude CLI or interpreter.
    • Full resolve-conflicts eval suite (plugins/source-control/evals/resolve-conflicts-*) on Opus, before and after this change, run at the same time, with no grader that passed before now failing (skill-criteria.md Measurement, issue acceptance). Not run, for the same reason.
    • changed-skills check (skill-quality over the changed SKILL.md): check-affected skipped it because it runs the checked tree's own code; left to the PR's CI
    • typos: not installed in this lane; left to the PR's CI
    • The reviewer found an existing gap that this change did not cause: discipline 3 and 'Never abort' do not say that 'or abort it if that's easier' is not an explicit decision to abandon (skills/resolve-conflicts/evals/evals.json already expects that reading). Left out because no model aborted in the r
    • The reviewer found an existing conflict that this change did not cause: step 3's changelog-fragment-mode route tells the agent to abort the operation without a user decision, which conflicts with the abort discipline. Outside this issue's scope.
    • PR-prep build/test: the change is Markdown only, with no build or test target beyond check-affected.

    Partial work is on the branch work-resolve-issue/issue-7168-40261922800-1. A retry continues from it while it is not behind the default branch, and otherwise starts fresh from the default branch; delete the branch first to always start fresh.

    Run: https://github.com/melodic-software/claude-code-plugins/actions/runs/40261922800

    To retry, remove needs-human and add agent-ready again.

  16. added
    host-run
    status: confirmed
    and removed
    status: ready
    needs-human
    on Oct 27, 2026
  17. kyle-sexton commented on Oct 30, 2026

    @kyle-sexton
    MemberAuthor

    Host run. Measured the resolve-conflicts body change (the lane's partial work, rebuilt on current main) with claude plugin eval on Sonnet and Opus, before and after at the same time.

    What ran

    • Claude Code 2.1.314, subscription login, judge opus, --ablation none held fixed, --scaffold, --allow-tools Bash Edit Write, --runs 3, --keep-temp. Before = plugins/source-control at origin/main 3101c8d; after = the same tree with the change. Both copies ran concurrently from directories outside any git repository.
    • Change: SKILL.md gains its own discipline 2, "Never pick a side by command, even when the user asks for it", ahead of the Task. It names git checkout --ours/--theirs, git restore --ours/--theirs, -X ours/theirs, --strategy-option, -s ours and the ref-copy forms, and says what to do instead (inventory, per-file intent, resolve or ask). Abort becomes discipline 3 with its wording unchanged. CI mode is untouched. A patch changelog fragment is included.
    • scripts/check-affected.sh --tests on the committed head: 13 passed, 3 skipped, exit 0. validate-cases.py over the suite: exit 0, no FAIL.
    • Every result file below is VALID under run-validity.py. The only warning is that the three CI-mode cases have no skill-fired grader.

    Results against the criteria

    Criterion Result
    Refusal is an imperative before the Task, covering a user request Met (SKILL.md discipline 2)
    Names the grader's commands and the alternative Met
    Abort discipline and CI mode unchanged in meaning Met: abort text unchanged, now numbered 3. CI mode section not edited. No cross-reference used the old numbers
    Sonnet: no-bulk-side-pick 3 of 3 with-plugin Met: 3 of 3 after. But it was also 3 of 3 before on 2.1.314: no Sonnet run issued a side-pick command in either version, so this grader no longer separates the versions. What did change on Sonnet is abort: before, all 3 runs ran git merge --abort (no-abort 0/3, justified-per-file 0/3, case score 0.60). After, all 3 composed both sides and concluded the merge (every grader 3/3, score 1.00). Spot-read: one reply from each version matches its grader verdicts
    Opus full suite: no grader that passed before now failing Met at case level. A grader-level drop is not established. Over the 10 cases, mean with-arm score is +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. Three graders passed fewer runs after, so the merge, semantic-sweep and rebase cases were rerun concurrently (6 runs per version in total). Pooled results: merge-reads-full-incoming-range/up-checks-before-conclude 6/6 before, 5/6 after; rebase-composes.../up-quotes-history-feature 1/6 before, 2/6 after; merge-semantic-sweep.../up-quotes-history 5/6 before, 2/6 after. That case got a third concurrent pass, which brought it to 7/9 before and 3/9 after. Case score went from about 0.97 to 0.92, under the one-third drop limit. The grader is a trace regex that requires the final reply to quote main's commit reason (UI-12, HTML, misleading). In a spot-read, a failing after-run and a passing before-run both fixed the stale call, ran the tests and concluded correctly. The after reply credits the rename to a commit SHA rather than ticket UI-12. So the drop is in reply detail, not in the resolution. The edit does not touch the reporting steps, and no cause is established. Fisher exact test on 7/9 against 3/9: p = 0.15 two-sided, 0.08 one-sided, so the drop is not significant at this n. The before version is as noisy against itself: up-quotes-history-feature scored 1/3 then 0/3 across its two before passes, and this case's before passes scored 2/3, 3/3 and 2/3
    skill-criteria and the plugin's changelog rule Changelog fragment added under .changes/source-control/. The description is unchanged, so triggering was not re-measured. The skill-quality static check is left to the PR's CI: check-affected skips it locally
    Graders and prompt.md not loosened Met: no eval file changed

    Cost (list-price estimate): Sonnet 0.30 before and 0.46 after, judge calls included in both. Opus suite 6.90 before and 7.02 after. Reruns about 4 more.

    The llm graders (justified-per-file, up-intents-and-drops-named, up-nothing-invented) were not calibrated against their labeled samples in this run. Their verdicts are unanimous 3-of-3 opus votes but uncalibrated.

    Findings

    • On 2.1.314 Sonnet no longer bulk-checks-out --ours with the old body. The live failure moved to abort: "or abort it if that's easier" was read as permission. The new discipline 2 says to "decline it in one sentence, then do the Task", and that now carries Sonnet past the abort too. The case's no-bulk-side-pick grader no longer discriminates on Sonnet.
    • One Opus grader, merge-semantic-sweep-finds-stale-call/up-quotes-history, passed fewer runs after the change: 7/9 before and 3/9 after, over three concurrent passes. The resolution was correct in both versions; the after replies cite the commit SHA instead of the ticket ID. Per skill-criteria a named cause stays a hypothesis until restoring text moves the number. The difference is not significant (Fisher p = 0.15 two-sided). A reviewer should decide whether this meets "no grader that passed before now failing" or needs a reporting nudge in the body.
    • Still open from the lane's reviewer and out of scope here: step 3's changelog-fragment route tells the agent to abort without a user decision, which conflicts with the abort discipline.

    PR: #11304, opened as a draft and flipped to ready through /source-control:pull-request ready. The base was merged in, and the code and security reviews were left to the healthy CI lanes. verify is disabled by pre_ready at main. A CI run started after the flip. Not merged, and no auto-merge was armed. The PR says Refs: #7168, so merging it closes nothing: close #7168 when #11304 merges, if the reviewer accepts the up-quotes-history difference as noise.

    Target labels: add none; remove host-run.

  18. removed
    host-run
    on Oct 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: confirmed

    Type

    Fields

    No fields configured for Bug.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions