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
WORKFLOW.md Gives the Operational Pull Request Trigger Two Opposite Rules #4051
WORKFLOW.md states two opposite rules for the operational model's pull_request trigger. An operational repository following the earlier sentence keeps the filter the later one calls defective.
Evidence
Hub ref: main at 1397e30a, found during a resync of ptr727/HomeAutomation-Config.
The "direct commit is an allowance" paragraph (line 52) says the operational lint workflow's pull_request trigger names develop alongside main, citing section 6, and that this makes D1.2 hold.
Section 6 (line 305) says the PR trigger filters no base branch, and that a filter naming both branches still strands a stacked PR.
Expected: one rule, stated the same way in both places.
Actual: following line 52 leaves a pull request opened against a feature branch with no run, and retargeting it fires only edited, which the default activity types omit.
Fix
Reword line 52 to match section 6, since the hub's own stub dropped the filter in 9e06417.
A related point from a Copilot review of the carried text on ptr727/HomeAssistant-Config PR 84, hub main at 1397e30. Section 6 gives the stranded retarget as a reason for dropping the base filter, and says a retarget fires edited, which the default activity types omit. Dropping the filter does not change that, since a trigger with no types: still ignores edited. So the sentence gives a reason the fix does not address. Expected: either add edited to the prescribed trigger and stub, or remove the retarget clause.
A related point from a carrying repository's review, on the same section 6 sentence at hub main1397e30a.
Observed: section 6 says a retarget fires the edited activity type, which the default types omit, and that dropping the branch filter is the remedy. Dropping the filter does not add edited to the activity types, so a retarget still starts no run.
Expected: the contract states which outcome it wants. Either the operational pull_request trigger lists types: [opened, reopened, synchronize, edited], or the text says a retarget is resolved by a push or a close and reopen.
Impact: a required check that never posts leaves the pull request blocked, so this is a stranded pull request rather than a merge past the gate.
Answered by the maintainer, 2026-11-10, on the retarget clause. Drop the clause rather than adding edited to the trigger. The text says a retarget is cleared by a push or a close and reopen. A retarget is rare, the failure is a blocked pull request rather than a merge past the gate, and edited would re-run the gate on every title or body edit.
The line 52 fix is unchanged, and it is the same fix as #4011 item 1.
Two more details from a resync of ptr727/ESPHome-Config against 1397e30a.
The same "names develop alongside main" sentence is also in the carried workflow-ci-contract skill, at references/architecture.md.
Section 6's filterless trigger has one gap of its own. A pull request opened against a feature branch posts the required context on its head, and retargeting it onto main fires only edited, so no new run starts. The context can then satisfy the main ruleset from a run that diffed against the feature branch. It needs a retarget onto main, which the promotion model does not call for, so this may only need a sentence.
Follow-up to my note above, which overstated the gap. With no base filter, a stacked pull request already gets a run when it opens, so the retarget case differs from a filtered trigger that never ran at all. The open question is narrower: whether the check from that opening run still satisfies the required context after a retarget. If it does, the edited clause only needs rewording. If it does not, the trigger and stub need edited. A second Copilot round raised the same point on the promotion, PR 87.
A second facet of the same rule, raised by Copilot on ptr727/HolidayLights#48 (a resync carrying WORKFLOW.md byte-identical from main at 1397e30a).
Where. Section 6, the "Operational (a workflowModel, not a type)" bullet, at line 305.
What it says. The bullet says dropping the base-branch filter keeps a stacked pull request from being stranded. It also says retargeting a pull request emits only edited, which the default pull_request activity types omit.
The gap. Read together, a pull request retargeted onto a branch the trigger now covers still gets no run, filter or no filter, unless the trigger lists edited. Neither the bullet nor the hub's operational stub (catalog/snippets/workflows/test-pull-request.yml, which declares no types:) closes that.
Expected. The section 6 rule, the line 52 sentence this issue already names, and the stub agree on one trigger shape. That shape either includes edited or states that a retargeted pull request needs a push or a reopen to validate.
The finding was declined downstream as hub-owned text, pointing here.
Activity
ptr727 commentedon Nov 11, 2026
A related point from a Copilot review of the carried text on ptr727/HomeAssistant-Config PR 84, hub
mainat 1397e30. Section 6 gives the stranded retarget as a reason for dropping the base filter, and says a retarget firesedited, which the default activity types omit. Dropping the filter does not change that, since a trigger with notypes:still ignoresedited. So the sentence gives a reason the fix does not address. Expected: either addeditedto the prescribed trigger and stub, or remove the retarget clause.ptr727 commentedon Nov 11, 2026
A related point from a carrying repository's review, on the same section 6 sentence at hub
main1397e30a.editedactivity type, which the default types omit, and that dropping the branch filter is the remedy. Dropping the filter does not addeditedto the activity types, so a retarget still starts no run.pull_requesttrigger liststypes: [opened, reopened, synchronize, edited], or the text says a retarget is resolved by a push or a close and reopen.ptr727 commentedon Nov 11, 2026
Answered by the maintainer, 2026-11-10, on the retarget clause. Drop the clause rather than adding
editedto the trigger. The text says a retarget is cleared by a push or a close and reopen. A retarget is rare, the failure is a blocked pull request rather than a merge past the gate, andeditedwould re-run the gate on every title or body edit.The line 52 fix is unchanged, and it is the same fix as #4011 item 1.
ptr727 commentedon Nov 11, 2026
Two more details from a resync of
ptr727/ESPHome-Configagainst1397e30a.developalongsidemain" sentence is also in the carriedworkflow-ci-contractskill, atreferences/architecture.md.mainfires onlyedited, so no new run starts. The context can then satisfy themainruleset from a run that diffed against the feature branch. It needs a retarget ontomain, which the promotion model does not call for, so this may only need a sentence.ptr727 commentedon Nov 11, 2026
Follow-up to my note above, which overstated the gap. With no base filter, a stacked pull request already gets a run when it opens, so the retarget case differs from a filtered trigger that never ran at all. The open question is narrower: whether the check from that opening run still satisfies the required context after a retarget. If it does, the
editedclause only needs rewording. If it does not, the trigger and stub neededited. A second Copilot round raised the same point on the promotion, PR 87.ptr727 commentedon Nov 11, 2026
A second facet of the same rule, raised by Copilot on ptr727/HolidayLights#48 (a resync carrying
WORKFLOW.mdbyte-identical frommainat1397e30a).workflowModel, not a type)" bullet, at line 305.edited, which the defaultpull_requestactivity types omit.edited. Neither the bullet nor the hub's operational stub (catalog/snippets/workflows/test-pull-request.yml, which declares notypes:) closes that.editedor states that a retargeted pull request needs a push or a reopen to validate.The finding was declined downstream as hub-owned text, pointing here.
ptr727 commentedon Nov 11, 2026
Backlog burndown claim, round 3 (2026-11-11). Branch
feature/workflow-contract-triggers, group: #4011, #4051, #4048, #4060.Predicted files:
WORKFLOW.mddocs/reusable-workflows.mdspec/audit.pytests/test_audit_helpers.py.agents/skills/workflow-ci-contract/references/architecture.md.agents/skills/workflow-ci-contract/references/d-guarantees.md.agents/skills/workflow-ci-contract/references/test-methodology.md.github/skills/workflow-ci-contract/references/architecture.md.github/skills/workflow-ci-contract/references/d-guarantees.md.github/skills/workflow-ci-contract/references/test-methodology.md.claude-plugin/fleet-skills/skills/workflow-ci-contract/references/architecture.md.claude-plugin/fleet-skills/skills/workflow-ci-contract/references/d-guarantees.md.claude-plugin/fleet-skills/skills/workflow-ci-contract/references/test-methodology.md.claude-plugin/fleet-skills/.source-digests/workflow-ci-contractReconcile Contradictory WORKFLOW.md Rules and Require a Gate's Pull R…