Skip to content

Promote develop to main: Keep Unattended Runs Moving and Merge Covered Promotions - #2616

Merged
ptr727 merged 2 commits into
mainfrom
develop
Oct 9, 2026
Merged

ptr727 merged 2 commits into
mainfrom
develop

Conversation

@ptr727

@ptr727 ptr727 commented Oct 9, 2026

Copy link
Copy Markdown
Owner

Summary

Promotes develop to main.

Fixes #2534
Fixes #2583

🤖 Generated with Claude Code

ptr727 and others added 2 commits October 8, 2026 19:04
… Develop (#2549)

## Summary

Closes on promotion: #2534

An unattended run should park a question and move on rather than stop.
Two rules made it stop where no maintainer choice was involved, and this
changes both.

- **A spent edit budget goes to the pull request, not the maintainer.**
In `local-strict-review` "Disposing of Findings", when the second round
leaves an `introduced` finding open, editing stops. The pull request
body lists each remaining finding with its class, and the review loop
gives each an outcome under `pr-review-conduct` before merge. A spent
budget is not an escalation. `pr-review-conduct` "Escalate to the
maintainer when" keeps its four cases unchanged.
- **A blocked promotion narrows the round to develop.** The
`unattended-handoff` picker no longer returns `STOP` when a `decision`
issue blocks the open promotion. The worker reads that state before
promoting. When blocked, it merges its own pull request to develop,
opens, merges, and releases no promotion, adds `Fixes #<issue>` to the
open promotion body, and closes its lane out. `STOP` stays for a missing
label, an exhausted reviewer quota, or a refused push.
- **"The Worker" step 5 states once** that a worker parks only on a
choice the maintainer alone can make, and anything with a determined
outcome is applied or handed to the pull request's review.

The picker's steps are renumbered after removing its promotion check,
and the scope rationale for `main` now names the blocked-promotion case
as the one where develop merges queue. Generated copies are regenerated
with `build_dist.py`.

## Verification

- `build_dist.py --check`, `spec/validate.py`, the diff-scoped prose
gate, ruff, mypy, and the EOL gate pass.
- Three local strict-review passes. The first raised 4 substantive
findings (a fix-or-escalate bullet missing the new route, nobody named
to dispose of listed findings, the `main` rationale contradicting the
narrowing, and the issue never closing because no `Fixes` line reached
the promotion), all fixed. The second raised 2 that the first round's
fix introduced (a dropped condition and an ambiguous "this issue"), both
fixed. The third raised none beyond the style findings below.

## Remaining local findings, for this pull request's review

The edit budget is spent, so these are listed per the rule this change
writes. Each is class `style`: the opt-in `prose_lint.py --check
sentence-length` check, not part of the default gate, flags a sentence
over 25 words.

- `.agents/skills/local-strict-review/SKILL.md:144`, two 30-word
sentences.
- `.agents/skills/unattended-handoff/SKILL.md:132`, 29 words (the `STOP`
list).
- `.agents/skills/unattended-handoff/SKILL.md:219`, 43 words (the
blocked-promotion condition).
- `.agents/skills/unattended-handoff/SKILL.md:261`, 65 words,
pre-existing in length, one word changed.

## After merging develop

Decision #2556 was answered with option 1: merge this pull request to
develop as it stands. The branch was behind develop and conflicted only
in a generated source digest, so develop was merged in, the digest was
regenerated with `build_dist.py`, and `build_dist.py --check` reports
the copies current. The branch's own content did not change.

A fourth local strict-review pass ran over the merged branch and is
attested on this head. Since the maintainer chose to merge this as it
stands, no further edits were made here. Each finding has an outcome:

- **Sentence length, `style`.** The same opt-in check as above, at the
merged line numbers (`local-strict-review/SKILL.md:149`,
`unattended-handoff/SKILL.md:132, 178, 216, 219, 222, 262`). Declined as
a preference: `fleet-code-review` "Review the Change" item 5 omits
preferences, and this check is not part of the default gate.
- **A body-listed finding has no carrier through the Merge Gate,
`introduced`.** Deferred to #2613.
- **Narrowing a blocked promotion to develop leaves four gaps,
`introduced`.** A failed decision read reads as unblocked. An answer
landing mid-run unblocks the promotion before the parked lane applies
it. Two sessions can overwrite one promotion body. And "parks only on a
choice" leaves no route for a maintainer-only action. Deferred to #2614.
- **The queue behind a blocked promotion is bounded only by the round
cap, `introduced` (design).** Declined: queueing develop merges behind a
blocked promotion instead of stopping the run is the change #2534 asks
for. The maintainer wrote it in that issue's "Change" item 2.

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

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
…en Every Change Was Covered (#2615)

## 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](https://claude.com/claude-code)

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
Copilot AI lite review requested due to automatic review settings October 9, 2026 04:05
@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: 39b609f2-50d5-4edc-8f33-7b7bfb71eef2
  • 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.
✅ Project coverage is 59.25%. Comparing base (38f2c91) to head (127de64).
⚠️ Report is 339 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2616   +/-   ##
=======================================
  Coverage   59.25%   59.25%           
=======================================
  Files          16       16           
  Lines        8263     8263           
=======================================
  Hits         4896     4896           
  Misses       3367     3367           
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

Unresolved critical and moderate findings affect unattended promotion safety and pre-PR review handoff.

4 open findings
What changed in this PR

Promotes develop to main and updates unattended promotion, coverage, and review guidance.

Changes:

  • Adds the covered exit 45 promotion exception.
  • Routes spent local-review findings through pull request review.
  • Updates canonical and generated skill guidance and digests.
File Summary
scripts/​pr_review.py Updated promotion coverage guidance.
GOVERNANCE.md Documented the review-loop contract.
.github/​skills/​unattended-handoff/​SKILL.md Updated generated unattended handoff guidance.
.github/​skills/​pr-review-conduct/​SKILL.md Updated generated review guidance.
.github/​skills/​merge-and-release/​SKILL.md Updated generated merge guidance.
.github/​skills/​local-strict-review/​SKILL.md Updated generated local-review guidance.
.claude-plugin/​fleet-skills/​skills/​unattended-handoff/​SKILL.md Updated Claude unattended handoff guidance.
.claude-plugin/​fleet-skills/​skills/​pr-review-conduct/​SKILL.md Updated Claude review guidance.
.claude-plugin/​fleet-skills/​skills/​merge-and-release/​SKILL.md Updated Claude merge guidance.
.claude-plugin/​fleet-skills/​skills/​local-strict-review/​SKILL.md Updated Claude local-review guidance.
.claude-plugin/​fleet-skills/​.source-digests/​unattended-handoff Refreshed source digest.
.claude-plugin/​fleet-skills/​.source-digests/​pr-review-conduct Refreshed source digest.
.claude-plugin/​fleet-skills/​.source-digests/​merge-and-release Refreshed source digest.
.claude-plugin/​fleet-skills/​.source-digests/​local-strict-review Refreshed source digest.
.agents/​skills/​unattended-handoff/​SKILL.md Updated canonical unattended handoff guidance.
.agents/​skills/​pr-review-conduct/​SKILL.md Updated canonical review guidance.
.agents/​skills/​merge-and-release/​SKILL.md Updated canonical merge guidance.
.agents/​skills/​local-strict-review/​SKILL.md Updated canonical local-review guidance.

🧠 Review effort: Lite


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

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