Skip to content

chore(review): give the review bots the plan and the rules - #1379

Merged
cameri merged 4 commits into
rewrite/mainfrom
chore/review-bot-config
Dec 4, 2026
Merged

cameri merged 4 commits into
rewrite/mainfrom
chore/review-bot-config

Conversation

@chappie-daemon

@chappie-daemon chappie-daemon commented Dec 4, 2026 •

Copy link
Copy Markdown
Collaborator

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 plan

The 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 condition

Structured 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.

id what it stops
closing-keyword-inert reporting a missing Closes on a non-default base, where it does nothing
changeset-empty-frontmatter flagging the deliberately empty changeset every PR carries
docs-need-no-tests asking a prose-only diff for tests or coverage
unwrap-in-tests flagging unwrap/expect in test modules, which the clippy gate permits
config-files-0600 missing mode 0600 and pid-scoped staging on config-directory writes

commentTypes drops style, which the repo's own linters already own. .greptile/files.json gives 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 book

profile: quiet, diagrams and fortunes off, and path instructions that point at plan.md and 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/main has carried that check as skipping for the whole rewrite — the CodeRabbit context 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

  • Documentation
    • Added a rewrite plan outlining the cutover timeline, completion criteria, out-of-scope features, and links to planning trackers.
    • Added guidance describing review rules, their evidence, and when they should be maintained or retired.
  • Chores
    • Updated automated pull-request review settings and instructions, including review profiles and guidance for documentation, changesets, and selected project areas.

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.
@coderabbitai

coderabbitai Bot commented Dec 4, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The PR adds a Rust rewrite plan with cutover dates, gates, and out-of-scope capabilities. It also adds CodeRabbit and Greptile configuration, rule documentation, and a changeset describing the review-bot setup.

Changes: Rewrite Plan and Review Configuration

Layer / File(s) Summary
Rewrite scope and cutover plan
docs/rewrite/plan.md
The plan records the rewrite timeline, four cutover gates, deferred capabilities, planning references, and maintenance criteria.
Review tool rules and documentation
.coderabbit.yaml, .greptile/config.json, .greptile/files.json, .greptile/README.md, .changeset/review-bot-config.md
CodeRabbit and Greptile configuration adds review instructions and rules. The Greptile README documents rule ownership and maintenance. The changeset describes how both bots use the rewrite plan.

Possibly related issues

  • Issue 1105: The CodeRabbit configuration enables automatic reviews for pull requests targeting rewrite/main.
  • Issue 860: The rewrite plan documents the rewrite goal, timeline, and out-of-scope capabilities.
  • Issue 869: The rewrite plan records the cutover gates and out-of-scope capabilities.

Suggested reviewers: cameri

Change: Other

Merge Risk: Minimal · up to ebf5f

This change adds a rewrite plan and review-bot configuration and does not affect runtime behavior. No merge-blocking risk is identified.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title names the main change: review bots now receive the rewrite plan and the review rules. The changeset adds docs/rewrite/plan.md, the .greptile/ rules and catalog, and .coderabbit.yaml path ins…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names the main change: review bots now receive the rewrite plan and the review rules. The changeset adds docs/rewrite/plan.md, the .greptile/ rules and catalog, and .coderabbit.yaml path instructions. The title is short, specific, and uses the conventional chore(review) prefix. It does not list files or use vague terms.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • 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

Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 7019957 and ebf5f25.

Files selected for processing: 6

  • .changeset/review-bot-config.md
  • .coderabbit.yaml
  • .greptile/README.md
  • .greptile/config.json
  • .greptile/files.json
  • docs/rewrite/plan.md

Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 3 remain after this review.

@changeset-bot

changeset-bot Bot commented Dec 4, 2026 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: ebf5f25

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 0 packages

When 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.
@chappie-daemon

Copy link
Copy Markdown
Collaborator Author

@coderabbitai review

@greptile-apps

greptile-apps Bot commented Dec 4, 2026 •

Copy link
Copy Markdown

Confidence Score: 5/5RetriggerView in Greptile

[Medium impact] The PR appears safe to merge; no blocking findings remain.

Summary

Adds review guidance and a stable plan for the Rust rewrite.

  • Review bots now judge Rust changes against the rewrite plan.
  • Greptile uses named rules to guide recurring review comments.
  • CodeRabbit now reviews pull requests into rewrite/main.

No new actionable issues were found in the changes since the previous review. Both previous threads are unnumbered, so neither requires a previousFindings entry.

Reviews (3) · Last reviewed commit: "chore(review): delete the unwrap rule; t..." · Reviewed by Greptile

Comment thread .greptile/config.json Resolved
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.
Comment thread .greptile/config.json Resolved
greptile-apps[bot]
greptile-apps Bot previously approved these changes Dec 4, 2026
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.
@greptile-apps
greptile-apps Bot dismissed their stale review December 4, 2026 13:57

Dismissed because a newer commit was pushed; Greptile will re-review the current head.

@coderabbitai

coderabbitai Bot commented Dec 4, 2026 •

Copy link
Copy Markdown
Action not completed

Already reviewed the last commit. Use @coderabbitai full review to rerun a review of the entire changeset.

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.

@cameri
cameri merged commit 58fcf10 into rewrite/main Dec 4, 2026
19 checks passed
@cameri
cameri deleted the chore/review-bot-config branch December 4, 2026 14:21
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