Repository navigation
failure-classes: register FC-merge-ref-first-parent-change-set - #14468
Merged
Git-on-my-level merged 1 commit intoSep 18, 2026
Merged
Conversation
A gate that diffs first-parent or HEAD~ on GitHub's merge ref computes the wrong PR change set. The parent-order invariance tests are the guard. Failure-Class: new Co-authored-by: Cursor <[email protected]>
Git-on-my-level
deleted the
task/msd-ci-fc-merge-ref-first-parent-change-set
branch
September 18, 2026 03:09
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed and why
Registers one failure class:
FC-merge-ref-first-parent-change-set.A gate that reasons about "what this PR changed" must compute that set as a three-dot diff
against the PR's live base. On a
pull_request, GitHub's merge ref has BASE as first parent,so walking first-parent or diffing
HEAD~describes the base's history rather than the PR's —and the same walk on a local merge can select the incoming base-side files and drop the PR's own
files entirely. Three gates in this repository had that defect and it blocked a stacked PR from
being pushed at all.
The class is registered separately from the fix because the protocol allows exactly one added
definition per PR and two gate fixes were in flight together. #14465 carries the fix.
The prevention artifact is a test, and it already exists. The reusable guard is parent-order
invariance: the same files and the same commit subjects on the branch head and on a
--no-ffmerge in both parent orders. That is what makes it a guard rather than a note — a future
rewrite to first-parent fails these tests rather than passing quietly.
Product invariants affected
none
How it was verified
python3 scripts/failure-class validatepasses with the definition present. Everyscope_hintsentry is a real tracked path, checked against
git ls-files— worth stating because thecompanion PR #14466 makes a hint matching zero paths an error, so this registration is also a
live exercise of that check.
Failure class (fixes)
Failure-Class: new
🤖 Generated with Claude Code