Skip to content

pr_review.py Spelling Text from #4237: Uncovered Cleanup Writes, Misleading Antecedent, Uneven Pointers #4239

Closed

Description

@ptr727

Summary

Three defects in the pr_review.py spelling text that ProjectTemplate#4237 added, released in 2.0.1481. They were found while carrying that release into aiopurpleair (ptr727/aiopurpleair#301). That repo's local-strict-review pass raised all three. Copilot raised the first two again as threads on that PR. Each is in canonical skill text that carrying repos receive byte-locked, so the fix belongs here.

Line numbers refer to .agents/skills/ at 54fc1303 (2.0.1481).

Findings

  1. pr-review-conduct/SKILL.md:327-328 handles the restricted uv cache case for a merge only. "Expected review loop" says the cache variable such an executor needs is an assignment that leaves the allow rule unmatched. It then says "A merge there is reported to the maintainer as a blocked merge rather than run." Every other pr_review.py write hits the same unmatched rule, and the paragraph says nothing about them. That includes cleanup <number>, which deletes a remote branch, and cleanup --sweep --apply. Under that executor, "the spelling is owed on the first call" (line 324) cannot be followed for any pr_review.py call, since uv cannot run without the variable. An agent following AGENTS.md "Commands" (keep caches outside the checkout) adds the variable and hands a branch delete to the classifier.
    • Expected: the blocked-and-reported handling covers every write subcommand, or the paragraph names which calls it covers and why.
  2. drive-pr/SKILL.md:117-118 leaves a misleading antecedent. The inserted sentence ends "or on Claude Code the auto-mode classifier judges the merge and refuses it." The next sentence, "It reads the Merge Gate's mechanically readable items in code ... It merges nothing while one reads unmet", now has the classifier as its nearest antecedent. So it reads as if the classifier runs the Merge Gate checks that pr_review.py merge actually runs.
    • Expected: name the subject ("The command reads ...") or move the inserted sentence after that description.
  3. The per-site "Spell it as pr-review-conduct "Expected review loop" says" pointer is applied unevenly. It was added at backlog-burndown, drive-pr (two sites), merge-and-release, and repo-worktree:258. Two sites that print an allow-rule-dependent call have no pointer: resync-a-repo/SKILL.md:52 (cleanup <number>) and repo-worktree/SKILL.md:279 (cleanup --sweep). This is a per-site fix for a class. GOVERNANCE.md "Design Before Code" asks for one primitive.
    • Expected: either let the one pr-review-conduct paragraph cover every call and drop the per-site pointers, or add the pointer at every site that prints the call.

Evidence

Activity

  1. added a commit that references this issue on Nov 17, 2026
    2a423cb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions