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
Close the Read-Then-Act Windows in the Unattended Worker's Promotion Step #2617
Copilot raised two read-then-act windows in unattended-handoff "The Worker" step 3 on promotion #2616. Both are in text #2549 added.
The blocker check is read once, before the promotion path. The worker reads the open decision issues, finds none blocking the promotion, then drives develop and the promotion to a merge. A decision answered and closed in between is no longer visible. If its answer was not "merge", the promotion merges anyway. merge-and-release re-verifies the Merge Gate at invocation, but the gate has no item for an open or just-answered decision issue.
The Fixes lines are a read-modify-write of the promotion body. Under a blocked promotion, the worker adds a Fixes line to the open promotion's body. gh pr edit --body-file replaces the whole body. A Fixes line another session added between the read and the write is lost, and that issue stays open after the promotion merges.
Change
Repeat the blocker read immediately before the promotion merge, against the head being merged, and park where a decision naming that promotion is open or was closed since the first read.
Re-read the body immediately before the write and merge the Fixes lines into it, or re-read after the write and repeat the edit where a line is missing.
Done when
unattended-handoff "The Worker" step 3 states both, regenerated with build_dist.py, and build_dist.py --check is clean.
Activity
Close the Read-Then-Act Windows in the Unattended Worker's Promotion …