Repository navigation
fix(pilot): rank the current change past the inventory seam limit (#6943) - #6961
Conversation
…#6943) Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NjuTkhQFnZGSqKhx7Tam4K
…#6943) Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NjuTkhQFnZGSqKhx7Tam4K
…old snapshot identity (#6943) Review findings: a late change classification no longer discards the finished inventory; only seams on changed lines get evidence; the snapshot drops the comparable identity when pilot added seams check never classifies; changed paths decode from stable path text; a change with no Rust file drops the seam-limit caveat; a limit with nothing left unanalyzed is cleared. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NjuTkhQFnZGSqKhx7Tam4K
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configuration
📒 Files selected for processing (4)
🔗 Linked repositories identifiedCodeRabbit considers these linked repositories for cross-repo context during reviews:
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 0 remain after this review. Summary by CodeRabbit
WalkthroughWhen the repository inventory seam limit omits seams on changed lines, ChangesPilot changed-seam ranking
Priority: ➖ Normal Estimated code review effort: 3 (Moderate) | ~25 minutes Change: Bug fix Sequence Diagram(s)sequenceDiagram
participant Pilot
participant CurrentChange
participant SeamInventory
Pilot->>CurrentChange: Read changed Rust file paths
Pilot->>SeamInventory: Classify changed files within remaining deadline
SeamInventory-->>Pilot: Return classified seams or error
Pilot->>CurrentChange: Fold classification into ranking and limit information
Possibly related PRs
Merge Risk: ⚪ Minimal · up to Changed-line seams are incorporated into pilot’s ranking when classification succeeds, while the caveat is retained on failure or timeout. No established issue prevents merging. Security Architecture ReviewSecurity architecture risk: 🔵 Low · up to The change stays within local repository analysis and preserves safeguards against comparing incompatible snapshots. Remaining uncertainty concerns work continuing after a cooperative timeout, rather than increased privileges or a new external interface. Retained concerns Security review detailsSecurity Blast Radius
Trust Boundaries and Controls
Resilience and Maintainability Implications
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
A rabbit checks the changed lines with care, Comment |
…ording (#6943) Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NjuTkhQFnZGSqKhx7Tam4K
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
|
Review of record — head Three independent reviewer agents read the exact diff against source; two in round one (at
Not changed, recorded: the warm path still re-reads the workspace and rebuilds the index for the change classification on repos past the limit (about 1.5 s on tokio, 22k seams); "ranked the first N of M seams" is not literal when change seams are added (already true for budget-kept seams before this PR). Local proof: Verdict: nothing blocking on this head. Merge when required CI is green. Generated by Claude Code |
The ranked set can include change seams past the inventory cut, so it is no longer a prefix. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NjuTkhQFnZGSqKhx7Tam4K
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NjuTkhQFnZGSqKhx7Tam4K
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
|
Review of record, addendum: head Since Generated by Claude Code |
|
Follow-up source check on current main
Evidence boundary for both findings: source-supported; runtime NOT_PROVEN. No executable reproduction or new test run is claimed. |
Summary
ripr pilotcut the seams the developer just changed before it loaded the change. On tokio withsemaphore.rs:1261flipped, pilot said "scope: change-first" but could only report that the seam limit may have hidden the change (pilot: on a repo past the seam limit, the change's own seams are cut before classification, so change-first ranking cannot rank them #6943).classify_seams_in_files_at_with_configreuses the diff-scoped inventory (asripr rerunand the MCP repair card do) with no caller expansion and an evidence stage that only evaluates seams on changed lines.PilotCurrentChange::fold_classified_changeadds the cut seams, counts them as analyzed, and decides whether the seam-limit caveat on the change still applies. Design decision recorded on pilot: on a repo past the seam limit, the change's own seams are cut before classification, so change-first ranking cannot rank them #6943.Swarm / Source Boundary
ripr-swarmSource-of-truth Links
Proposal: n/a
Spec: RIPR-SPEC-0009 (defaults-first adoption, pilot current change)
ADR: n/a
Plan item: 0.11 first-run readiness
Governing issue or accepted claim: #6943
Acceptance delta (one sentence): pilot ranks the current change's seams change-first even when the inventory seam limit cut them.
Candidate Relationships
Candidate branch:
claude/project-thread-dszsrcStack parent or prerequisite PR: none (builds on merged #6946)
Proposed replacement of PR: none
Scope
ripr check, the repo-exposure inventory and its cache are unchanged.Scope Classification
Production delta:
repo-exposure.jsondrops the comparableartifactidentity when it added seamsripr checknever classifies (same rule as the pilot budget).Evidence/support delta:
RIPR_REPO_EXPOSURE_SEAM_LIMIT=1.Single acceptance criterion:
Non-goals:
Support-tier Impact
Policy Impact
Proof
Result, failures, or skipped proof:
Claim Boundary
ripr checkwhen it added change seams (it says so by omitting the identity).Rollback
Spec-Test-Code Traceability
crates/ripr/tests/cli_smoke.rs::pilot_ranks_the_current_change_past_the_inventory_seam_limit,output::pilot::tests::{change_seams_cut_by_the_inventory_limit_are_added_once, folding_the_classified_change_keeps_the_caveat_only_when_it_can_hold}cli/commands/pilot.rs,output/pilot/current_change.rs,analysis/seam_inventory.rsStatic Language Check
killed,survived,untested,proven, andadequate.CI Economics
n/a
Engineering Check
panic,unwrap,expect,todo, orunimplementedin production code.panic,unwrap,expect,todo, orunimplementedin tests.Gates
cargo fmt --check(via precommit)🤖 Generated with Claude Code
https://claude.ai/code/session_01NjuTkhQFnZGSqKhx7Tam4K
Generated by Claude Code