feat(agent-runtime): add indexed candidate verification for code search#443
Conversation
Use the workspace trigram index only to narrow candidate files, then verify matches against live file contents for deterministic and correct results.
|
Warning Rate limit exceeded
Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 20 minutes and 45 seconds. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (18)
✨ Finishing Touches🧪 Generate unit tests (beta)
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 |
✅ Contributor ReportUser: @yacosta738
Contributor Report evaluates based on public GitHub activity. Analysis period: 2025-04-05 to 2026-04-05 |
|



Use the workspace trigram index only to narrow candidate files, then verify matches against live file contents for deterministic and correct results.
This pull request adds a new candidate planning system to the search index, enabling efficient and accurate selection of search candidate files based on query patterns and index coverage. It introduces new types and logic to assess index completeness, filter candidates using trigrams, and determine when the index is stale or insufficient. The PR also provides comprehensive tests for these features.
Candidate Planning and Index Coverage:
CandidateCoverage,CandidateRequest, andCandidatePlantypes to represent candidate search planning and index coverage status inWorkspaceTrigramIndex.plan_candidatesmethod inWorkspaceTrigramIndexto plan candidate search files, check for required trigrams, intersect with discovered files, and classify coverage as complete, partial, or unavailable.normalized_relative_rootandextract_required_trigramsfor processing search requests and extracting trigrams.Database Query Enhancements:
read_candidate_pathsandread_index_file_counttosqlite.rsfor efficiently querying candidate file paths matching required trigrams and counting indexed files.Testing and API Exposure:
Other: