Skip to content

fix(carry): conflicts name the later carry groups to retag to - #633

Merged
lastobelus merged 6 commits into
lastcode/mainfrom
lastcode/carry-conflict-message
Nov 8, 2026
Merged

lastobelus merged 6 commits into
lastcode/mainfrom
lastcode/carry-conflict-message

Conversation

@lastobelus

@lastobelus lastobelus commented Nov 8, 2026 •

Copy link
Copy Markdown
Owner

When a same-base carry replay conflicts, carry CI only said "Reconcile the source contributions with their owning groups". The agent then had to search git log for the later carry group that changed the same lines. The #613 landing hit this, and its fix turned out to be a trailer change.

Fix

When compileCarrySetSameBase stops on a conflict, it now diagnoses it:

  • Which commits caused it. It blames the stopped commit's old-side hunk lines (widened by one, since Git conflicts on adjacent changes) at its parent, and maps those lines to later-group replay items: compiled group commits, live source commits, and lines in a merged squash re-blamed inside its retained source range. If blame maps to nothing, it falls back to any later-group change to the file and says so.
  • What it names. The conflicting files; the replayed commit and its group; the later commits and groups that changed those lines; any files nothing explains; and the likely fix. The fix retags to the latest such group or splits the commit, and names later commits that need the same move.
  • Where the advice shows. The shared CarryReplayConflictError message carries only the diagnosis, after the git output, because on the checkpoint and carry-set paths the stopped commit is merged history. Carry CI renders the retag-or-split advice.
  • When it stays silent. The rebase state and replay plan are left in place. A conflict the diagnosis can't explain, a cross-base compilation, or a failure inside the diagnosis surfaces the original error unchanged.

Example, from real lastCode history with #613's four commits all tagged tooling:

Carry replay conflicted in .agents/skills/babysit/SKILL.md, … while replaying fccbbd10cf8c "docs(agents): replace review-pr and babysit with the global skills" (Carry-Group: tooling).
These commits in later carry groups changed those lines earlier in history, so the replay has not applied them yet:
- compiled build-ci group commit 17b056a1ec80: …
- compiled resumable-actions group commit 2db86d2053a7: …
- compiled incubator group commit 761c457a1820: …
Likely fix: retag fccbbd10cf8c's Carry-Group to incubator so it replays after them, or split …
These later commits also edit those files and would still replay before incubator; move them the same way:
- 8e51a587a792 "style(agents): separate the multi-paragraph lastcode-pr list item" (Carry-Group: tooling)
- …

incubator is what #613 landed as.

Proof

  • New carry CI tests cover four cases: multiple later groups; the conflicting-lines group beating a later group that edited another hunk of the same file, with followers only from groups that need moving; squash lines traced to their source commit; and deletion-partition labels. Each fails against the earlier code.
  • On real history:
  • vp run check:changed origin/lastcode/main passes, and this branch's own carry CI validates.

Local review: 3 rounds with gpt-6.1-terra (xhigh) & claude-opus-5-5 (xhigh), not clean. churn-gate judged MEDIUM (converging). Its cut was applied, then one narrow Terra verification pass: 1 should fixed, 1 declined.

Claude Opus 5.5 in Claude Code (T3 Code).

🤖 Generated with Claude Code

@lastobelus
lastobelus force-pushed the lastcode/carry-conflict-message branch 3 times, most recently from 1538e4c to 4e1847e Compare November 8, 2026 07:29
lastobelus and others added 6 commits November 8, 2026 00:35
…l error on diagnosis failure

Carry-Group: build-ci

Co-Authored-By: Claude <[email protected]>
…ag advice out of shared errors

Carry-Group: build-ci

Co-Authored-By: Claude <[email protected]>
…commits that need it

Carry-Group: build-ci

Co-Authored-By: Claude <[email protected]>
@lastobelus
lastobelus force-pushed the lastcode/carry-conflict-message branch from d1eb44e to 1b1ae16 Compare November 8, 2026 07:35
@lastobelus
lastobelus marked this pull request as ready for review November 8, 2026 07:36
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 8, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-08T07:38:34.409629Z 1b1ae16 Manual request
ℹ️ 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.

@lastobelus

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 🎉

Reviewed commit: 1b1ae1601e

ℹ️ 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".

@lastobelus
lastobelus merged commit 365c8ec into lastcode/main Nov 8, 2026
20 checks passed
@lastobelus
lastobelus deleted the lastcode/carry-conflict-message branch November 8, 2026 07:49
@lastobelus

Copy link
Copy Markdown
Owner Author

Follow-ups from this PR's final report: F1, F3 and F4 are filed as #664. F2 (diagnosis takes 20–28 s, only after a failure) is not filed.

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.

1 participant