GeezerVison is showing github.com — atlas-search: Jaccard rescore as third signal over the fused union (#5733) by dezren39 · Pull Request #10335 · developing-today/code
Conversation
dezren39
commented
Nov 14, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
Implements the rescore half of #5733 per its design note (2026-11-05, task 10487). The dedup half is explicitly out of scope here — it lands as the #6057 staging gate's dedup stage, one shared implementation per the note.
What lands
atlas-core::shingles — the design's one shared normalizer (NFKC → lowercase → fenced-code marker lines stripped → whitespace collapse → tokenize on non-alphanumeric boundaries, identifiers kept whole), stamped normalizer_version = 1; word 5-shingles hashed with xxHash64 (implementation pinned to the reference test vectors); Jaccard over the sorted sets. Mixed-version sets never compare (mismatch scores J = 0, per the versioning rule).
rescore_fused — the note's exact formula over the fused candidate union: near-exact tier J ≥ threshold (default 0.60) scores 1.0 + J and always outranks the standard tier 0.85 · rrf_norm + 0.15 · J; ties within 0.005 break on J, then rrf_norm, then chunk id (deterministic).
- Search wiring — after RRF fusion, when
jaccard_depth > 0, the first depth candidates are rescored and a summary note lands in the envelope. Candidate sets are computed from chunk text at this stage (the union is depth-bounded, so the cost is too). The design's stored sets — a side store keyed by content hash, written at ingest and shared with dedup — remain the production optimization and drop into rescore_fused unchanged, since it consumes sets, not texts; that storage slice is the named follow-on, not silently assumed.
- Parameters —
atlas-proto validation no longer rejects the Jaccard controls as unimplemented; jaccard_threshold is range-checked to [0, 1] (0 = design default 0.60). Defaults in query-parameters-v1.json stay 0 / 0.0 (off): production ranking is byte-identical until the note's §4 held-out eval (≥200 queries, near-exact MRR@10 + ≥0.10 with no general nDCG@10 regression beyond 0.01) arms enabling it — that eval is the gate this PR respects, and the mechanism it will measure is now in place.
Verification
cargo test -p atlas-core: 71 lib tests (9 new shingles tests: hash vectors, normalizer folding, shingle known-answers, formula tiers, version mismatch, depth cap) + an end-to-end run_search test — the pasted passage is promoted from fused rank 2 to rank 1 with the rescore on, and the off path is unchanged.
cargo test -p atlas-proto (9) and -p atlas-search (39 + cli_parity 11): green; the parity/proto contracts that pinned "not implemented" now pin the threshold range check.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
…5733)
Implements the rescore half of the 2026-11-05 design note (task 10487); the dedup half stays with the #6057 staging gate as the note directs. New atlas-core shingles module: the one shared normalizer (NFKC, lowercase, fence-line strip, whitespace collapse, non-alphanumeric tokenization with identifiers kept whole) stamped normalizer_version 1; word 5-shingles hashed with xxHash64 (reference vectors pinned in tests); Jaccard over sorted sets. rescore_fused applies the exact formula: near-exact tier J >= threshold (default 0.60) scores 1.0 + J and always outranks the standard tier 0.85 * rrf_norm + 0.15 * J; ties within 0.005 break on J, then rrf_norm, then chunk id. Search wiring: after RRF fusion, when jaccard_depth > 0, the first depth candidates are rescored (sets computed from chunk text at this stage; the designs stored side-store sets drop into rescore_fused unchanged), with a summary note in the envelope. atlas-proto validate() now range-checks jaccard_threshold in [0, 1] instead of rejecting the controls as unimplemented; defaults stay 0/0.0 (off) in query-parameters-v1.json, so production behavior is unchanged until the design notes section-4 held-out eval arms enabling it. Tests: 9 shingles unit tests, an end-to-end run_search test (pasted passage promoted from fused rank 2 to rank 1, off-path unchanged), updated proto + CLI parity contracts. atlas-core 71, atlas-proto 9, atlas-search 39 + cli_parity 11, all passing.
Codex Review Summary: ❌ Failed
This comment shows the latest Codex review activity on this pull request.
| Review |
Status |
Commit |
Review trigger |
| 📝 Code Review |
❌ Failed 2026-11-14T18:29:23.729511Z We couldn’t complete this review. Comment @codex review to try again. |
9299a8d |
Manual request |
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review" or "@codex security review".
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
@codex review
Automated review request per the repo's review gate (lane code-d, task 16779). Scope: the new atlas-core shingles module (normalizer, xxHash64, rescore formula), the search.rs rescore hook, and the atlas-proto validation change.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
coderabbitai
Bot
commented
Nov 14, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
|

Caution
Review failed
The pull request is closed.
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
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
-
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
Review-gate disposition (lane code-d, 2026-11-14): Codex review was requested and FAILED on account usage limits (same account-wide exhaustion as this shift's other PRs) — zero findings produced. CodeRabbit posted an automated summary with no actionable findings. Proceeding on local verification: atlas-core 71 lib tests (incl. 9 new shingles tests + the end-to-end rescore promotion test), atlas-proto 9, atlas-search 39 + cli_parity 11 — all green. Defaults remain off (jaccard_depth 0), so the merge changes no production ranking until the design note's §4 held-out eval arms it. Merging per the fleet rule (merge when verified; CI runs on main).
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
This was referenced Nov 14, 2026
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
|