Repository navigation
Guard a Promotion Merge with the Head the Go-Ahead Covers - #2511
Conversation
merge-and-release step 3 passes drive-pr's reported head to --match-head-commit where a report named one, so the server refuses a merge whose head moved at any point after the go-ahead rather than only after the live read. A promotion made ready by hand keeps the live read. Fixes #2505 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Address the local review: an unattended grant and a re-ask approval both hold a report whose head is stale, so step 3 passes the reported head only where it is still the one approved. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Address the second local review: an unattended worker holds drive-pr's ready report, so step 2 states that the comparison is skipped under the grant rather than asserting that no report exists. 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
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. Comment |
There was a problem hiding this comment.
🟢 Approval recommended
No unresolved review issues were identified.
0 open findings
What changed in this PR
Updates promotion merges to use the go-ahead’s covered head SHA, clarifies unattended handling, and synchronizes generated skill distributions.
Changes:
- Guards merges with
--match-head-commit. - Clarifies head comparison and refusal behavior.
- Updates generated skills and source digest.
| File | Description |
|---|---|
.github/skills/merge-and-release/SKILL.md |
Generated Copilot distribution |
.claude-plugin/fleet-skills/skills/merge-and-release/SKILL.md |
Generated Claude distribution |
.claude-plugin/fleet-skills/.source-digests/merge-and-release |
Updated source digest |
.agents/skills/merge-and-release/SKILL.md |
Canonical procedure updates |
🧠 Review effort: Lite
Give feedback about Copilot approvals in this survey to enter a drawing for a $150 gift card.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #2511 +/- ##
========================================
Coverage 58.50% 58.50%
========================================
Files 16 16
Lines 8066 8066
========================================
Hits 4719 4719
Misses 3347 3347
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:
|
…-Ahead Covers (#2512) ## Summary Promotes one change from `develop`: - #2511: `merge-and-release` step 3 passes `--match-head-commit` the head the go-ahead covers, rather than always the live read. - Attended, that is the head `drive-pr`'s ready report named, or the moved head the maintainer approved after step 2's re-ask. Under an `unattended-handoff` grant, or with no report, it is the head step 2 recorded. - The server then refuses a merge whose head moved at any point after the go-ahead. That closes the gap where reading the live head and merging in one command skipped step 2's comparison. - Step 2 states that the comparison is skipped under an `unattended-handoff` grant even where the worker holds a ready report. Closes #2505. ## Verification - Every check on #2511 passed, and Copilot's review covered all 4 changed files with no findings. - Three `local-strict-review` passes ran. The last one checked every merge path and found nothing. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Summary
Implements #2505.
merge-and-release"The Procedure":--match-head-committhe head the go-ahead covers, rather than always the live read. Attended, that is the headdrive-pr's ready report named, or the moved head the maintainer approved after step 2's re-ask. Under anunattended-handoffgrant, or where no report named a head, it is the head step 2 recorded. The server then refuses a merge whose head moved at any point after the go-ahead, which closes the window Promote develop to main: Recognize the Installer's Own Partial CLAUDE.md #2502 hit, where reading the live head and merging in one command skipped step 2's comparison.unattended-handoffgrant even where the worker holds a ready report, rather than asserting that no report exists.Verification
scripts/build_dist.py --checkand the prose gate pass, and the hook gates ran on each commit.local-strict-reviewpasses ran. The first two each found one path that the guard broke (an unattended worker refused forever, and an attended re-ask approval that could never merge), and each was fixed. The third pass checked every path and found nothing.Refs #2505, which closes on the promotion PR.
🤖 Generated with Claude Code