Skip to content

docs(search): align ranking reference with contracts - #1566

Merged
Sinity merged 1 commit into
masterfrom
feature/docs/search-contract-truth-pass
May 25, 2026
Merged

Sinity merged 1 commit into
masterfrom
feature/docs/search-contract-truth-pass

Conversation

@Sinity

@Sinity Sinity commented May 25, 2026

Copy link
Copy Markdown
Owner

Summary

This makes the search reference match the current #873 contracts instead of preserving aspirational/stale wording.

Problem

After the ranked-hit and cursor work landed, docs/search.md still overstated a few details: action-lane public hits were described as carrying BM25 evidence, match_surface examples used stale names, cursor contents were under-described, and the ranking section omitted the action lane in hybrid fusion.

Solution

Updated docs/search.md to state the current public SearchEnvelope behavior conservatively: action-only hits preserve rank/evidence without a numeric action score, match_surface values use the public code tokens, BM25 is lower-is-better, hybrid fuses dialogue/action/semantic lanes, sort=null preserves natural rank order, and cursors encode rank/score/conversation/lane.

Verification

  • devtools verify-doc-commands — 77 doc files scanned, no stale commands.
  • devtools render-pages — rebuilt .cache/site.
  • devtools render-all --check — passed after rendering pages.
  • devtools verify --json — exit 0; static/generated checks passed; pytest-testmon selected 0 tests.
  • pre-push devtools verify --quick — exit 0; total 36.21s.

Ref #873

Problem: the search reference overstated several #873 details after the ranked-hit implementation evolved. It described action-lane hits as exposing BM25 evidence, used stale match_surface names, and under-described cursor contents.\n\nWhat changed: aligned docs/search.md with the current public SearchEnvelope contract: action-only hits currently expose rank/evidence without numeric BM25 scores, match_surface values use the public code tokens, BM25 is lower-is-better, hybrid includes action lane fusion, sort=null preserves natural rank order, and cursors encode rank/score/conversation/lane.\n\nVerification: devtools verify-doc-commands; devtools render-pages; devtools render-all --check; devtools verify --json (0 selected tests, all static/generated checks passed).\n\nRef #873
@coderabbitai

coderabbitai Bot commented May 25, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@Sinity, we couldn't start this review because you've used your available PR reviews for now.

Your plan includes 1 review of capacity. Refill in 41 minutes and 53 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 @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

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 configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: 28fc284a-16f1-4bbe-86be-5b5dca886da3

📥 Commits

Reviewing files that changed from the base of the PR and between b07bf69 and bcd7c01.

📒 Files selected for processing (1)
  • docs/search.md
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feature/docs/search-contract-truth-pass

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

Comment @coderabbitai help to get the list of available commands and usage tips.

@Sinity
Sinity merged commit 3122459 into master May 25, 2026
5 checks passed
@Sinity
Sinity deleted the feature/docs/search-contract-truth-pass branch May 25, 2026 09:50
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.

1 participant