Skip to content

Document the Dispatch Guard for a Schedule That Never Publishes - #2890

Merged
ptr727 merged 2 commits into
developfrom
feature/2849-dispatch-guard-docs
Oct 12, 2026
Merged

ptr727 merged 2 commits into
developfrom
feature/2849-dispatch-guard-docs

Conversation

@ptr727

@ptr727 ptr727 commented Oct 12, 2026

Copy link
Copy Markdown
Owner

Summary

The publish plan reports every schedule as a publish. A dispatch-only publisher that keeps a schedule only to retest therefore has to gate its release jobs itself, and nothing documented that shape.

  • WORKFLOW.md D4.1 names it: each job calling build-release-task.yml carries github.event_name == 'workflow_dispatch' as an && term of a single-line if: holding no || or negated group. That is the shape _schedule_never_publishes in spec/audit.py accepts. D7.1's "publisher whose schedule never publishes" now points at D4.1.
  • docs/reusable-workflows.md "Adopting the Release Chain" states the same guard beside the existing D7.1 concurrency sentence.
  • The catalog publish-release.yml snippet (and its byte-identical copy in the guide) gains two note lines: the dispatch guard, and the per-run concurrency group a schedule run then takes.
  • publish-plan-task.yml's header gains one line saying a retest-only schedule still yields publish=true, which the "simply inert" line above it did not cover.
  • The generated workflow-ci-contract skill copies are regenerated with build_dist.py.

This adds comment lines, so it carries the comments label.

Fixes #2849

Verification

  • python3 scripts/prose_lint.py . --allow-comments --diff origin/develop: clean.
  • --check sentence-length: every new sentence is under the cap. The five reports are two sentences that already existed on the touched lines.
  • python3 scripts/build_dist.py --check, python3 spec/validate.py, python3 spec/audit.py --selftest, python3 scripts/repo_gate.py, python3 scripts/docker_lint.py: all pass.
  • Unit tests test_publish_plan.py, test_release_guards.py, test_spec_validate.py: pass.
  • Two local strict review passes, recorded. Pass one raised two findings on new text, both fixed (the single-line if: requirement and the concurrency note). It also raised one pre-existing finding, filed as Treat S9 as N/A for a Publisher Whose Schedule Never Publishes #2888. Pass two raised none on new text and one pre-existing finding, filed as Name the Single-Line If Requirement in the Schedule Concurrency Drift Message #2889.

🤖 Generated with Claude Code

The publish plan reports every schedule as a publish, so a dispatch-only publisher keeping a schedule only to retest has to gate its release jobs on a dispatch event. D4.1 now names that shape, matching what the audit accepts for the D7.1 schedule run-id suffix, and the catalog snippet, the reusable-workflows guide, and the plan task's header each point at it.

Fixes #2849
The audit reads only a single-line job if:, so D4.1 says so. The snippet note also names the per-run concurrency group a retest-only schedule needs, since keeping the push suffix lets a scheduled retest replace a pending dispatch.
Copilot AI lite review requested due to automatic review settings October 12, 2026 17:40
@ptr727 ptr727 added the comments Permits the comment lines the pull request adds or edits, which the prose gate otherwise refuses label Oct 12, 2026
@coderabbitai

coderabbitai Bot commented Oct 12, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration
  • Configuration used: Repository: ptr727/ProjectTemplate/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: ca7ffb0b-e7cc-40ef-8ec3-d4b30cfbb40a

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

Unresolved moderate findings require aligning the documented guard and updating the workflow examples.

0 open findings

What changed in this PR

This documentation-only PR clarifies dispatch-only publishers with schedules that retest without publishing and regenerates workflow skill copies.

Changes:

  • Documents dispatch guards and schedule concurrency behavior.
  • Clarifies schedule publish=true behavior.
  • Regenerates distributed skill references and digests.
File Summary
WORKFLOW.md Adds D4.1/D7.1 guidance; guard syntax must align with audit acceptance.
docs/​reusable-workflows.md Documents adopter configuration; sample guard and concurrency expression need updates.
catalog/​snippets/​workflows/​publish-release.yml Adds notes; sample guard and concurrency expression need updates.
.github/​workflows/​publish-plan-task.yml Clarifies schedule output behavior.
.github/​skills/​workflow-ci-contract/​references/​d-guarantees.md Regenerated contract copy.
.claude-plugin/​fleet-skills/​skills/​workflow-ci-contract/​references/​d-guarantees.md Regenerated contract copy.
.claude-plugin/​fleet-skills/​.source-digests/​workflow-ci-contract Updates generated-content digest.
.agents/​skills/​workflow-ci-contract/​references/​d-guarantees.md Updates canonical contract reference.

🧠 Review effort: Lite


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@codecov

codecov Bot commented Oct 12, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 59.62%. Comparing base (088afab) to head (23f4bb9).

Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #2890   +/-   ##
========================================
  Coverage    59.62%   59.62%           
========================================
  Files           16       16           
  Lines         8682     8682           
========================================
  Hits          5177     5177           
  Misses        3505     3505           
Flag Coverage Δ
python-3.13 59.62% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@ptr727

ptr727 commented Oct 12, 2026

Copy link
Copy Markdown
Owner Author

Answering the Copilot round's headline on 23f4bb9, which names no open finding. Each of its three hints was checked against the tree, and none holds:

  • "guard syntax must align with audit acceptance": it does. D4.1 names github.event_name == 'workflow_dispatch' as an && term of a single-line if: holding no || or negated group. _schedule_never_publishes in spec/audit.py accepts exactly that: the form is in _DISPATCH_TESTS, the check reads only the job's single-line if:, and it rejects any || or !(. The audit also accepts != 'schedule'. D4.1 names only the workflow_dispatch form, as the maintainer decided on Document That a Schedule Trigger Always Publishes for a Dispatch-Only Caller #2849, and every shape D4.1 describes passes the audit.
  • "sample guard and concurrency expression need updates" (snippet and guide): declined. The snippet is the NuGet-library shape, which keeps a paths-filtered push trigger and publishes on a bot push. Adding the dispatch guard to its publish job would stop that push publish. Swapping in the schedule suffix would also fail the audit, which accepts that suffix only on a publisher with no push trigger. The two new note lines describe how a dispatch-only repo varies the snippet, the same way the line above them points at Docker, PyPI, and file-target variations. The guide's YAML block stays byte-identical to the snippet.

@ptr727
ptr727 merged commit aa4b012 into develop Oct 12, 2026
14 checks passed
@ptr727
ptr727 deleted the feature/2849-dispatch-guard-docs branch October 12, 2026 18:19
ptr727 added a commit that referenced this pull request Oct 12, 2026
…ge Rows, and Directive Comment Wrap to Main (#2894)

- #2890 documents the dispatch guard for a schedule that never
publishes, in D4.1 and the catalog snippet notes
- #2891 skips file-table rows when reading partial coverage markers
- #2893 treats a tool directive line as no previous sentence in the
comment-wrap rule

Closes #2849
Closes #2886
Closes #2885

🤖 Generated with [Claude Code](https://claude.com/claude-code)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comments Permits the comment lines the pull request adds or edits, which the prose gate otherwise refuses

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants