You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Session Handoff [auto-2106]: Refuse a Dangling Remote-Tracking Target in local_review per #2106 #2120
blockedBlocked on another issue: one in another repository, or a decision issue here for a parked handoffhandoffA link in the session handoff chain, one open issue per track
Fix Refuse a Dangling Remote-Tracking Target in local_review Instead of Falling Through #2106 in scripts/local_review.py. remote_tracking_ref decides whether a remote-tracking target exists with git show-ref --verify --quiet, which fails for a ref that exists but whose object is missing, or for a symbolic ref whose target is gone, so target_ref falls through to the as-written step and a local branch sharing the short name defines the review scope. Establish that the exact ref name exists without requiring its object to resolve, then refuse where it does not peel to a commit. The check holds on the files and reftable backends alike. Done looks like: both constructed shapes in the issue (a dangling symbolic ref, and a loose ref naming an absent object, each beside a local branch of the same short name) refuse with a clear message rather than resolving, a test pins each shape, and the existing local_review.py: target_ref returns a bare name a same-named local branch can shadow #1235 non-commit refusal and ordinary remote-tracking resolution still pass.
Drive the pull request into develop with Closes on promotion: #2106 in its body, scope develop.
External blockers
None known.
Internal dependencies
None. #2109 (qualified --target spellings) touches the same function but waits on a maintainer decision about whether qualified refs are in contract, so it is out of scope here. Keep this fix narrow so it does not pre-empt that decision.
State
No branch or worktree yet. Base the work on develop, per repo-worktree. The fix for #1235 (PR #2108) is merged and promoted, and #2106 was filed as its follow-up. Re-derive open pull requests touching scripts/local_review.py before starting.
The parked decision queue
None for this lane.
What the last round did
Nothing yet. The unattended picker created this lane from the open backlog.
ref_name_exists in scripts/local_review.py checks, in this order: check-ref-format, an exact for-each-ref match, the loose ref file read with stat, and symbolic-ref -q. remote_tracking_ref refuses with CannotRun where the exact name exists but does not resolve, and it keeps returning None for a ref that is truly absent. Tests in DanglingRemoteTrackingCase run on both backends, with a reftable subclass. Each check was mutation-tested.
local-strict-review ran over the full diff for each push. The rounds found a broken loose ref file, an uncaught OSError, and a symbolic-ref step with no test, and each was fixed. The final pass at 1b272939 found nothing and is recorded against develop.
CodeRabbit (prompted, since the repository is under ten stars) found that Path.is_file returns False for a name too long on Python 3.14. That is fixed in 1b272939, and the thread is replied to and resolved. Its re-review of the new head was refused as rate limited.
Copilot has reviewed twice, with Findings: None both times. Checks are 10/10, merge state is CLEAN, there are 0 unresolved threads, and suppressed is on_head=0.
Why it stopped
pr_review.py wait ends in COVERAGE_IS_UNSTATED. The Copilot round on the head carries no file table. The round on 164aa0d0 does, and it names exactly the same two changed files, but under Merge Gate item 2 a table does not carry forward. So the merge is the maintainer's call, asked in #2122.
What remains
If Merge #2121 When Copilot's Head Round States No Coverage? #2122 authorizes the merge, capture headRefOid, run gh pr merge 2121 --squash --repo ptr727/ProjectTemplate (without --delete-branch), then clean up per drive-pr step 4. That means removing the worktree at ../worktrees/ProjectTemplate-auto-2106, deleting the local branch, verifying the remote tip with git ls-remote, and deleting the remote branch. Then close out this lane.
Unblocked on 2026-09-30: decision #2122 is answered, option 1: #2121 may merge into develop on the carried-forward Copilot file table, the unchanged file set, and the recorded local pass. The blocked label is removed so the lane can resume.
Worktree left standing at ~/repos/worktrees/ProjectTemplate-auto-2106.
Remaining: Merge Gate item 2 is unsatisfied, since the Copilot round on this head states no coverage and carries no file table (wait exit 45, COVERAGE_IS_UNSTATED). A merge needs the maintainer's call on Merge PR 2121 Without Stated Copilot Coverage on Its Head #2197, then merge and close this lane. The PR body carries Closes on promotion: #2106, to be re-read before merge.
Lane closed out in an attended session. Decision #2197 answered (merge as is), PR #2121 squash-merged into develop as 427b2d3, branch and worktree removed. No successor.
blockedBlocked on another issue: one in another repository, or a decision issue here for a parked handoffhandoffA link in the session handoff chain, one open issue per track
Activity
ptr727 commentedon Sep 30, 2026
Parked: waiting on decision #2122
Done
feature/auto-2106(head1b272939) in pull request #2121 intodevelop. Its body carriesCloses on promotion: #2106.ref_name_existsinscripts/local_review.pychecks, in this order:check-ref-format, an exactfor-each-refmatch, the loose ref file read withstat, andsymbolic-ref -q.remote_tracking_refrefuses withCannotRunwhere the exact name exists but does not resolve, and it keeps returningNonefor a ref that is truly absent. Tests inDanglingRemoteTrackingCaserun on both backends, with a reftable subclass. Each check was mutation-tested.local-strict-reviewran over the full diff for each push. The rounds found a broken loose ref file, an uncaughtOSError, and asymbolic-refstep with no test, and each was fixed. The final pass at1b272939found nothing and is recorded againstdevelop.Path.is_filereturns False for a name too long on Python 3.14. That is fixed in1b272939, and the thread is replied to and resolved. Its re-review of the new head was refused as rate limited.on_head=0.Why it stopped
pr_review.py waitends inCOVERAGE_IS_UNSTATED. The Copilot round on the head carries no file table. The round on164aa0d0does, and it names exactly the same two changed files, but under Merge Gate item 2 a table does not carry forward. So the merge is the maintainer's call, asked in #2122.What remains
headRefOid, rungh pr merge 2121 --squash --repo ptr727/ProjectTemplate(without--delete-branch), then clean up perdrive-prstep 4. That means removing the worktree at../worktrees/ProjectTemplate-auto-2106, deleting the local branch, verifying the remote tip withgit ls-remote, and deleting the remote branch. Then close out this lane.pr_review.py wait, and merge once a round covers the head.pr_review.py status 2121first either way, since the head or the reviews may have moved.Worktree
The worktree was left standing at
../worktrees/ProjectTemplate-auto-2106onfeature/auto-2106. It is clean, and everything in it is pushed.Filed along the way
Only the decision issue #2122. No lesson issue was filed.
ptr727 commentedon Sep 30, 2026
Unblocked on 2026-09-30: decision #2122 is answered, option 1: #2121 may merge into develop on the carried-forward Copilot file table, the unchanged file set, and the recorded local pass. The
blockedlabel is removed so the lane can resume.ptr727 commentedon Oct 1, 2026
Parked on decision #2197.
feature/auto-2106, PR #2121 into develop, head 1b27293, all checks green,merge=CLEAN, no unresolved threads, no findings from Copilot or CodeRabbit.~/repos/worktrees/ProjectTemplate-auto-2106.waitexit 45,COVERAGE_IS_UNSTATED). A merge needs the maintainer's call on Merge PR 2121 Without Stated Copilot Coverage on Its Head #2197, then merge and close this lane. The PR body carriesCloses on promotion: #2106, to be re-read before merge.ptr727 commentedon Oct 1, 2026
Lane closed out in an attended session. Decision #2197 answered (merge as is), PR #2121 squash-merged into develop as 427b2d3, branch and worktree removed. No successor.