Repository navigation
State the pr_review.py Spelling Rule Once for Every Call - #4259
Conversation
The pr-review-conduct "Expected review loop" paragraph now covers every pr_review.py call any fleet skill prints. Its restricted-uv-cache case names each call that merges or deletes as a blocked write, not only merge. Each skill printing a call routes to that paragraph once, replacing the uneven per-site pointers. drive-pr step 4 names `merge` as the subject of the gate description, so it no longer reads as the classifier's. Co-Authored-By: Claude Opus 5.5 <[email protected]>
State why a merging or deleting call is reported under a restricted uv cache: the classifier's verdict is no record of the go-ahead. Name the subject of each sentence a route sentence now precedes. Co-Authored-By: Claude Opus 5.5 <[email protected]>
A merge or delete under a restricted uv cache is reported because the classifier is expected to refuse it, so running it is a probe. Drop the known-safe hedge the host README rules out, and restore the "So" link. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
A recorded local strict-review pass covers head |
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 33 minutes. View limit details
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. |
The probe reason now rests on the classifier being known to refuse a merge and a branch delete, which separates them from the writes that run. It refers back to the merge refusal rather than restating it. Co-Authored-By: Claude Opus 5.5 <[email protected]>
There was a problem hiding this comment.
🟡 Changes recommended
Two active nit-level issues remain in the review skill documentation: a duplicated merge-refusal statement and an unclear exact-match command instruction.
2 open issues
What changed in this PR
This PR centralizes the scripts/pr_review.py command-spelling guidance, expands restricted-cache handling to merge and cleanup writes, and regenerates the distributed skill copies.
Changes:
- Covers
merge, numbered cleanup, and sweep cleanup commands in the restricted-cache guidance. - Adds consistent routing text wherever fleet skills print
scripts/pr_review.pycommands and fixes thedrive-prmerge wording. - Regenerates the GitHub Copilot and Claude skill distributions and refreshes source digests.
| File | Description |
|---|---|
| .github/skills/resync-a-repo/SKILL.md | Regenerated Copilot distribution of the resync skill with the shared command-spelling route. |
| .github/skills/repo-worktree/SKILL.md | Regenerated Copilot distribution of the worktree skill with the shared cleanup guidance. |
| .github/skills/pr-review-conduct/SKILL.md | Regenerated Copilot distribution containing the expanded restricted-cache handling and centralized spelling rule. |
| .github/skills/merge-and-release/SKILL.md | Regenerated Copilot distribution with shared routing for status and cleanup commands. |
| .github/skills/drive-pr/SKILL.md | Regenerated Copilot distribution with corrected merge wording and shared command routing. |
| .github/skills/backlog-burndown/SKILL.md | Regenerated Copilot distribution with shared routing for group cleanup commands. |
| .github/skills/audit-a-repo/SKILL.md | Regenerated Copilot distribution with shared routing for report cleanup commands. |
| .claude-plugin/fleet-skills/skills/resync-a-repo/SKILL.md | Regenerated Claude distribution of the resync skill with the shared command-spelling route. |
| .claude-plugin/fleet-skills/skills/repo-worktree/SKILL.md | Regenerated Claude distribution of the worktree skill with the shared cleanup guidance. |
| .claude-plugin/fleet-skills/skills/pr-review-conduct/SKILL.md | Regenerated Claude distribution containing the expanded restricted-cache handling and centralized spelling rule. |
| .claude-plugin/fleet-skills/skills/merge-and-release/SKILL.md | Regenerated Claude distribution with shared routing for status and cleanup commands. |
| .claude-plugin/fleet-skills/skills/drive-pr/SKILL.md | Regenerated Claude distribution with corrected merge wording and shared command routing. |
| .claude-plugin/fleet-skills/skills/backlog-burndown/SKILL.md | Regenerated Claude distribution with shared routing for group cleanup commands. |
| .claude-plugin/fleet-skills/skills/audit-a-repo/SKILL.md | Regenerated Claude distribution with shared routing for report cleanup commands. |
| .claude-plugin/fleet-skills/.source-digests/resync-a-repo | Updates the generated source digest for the resync skill. |
| .claude-plugin/fleet-skills/.source-digests/repo-worktree | Updates the generated source digest for the worktree skill. |
| .claude-plugin/fleet-skills/.source-digests/pr-review-conduct | Updates the generated source digest for the review-conduct skill. |
| .claude-plugin/fleet-skills/.source-digests/merge-and-release | Updates the generated source digest for the merge-and-release skill. |
| .claude-plugin/fleet-skills/.source-digests/drive-pr | Updates the generated source digest for the drive-pr skill. |
| .claude-plugin/fleet-skills/.source-digests/backlog-burndown | Updates the generated source digest for the backlog-burndown skill. |
| .claude-plugin/fleet-skills/.source-digests/audit-a-repo | Updates the generated source digest for the audit skill. |
| .agents/skills/resync-a-repo/SKILL.md | Adds the shared command-spelling route for cleanup calls. |
| .agents/skills/repo-worktree/SKILL.md | Applies the shared command-spelling route to cleanup commands. |
| .agents/skills/pr-review-conduct/SKILL.md | Defines the centralized spelling rule and expanded restricted-cache behavior. |
| .agents/skills/merge-and-release/SKILL.md | Routes status and cleanup calls through the shared spelling rule. |
| .agents/skills/drive-pr/SKILL.md | Fixes the merge-step wording and applies the shared command route. |
| .agents/skills/backlog-burndown/SKILL.md | Routes group cleanup calls through the shared spelling rule. |
| .agents/skills/audit-a-repo/SKILL.md | Routes report cleanup calls through the shared spelling rule. |
Review effort: Lite
State the known merge refusal as one that holds even with the gate met, so an approved merge reads as blocked under a restricted uv cache too. Name `cleanup` where a removed sentence left its antecedent behind. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The spelling rule now covers every pr_review.py call a skill prints, so the Merge Gate's acknowledgment call prints the full allow-rule form. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
A recorded local strict-review pass covers head |
Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
A recorded local strict-review pass covers head |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #4259 +/- ##
========================================
Coverage 78.20% 78.20%
========================================
Files 42 42
Lines 15415 15415
========================================
Hits 12055 12055
Misses 3360 3360
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
|
…trap Secret Restore (#4255) ## Summary Promotes `develop` to `main`. It carries nine changes: - [#4247](#4247): retires the `CLAUDE.md` pointer file, the second half of #4074. The hub's copy and its `spec/files.json` entry are gone, and a `retire` gap records why. The audit now reports a retired path the hub no longer tracks. A copy matching a past hub revision is reported for deletion, and any other copy is reported for the maintainer. It merged on the maintainer's go-ahead after reading its diff, which touches `host-setup/agent-safety/README.md`. - [#4256](#4256): that match compares line endings alone, so a retired copy differing in an action pin or a `needs:` list goes to the maintainer. It answers a Copilot finding on this promotion. - [#4260](#4260): the audit run stamp names the commits it read. HEAD carries `-dirty` where the read paths differ from it, and `main <sha>` is added where the fetched `main` differs. - [#4259](#4259): `pr-review-conduct` states the `pr_review.py` spelling rule once for every call a fleet skill prints. Under a restricted uv cache, a merge or a branch delete is reported to the maintainer as a blocked write. - [#4261](#4261): `validate-task.yml` takes a `test-matrix-file` input, read through the same validation as `test-matrix`. - [#4257](#4257): the pre-commit snippet says to exclude `hub_fetch_run.py` from a repository's own ruff with `force-exclude = true`. The short-form `AUDIT.md` snippet drops its two hub-audit authority sentences. - [#4246](#4246): `bootstrap.sh --secrets` and `bootstrap.ps1 -Secrets` restore named secret buckets, on their own or as a step of a `--host` or `--dev` stand-up. - [#4250](#4250): `host-*` buckets in `scripts/secrets_sync.py` may each hold the same home-relative title. - [#4258](#4258): a dry run with no 1Password account is refused rather than enrolling one, and the root-refused secrets tests skip on a root runner. It answers two CodeRabbit findings on this promotion. Hosts already carry the load-both setting the retirement relies on, from the 2.0.1483 kit. Closes #4074 Closes #4236 Closes #4238 Closes #4239 Closes #4242 Closes #4243 Closes #4248 Closes #4249 🤖 Generated with [Claude Code](https://claude.com/claude-code)

Closes #4239
Summary
This fixes three defects in the carried skill text about spelling
scripts/pr_review.pycalls so that the host-safety allow rule matches them.mergeonly.pr-review-conduct"Expected review loop" now names every call that merges or deletes:merge,cleanup <number>, andcleanup --sweep --apply. Each is reported to the maintainer as a blocked write instead of being run. Any other call runs, and if the classifier refuses one, that refusal is reported as a refused write.drive-prstep 4. The sentence that ended with the classifier is gone. The sentence after it now namesmergeas its subject.pr-review-conductparagraph now says it covers everyscripts/pr_review.pycall that any fleet skill prints. Every skill that prints a call now has one identical route sentence in place of the per-site pointers: "Spell everyscripts/pr_review.pycall this skill prints aspr-review-conduct"Expected review loop" says." Two copies of the allow-rule claim indrive-prandmerge-and-releaserepeated that paragraph, and both are removed.resync-a-repoandaudit-a-repoprinted a call with no pointer, and each now has the route sentence.Why one route sentence per skill instead of dropping every pointer: each skill has to work on its own. A reader holding only
repo-worktreeorresync-a-repowould otherwise never learn about the restricted-cache handling forcleanup. That handling is the exact hazard the issue names.host-setup/agent-safety/is untouched. The kit README's statement of the matching rule agrees with this paragraph and still points to it.Verification
build_dist.py --checkpasses, and the generated.github/skills/and.claude-plugin/trees are regenerated.spec/validate.pypasses.local-strict-reviewpasses. The fixes from the first two passes are in this branch.Local-pass findings listed on the opening push
Both findings are fixed. Neither is open.
.agents/skills/pr-review-conduct/SKILL.md"Expected review loop", classintroduced. The reason for blocking merges and deletes also applied to the writes that are allowed to run. Fixed in0aea65c1andbda160ba. The reason is now that the classifier is known to refuse these writes: a merge even when its gate is met, and a branch delete on some days. That is not known ofcomment,attest,reply, orwait.introduced. The claim that the classifier refuses a merge was stated twice. Fixed in0aea65c1. The paragraph no longer states that claim a second time.The fix push also ran a local pass. It found
cleanupsentences indrive-prandmerge-and-releasewith no subject, and the short-formcommentcall in Merge Gate item 4. Both are fixed inbda160baand753db6e5. The same pass saidcleanup --sweep --applysends no remote delete. That is wrong: the--applyhelp and the module docstring inscripts/pr_cleanup.pysay the sweep deletes the remote head branch of a merged develop pull request. The pass over753db6e5found nothing. The pass over9cd56fafraised the same sweep claim again. It is Disproven: with--apply,CleanupSweep.remoteinscripts/pr_cleanup.pycalls_cleanup, and_cleanupreturnscleanup_remote_delete, the samedeleteRefthatcleanup <number>uses.🤖 Generated with Claude Code