Skip to content

fix(review): admit large workspaces by default in review-comments (#12940) - #14956

Merged
EffortlessSteven merged 3 commits into
mainfrom
claude/project-thread-csn0a6
Nov 19, 2026
Merged

EffortlessSteven merged 3 commits into
mainfrom
claude/project-thread-csn0a6

Conversation

@EffortlessSteven

@EffortlessSteven EffortlessSteven commented Nov 17, 2026 •

Copy link
Copy Markdown
Member

Summary

Swarm / Source Boundary

  • ordinary feature, analyzer, editor, docs, spec, fixture, badge, dependency, or repo-ops development for ripr-swarm

Source-of-truth Links

Proposal: #12940 (original report)
Spec: docs/specs/RIPR-SPEC-0012-pr-test-guidance.md
ADR: n/a
Plan item: n/a
Governing issue or accepted claim: #12940
Acceptance delta (one sentence): ripr review-comments on ripr-swarm completes with default settings for diffs of 3 to 238 files instead of refusing at the 1,200-file ceiling or timing out at 120 s.

Candidate Relationships

Candidate branch (GitHub PR head is authoritative after publication): claude/project-thread-csn0a6
Stack parent or prerequisite PR (if any): #13919 (merged)
Proposed replacement of PR (if any; not yet accepted): none
Acceptance retained from a replaced candidate (if any): n/a
Accepted winner and losing candidate disposition (when decided): n/a

Scope

  • Two default constants in cli/commands/review_comments.rs, plus the help, command catalog, CLI reference, spec, migration doc and changelog that state them.

Scope Classification

  • One public contract

Production delta:

  • REVIEW_GUIDANCE_MAX_INDEX_FILES_DEFAULT goes from 1200 to 5000.
  • DEFAULT_REVIEW_COMMENTS_TIMEOUT_MS goes from 120_000 to 600_000.

Evidence/support delta:

  • The ceiling test now admits 2,646 and 5,000 files, refuses 5,001, and asserts that the error names =5000.
  • Help text and the help test now say default 600000ms.
  • docs/CLI_REFERENCE.md is re-blessed. The spec, FROM_CARGO_MUTANTS.md and a changelog fragment are updated.

Single acceptance criterion:

  • Default-settings review-comments completes on ripr-swarm for the measured diffs.

Non-goals:

Support-tier Impact

  • none

Policy Impact

  • none

Proof

cargo xtask precommit                                        # exit 0
cargo test -p ripr --lib -- review_comments guidance_payload help   # 973 passed
RIPR_BLESS_CLI_REFERENCE=1 cargo test -p ripr --test cli_reference_doc  # 2 passed

Release binary built from main 6bad9f4 (sha256 3eee8fe3…1afc36), run on a ripr-swarm checkout of the same commit. Host: 4 vCPU, 15 GB, Linux.

run files changed result
main defaults, HEAD~1 3 refused: review_guidance_oversized: 2646 closure input files exceed … =1200
ceiling lifted, 120 s, HEAD~1 3 complete, 43 s, 0.99 GB
ceiling lifted, 120 s, HEAD~4 45 complete, 117 s, 1.22 GB
ceiling lifted, 120 s, HEAD~10 87 timed out in canonical_analysis at 122 s, 1.56 GB
ceiling lifted, 600 s, HEAD~10 87 complete, 178 s, 1.64 GB
ceiling lifted, 600 s, HEAD~25 238 complete, 381 s, 1.87 GB

Every completed receipt is complete, with no limitations.

Claim Boundary

  • May claim: the measured ripr-swarm diffs complete with the new defaults on a 4 vCPU, 15 GB host.
  • Must not claim: an RSS bound for every 5,000-file workspace, or completion within 600 s on slower runners.

Rollback

  • Revert the squash commit. Operators can also set the two env and flag overrides back to the old values.

Static Language Check

  • Static output avoids killed, survived, untested, proven, and adequate.

Engineering Check

  • No new panic, unwrap, expect, todo, or unimplemented in production code.
  • No new panic, unwrap, expect, todo, or unimplemented in tests.

Generated by Claude Code


Devin Review

…2940)

Raise the review-guidance index ceiling from 1,200 to 5,000 files and
the default --timeout-ms from 120 s to 600 s, matching ripr check. The
old ceiling predates #13919, which bounds the second stage that drove
the #3768 and #12940 memory failures. Measured on ripr-swarm (2,646
indexed files, 4 vCPU): diffs of 3, 45, 87 and 238 files complete in
43 to 381 s at 0.99 to 1.87 GB peak RSS; at 120 s the 87-file diff
timed out.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UNUoLUPPQwtwWxdZWL1DMD
@gemini-code-assist

Copy link
Copy Markdown

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@coderabbitai

coderabbitai Bot commented Nov 17, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Summary by CodeRabbit

  • Improvements
    • review-comments now allows indexing up to 5,000 files by default and has a 10-minute time budget, compared with the previous limits of 1,200 files and 2 minutes.
    • Caller-supplied limits remain honored, and analysis still refuses work that exceeds the configured file ceiling.
  • Documentation
    • Updated the CLI reference, configuration guidance, and related documentation with the new defaults and workspace measurements.

Walkthrough

review-comments now defaults to a 5,000-file guidance index ceiling and a 600,000 ms cooperative timeout. Tests, the PR evidence workflow, the report tool, CLI help, and related documentation reflect these limits and updated workspace measurements.

Changes

Review-comments limits

Layer / File(s) Summary
Command defaults and checks
crates/ripr/src/cli/commands/review_comments.rs, crates/ripr/src/cli/command_metadata.rs, crates/ripr/src/cli/help.rs, crates/ripr/src/cli/help/policy.rs, crates/ripr/tests/cli_smoke.rs, .ripr/traceability.toml
The command defaults increase to a 5,000-file ceiling and a 600,000 ms timeout. The ceiling test checks admission at 2,646 and 5,000 files, and refusal at 5,001. Help and traceability references are updated.
Workflow and report timeout values
.github/workflows/rust-gates.yml, xtask/src/reports/review_comments.rs
The PR evidence step retains a 1,200-file limit. The report tool’s timeout default and fallback change to 600 seconds and 600,000 ms.
Documentation and changelog
docs/CLI_REFERENCE.md, docs/CONFIGURATION.md, docs/FROM_CARGO_MUTANTS.md, docs/specs/RIPR-SPEC-0012-pr-test-guidance.md, changelog.d/12940-review-comments-default-ceiling-and-budget.md
The references document the changed defaults and updated workspace measurements. The configuration documentation retains the described over-limit failure and receipt behavior.

Estimated code review effort: 2 (Simple) | ~10 minutes

Possibly related issues

Merge Risk: Minimal · up to 7fdff

The change raises the review-comments default limits to 5,000 files and 600 seconds, with the CI lane pinned to its previous ceiling. No concrete merge-blocking risk was identified.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the main change: review-comments now admits large workspaces by default. The raw summary confirms the default index ceiling rises from 1,200 to 5,000 files and the default timeout rise…
Description check Passed The description follows the required template: it has a Summary, a Swarm/Source Boundary selection, Source-of-truth Links, Candidate Relationships, Scope and Scope Classification, Support-tier and Pol…
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-comments now admits large workspaces by default. The raw summary confirms the default index ceiling rises from 1,200 to 5,000 files and the default timeout rises from 120,000 ms to 600,000 ms. The title does not name the timeout change, but it covers the primary point.

Full details: Description check

Explanation

The description follows the required template: it has a Summary, a Swarm/Source Boundary selection, Source-of-truth Links, Candidate Relationships, Scope and Scope Classification, Support-tier and Policy Impact, Proof, Claim Boundary, Rollback, a Static Language Check, and an Engineering Check. It gives concrete measurements and a clear rationale. Several template sections are missing or left blank: the Spec-Test-Code Traceability section, the CI Economics section (the PR changes the CI-relevant default and the workflow defaults, so it should be filled in or marked n/a), the Gates checklist, and the Extension changes section. The Proof section lists three commands but omits the Gates checklist results. The Scope Classification's 'Other' box and Policy Impact are marked 'none' even though the PR touches the CI-related env value and docs; this may need review.

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

A rabbit checks the file-count gate,
Five thousand pass; one more must wait.
The clock now grants six hundred seconds,
While help text keeps the values hence.
New measurements join the trail,
And carrot crumbs mark every detail.

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Essentials
  • Run ID: 3d92d1a3-7cdd-4678-bf2e-fccb8a375d53
Commits

Reviewing files that changed from the base of the PR and between 34f0a5c and 7fdff8b.

Files selected for processing: 6

  • .github/workflows/rust-gates.yml
  • .ripr/traceability.toml
  • changelog.d/12940-review-comments-default-ceiling-and-budget.md
  • crates/ripr/tests/cli_smoke.rs
  • docs/CONFIGURATION.md
  • xtask/src/reports/review_comments.rs

Included review availability: This review used your included allowance. 0 included reviews remain after this review. Your included PR review attempts over the past 7 days set your current allowance at 1 review per hour.

@devin-ai-integration devin-ai-integration Bot 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.

Devin Review found 3 potential issues.

Devin Review

… smoke test, traceability and xtask wrapper (#12940)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UNUoLUPPQwtwWxdZWL1DMD

@EffortlessSteven EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

VERDICT: APPROVE 34f0a5c — no blocking findings on this head. One non-blocking finding: this repository's own PR-evidence lane re-imposes a 60 s budget, so the dogfood case is not fixed there even though the CLI default is.

Identity. 8 files, +50/-29, at 34f0a5c9ec; base main at be64de5421; merge-base 6bad9f4fa4 (the branch is behind, which moves nothing here). I read the two constants, every reader of them, the xtask wrapper, the workflow step that invokes it, and the three changed tests.

What the change does, and what I confirmed. DEFAULT_REVIEW_COMMENTS_TIMEOUT_MS (crates/ripr/src/cli/commands/review_comments.rs:43) and REVIEW_GUIDANCE_MAX_INDEX_FILES_DEFAULT (:49) are the only defaults the parse path uses (:1165, :1249), so every consumer that does not pass --timeout-ms or the env lever inherits 600 s and 5,000 files. That covers the generated advisory workflow (it invokes ripr review-comments with no timeout flag), ripr gate check (which drives the same producer in process, cli/commands/gate.rs:301), and the ci-packet hand-off documented at cli/commands/ci_packet.rs:2224. The ceiling still fails closed before the guidance dispatch spends memory: GuidancePayloadCeiling::enforce runs ahead of the dispatch and the receipt names the exceeded axis and its env lever. The byte axis (256 MiB) is untouched and independent. Help text, docs/CLI_REFERENCE.md, SPEC-0012 and the changelog state the same two numbers, and no stale 1,200 or 120000 survives in the touched surfaces.

Non-blocking finding: this repository's own lane is still capped at 60 s.

  • .github/workflows/rust-gates.yml:594 sets RIPR_REVIEW_COMMENTS_TIMEOUT_SECS: "60" for the step that runs cargo xtask ripr-review-comments at :651-652.
  • xtask/src/reports/review_comments.rs:598-605 turns that into the child's budget and :547 passes it as an explicit --timeout-ms; with the variable unset the wrapper falls back to :22 DEFAULT_TOOL_TIMEOUT_SECS = 120, which was the old CLI default.
  • Effect: the new 600 s default is unreachable on that path, and the new 5,000-file ceiling now admits ripr-swarm (2,646 files) into a lane that kills the analysis at 60 s. The step writes a status: "error" packet with receipt category analysis_timeout and repair route perf/review-comments-phase-budget, where the same step used to stop at the ceiling with review_guidance_oversized and the ceiling env lever. Neither packet carries guidance, so nothing regresses functionally, but the second half of #12940's reproduction ("with the ceiling lifted, a medium diff then times out") still reproduces here, at 60 s instead of 122 s, and every PR now pays up to 60 s of gate time for a packet no consumer can use.
  • The changelog sentence "(and the PR comment and CI packet paths built on it)" is true for the generated workflow and false for the CI this repository runs. Repair seam, if the dogfood lane is meant to work: raise RIPR_REVIEW_COMMENTS_TIMEOUT_SECS in rust-gates.yml and DEFAULT_TOOL_TIMEOUT_SECS in the wrapper together (or stop passing --timeout-ms when the variable is unset, so the CLI default governs), and pin the two numbers to each other. If that is deliberately a separate change, narrow the changelog sentence and name the consumers that still cap lower.

Non-blocking: the admission test lost its old-scale pin. guidance_payload_default_admits_this_workspace_but_refuses_past_the_ceiling now admits 2,646 and 5,000 and refuses 5,001, with total_bytes equal to the file count. The previous assertion that the 1,600-1,700 external failure shape is refused is gone. That is correct for a raised default, but the ceiling's justification now rests entirely on #13919 bounding the second stage, and nothing here would notice if that bound regressed: the test exercises the count axis only, at a synthetic byte total, so it cannot detect a memory-shape regression at 2,646 files. A separate test that measured the shape (or simply kept a low-ceiling refusal case for the 1,700 shape with the env lever) would make the ratchet durable.

Evidence boundary. There is no hosted run at 34f0a5c9ec: the PR carries no labels, so routed-rust.yml never triggered, and the rollup is CodeRabbit, GitGuardian and Graphite only. The 43-381 s and 0.99-1.87 GB figures, and the local test results, are the author's claims; I did not build or run the suite on this box. The 1.87 GB peak was measured on a 4 vCPU box, not on a hosted runner, and the ceiling remains input admission rather than an RSS bound, which the docs already say.

Next action. None required for source readiness on this seam; the CI-lane observation is for the Coder's judgment, either as a follow-up that raises the wrapper and workflow budgets or as a narrower changelog claim.

…narrow the changelog (#12940)

The lane caps review-comments at 60 s; with the CLI's new 5,000-file
default it would admit this workspace and spend 60 s per PR to reach
analysis_timeout instead of refusing in under a second.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UNUoLUPPQwtwWxdZWL1DMD

@EffortlessSteven EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SOURCE_REVIEW_READY
Exact head 7fdff8b.

Since review 5931114562 (at 34f0a5c)

  • Both of that review's non-blocking findings are addressed:
    • 60 s lane. rust-gates.yml now pins RIPR_REVIEW_GUIDANCE_MAX_INDEX_FILES=1200 next to RIPR_REVIEW_COMMENTS_TIMEOUT_SECS=60, with a comment saying the two move together. This repository's PR-evidence lane keeps refusing in under a second, instead of admitting the workspace and spending 60 s per PR to reach analysis_timeout. Raising the lane to 600 s would add up to 10 minutes to every PR, which is a separate CI-cost decision.
    • Changelog. It now names the callers that get the new defaults: the generated advisory workflow, gate check and ci-packet. It also says that callers passing their own budget or ceiling keep those values.
  • The xtask wrapper's unset default is now 600 s. Its receipt fallback is derived from the same constant.
  • A fresh-context subagent review found two stale references, both fixed:
    • the cli_smoke help assertion (Default: 5000);
    • the docs/CONFIGURATION.md row.
  • All three Devin threads were confirmed, fixed, replied to and resolved: CONFIGURATION row, traceability rename, and wrapper budget.
  • On the lost old-scale pin: the ceiling's justification is now the #13919 bound, measured on this workspace (in the PR body). No unit test can see a memory-shape regression. That stays a measurement claim, not a gate.

Proof at this head

  • cargo xtask precommit exit 0.
  • cargo xtask check-workflows pass.
  • cargo test -p ripr --test cli_smoke review_comments_help: 1 passed.
  • Earlier on this branch: cargo test -p ripr --lib -- review_comments guidance_payload help, 973 passed; CLI reference blessed.
  • Grep found no other crate or xtask test binding the changed phrases.
  • The release-binary measurements in the PR body were taken on main 6bad9f4 with the overrides set, which are exactly the values this PR makes default.

Not established: hosted qualification on this head.


Generated by Claude Code

@EffortlessSteven EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

VERDICT: APPROVE 7fdff8b — no blocking findings on this head.

Identity. Head 7fdff8b0e65c3ed7de53fbb12c09b9ee35da4e5e, base main at be64de5421. This is a delta on top of my 34f0a5c9 review (5931114562), which still covers the production default change; the delta touches CI configuration, docs, traceability and the xtask wrapper.

What moved. Both non-blocking findings from 5931114562 are addressed:

  • .github/workflows/rust-gates.yml:592-601 now pins RIPR_REVIEW_GUIDANCE_MAX_INDEX_FILES=1200 beside RIPR_REVIEW_COMMENTS_TIMEOUT_SECS=60, with a comment that the two move together. This repository's PR-evidence lane keeps refusing under the 1,200-file ceiling instead of admitting the 2,646-file workspace and spending the 60 s budget to reach analysis_timeout. That is a deliberate CI-cost choice; the CLI default remains 5,000 files and 600 s.
  • The changelog now names the generated advisory workflow, gate check and ci-packet as the callers that inherit the new defaults, and says callers that pass their own budget or ceiling keep those values.
  • xtask/src/reports/review_comments.rs:22 raises the wrapper's unset default to 600 s, and the receipt fallback derives from it (:989), matching the CLI default.
  • docs/CONFIGURATION.md:358 states the new 5,000 default and the measurement history; cli_smoke.rs:37477 expects Default: 5000; the traceability test name matches the renamed test at review_comments.rs:3820.

Proof on this head. I read the workflow step, the xtask wrapper, the changed docs and the three changed tests. Hosted Rust gates are still running at this head (shards 1-4 and the Rust gates job); Admit PR Candidate, Detect Docs-Only Surface, Route Ripr Rust Small, Graphite and GitGuardian pass. Source review is affirmative; the queue owns the hosted Rust qualification.

Not checked. I did not build or run tests on this head. The 1,200-file ceiling is an input limit, not an RSS bound; the PR body's measurement claim remains a measurement, not a gate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants