Repository navigation
Align D4.1 and the Audit on the Schedule Publisher Shape - #2911
Conversation
D4.1 now names the no-push condition that the concurrency audit already enforces for a publisher whose schedule never publishes. The audit drops github.event_name != 'schedule' as a dispatch test. It never proved the publisher's triggers stop at dispatch and schedule, so the test admitted a release on any other trigger the on: block held. Fixes #2904 Co-Authored-By: Claude Opus 5.5 <[email protected]>
The message said a dispatch test, which a repo gated on the dropped not-schedule form reads as already satisfied. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ssage The audit also refuses an if: holding || or a negated group, so the message names that condition alongside the dispatch term. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configuration
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Merge Risk: ⚪ Minimal · up to No actionable regression from this change remains; the identified audit-parser gap predates it. Pre-merge checks ·
|
There was a problem hiding this comment.
🟢 Approval recommended
No unresolved review issues were identified.
0 open findings
What changed in this PR
Aligns D4.1, the schedule audit, tests, and generated workflow-contract copies around explicit dispatch gating.
Changes:
- Clarifies the no-
pushcondition. - Restricts audit detection to
workflow_dispatch. - Updates diagnostics, self-tests, generated copies, and digest.
| File | Description |
|---|---|
WORKFLOW.md |
Clarifies D4.1 wording. |
spec/audit.py |
Updates audit logic, diagnostics, and self-tests. |
.github/skills/workflow-ci-contract/references/d-guarantees.md |
Regenerated GitHub skill copy. |
.claude-plugin/fleet-skills/skills/workflow-ci-contract/references/d-guarantees.md |
Regenerated Claude skill copy. |
.claude-plugin/fleet-skills/.source-digests/workflow-ci-contract |
Updates generated-source digest. |
.agents/skills/workflow-ci-contract/references/d-guarantees.md |
Regenerated canonical contract copy. |
🧠 Review effort: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
|
@coderabbitai review |
✅ Action performedReview finished.
|
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #2911 +/- ##
==========================================
Coverage ? 60.00%
==========================================
Files ? 17
Lines ? 8773
Branches ? 0
==========================================
Hits ? 5264
Misses ? 3509
Partials ? 0
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
A recorded local strict-review pass covers head |
|
A recorded local strict-review pass covers head |
…t Citation Fixes to Main (#2919) - #2910 reads the open handoff chain through `handoff.py tracks --json` in the `session-handoff` and `unattended-handoff` skills, not the search index - #2913 names the shared stash in the GOVERNANCE.md write-safety law and the host-wide agent-safety block - #2914 shares one GraphQL transport and cursor walker between `pr_review.py` and `handoff.py` - #2911 states the no-`push` condition in D4.1 and drops the `!= 'schedule'` form from the audit - #2918 lets a comment cite a contract section without echoing it, and cites the Concurrency exceptions by number Closes #2902 Closes #2900 Closes #2903 Closes #2904 Closes #2907 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Summary
Resolves the D4.1 and audit disagreement that #2904 reports, for the publisher whose schedule retests and never publishes.
_schedule_never_publishesalready reads a schedule as never publishing only where the publisher'son:carries nopushtrigger. D4.1 now says so, as "a publisher with nopushtrigger whose schedule retests and never publishes gates its release itself", which replaces "a dispatch-only publisher". The next sentence already requires the dispatch gate on each release job. The generatedworkflow-ci-contractinclude copies are regenerated byscripts/build_dist.py.github.event_name != 'schedule'dropped from the audit. It was equivalent to== 'workflow_dispatch'only if the publisher's triggers stop atworkflow_dispatchandschedule, and the audit never proves that._workflow_triggersreturns every key underon:, and_schedule_never_publisheschecks only thatscheduleis present andpushis absent. So on a publisher that also carriespull_requestorworkflow_call,!= 'schedule'holds on a non-dispatch event._DISPATCH_TESTSis now the single_DISPATCH_TEST, and D4.1 already named only that form.github.event_name == 'workflow_dispatch'as a top-level conjunct of anif:holding no||or negated group, which is what the check at the_schedule_never_publishesconjunct test enforces.Tests
OPERATIONS.mdlocal block (ruff, mypy, unittest, every--selftest,build_dist.py --check,repo_gate.py, both prose invocations,spec/validate.py,docker_lint.py) plus a diff-scopedprose_lint.Local Review
Three recorded
local-strict-reviewpasses. Pass 1 found the DRIFT message gap (fixed in 4d5cdb4). Pass 2 found the message still omitted the no-disjunction condition (fixed in 209220b). Pass 3 came back clean.catalog/snippets/workflows/publish-release.ymlanddocs/reusable-workflows.md. That wording is correct for areleaseTrigger: dispatch-onlyrepo, and snippet comments are being reshaped separately.--check sentence-lengthflags the unchanged "A publish runs on..." sentence in D4.1. That rule is not gated.Refs #2904
🤖 Generated with Claude Code
Summary by CodeRabbit
pushtrigger can retest on a schedule without publishing.