Fix PR base retarget ordering after ancestry changes#2106
Open
konard wants to merge 3 commits into
Open
Conversation
Adding .gitkeep for PR creation (default mode). This file will be removed when the task is complete. Issue: #2099
konard
marked this pull request as ready for review
July 25, 2026 17:59
Contributor
Author
Working session summaryImplemented and finalized PR #2106. Key results:
This summary was automatically extracted from the AI working session output. |
Contributor
Author
🤖 Solution Draft LogThis log file contains the complete execution trace of the AI solution draft process. 💰 Cost estimation:
📊 Context and tokens usage:
Total: (407.0K + 16.9M cached) input tokens, 32.4K output tokens, $22.386909 cost 🤖 Models used:
📎 Log file uploaded as Gist (7609KB)Now working session is ended, feel free to review and add any feedback on the solution draft. |
Contributor
Author
✅ Ready to mergeThis pull request is now ready to be merged:
Monitored by hive-mind with --auto-restart-until-mergeable flag |
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.
Summary
archcore-ai/plugin#24solver run from authenticated logs, issue/PR timelines, all GitHub comment channels, and the fork CI record.docs/case-studies/issue-2099/.Root cause
The agent merged the unrelated
devhistory locally, then rangh pr edit 26 --base devbefore pushing that merge. GitHub therefore compared the still-remotemain-rooted placeholder head against unrelateddevand closed/stranded PR 26. The replacement PR 27 was valid, but its workflow stopped at the expected public-fork approval gate with zero jobs; no tests failed.Reproduction and regression
The archived timeline records:
main;devmerged only into the local feature branch;tests/test-pr-base-retarget-order-2099.mjsbuilds every supported agent prompt and verifies the required ordering: push ancestry, verify the remote head SHA, then retarget.Verification
node tests/test-pr-base-retarget-order-2099.mjsnpm run format:checknpm run lintnpm run check:duplicationbash scripts/check-mjs-syntax.shbash scripts/check-file-line-limits.shnpx -y node@24 scripts/run-tests.mjs --suite default— all 350 selected test files passednpx -y node@24 scripts/validate-changeset.mjsFixes #2099