Repository navigation
feat(search): expose lane evidence on hits - #1562
Conversation
Problem: #873's ranked-search contract promised lane_rank, lane_contribution, and raw_score evidence, but public hit payloads only exposed collapsed score_components. Consumers had to reverse-engineer the primary lane from component names. What changed: carry lane/raw-score evidence through archive hits, storage evidence hits, repository mapping, and the shared ConversationSearchMatchPayload. FTS and attachment identity paths now fill lane_rank/raw_score where available, and hybrid hits derive the strongest contributing RRF lane while preserving full score_components. Verification: pytest -q tests/unit/surfaces/test_search_explanation_contract.py tests/unit/storage/test_search_explanation_wiring.py tests/unit/storage/test_archive_search_contracts.py tests/unit/archive/test_query_search_runtime.py --tb=short; ruff format/check touched files; mypy touched files; devtools render-all --check; devtools verify --json.
|
Warning Review limit reached
Your plan includes 1 review of capacity. Refill in 19 minutes and 9 seconds. Your organization has run out of usage credits. Purchase more in the billing tab. ⌛ How to resolve this issue?After more review capacity refills, 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 trial, open-source, and free plans. In all cases, review capacity refills continuously over time. 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 (11)
✨ 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 |
Summary
Carries explicit lane-rank, lane-contribution, and raw-score evidence through ranked search hits and the shared public
ConversationSearchMatchPayload.Problem
#873's ranked-search contract called for
lane_rank,lane_contribution, andraw_score, but the public match payload only exposed collapsedscore_components. Consumers could see per-lane hybrid components, but had to infer the primary lane and backend-native score themselves, and the storage evidence bridge dropped fields that already existed onConversationSearchEvidenceHit.Solution
lane_rank,lane_contribution, andraw_scoretoConversationSearchHitandConversationSearchMatchPayload.lane_rank/raw_scorefor FTS and attachment identity evidence paths.score_components.docs/search.md.Ref #873
Verification
pytest -q tests/unit/surfaces/test_search_explanation_contract.py tests/unit/storage/test_search_explanation_wiring.py tests/unit/storage/test_archive_search_contracts.py tests/unit/archive/test_query_search_runtime.py --tb=short— 32 passed.ruff format --check ... && ruff check ...on touched code/test files — passed.mypy ...on touched code/test files — passed.devtools render-all --check— passed.devtools verify --json— exit 0; 297 pytest-testmon selected tests passed; total 107.83s.devtools verify --quick— exit 0; total 34.64s. The normalgit pushpath hit repeated GitHub 500s, so the branch was created through GitHub's Git Data API with an identical tree diff.