Skip to content

Guard a Promotion Merge with the Head the Go-Ahead Covers - #2511

Merged
ptr727 merged 3 commits into
developfrom
feature/merge-match-reported-head
Oct 8, 2026
Merged

ptr727 merged 3 commits into
developfrom
feature/merge-match-reported-head

Conversation

@ptr727

@ptr727 ptr727 commented Oct 8, 2026

Copy link
Copy Markdown
Owner

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

ptr727 and others added 3 commits October 7, 2026 19:48
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]>
Copilot AI lite review requested due to automatic review settings October 8, 2026 02:53
@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: 2dd60b22-e3db-43a2-a119-dffb8d2ed55e
  • 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 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

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 (f9188c3).

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

@ptr727
ptr727 merged commit e3d43de into develop Oct 8, 2026
13 checks passed
@ptr727
ptr727 deleted the feature/merge-match-reported-head branch October 8, 2026 02:58
ptr727 added a commit that referenced this pull request Oct 8, 2026
…-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)
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