fix: strip email domains from FTS search input #140
All Vouch review confidence checks passed
Residual risk 0.34 = Change Risk (0.54) × (1 − Review Confidence (0.38)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.54 · 176 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 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
Shallow Review Depth
shallow_review_depth
0.344
Diff Size
diff_size
0.310
No Reviewer Assigned
no_reviewer_assigned
0.120
Real PR Conversation Timeline
1 comments
"Review active on #140"
general
weight: 0.35
c1-dev-bot[bot]
Summary
dluu@zscaler.com),FullTextSearchQueryproduces tokens likedluuandzscalercom(domain with dot stripped). Since the FTS index only contains display name tokens, the domain token never matches, causing 0 results.stripEmailDomains()preprocessing that detects email-format tokens in the search input and extracts only the local-part before@, sodluu@zscaler.combecomesdluubefore tokenization.stripEmailDomainsand an integration test (TestSearchEmailAddress) verifying email search matches against display name vectors.Fixes: IGA-1508
Test plan
TestStripEmailDomains— verifies email domain stripping for various inputs (single email, multiple emails, non-email text, edge cases like@orphan, empty strings)TestSearchEmailAddress— integration test against Postgres confirming thatdluu@zscaler.commatches a vector containingdluuwhilenotauser@example.comdoes not---
Automated PR Notice
This PR was automatically created by c1-dev-bot as a potential implementation.
This code requires: