Skip to content

Promote develop to main: Guard a Promotion Merge with the Head the Go-Ahead Covers - #2512

Merged
ptr727 merged 1 commit into
mainfrom
develop
Oct 8, 2026
Merged

ptr727 merged 1 commit into
mainfrom
develop

Conversation

@ptr727

@ptr727 ptr727 commented Oct 8, 2026

Copy link
Copy Markdown
Owner

Summary

Promotes one change from develop:

  • Guard a Promotion Merge with the Head the Go-Ahead Covers #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

🤖 Generated with Claude Code

## Summary

Implements #2505. `merge-and-release` "The Procedure":

- **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
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 #2502 hit, where reading the live head and
merging in one command skipped step 2's comparison.
- **Step 2** states that the reported-head comparison is skipped under
an `unattended-handoff` grant even where the worker holds a ready
report, rather than asserting that no report exists.
- **"Stop and Report"** words a refusal as the head moving past the SHA
it was given, which holds for each of step 3's sources.

## Verification

- `scripts/build_dist.py --check` and the prose gate pass, and the hook
gates ran on each commit.
- Three `local-strict-review` passes 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](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 8, 2026 02:58
@coderabbitai

coderabbitai Bot commented Oct 8, 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: 5a3c48dc-dbcd-466d-a048-563551d20711
  • 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.

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

Updates the promotion workflow to merge only the commit covered by the go-ahead.

Changes:

  • Adds exact-head merge protection.
  • Clarifies attended and unattended handoff behavior.
  • Regenerates skill distributions and updates the source digest.
File Description
.github/​skills/​merge-and-release/​SKILL.md Generated GitHub skill copy
.claude-plugin/​fleet-skills/​skills/​merge-and-release/​SKILL.md Generated Claude skill copy
.claude-plugin/​fleet-skills/​.source-digests/​merge-and-release Updated source digest
.agents/​skills/​merge-and-release/​SKILL.md Authoritative procedure updates

🧠 Review effort: Lite


Give feedback about Copilot approvals in this survey to enter a drawing for a $150 gift card.

@codecov

codecov Bot commented Oct 8, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 58.50%. Comparing base (6ccffa8) to head (e3d43de).
⚠️ Report is 325 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2512   +/-   ##
=======================================
  Coverage   58.50%   58.50%           
=======================================
  Files          16       16           
  Lines        8066     8066           
=======================================
  Hits         4719     4719           
  Misses       3347     3347           
Flag Coverage Δ
python-3.13 58.50% <ø> (ø)

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.

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.

Merge a Reported Promotion With --match-head-commit Set to the Reported Head, Not a Fresh Read

2 participants