Skip to content

WORKFLOW.md Gives the Operational Pull Request Trigger Two Opposite Rules #4051

Closed

Description

@ptr727

Summary

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.

Activity

  1. ptr727 commented on Nov 11, 2026

    @ptr727
    OwnerAuthor

    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.

  2. ptr727 commented on Nov 11, 2026

    @ptr727
    OwnerAuthor

    A related point from a carrying repository's review, on the same section 6 sentence at hub main 1397e30a.

    • 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.
  3. ptr727 commented on Nov 11, 2026

    @ptr727
    OwnerAuthor

    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.

  4. ptr727 commented on Nov 11, 2026

    @ptr727
    OwnerAuthor

    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.
  5. ptr727 commented on Nov 11, 2026

    @ptr727
    OwnerAuthor

    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.

  6. ptr727 commented on Nov 11, 2026

    @ptr727
    OwnerAuthor

    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.

  7. ptr727 commented on Nov 11, 2026

    @ptr727
    OwnerAuthor

    Backlog burndown claim, round 3 (2026-11-11). Branch feature/workflow-contract-triggers, group: #4011, #4051, #4048, #4060.

    Predicted files:

    • WORKFLOW.md
    • docs/reusable-workflows.md
    • spec/audit.py
    • tests/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-contract
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions