support multi-dot partial search via index-side edge-grams #157
All Vouch review confidence checks passed
Residual risk 0.21 = Change Risk (0.49) × (1 − Review Confidence (0.58)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.49 · 235 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 10%
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.327
Shallow Review Depth
shallow_review_depth
0.289
No Reviewer Assigned
no_reviewer_assigned
0.120
Real PR Conversation Timeline
1 comments
"Review active on #157"
general
weight: 0.35
mj-palanker
Context
#139 made progressive typing of dotted identifiers work (ad.ph02t1.admin.se → ad.ph02t1.admin.securitygroup) by appending a : prefix operator to the last search term. On a prefix-dense index like ours (edge-grams mean every word contributes all its prefixes as lexemes), : forces GIN to range-scan and union the posting lists of every lexeme starting with the term — a trailing common token like prod turned a sub-second search into a 43s query on a 2.1M-row tenant (OPS-2310). #139 is reverted in the PR below this one; this PR restores the multi-dot matching it provided, keeping all queries as exact lexeme lookups.
Root cause of the original miss
jargon's tokenizer merges dotted segments (admin.securitygroup stays one token), so edge-grams were computed on the merged string and a bare sub-token gram like se (prefix of securitygroup) was never indexed. #139 papered over that at query time; this fixes it at write time.
Changes
Deployment properties
Testing