Skip to content

Promote Three Develop Fixes for the Dispatch Guard, File-Table Coverage Rows, and Directive Comment Wrap to Main - #2894

Merged
ptr727 merged 4 commits into
mainfrom
develop
Oct 12, 2026
Merged

ptr727 merged 4 commits into
mainfrom
develop

Conversation

@ptr727

@ptr727 ptr727 commented Oct 12, 2026

Copy link
Copy Markdown
Owner

Closes #2849
Closes #2886
Closes #2885

🤖 Generated with Claude Code

## 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
#2888. Pass two raised none on new text and one pre-existing finding,
filed as #2889.

🤖 Generated with [Claude Code](https://claude.com/claude-code)
Fixes #2886.

`partial_shaped` now drops file-summary table rows (first cell a
backticked path, no HTML comment opener on the line) before scanning a
Copilot round for drifted fleet-review markers, so a summary cell that
names the review skill no longer reads as partial coverage.

Tests: a body built from the issue's constructed shape (odd and even
table parity), plus guards that a plain-cell row, a non-path code-span
row, and a row carrying a marker comment still read as partial. The
first assertion fails with the strip reverted.

Local review findings left undisposed by design (narrow scope, listed
for the orchestrator):
- introduced, declined: a marker written entity-encoded on the same line
as a path row is stripped with the row.
- introduced, declined: a row quoting the comment opener in prose is
kept, so it can still block.
- Known: grouped-path rows and bare-path rows are not stripped.

🤖 Generated with [Claude Code](https://claude.com/claude-code)
…ap Rule (#2893)

Fixes #2885. `comment_wrap_findings` no longer keeps a line
`is_tool_directive` matches as the previous body, so the comment line
after `# nosec B404` is not reported as that line's wrapped continuation
(sibling of #2828 / #2878).

Behavior: a lowercase line after a directive is now judged by
`comment-case` (capitalizing passes), a directive followed by a
directive draws nothing, a plain two-line wrap and a sentence wrapping
into a directive still draw `comment-wrap`. Four of the five new tests
fail with the fix reverted. One existing comment edit (the note above
`TOOL_DIRECTIVE`), hence the `comments` label.

Local review findings (7 raised, two rounds): fixed the over-claiming
`TOOL_DIRECTIVE` note, the missing case/reverse-wrap/trailing-directive
tests. Accepted `pre-existing`/by issue shape: a directive whose written
reason wraps onto a lowercase line now draws `comment-case` instead of
`comment-wrap`, and capitalizing it clears the gate; `RUN_ON` still
reads directive bodies; "exempt" in the note elides the
`is_tool_directive` no-full-stop condition (wording predates this
change).

🤖 Generated with [Claude Code](https://claude.com/claude-code)
Copilot AI lite review requested due to automatic review settings October 12, 2026 18:18
@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: 735da72b-c1e7-42a4-aa91-39375d9c0bdb

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

🟡 Changes recommended

Unresolved findings remain in documentation, coverage parsing, and prose linting.

3 open findings
What changed in this PR

Promotes three fixes to main for schedule guards, coverage parsing, and directive-aware comment wrapping.

Changes:

  • Documents dispatch-only schedule guards and concurrency behavior.
  • Filters file-table rows from partial-coverage detection.
  • Updates directive handling, regression tests, and generated skill copies.

Review findings:

  • Documentation omits schedules from the concurrency guidance (moderate; 2 votes each).
  • Coverage parsing misses extensionless root files and quoted partial rows (moderate).
  • A changed docstring exceeds the 25-word sentence limit (nit).
File Description
WORKFLOW.md Documents dispatch-only schedule guards.
tests/​test_prose_lint.py Tests directive wrapping behavior.
tests/​test_pr_review.py Tests file-table coverage parsing.
scripts/​pr_review.py Filters file-summary rows.
docs/​reusable-workflows.md Documents release-chain guards.
catalog/​snippets/​workflows/​publish-release.yml Updates release caller notes.
.github/​workflows/​publish-plan-task.yml Clarifies schedule publish behavior.
.github/​skills/​workflow-ci-contract/​references/​d-guarantees.md Updates workflow guarantees.
.github/​actions/​prose-gate/​prose_lint.py Excludes directives as previous sentences.
.claude-plugin/​fleet-skills/​skills/​workflow-ci-contract/​references/​d-guarantees.md Updates generated workflow guarantees.
.claude-plugin/​fleet-skills/​.source-digests/​workflow-ci-contract Updates the source digest.
.agents/​skills/​workflow-ci-contract/​references/​d-guarantees.md Updates canonical workflow guarantees.

🧠 Review effort: Lite


💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread docs/reusable-workflows.md Resolved
Comment thread scripts/pr_review.py Resolved
@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.63%. Comparing base (088afab) to head (c978e6e).
⚠️ Report is 369 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2894   +/-   ##
=======================================
  Coverage   59.62%   59.63%           
=======================================
  Files          16       16           
  Lines        8682     8684    +2     
=======================================
+ Hits         5177     5179    +2     
  Misses       3505     3505           
Flag Coverage Δ
python-3.13 59.63% <100.00%> (+<0.01%) ⬆️

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.

…the Snippet Schedule Comment (#2895)

Fixes two review findings Copilot raised on the develop to main
promotion PR.

- partial_shaped dropped whole file-summary rows, which also hid a real
partial stated inside one. A row is now removed only from the bare
marker-name mention reading. A well-formed marker (raw or
entity-escaped) and the count patterns are still read inside a row.
- The publish-release snippet comment, and its byte-identical copy in
docs/reusable-workflows.md, now names WORKFLOW.md D7.1's schedule term.

New subtests fail on develop's code and pass here.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

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.

🟡 Changes recommended

The coverage parser still mishandles extensionless file paths, and two comment-citation nits remain.

2 open findings
3 resolved since last review
Previously missed (1)

In code that hasn't changed since last review

Medium severity Recognize extensionless file paths in summary rows

scripts/​pr_review.py:542

[P1] Recognize extensionless file paths in summary rows. A valid row can name a root file such as Dockerfile or LICENSE, but the [./] requirement leaves | Dockerfile | Updates fleet review guidance. | in rowless; a nearby footer digit then makes partial_in report a false partial and blocks coverage. Use the repository's path/table semantics while retaining the guard for non-path code spans.

🧠 Review effort: Lite

Comment thread docs/reusable-workflows.md Resolved
@ptr727

ptr727 commented Oct 12, 2026

Copy link
Copy Markdown
Owner Author

Answering the previously-missed finding on scripts/pr_review.py:542:

[P1] Recognize extensionless file paths in summary rows. A valid row can name a root file such as Dockerfile or LICENSE, but the [./] requirement leaves | Dockerfile | Updates fleet review guidance. | in rowless; a nearby footer digit then makes partial_in report a false partial and blocks coverage.

Declined, by design. The [./] requirement is what keeps a non-path code span, such as a fleet-review cell, from being dropped, so a row naming a real partial in that form still blocks. The case named here fails closed. It reads as unstated coverage, which is exactly the behavior before #2886, and it never passes a partial as full. Reaching it takes an extensionless root file whose summary cell itself names the review marker. The case #2886 was filed for is the fleet-code-review skill file, whose path always carries both / and ..

@ptr727
ptr727 merged commit 140c876 into main Oct 12, 2026
14 checks passed
ptr727 added a commit that referenced this pull request Oct 12, 2026
The Comments rule in the comment-and-doc-style Skill said a comment
carries no rule citations. Copilot relied on that line when it flagged a
contract-section citation on #2894, #2895, and #2901, and the tree
already carries such citations. The rule now forbids restating a rule
inline and permits a comment to name the contract section holding its
why, such as D5.2, without echoing that section's text.

The earlier Disproved Claims entry on this branch is reverted, so the
Copilot instructions file is unchanged: the finding was grounded in a
real line, which is amended here rather than declined.

Local review: one recorded pass, six findings. Wording ambiguities in
the maintainer-specified text and pre-existing comments that echo a
section are deferred to #2907, which also notes the pre-existing
design-notes conflict in the Python codestyle reference.

🤖 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

2 participants