Skip to content

Let a Worker Merge a Promotion Whose Head Round States No Coverage When Every Change Was Covered - #2615

Merged
ptr727 merged 9 commits into
developfrom
feature/auto-2583
Oct 9, 2026
Merged

ptr727 merged 9 commits into
developfrom
feature/auto-2583

Conversation

@ptr727

@ptr727 ptr727 commented Oct 9, 2026 •

Copy link
Copy Markdown
Owner

Summary

Implements the standing rule the maintainer adopted on #2583, widened on #2609: a develop -> main promotion on which pr_review.py exits 45, because the newest Copilot round on its head states no coverage and carries no file table, may merge without a decision issue where all three conditions hold on the live head.

  • Every change the promotion carries had full coverage on its own feature -> develop pull request, each changed file named by a Copilot file table or the round's coverage statement, or read by a local-strict-review pass recorded for that pull request at that head or a later one.
  • Every review thread on the promotion is resolved, and every check passes.
  • Exit 45 is the only reason pr_review.py does not report the promotion ready.

The rule is stated once, in pr-review-conduct's Merge Gate item 2, as the one exception for a promotion, with item 5's permission still owed and every other pull request still owing item 2 in full. The other surfaces point at it:

  • unattended-handoff "The Worker" step 3 names the exception for scopes main and release.
  • merge-and-release step 2 reads an exit 45 meeting that case as no partial gate.
  • scripts/pr_review.py's exit-45 remedy text and its exit-code docstring name the case before handing everything else to the maintainer.
  • GOVERNANCE.md "PR Review Etiquette" says a promotion whose head round states no coverage has one further way to be covered, and names the Merge Gate as where it is stated.

Constituent coverage reuses item 2's own definition: each constituent pull request met item 2 at its merged head by coverage rather than by the maintainer's permission, or failing that each file it changed has positive evidence of a full read at the head that last changed it or later: an unnoted Copilot table row where no round on that pull request ever stated or appeared to state partial coverage, a round stating full coverage, or a recorded local strict review pass whose diff held the file. Condition 3 is read from the digest, since exit 45 returns before the exit 50 check runs, and an answered VERDICT WITH NO COUNTED FINDING headline is not a second reason. merge-and-release checks the case again on every re-run of its gate read.

Regenerated with build_dist.py, and build_dist.py --check is clean.

Verification

  • python3 scripts/build_dist.py --check: current.
  • python3 scripts/prose_lint.py . --diff origin/develop, spec/validate.py, repo_gate.py --check eol, ruff format and check, mypy: clean.
  • python3 -m unittest discover -s tests: 2389 tests OK.
  • Nine local strict review passes ran. The last, recorded for the pushed head, raised no findings.

Closes on promotion: #2583

🤖 Generated with Claude Code

ptr727 and others added 3 commits October 8, 2026 19:30
State the maintainer's standing rule from #2583 once, in the
pr-review-conduct Merge Gate's coverage item: a develop -> main
promotion on which pr_review.py exits 45 satisfies that item where
every constituent change had full coverage on its own pull request,
every promotion thread is resolved and every check passes, and exit 45
is the only shortfall. unattended-handoff "The Worker" step 3,
merge-and-release's gate check, and pr_review.py's exit-45 remedy text
point at it. Regenerated with build_dist.py.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Answer the local strict review of the #2583 change: say which head a
recorded local pass must reach, read the third condition from the
digest since exit 45 returns before the exit 50 check, align the exit
45 docstring with its printed remedy, point GOVERNANCE.md's PR Review
Etiquette at the Merge Gate's promotion case, and keep the new
sentences under the 25-word cap.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Answer the second local strict review: the case applies only where the
digest's NO FILE TABLE STANDS IN line reads no table on the head, so a
partial round or a mismatched head table stays a shortfall, every
coverage route is bound to the head that last changed the file, and
the case is framed as one further case beside the carried readings.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Copilot AI lite review requested due to automatic review settings October 9, 2026 03:00
@coderabbitai

coderabbitai Bot commented Oct 9, 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: 285555aa-3fc2-4348-a103-7980a9c5cc17
  • Autopilot · 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.

@codecov

codecov Bot commented Oct 9, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (develop@7b81b9b). Learn more about missing BASE report.

Additional details and impacted files
@@            Coverage Diff             @@
##             develop    #2615   +/-   ##
==========================================
  Coverage           ?   59.25%           
==========================================
  Files              ?       16           
  Lines              ?     8263           
  Branches           ?        0           
==========================================
  Hits               ?     4896           
  Misses             ?     3367           
  Partials           ?        0           
Flag Coverage Δ
python-3.13 59.25% <ø> (?)

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.

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

Require full-coverage evidence by excluding annotated table rows and partial coverage statements.

1 open finding
What changed in this PR

Adds a controlled exception for fully covered promotions whose review exits with status 45.

Changes:

  • Updates merge, handoff, governance, and review guidance.
  • Updates scripts/pr_review.py.
  • Regenerates distributed skills and source digests.
File Summary
scripts/​pr_review.py Updates exit-45 guidance.
GOVERNANCE.md References the promotion exception.
.github/​skills/​unattended-handoff/​SKILL.md Updates handoff guidance.
.github/​skills/​pr-review-conduct/​SKILL.md Documents the exception.
.github/​skills/​merge-and-release/​SKILL.md Updates release guidance.
.claude-plugin/​fleet-skills/​skills/​unattended-handoff/​SKILL.md Regenerated handoff skill.
.claude-plugin/​fleet-skills/​skills/​pr-review-conduct/​SKILL.md Regenerated review skill.
.claude-plugin/​fleet-skills/​skills/​merge-and-release/​SKILL.md Regenerated release skill.
.claude-plugin/​fleet-skills/​.source-digests/​unattended-handoff Refreshes source digest.
.claude-plugin/​fleet-skills/​.source-digests/​pr-review-conduct Refreshes source digest.
.claude-plugin/​fleet-skills/​.source-digests/​merge-and-release Refreshes source digest.
.agents/​skills/​unattended-handoff/​SKILL.md Updates canonical handoff skill.
.agents/​skills/​pr-review-conduct/​SKILL.md Adds the promotion exception rule.
.agents/​skills/​merge-and-release/​SKILL.md Updates canonical release skill.

🧠 Review effort: Lite


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

ptr727 and others added 2 commits October 8, 2026 20:05
A constituent file now counts as covered only where a Copilot table
names it on a row with no note, a round states full coverage, or a
recorded local strict review read it, so a noted row or a partial
statement no longer satisfies the promotion case's first condition.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The promotion case's first condition now reuses item 2's own coverage
definition: each constituent pull request met item 2 at its merged
head by coverage rather than by the maintainer's permission, and a file
that coverage missed counts only where a recorded local strict review
pass read it. A partial round therefore never covers a file, while a
carried statement or table that met item 2 still does. The trigger is
exit 45 alone, as #2583 states it, on both GOVERNANCE.md and the skill.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

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

Resolve the two outstanding exit-45 and constituent-coverage ambiguities in the canonical review guidance.

1 open finding
1 resolved since last review
Previously missed (1)

In code that hasn't changed since last review

Medium severity Distinguish answered verdicts from unresolved exit-45 blockers

.agents/​skills/​pr-review-conduct/​SKILL.md:97

[P1] Distinguish answered verdicts from unresolved exit-45 blockers. report_verdict returns 45 before it evaluates the uncounted-verdict check, and the digest still prints VERDICT WITH NO COUNTED FINDING even after item 3's headline has been answered. As written, a worker cannot tell whether that line is an additional shortfall, while treating the exit code as decisive could allow an unanswered headline; define the condition in terms of unresolved reasons and explicitly exclude an answered headline.

🧠 Review effort: Lite

ptr727 and others added 2 commits October 8, 2026 20:21
…line

A constituent pull request now qualifies by meeting item 2 by coverage
or, failing that, by a recorded local strict review pass reading each
file its coverage missed, at the head that last changed the file or a
later one. An answered VERDICT WITH NO COUNTED FINDING headline no
longer counts as a second reason the promotion is not ready.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
… GOVERNANCE

merge-and-release now checks the promotion coverage case again on
every re-run of its gate read and records the evidence for the head
step 3 merges, so a change merged to develop meanwhile is checked
too. GOVERNANCE.md points at the case by the coverage state rather
than by a hub script's exit code.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@ptr727

ptr727 commented Oct 9, 2026

Copy link
Copy Markdown
Owner Author

Answering the previously missed Copilot finding "[P1] Distinguish answered verdicts from unresolved exit-45 blockers" on .agents/skills/pr-review-conduct/SKILL.md: fixed in 0bfa01b. The third condition now says a VERDICT WITH NO COUNTED FINDING headline is a second reason until it is answered under item 3, and not after, and still reads the condition from the digest's lines since exit 45 returns before the exit 50 check runs.

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

Positive per-file coverage evidence and the exit-code README documentation remain unresolved.

1 open finding
1 resolved since last review

🧠 Review effort: Lite

ptr727 and others added 2 commits October 8, 2026 20:46
Where a constituent pull request did not meet item 2 by coverage, each
file it changed now needs positive evidence of a full read at the head
that last changed it or later: an unnoted Copilot table row on a round
stating no partial coverage, a round stating full coverage, or a
recorded local strict review pass whose diff held the file.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The constituent fallback now applies item 2's own pull-request-wide
bar to table evidence: an unnoted row counts only where no Copilot
round on that pull request, on any commit, states or appears to state
partial coverage, so the table item 2 refused cannot return through
the fallback.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@ptr727

ptr727 commented Oct 9, 2026

Copy link
Copy Markdown
Owner Author

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

@ptr727
ptr727 merged commit 127de64 into develop Oct 9, 2026
13 checks passed
@ptr727
ptr727 deleted the feature/auto-2583 branch October 9, 2026 04:04
ptr727 added a commit that referenced this pull request Oct 9, 2026
…d Promotions (#2616)

## Summary

Promotes develop to main.

- #2549: hand a spent local edit budget to the pull request's review
rather than the maintainer, and narrow an unattended run to develop when
a `decision` issue blocks the promotion.
- #2615: let a develop -> main promotion whose head round states no
coverage satisfy the Merge Gate's coverage item where every constituent
change was covered, every thread is resolved, every check passes, and
exit `45` is the only shortfall.

Fixes #2534
Fixes #2583

🤖 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