Query the entry node's own vector in TestAcceleratedHNSWMultiLayerRoundTrip #2831
All Vouch review confidence checks passed
Residual risk 0.16 = Change Risk (0.40) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.40 · 306 lines diff across 3 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.343
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #2831"
general
weight: 0.35
imotov
TestAcceleratedHNSWMultiLayerRoundTrip.testThreeLevelGraphCanBeReopenedAndSearchedqueried withvectors[graph.entryNode()]and checked the hit's storedidagainst the same number.entryNode()is a vector ordinal, which equals the docID in the merged segment, butvectors[]is indexed by insertion id. The two only match whileforceMerge(1)keeps documents in insertion order.newIndexWriterConfig()picks a random merge policy, andTieredMergePolicyorMockRandomMergePolicycan reorder documents. The query is then an arbitrary document's vector, and the test effectively asserts that an approximate 1-bit BQ HNSW search at k = ef = 10 finds that document. A miss there is legitimate.The test now looks up the entry node's stored id, queries with
vectors[queryId], and requireshit.doc == entryNode. The assertion stays strict for all three formats.Supporting analysis (CPU only):
TieredMergePolicy, which reorders 232 of 256 documents.CI evidence (reproducer #2827; 4 lucene test jobs per run: 2x 13.3.0 rtxpro6000, 12.9.2 rtxpro6000, 12.9.2 l4; each loops this test with
-Dtests.iters=100and random seeds for 45 minutes):37efbf2a: each iteration runs both the original and the fixed query on the same index. Over 39,320 iterations per format, the original query missed 112 times for BQ, 5 for SQ and 0 for float. All of those misses were on the 676 indexes thatforceMerge(1)reordered (TieredMergePolicyorMockRandomMergePolicy). There were 0 misses when docID == insertion id. The fixed query missed 0 times. The stress-run seed73F002E9239F2329reorders 232/256 docs on the GPU, and the original query missed in 6 of 20 replays.81f14dce, which runs this PR's exact test file: 93,300 test iterations (31,100 per format) with 0 failures and 0 errors, and the failing seed passed 20 of 20 replays.Found by the stress run (#2793). Part of #2783.