Repository navigation
Read the Merge-Bot Subscription From the Trigger and Sharpen Grace Rules - #4332
Conversation
…e Rules The merge-bot contract read auto_merge_disabled against the whole file's code view, so a job named for the event type satisfied it without a subscription. A new requireTokensOn contract key reads the on: mapping alone, and the merge-bot unit uses it. A regression case names the token in a job name with no matching type. pr-review-conduct now says a hosted reviewer's own check never counts as the settling that anchors the registration grace, matching hosted_grace. drive-pr says a rerun that refuses on a later-opened grace is the bound reached and is reported as waiting on that named end. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
A recorded local strict-review pass covers head |
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the
|
There was a problem hiding this comment.
🟡 Changes recommended
The wait logic can retry merge before a restarted 90-second grace period expires, causing a premature blocked-merge path.
1 open issue
What changed in this PR
This pull request strengthens workflow contract auditing and clarifies hosted-review grace handling and merge redrive guidance across the fleet's review skills.
Changes:
- Adds
requireTokensOnto the contract schema, validator, audit engine, and merge-bot tests. - Clarifies hosted-reviewer grace anchors and updates redrive sequencing.
- Synchronizes authored and generated skill copies and source digests.
| File | Description |
|---|---|
| tests/test_audit_helpers.py | Tests trigger-scoped token validation and merge-bot job-name regression behavior. |
| spec/validate.py | Validates the new requireTokensOn contract key and its value type. |
| spec/files.schema.json | Defines the requireTokensOn property in the contract schema. |
| spec/files.json | Applies trigger-scoped token validation to the merge-bot workflow. |
| spec/audit.py | Extracts the workflow on: mapping for contract checks. |
| spec/audit_contract.py | Implements trigger-scoped required-token validation and updates related documentation. |
| .github/skills/pr-review-conduct/SKILL.md | Updates generated Copilot guidance for hosted-reviewer grace anchors. |
| .github/skills/drive-pr/SKILL.md | Updates generated Copilot guidance for grace refusal redrives. |
| .claude-plugin/fleet-skills/skills/pr-review-conduct/SKILL.md | Updates the generated Claude review-conduct skill distribution. |
| .claude-plugin/fleet-skills/skills/drive-pr/SKILL.md | Updates the generated Claude drive-pr skill distribution. |
| .claude-plugin/fleet-skills/.source-digests/pr-review-conduct | Updates the generated review-conduct skill source digest. |
| .claude-plugin/fleet-skills/.source-digests/drive-pr | Updates the generated drive-pr skill source digest. |
| .agents/skills/pr-review-conduct/SKILL.md | Clarifies that hosted reviewer checks do not settle registration grace. |
| .agents/skills/drive-pr/SKILL.md | Updates canonical guidance for watching checks and redriving grace refusals. |
Review effort: Lite
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #4332 +/- ##
========================================
Coverage 79.14% 79.14%
========================================
Files 45 45
Lines 15918 15920 +2
========================================
+ Hits 12598 12600 +2
Misses 3320 3320
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:
|
|
@coderabbitai review |
|
/review |
Action not completed
|
The drive-pr redrive bullet waited only for the grace end the refusal named, but the watch can settle a check and restart the grace past it. It now waits for the later of that end and 90 seconds after the watch returned. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
A recorded local strict-review pass covers head |

Summary
Fixes three findings CodeRabbit raised on the develop -> main promotion #4330.
auto_merge_disabledtoken was read against the whole file's code view, so a job named for the event type passed without a subscription. A newrequireTokensOncontract key reads theon:mapping alone. The merge-bot unit uses it, and a regression case names the token in a job name with no matching type.hosted_grace.Two other promotion findings are answered on their threads: the prose-gate shebang template (declined) and the copilot-instructions restatement (declined, as on #4324).
Local review
Two passes ran. Edits stopped after the second round.
The second pass raised one
introducedfinding on the drive-pr wait. A later commit fixed it, and a third pass over the current content found nothing.Closes on promotion: none
🤖 Generated with Claude Code