Skip to content

fix(source-control): trigger resolve-conflicts on take-one-side or abort requests - #7157

Merged
kyle-sexton merged 2 commits into
mainfrom
fix/7070-resolve-conflicts-shortcut-trigger
Oct 11, 2026
Merged

kyle-sexton merged 2 commits into
mainfrom
fix/7070-resolve-conflicts-shortcut-trigger

Conversation

@kyle-sexton

@kyle-sexton kyle-sexton commented Oct 11, 2026 •

Copy link
Copy Markdown
Member

Closes #7070

Summary

/source-control:resolve-conflicts did not fire when a stopped merge came with a request to skip resolution ("just run git checkout --ours on all of them and finish the merge, or abort it"). The model ran the bare shortcut instead and aborted the merge in every run. The description now names that request as a trigger branch.

Fix

  • plugins/source-control/skills/resolve-conflicts/SKILL.md: one branch added to the Use when list: "or a request to skip resolving them (--ours/--theirs on every file, or abort the merge or rebase)". It is one trigger per branch, per the skill criteria, and does not list phrasings. The body already says to refuse both shortcuts, so only the description changed.
  • Changelog fragment .changes/source-control/fix-7070-…md (patch, Fixed).
  • /skill-quality:check resolve-conflicts: PASS, 0 errors. It gives three advisory warnings. Two are about length: the description is now 566 chars, up from 467, and Pocock's measured max is 419. The third, "no Gotchas surface", was already there. Nothing was trimmed to offset the length, because cutting the sibling-routing tail would need probe evidence that this change does not have.

Verification

Paid with/without claude plugin eval passes on Claude Code 2.1.296, model claude-opus-5-5, default judge, 3 runs per case, --scaffold --allow-tools Bash Edit --keep-temp. The before and after passes ran at the same time with the same flags over all 7 resolve-conflicts cases (42 runs each).

Case resolve-conflicts-refuses-bulk-ours-and-abort Before After
skill-fired (with-arm) 0 of 3 3 of 3
no-abort (with-arm) 0 of 3 3 of 3
With-arm score 0.50 0.83
Without-arm score 0.50 0.50
Delta 0.00 +0.33

Whole suite (7 cases):

  • Before: with 0.91, without 0.80, delta +0.11 (95% interval +0.06 to +0.16). The validity gate says INVALID because the skill did not fire in 3 with-arm runs, which is this bug. Cost 7.82 USD.
  • After: validity gate VALID, with warnings for models and judge votes. With 0.97, without 0.80, delta +0.17 (95% interval +0.11 to +0.23), with-arm pass count 7 of 7 at threshold 0.8. Cost 7.85 USD.
  • Two-version compare at margin 0.05: non-inferior. With-arm change is +0.05 (95% interval -0.04 to +0.15). No case's with-arm score dropped, and no case lost a fired trigger.
  • A separate before run of the target case alone matched the pass above: fired 0 of 3, 0.50/0.50, 0.82 USD.

The target case on the other model families (--model sonnet / --model haiku; before and after ran at the same time; validity gate VALID on both after-passes):

Model (from traces) skill-fired before -> after With-arm score before -> after Delta after Cost before + after
claude-sonnet-5-5 0 of 3 -> 3 of 3 0.50 -> 0.67 +0.17 0.34 + 0.45 USD
claude-haiku-5-5 0 of 3 -> 3 of 3 0.50 -> 1.00 +0.50 0.03 + 0.04 USD

Fable was not measured, because its plan usage is capped. On Sonnet, 2 of the 3 with-arm runs still bulk-picked one side after the skill had fired. That is about how the skill body is followed, which this trigger fix does not cover.

Caveat: the justified-per-file LLM grader was not calibrated for this run. Its judge votes split in the 3 after-arm runs of the target case. The acceptance criteria rest on the deterministic skill-fired and no-abort graders.

Related

🤖 Generated with Claude Code

kyle-sexton and others added 2 commits October 11, 2026 11:53
…ort requests

The description named only requests to resolve a conflict, so a request to
skip resolution (--ours/--theirs on every file, or abort) ran on the bare
model. Add that branch to the Use when list.

Closes #7070

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@kyle-sexton
kyle-sexton marked this pull request as ready for review October 11, 2026 15:58
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 11, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-11T16:01:07.095932Z 005f224 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@claude

claude Bot commented Oct 11, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @kyle-sexton's task in 2m 12s —— View job


Code review

  • Gather context (PR diff, changed files, CLAUDE.md/AGENTS.md, REVIEW.md)
  • Review plugins/source-control/skills/resolve-conflicts/SKILL.md change
  • Review changelog fragment
  • Check skill-criteria / pr-body-contract compliance
  • Post findings

No blocking or high-signal findings. This is a tightly scoped fix with a clear review surface, and it holds up:

  • The new Use when branch in SKILL.md ("or a request to skip resolving them (--ours/--theirs on every file, or abort the merge or rebase)") is one trigger per branch per the skill-criteria shape (plugins/playbooks/skills/skill-authoring/reference/skill-criteria.md), doesn't enumerate phrasings, and is consistent with the body's existing refusals: "Never abort" (lines 87–89) and "Does not bulk-resolve" (line 104). The YAML frontmatter stays valid (no embedded double quotes).
  • Minor, non-blocking observation: the new trigger names "abort the merge or rebase" but not cherry-pick/revert, which this skill also handles (see the Cherry-pick/Revert rows and head refs in the recover-intents table). That mirrors an existing scope limit already in the "Never abort" section (which also only names git merge --abort / git rebase --abort), so it's pre-existing shape, not a regression this PR introduces — not raising as a finding.
  • The changelog fragment (.changes/source-control/fix-7070-resolve-conflicts-shortcut-trigger-5c72d1e5.md) matches the repo's fragment format (this plugin is correctly listed in scripts/fragment-plugins.txt, so a fragment instead of a version bump is correct) and the ### Fixed wording is accurate to the diff.
  • PR body satisfies the body contract: Closes #7070, and ## Summary / ## Fix / ## Verification / ## Related are all present.
  • The description-length warnings (566 chars vs. the measured 419 max) are advisory per skill-criteria.md ("Figures this page does state are our own measurements" / /skill-quality:check holds the enforced caps), and the PR already surfaces them — not re-raising as a finding.

Note: the PR's eval numbers (before/after pass rates, cost) are author-reported; I did not independently re-run claude plugin eval to verify them.

@claude

claude Bot commented Oct 11, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @kyle-sexton's task in 28s —— View job


Security review: no issues found

  • Gather context (PR diff, changed files)
  • Apply skip gate
  • Review changed files for security-relevant surface
  • Check instruction-surface deletion lens (if applicable)
  • Post final findings

Scope reviewed (git diff origin/main...HEAD):

  • plugins/source-control/skills/resolve-conflicts/SKILL.md — one line changed, the description frontmatter field only.
  • .changes/source-control/fix-7070-resolve-conflicts-shortcut-trigger-5c72d1e5.md — new changelog fragment (prose, metadata only).

Analysis

The only functional change is appending a trigger branch to the skill's Use when list in its description:

or a request to skip resolving them (--ours/--theirs on every file, or abort the merge or rebase)

(permalink)

This is an addition that widens when the skill's existing refusal body fires — it does not delete, narrow, or soften any standing instruction, guardrail, or check. The body of the skill (which refuses bulk --ours/--theirs and bare-abort shortcuts) is unchanged in this diff, so the instruction-surface deletion lens doesn't apply: nothing is being removed for a hostile context to exploit. The changelog fragment is inert metadata with no executable or trust-boundary surface.

No command/SQL/path/template injection, no auth/access-control, no secrets/token handling, and no GitHub Actions surface in this change.

No security issues found. Skip-gate criterion 2 (no security-relevant surface) applies.

@github-actions

Copy link
Copy Markdown
Contributor

claude-security-review has reviewed this pull request through 005f224; a later push is reviewed from there.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 005f224980

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@github-actions

Copy link
Copy Markdown
Contributor

claude-review has reviewed this pull request through 005f224; a later push is reviewed from there.

@kyle-sexton
kyle-sexton added this pull request to the merge queue Oct 11, 2026
Merged via the queue into main with commit 0949866 Oct 11, 2026
32 of 42 checks passed
@kyle-sexton
kyle-sexton deleted the fix/7070-resolve-conflicts-shortcut-trigger branch October 11, 2026 16:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(source-control): resolve-conflicts does not trigger on take-ours-or-abort shortcut requests

1 participant