Repository navigation
fix(upstream): plan early intake before anything is reconciled - #434
Merged
Merged
Conversation
When no upstream integration after the baseline is recorded yet, the reconciled boundary is the baseline commit itself. The early planner looked for that commit among the pending entries, which start after the baseline, and failed with "Reconciled boundary is outside the upstream target", so `early` stopped working right after every baseline advance. Pass the baseline to the planner and treat it as the position before the first entry.
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.
After an intake baseline advance,
node scripts/upstream-queue.ts early <PR> --through upstream/mainfailed with "Reconciled boundary is outside the upstream target". When nothing after the baseline has been recorded yet, the reconciled boundary is the baseline commit itself, and the early planner looked for that commit among the pending entries, which start after the baseline. The current baseline (d28077e585) is in that state, soearlycould not plan anything.The planner now receives the baseline and treats it as the position before the first entry. A boundary that is neither the baseline nor a pending entry still fails with the same error.
Validation
New test in
scripts/upstream-early.test.tsplans from a baseline boundary for both the replay selection and the file-overlap screen, and checks that an unknown boundary is still rejected. It fails without the fix.scripts/upstream-early.test.tsandscripts/upstream-queue.test.tspass (20 tests); lint, formatting, and the scripts typecheck are clean.Ran both
earlymodes against fetched forkmain(074a69c69) and upstreammain(b2b43bef7), with the baseline atd28077e585and nothing after it recorded yet. Onmain, each stops at the boundary:On this branch, the plan replays the pending upstream changes before the selected PR, and the screen lists the next candidates:
Written by an agent (Claude Code, claude-opus-5-5).