Repository navigation
chore(review): give the review bots the plan and the rules - #1379
Conversation
docs/rewrite/plan.md is the stable plan a reviewer cites: the goal, the four cutover gates, and what is out of scope until the flag flips. Both bots read it. The rules live in .greptile/ as five id-addressable entries, each with its evidence and its retire condition in README.md. .coderabbit.yaml stays a profile plus path instructions, with no rule list, so a rule exists in one prompt rather than two.
|
No actionable comments were generated in the recent review. Walkthrough
Change: Other Merge Risk:
|
🦋 Changeset detectedLatest commit: ebf5f25 The changes in this PR will be included in the next version bump. This PR includes changesets to release 0 packagesWhen changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
It skips any non-default base branch by default, so every PR into rewrite/main so far got 'Review skipped' and the second opinion has been absent for the whole rewrite.
|
@coderabbitai review |
Confidence Score: 5/5
[Medium impact] The PR appears safe to merge; no blocking findings remain.
|
Greptile's first review of this PR found it: Cargo.toml denies unwrap_used and expect_used workspace-wide, and each test target opts out by hand with #![allow(...)], so a test file without that allowance fails the clippy gate. The rule now says to flag exactly that, and the index row records how the error was caught.
Two review rounds went into arguing where a lint allowance lives, and the clippy gate fails a test file that lacks one anyway. The index keeps it under Removed so the next suggestion of this rule starts from why it failed.
Dismissed because a newer commit was pushed; Greptile will re-review the current head.
Action not completed
|
Two changes, both aimed at the same thing: the review bots should know what this branch is for, and the rules that steer them should cost their tokens rather than ours.
docs/rewrite/plan.md— the stable half of the planThe roadmap lives across issues (#869 for the cutover checklist, #122 for the daily queue), which no reviewer can read. This file carries the part that does not move: the goal and its dates, the four gates that decide cutover, the capabilities deliberately out of scope until the flag flips (#1373–#1376), and a pointer table to the live trackers. It says explicitly that an absent post-v4 capability is not a defect.
It changes only when a date, a gate or the out-of-scope list changes.
.greptile/— five rules, each with a retire conditionStructured rules with stable ids, so a rule can be switched off by id rather than by rewriting the prompt. Every entry names its evidence and the event that deletes it in
.greptile/README.md; there is no entry without one.closing-keyword-inertCloseson a non-default base, where it does nothingchangeset-empty-frontmatterdocs-need-no-testsunwrap-in-testsunwrap/expectin test modules, which the clippy gate permitsconfig-files-0600commentTypesdropsstyle, which the repo's own linters already own..greptile/files.jsongives the reviewer CLAUDE.md, the crate map, and the two decision records that constrain the hot crates..coderabbit.yaml— the second opinion, not the rule bookprofile: quiet, diagrams and fortunes off, and path instructions that point atplan.mdand the ADR that governs the crate. Deliberately no rule list: the same rule in two prompts doubles the noise and gives two places to forget it.A finding from this PR: the second opinion was absent
The first push showed CodeRabbit's own message, "Review skipped: auto reviews are disabled on base/target branches other than the default branch". Every pull request into
rewrite/mainhas carried that check as skipping for the whole rewrite — theCodeRabbitcontext in the required list has never reviewed anything here.reviews.auto_review.base_branches: ["rewrite/main"]names the base so it does.Summary by CodeRabbit