Skip to content

Align D4.1 and the Audit on the Schedule Publisher Shape - #2911

Merged
ptr727 merged 4 commits into
developfrom
feature/d41-schedule-publisher
Oct 12, 2026
Merged

ptr727 merged 4 commits into
developfrom
feature/d41-schedule-publisher

Conversation

@ptr727

@ptr727 ptr727 commented Oct 12, 2026 •

Copy link
Copy Markdown
Owner

Summary

Resolves the D4.1 and audit disagreement that #2904 reports, for the publisher whose schedule retests and never publishes.

  • No-push condition stated in D4.1. _schedule_never_publishes already reads a schedule as never publishing only where the publisher's on: carries no push trigger. D4.1 now says so, as "a publisher with no push trigger 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 generated workflow-ci-contract include copies are regenerated by scripts/build_dist.py.
  • github.event_name != 'schedule' dropped from the audit. It was equivalent to == 'workflow_dispatch' only if the publisher's triggers stop at workflow_dispatch and schedule, and the audit never proves that. _workflow_triggers returns every key under on:, and _schedule_never_publishes checks only that schedule is present and push is absent. So on a publisher that also carries pull_request or workflow_call, != 'schedule' holds on a non-dispatch event. _DISPATCH_TESTS is now the single _DISPATCH_TEST, and D4.1 already named only that form.
  • DRIFT message names the exact condition. It used to say "a dispatch test". It now names github.event_name == 'workflow_dispatch' as a top-level conjunct of an if: holding no || or negated group, which is what the check at the _schedule_never_publishes conjunct test enforces.

Tests

  • Selftest case "a parenthesized not-schedule test as the last conjunct" now expects one finding. It fails against the old two-form set.
  • New case "a parenthesized dispatch test as the last conjunct" expects none, so paren stripping on the dispatch term stays covered.
  • Gates run locally: the full OPERATIONS.md local 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-scoped prose_lint.

Local Review

Three recorded local-strict-review passes. 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.

  • Declined: aligning the "dispatch-only repo" comments in catalog/snippets/workflows/publish-release.yml and docs/reusable-workflows.md. That wording is correct for a releaseTrigger: dispatch-only repo, and snippet comments are being reshaped separately.
  • Pre-existing, not addressed: --check sentence-length flags the unchanged "A publish runs on..." sentence in D4.1. That rule is not gated.

Refs #2904

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Documentation
    • Clarified that a publisher without a push trigger can retest on a schedule without publishing.
  • Bug Fixes
    • Tightened workflow checks so scheduled runs qualify as non-publishing only when every release job explicitly limits execution to manual dispatches. Parenthesized dispatch conditions are accepted.

ptr727 and others added 3 commits October 12, 2026 13:28
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]>
Copilot AI lite review requested due to automatic review settings October 12, 2026 20:38
@coderabbitai

coderabbitai Bot commented Oct 12, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

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: e59870b4-7ed7-420d-9ff4-3be1ca3d4bf7

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Repository: ptr727/ProjectTemplate/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: befd6133-59f1-4d5e-bc42-4fe5c884ab95

📥 Commits

Reviewing files that changed from the base of the PR and between 9b93724 and 209220b.


⛔ Files ignored due to path filters (3)
  • .claude-plugin/fleet-skills/.source-digests/workflow-ci-contract is excluded by !.claude-plugin/fleet-skills/**
  • .claude-plugin/fleet-skills/skills/workflow-ci-contract/references/d-guarantees.md is excluded by !.claude-plugin/fleet-skills/**
  • .github/skills/workflow-ci-contract/references/d-guarantees.md is excluded by !.github/skills/**

📒 Files selected for processing (3)
  • .agents/skills/workflow-ci-contract/references/d-guarantees.md
  • WORKFLOW.md
  • spec/audit.py

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.



📝 Walkthrough

Walkthrough

D4.1 now describes schedule self-gating for a publisher with no push trigger. The audit requires an exact dispatch-equality check as a top-level conjunct of each release job, and the self-test covers accepted and rejected conditions.

Changes

Schedule self-gating

Layer / File(s) Summary
D4.1 rule and audit
.agents/skills/workflow-ci-contract/references/d-guarantees.md, WORKFLOW.md, spec/audit.py
The documentation specifies a publisher with no push trigger whose schedule retests but does not publish. The audit requires github.event_name == 'workflow_dispatch' as a top-level conjunct for every release job. Its self-test accepts a parenthesized dispatch check and rejects the not schedule alternative.

Priority: ⬇️ Low

Estimated code review effort: 2 (Simple) | ~8 minutes


Merge Risk: ⚪ Minimal · up to 20922

No actionable regression from this change remains; the identified audit-parser gap predates it.

Pre-merge checks · Passed 5
Passed Passed checks (5 passed)
Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title clearly and concisely describes the main change: aligning D4.1 and the audit on the schedule publisher condition.
Docstring Coverage Passed Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 3 functions across 1 files. (2 skipped: 2 …
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.

✨ Finishing Touches
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR

🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR

  • 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.

🟢 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-push condition.
  • 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.

@ptr727

ptr727 commented Oct 12, 2026

Copy link
Copy Markdown
Owner Author

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Oct 12, 2026 •

Copy link
Copy Markdown
✅ Action performed

Review finished.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@codecov

codecov Bot commented Oct 12, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 50.00000% with 1 line in your changes missing coverage. Please review.
⚠️ Please upload report for BASE (develop@f490a81). Learn more about missing BASE report.

Files with missing lines Patch % Lines
spec/audit.py 50.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             develop    #2911   +/-   ##
==========================================
  Coverage           ?   60.00%           
==========================================
  Files              ?       17           
  Lines              ?     8773           
  Branches           ?        0           
==========================================
  Hits               ?     5264           
  Misses             ?     3509           
  Partials           ?        0           
Flag Coverage Δ
python-3.13 60.00% <50.00%> (?)

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

A recorded local strict-review pass covers head 209220bd29c22e0449e412ef324389588ce47d96, the content this pull request carries at that commit against develop, and it recorded 0 findings.

@ptr727

ptr727 commented Oct 12, 2026

Copy link
Copy Markdown
Owner Author

A recorded local strict-review pass covers head e079261298b21f717ffb40c452de6fd3668339f3, the content this pull request carries at that commit against develop, and it recorded 0 findings.

@ptr727
ptr727 merged commit 813ae67 into develop Oct 12, 2026
13 checks passed
@ptr727
ptr727 deleted the feature/d41-schedule-publisher branch October 12, 2026 21:23
ptr727 added a commit that referenced this pull request Oct 12, 2026
…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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants