Repository navigation
fix(skills): bind reviewers to a non-mutating inspection workspace (#3058) - #3060
Conversation
…3058) review-pr required reading the whole current-head change and exercising the real CLI/LSP/output surface, but never said where. The obvious route is to fetch the PR head and check it out, which in a shared root checkout silently moves a HEAD another writer owns. CLAUDE.md already carries the operating law -- one writer mutates each candidate branch or worktree while readers, researchers, reviewers, and tools inspect it. The reviewer procedure did not carry the reader half of it, and the closed review-contract marker set had nothing binding it. Add review_contract:non_mutating_inspection_workspace to the closed set in xtask and declare it in both provider skill trees, each with an Inspection workspace section naming the routes that materialize nothing (gh pr diff, git show <sha>:<path>, git diff <base>...<sha>) and requiring a dedicated worktree when rendered-behavior review genuinely needs a materialized tree. No reservation, lease, lock, or sibling-monitoring surface is introduced; CLAUDE.md forbids those and they are not needed to state the rule.
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
|
Warning Review limit reached
Next review available in: 36 minutes You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Plus Run ID: 📒 Files selected for processing (3)
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. Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Exact-head review recordAuthor self-review. GitHub does not permit an author to request changes on their own PR, Surfaces inspected and semantic owners
Two gaps found in my own proof, and closedThe PR body originally rested on a single negative experiment against 1. The Claude tree was never proven to fail. The original experiment removed the marker One finding for the Claude tree, two for the shared 2. Exact-head CI receipt, run The gate ran and consumed real subjects at this head. Not an aggregate status. ChallengeRemoval experiment: deleting either added marker line fails the gate with exactly the Limitation, stated plainly: this proves each provider skill declares the contract. It Non-blocking observations
Missing evidence
Neither is a required check — branch protection on DispositionReady for merge convergence on the source and oracle axes, with the missing automated-review |
Closes #3058.
What was wrong
review-prtold a reviewer what to inspect but never where. Step 2 requires readingthe whole current-head change, and the
review_contract:rendered_behaviorlane requiresexercising "actual CLI, API, LSP, help, generated, or output surface where practical".
Both push toward materializing the PR head on disk, and the skill offered no non-mutating
way to do it. The obvious route —
— run from a shared root checkout, silently moves a HEAD another writer owns.
CLAUDE.mdalready states the law: one writer mutates each candidate branch or worktree,while readers, researchers, reviewers, and tools inspect it. The law existed; the reviewer
procedure did not carry the reader half of it, and the closed marker set had nothing
binding it.
This was observed, not theorized. Three concurrent read-only reviewers of #3053, #3055,
and #3057 all ran in the shared root and left it on a local
pr3053branch instead ofmain. Nothing was lost, because the tree happened to be clean — which is precisely whyit is worth closing. The same sequence against a worktree holding uncommitted candidate
work is a real writer collision, and the reviewer gets no signal it did anything wrong.
What changed
xtask/src/agent_skills.rsreview_contract:non_mutating_inspection_workspacein the closed marker set (16 → 17).claude/skills/review-pr/SKILL.md.agents/skills/review-pr/SKILL.mdThe rule names the routes that materialize nothing (
gh pr diff,gh pr view,git show <sha>:<path>,git diff <base>...<sha>), and requires a dedicatedgit worktree add --detachwhen rendered-behavior review genuinely needs a real tree.Both provider trees are edited because the marker set is a shared gate contract, not a
routing import —
CLAUDE.md's no-import rule is unaffected.Proof
The existing
review_contract_markers_are_closed_and_discriminatingunit test covers theclosed set generically, so registering the marker extends it automatically. That is not
sufficient on its own: it proves the set discriminates, not that the real skill files
declare this marker. So the gate is bound to a negative experiment per provider tree.
Negative experiment A — delete only the marker line from
.agents/skills/review-pr/SKILL.md:Negative experiment B — delete only the marker line from
.claude/skills/review-pr/SKILL.md:Two findings for the shared
.agentstree (read by bothcodexandzcode), one for theClaude tree. The counts track the provider fan-out exactly, and neither run produces
collateral findings — the gate isolates this omission rather than failing broadly.
Positive:
cargo xtask check-agent-skills→passwith both markers present.Where this gate actually runs:
check-agent-skillsis not part ofcargo xtask precommit(
precommit_report_bodylists 32 gates; this is not among them). It is registered inxtask/src/command.rsand invoked from.github/workflows/routed-rust.yml, so CI is theenforcement path. Confirmed executing at this head rather than assumed — run
31252554896,job
Ripr Rust Small on GitHub Hosted:cargo xtask precommitalso passes in full, but note it does not cover this particular gate.What this does not claim
existing marker.
surface.
CLAUDE.mdforbids those and none is needed to state the rule.provider skill declares the contract; it cannot prove a given reviewer honored it.
droid-reviewis queued. Neither is a required check, but rate-limited reviewer output ismissing review, not clean review.