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
D4.7 Omits the Re-Check-to-Dispatch and Pending-Run Residuals #2002 Names #2009
WORKFLOW.md D4.7, and its copy in workflow-ci-contract's references/d-guarantees.md, dispatches the publisher only when "the branch has not moved again since that check". It justifies refusing a non-bot update on the grounds that dispatching "would publish a human merge nobody dispatched, which D4.1 forbids". The step does not fully guarantee that, and the guarantee text leaves out both residuals that #2002 names in its PR body.
The two residuals D4.7 does not state
The gap between the re-check and the dispatch. The branch re-check is git ls-remote just before gh workflow run ... --ref "$BRANCH". A workflow_dispatch run's github.sha is the branch head when the dispatch event is created, and the publisher passes ref: ${{ github.sha }}. So a human merge landing between the ls-remote and the dispatch call is built, tagged, and published with nobody having dispatched it. That is the path D4.1 forbids, reached through the step D4.7 describes.
Pending-run replacement. The dispatched run waits as the publisher's concurrency group's one pending run until the self-cancel lands. A newer run queuing in that window replaces it, and if that run plans publish=false (a human merge), the change is stranded again.
Suggested direction
Name both residuals in D4.7 and in the S14 expected outcome, so a carrier reading the guarantee does not take the re-dispatch as unconditional. ptr727/aiopurpleair carries an adapted D4.7 that states both, which may serve as a starting point.
Found by a local strict-review pass in ptr727/aiopurpleair while carrying D4.7 downstream.
Activity
State the Three Gaps D4.7's Supersede-and-Dispatch Step Leaves Open (#…