Skip to content

State the pr_review.py Spelling Rule Once for Every Call - #4259

Merged
ptr727 merged 7 commits into
developfrom
feature/spelling-text-4239
Nov 17, 2026
Merged

ptr727 merged 7 commits into
developfrom
feature/spelling-text-4239

Conversation

@ptr727

@ptr727 ptr727 commented Nov 17, 2026 •

Copy link
Copy Markdown
Owner

Closes #4239

Summary

This fixes three defects in the carried skill text about spelling scripts/pr_review.py calls so that the host-safety allow rule matches them.

  1. Restricted uv cache covered merge only. pr-review-conduct "Expected review loop" now names every call that merges or deletes: merge, cleanup <number>, and cleanup --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.
  2. Misleading antecedent in drive-pr step 4. The sentence that ended with the classifier is gone. The sentence after it now names merge as its subject.
  3. Uneven per-site pointers. The one pr-review-conduct paragraph now says it covers every scripts/pr_review.py call 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 every scripts/pr_review.py call this skill prints as pr-review-conduct "Expected review loop" says." Two copies of the allow-rule claim in drive-pr and merge-and-release repeated that paragraph, and both are removed. resync-a-repo and audit-a-repo printed 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-worktree or resync-a-repo would otherwise never learn about the restricted-cache handling for cleanup. 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 --check passes, and the generated .github/skills/ and .claude-plugin/ trees are regenerated.
  • spec/validate.py passes.
  • The prose gate passes on the diff.
  • The full unittest suite passes: 4482 tests, OK, 12 skipped.
  • Three recorded local-strict-review passes. 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", class introduced. The reason for blocking merges and deletes also applied to the writes that are allowed to run. Fixed in 0aea65c1 and bda160ba. 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 of comment, attest, reply, or wait.
  • Same location, class introduced. The claim that the classifier refuses a merge was stated twice. Fixed in 0aea65c1. The paragraph no longer states that claim a second time.

The fix push also ran a local pass. It found cleanup sentences in drive-pr and merge-and-release with no subject, and the short-form comment call in Merge Gate item 4. Both are fixed in bda160ba and 753db6e5. The same pass said cleanup --sweep --apply sends no remote delete. That is wrong: the --apply help and the module docstring in scripts/pr_cleanup.py say the sweep deletes the remote head branch of a merged develop pull request. The pass over 753db6e5 found nothing. The pass over 9cd56faf raised the same sweep claim again. It is Disproven: with --apply, CleanupSweep.remote in scripts/pr_cleanup.py calls _cleanup, and _cleanup returns cleanup_remote_delete, the same deleteRef that cleanup <number> uses.

🤖 Generated with Claude Code

ptr727 and others added 3 commits November 17, 2026 08:29
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]>
Copilot AI lite review requested due to automatic review settings November 17, 2026 16:41
@ptr727

ptr727 commented Nov 17, 2026

Copy link
Copy Markdown
Owner Author

A recorded local strict-review pass covers head c9465091202728475a48ec40bce2e0c493855ab3, the content this pull request carries at that commit against develop, and it recorded 2 findings.

@coderabbitai

coderabbitai Bot commented Nov 17, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

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

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 7c082a0 and 9cd56fa.

Files ignored due to path filters: 21

  • .claude-plugin/fleet-skills/.source-digests/audit-a-repo is excluded by !.claude-plugin/fleet-skills/**
  • .claude-plugin/fleet-skills/.source-digests/backlog-burndown is excluded by !.claude-plugin/fleet-skills/**
  • .claude-plugin/fleet-skills/.source-digests/drive-pr is excluded by !.claude-plugin/fleet-skills/**
  • .claude-plugin/fleet-skills/.source-digests/merge-and-release is excluded by !.claude-plugin/fleet-skills/**
  • .claude-plugin/fleet-skills/.source-digests/pr-review-conduct is excluded by !.claude-plugin/fleet-skills/**
  • .claude-plugin/fleet-skills/.source-digests/repo-worktree is excluded by !.claude-plugin/fleet-skills/**
  • .claude-plugin/fleet-skills/.source-digests/resync-a-repo is excluded by !.claude-plugin/fleet-skills/**
  • .claude-plugin/fleet-skills/skills/audit-a-repo/SKILL.md is excluded by !.claude-plugin/fleet-skills/**
  • .claude-plugin/fleet-skills/skills/backlog-burndown/SKILL.md is excluded by !.claude-plugin/fleet-skills/**
  • .claude-plugin/fleet-skills/skills/drive-pr/SKILL.md is excluded by !.claude-plugin/fleet-skills/**
  • .claude-plugin/fleet-skills/skills/merge-and-release/SKILL.md is excluded by !.claude-plugin/fleet-skills/**
  • .claude-plugin/fleet-skills/skills/pr-review-conduct/SKILL.md is excluded by !.claude-plugin/fleet-skills/**
  • .claude-plugin/fleet-skills/skills/repo-worktree/SKILL.md is excluded by !.claude-plugin/fleet-skills/**
  • .claude-plugin/fleet-skills/skills/resync-a-repo/SKILL.md is excluded by !.claude-plugin/fleet-skills/**
  • .github/skills/audit-a-repo/SKILL.md is excluded by !.github/skills/**
  • .github/skills/backlog-burndown/SKILL.md is excluded by !.github/skills/**
  • .github/skills/drive-pr/SKILL.md is excluded by !.github/skills/**
  • .github/skills/merge-and-release/SKILL.md is excluded by !.github/skills/**
  • .github/skills/pr-review-conduct/SKILL.md is excluded by !.github/skills/**
  • .github/skills/repo-worktree/SKILL.md is excluded by !.github/skills/**
  • .github/skills/resync-a-repo/SKILL.md is excluded by !.github/skills/**
Files selected for processing: 7

  • .agents/skills/audit-a-repo/SKILL.md
  • .agents/skills/backlog-burndown/SKILL.md
  • .agents/skills/drive-pr/SKILL.md
  • .agents/skills/merge-and-release/SKILL.md
  • .agents/skills/pr-review-conduct/SKILL.md
  • .agents/skills/repo-worktree/SKILL.md
  • .agents/skills/resync-a-repo/SKILL.md
  • Autofix · 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

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

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.

🟡 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.py commands and fixes the drive-pr merge 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

ptr727 and others added 2 commits November 17, 2026 08:45
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]>
@ptr727

ptr727 commented Nov 17, 2026

Copy link
Copy Markdown
Owner Author

A recorded local strict-review pass covers head 753db6e55a6b3c304369f25bcd892c6f75dfdbff, the content this pull request carries at that commit against develop, and it recorded 0 findings.

@ptr727

ptr727 commented Nov 17, 2026

Copy link
Copy Markdown
Owner Author

A recorded local strict-review pass covers head 9cd56fafea7080de4bb76ae7d3522ac78196a31d, the content this pull request carries at that commit against develop, and it recorded 1 finding.

@codecov

codecov Bot commented Nov 17, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 78.20%. Comparing base (7c082a0) to head (9cd56fa).
⚠️ Report is 1 commits behind head on develop.

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           
Flag Coverage Δ
python-3.13 78.20% <ø> (ø)

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 commented Nov 17, 2026

Copy link
Copy Markdown
Owner Author

@coderabbitai review

@ptr727

ptr727 commented Nov 17, 2026

Copy link
Copy Markdown
Owner Author

/review

@coderabbitai

coderabbitai Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Action not completed

Review rate limited.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@ptr727
ptr727 merged commit 2a423cb into develop Nov 17, 2026
13 checks passed
@ptr727
ptr727 deleted the feature/spelling-text-4239 branch November 17, 2026 17:13
ptr727 added a commit that referenced this pull request Nov 17, 2026
…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)
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