Skip to content

Align D4.1 and the Audit on the Dispatch-Only Schedule Publisher Shape #2904

Closed

Description

@ptr727

Problem

WORKFLOW.md D4.1 and spec/audit.py _schedule_never_publishes describe the dispatch-only publisher with a retest-only schedule differently in two places.

  1. The no-push condition is unstated in D4.1. The audit reads a schedule as never publishing only where the publisher's on: block carries no push trigger, and the selftest case "a schedule-only suffix beside a push trigger" expects a finding. D4.1 says "a dispatch-only publisher whose schedule retests and never publishes", which leaves a reader to infer that no push trigger is allowed.
  2. The audit accepts a second dispatch test that D4.1 does not name. _DISPATCH_TESTS holds both github.event_name == 'workflow_dispatch' and github.event_name != 'schedule', and the selftest case "a parenthesized not-schedule test as the last conjunct" expects no finding. D4.1 names only the first.

Impact

An adopter following D4.1 alone can add a push trigger and then get a DRIFT from the concurrency audit that the contract never warned about. Separately, the audit passes a guard the contract does not describe, so the audit is more lenient than the contract.

Suggested fix

Decide which side is authoritative for each point, then bring the other side into line. For example, D4.1 could state the no-push condition, and either D4.1 names the != 'schedule' form or the audit drops it.

Found while: the local review of the D4.1 job-level if: wording change.

🤖 Generated with Claude Code

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