Skip to content

feat(source-control): recover conflict intent in the pull-request base-merge step and add a CI conflict mode - #13149

Merged
kyle-sexton merged 2 commits into
mainfrom
work-resolve-issue/issue-13137-41792527441-1
Nov 4, 2026
Merged

kyle-sexton merged 2 commits into
mainfrom
work-resolve-issue/issue-13137-41792527441-1

Conversation

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor

Closes #13137

Summary

Opened by the work-resolve-issue lane. The run's own summary:

Moved the conflict discipline from /source-control:resolve-conflicts into /source-control:pull-request's base-merge step: a new 'Resolve a conflicted merge' subsection of ready-for-review.md §2.5.2. It covers mapping the stop, recovering both intents, composing by default, the semantic-conflict sweep and verify, plus the 'never pick a side' and '--abort is not a resolution strategy' rules. It escalates only when both intents cannot hold. The plugin version-bump collision rule moved to a 'Plugin version-bump collisions' subsection beside it. Added conflicts --ci --unattended, following comments --ci --unattended, as reference/conflicts-ci.md. It reads conflicts.json, runs no command, edits no workflow file and escalates unresolvable paths by leaving their markers. Repointed create.md, push-branch.sh's exit-4 message and the babysit-loop and babysit-prs citations to the new home. Design choice: the discipline is written for a merge only, since every caller of §2.5.2 merges and never rebases. The pr-unblock lane's config (docs/conventions/pr-pipeline.yaml, which calls source-control:resolve-conflicts with args: ci) is not switched here. This issue's done-when does not ask for it, and the switch belongs with the skill's removal in #7576's PR 3. The changelog fragment says the lane still calls the old skill.

Not verified

  • The pr-unblock lane config (docs/conventions/pr-pipeline.yaml resolve-conflicts activity: skill source-control:resolve-conflicts, args ci) is not switched to source-control:pull-request conflicts --ci --unattended. It is outside this issue's done-when and belongs with the removal in #7576's PR 3.
  • push-branch.test.sh and other test suites were not run here. check-affected ran no test runner for the changed files, so the suites are left to the PR's CI. The test's grep target 'conflicted; merge aborted; not pushing' is unchanged.
  • In tidy pass 5, the deterministic detector (ai-slop detect.sh) was skipped because the lane cannot run it. The rubric read and passes 1-4 ran and found nothing to change.
  • CI-only checks (lychee-offline link check, line-citations, evals-quality and others check-affected lists as CI only) are left to the PR's CI.

Fix

  • plugins/source-control/skills/pull-request/reference/ready-for-review.md: §2.5.2 now routes conflicts to a new 'Resolve a conflicted merge' subsection (three rules plus five steps, escalating only when both intents cannot hold, with unattended handling per caller) and a 'Plugin version-bump…
  • plugins/source-control/skills/pull-request/reference/conflicts-ci.md: new CI conflict mode reference, ported from resolve-conflicts' CI mode and pointing at the base-merge step
  • plugins/source-control/skills/pull-request/SKILL.md: conflicts --ci action row, phase-table row, gather-skip and monitor-entry mentions
  • plugins/source-control/skills/pull-request/reference/create.md: §2.4.1's two conflict pointers now cite §2.5.2's 'Resolve a conflicted merge'
  • plugins/source-control/skills/pull-request/scripts/push-branch.sh: the exit-4 message points to the base-merge step (ready-for-review.md §2.5.2); the prefix that push-branch.test.sh greps is unchanged
  • plugins/source-control/skills/babysit-loop/SKILL.md: the version-bump rule citation points to its new home
  • plugins/source-control/skills/babysit-prs/reference/loop.md: the discipline and version-bump citations point to the base-merge step
  • plugins/source-control/skills/babysit-prs/reference/orchestration.md: the conflict-worker contract's discipline, version-bump and abort-fallback citations point to the base-merge step
  • .changes/source-control/work-resolve-issue-issue-13137-41792527441-1-a2ce39bc.md: minor changelog fragment

Verification

The runner ran each check from the base copy against db7a2b2:

  • scripts/check-changelog-fragments.sh --check: passed
  • scripts/check-changed-skills.sh --merge-base: passed

The run reports:

  • check-changelog-fragments: all 40 fragments valid
  • check-changed-skills: babysit-loop, babysit-prs and pull-request PASS with 0 errors (warnings are existing size and description warnings, plus pull-request's SKILL.md body growing 295 -> 297 lines)
  • check-affected: 13 passed, 6 skipped over 9 changed files. Earlier runs failed MD022 on anchor lines before the new headings (the explicit anchors were dropped in favor of heading slugs) and an argument-hint over the 100-character budget (the hint addition was reverted). Both are fixed.
  • Fresh-context review subagent: links, anchors and Phase 0 routing all resolve. It reported 2 medium and 4 low findings: the unattended escalation contradicting the babysit contracts, a BASE variable-name clash, the PR-side full patch read dropped, dropped qualifiers, a leftover resolve-conflicts…
  • Grep: no current file cites a line number this change shifted (the only hits are historical ADR and upstream-record citations)
  • The lane run: https://github.com/melodic-software/claude-code-plugins/actions/runs/41792527441

Left out: the items under Not verified.

Related

#13137

Lane-Activity: work-resolve-issue/resolve-issue
@github-actions

github-actions Bot commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

claude-security-review reviewed dfcf5fe949defddc296cf96993acea7f5c8a25b2: read 1 of 1 changed file(s); 0 finding(s), 0 as inline comments.

Security review (incremental since db7a2b2): no security issues found

I read the only hunk of the one file in scope, plugins/source-control/skills/pull-request/reference/ready-for-review.md (step 5 of "Resolve a conflicted merge"). I also read the surrounding §2.5.2 text at head for context. The file does not match any TRUSTED PATHS glob.

What changed. Step 5 used to tell every caller to push through push-branch.sh after git merge --continue. It now says the step itself pushes nothing, and each caller pushes its own way:

  • the local fallback pushes through push-branch.sh --pr;
  • create §2.4.1 pushes through its own push-branch.sh --dir;
  • a babysit conflict worker never pushes;
  • the CI mode does not push at all.

Instruction-surface lens. This is a standing instruction being rewritten, so I checked whether it removes a guardrail. It does not; it makes the instruction narrower:

  • Before this change, step 5's blanket "push through push-branch.sh" could be read as telling the babysit conflict worker and the CI mode to push, which their own contracts forbid.
  • Now those two callers are explicitly told never to push. That matches their contracts: the babysit worker is local-only, and the CI mode in conflicts-ci.md never commits, continues, aborts or pushes.
  • The rules for staging the resolved paths by name (never git add -A) and for running only with the gates green are kept.
  • Unchanged in this push: "never pick a side by command", "--abort is not a resolution strategy", and the unattended "push nothing" escalation (lines 141-180 at head).

I did not consult the instruction exception register. I judged the change by what would break without the old rule, and no protective rule was lost.

Not affected by this push: no new untrusted text reaches a credentialed lane, no token or tool grant is widened, no trust control or merge hold is touched, and no plugin manifest is changed.

PR context. The description contains no embedded instructions aimed at this lane.

Prior findings. The previous round had 0 findings, so nothing carries over. The round cap was not reached.

No hold applies: there is no CRITICAL finding and nothing here can cause a charge.

critical-findings: 0

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

claude-review: 2 inline finding(s) on db7a2b2d49e9efae262979bce9249848ec9a789d; the summary is in this lane's pull request comment.

claude-lane: claude-review

@github-actions

github-actions Bot commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

claude-review reviewed dfcf5fe949defddc296cf96993acea7f5c8a25b2: read 1 of 1 changed file(s); 1 finding(s), 0 as inline comments.

Code review: PR #13149 (incremental, db7a2b2d → dfcf5fe9)

This push changes one file, plugins/source-control/skills/pull-request/reference/ready-for-review.md, and I read its whole change.

This push fixes the earlier finding

Step 5 of "Resolve a conflicted merge" now ends at git merge --continue and says the step pushes nothing (ready-for-review.md:189-194). Each caller pushes its own way:

  • the local fallback pushes through push-branch.sh --pr, as at line 120;
  • create §2.4.1 pushes through its own push-branch.sh --dir, which create.md:257 confirms;
  • the babysit conflict worker never pushes;
  • the CI mode doesn't push at all.

This matches the "push nothing" in step 3's unattended bullet (line 176) and the babysit worker's local-only contract, so the contradiction from my last review is gone. I'm not posting it again.

Findings

  1. already posted: feat(source-control): recover conflict intent in the pull-request base-merge step and add a CI conflict mode #13149 (comment). Nothing tests the new conflicts --ci mode or the base-merge discipline. Every existing eval targets resolve-conflicts, which source-control: PR pipeline states, review venue, findings lane and statuses #7576's PR 3 removes. conflicts-ci.md hasn't changed since that comment, so the finding still stands. It is advisory.

Notes

  • Wording nit, not counted as a finding: line 133 lists four callers, and step 5's push list names three of them. It leaves out "a merge redone by hand after push-branch.sh exits 4", which by implication pushes through push-branch.sh --pr again.
  • Everything in my previous summary about the closing issue still holds. All of feat(source-control): recover conflict intent in the pull-request base-merge step and add a CI conflict mode #13137's criteria are met in text, and the CI mode and discipline have no test (finding 1).
  • No plugin manifest changed in this push. No settled threads applied. This is round 2 of a cap of 3, so the cap did not apply.
  • I ran no commands. All verification results quoted in the PR body are the author's and I have not checked them.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The unattended merge path armed native auto-merge at head db7a2b2d49e9efae262979bce9249848ec9a789d.

Lane-Activity: pr-unblock/address-feedback
Lane-Thread: PRRT_kwDOTCGFQM6zf4Hu
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

pr-unblock / address-feedback finished round 1 of max 4 on dfcf5fe.

@melodic-automation-lanes melodic-automation-lanes Bot added the needs-session A pr-unblock stop a session builder takes: a change the lane cannot make. Not an owner stop. label Nov 4, 2026
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The pr-unblock lane stopped address-feedback on this pull request: the lane left a review finding open and no adjudicator verdict settled it: none was recorded, it found the finding does not hold where the lane had not disputed it (an UNCERTAIN or VALID-defer reply), which only an INCORRECT reply lets a verdict resolve, it found the finding asks only for tests whose covering check runs had not all passed when the round began, or it raised a security question on a finding the security-review lane rated below CRITICAL; so a session builder takes it. The lane labels it needs-session for a session builder, who makes the change this lane cannot, and the run ends in a failing pr-unblock/address-feedback status on the head the lane gated.

When a retry on this head can change the outcome, the lane runs one on its own, up to its per-head cap, and edits this comment if it stops again; a run that does not stop clears the status. When no retry can (a review thread the lane does not take or settle, or a failing check after the retries are spent), a person resolves the threads or gets the checks green, then dispatches the workflow below: that run finds the cause gone and clears the status. On a pull request the lanes App opened, the dispatchers start that run once per stop; on any other, a person does. A new commit to the branch starts clean.

To run it again on this head now, dispatch the pr-unblock workflow:

gh workflow run pr-unblock.yml -R melodic-software/claude-code-plugins -f pr-number=13149 -f activity=address-feedback

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

Unattended merge: native auto-merge leaves this pull request unarmed at head dfcf5fe949defddc296cf96993acea7f5c8a25b2. The lanes clear this reason on their own; the next scheduled run judges it again.

a pr-unblock lane stopped its head (pr-unblock/address-feedback is failure), which clears when the
  lane runs again

@kyle-sexton kyle-sexton removed the needs-session A pr-unblock stop a session builder takes: a change the lane cannot make. Not an owner stop. label Nov 4, 2026
@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 4, 2026
Merged via the queue into main with commit 126ff74 Nov 4, 2026
96 checks passed
@kyle-sexton
kyle-sexton deleted the work-resolve-issue/issue-13137-41792527441-1 branch November 4, 2026 09:12
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.

feat(source-control): recover conflict intent in the pull-request base-merge step and add a CI conflict mode

1 participant