Isolate the vehicle and server in two Android banners, and check how a name ends #556
All Vouch review confidence checks passed
Residual risk 0.14 = Change Risk (0.35) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.35 · 162 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: 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.305
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #556"
general
weight: 0.35
aaronbrethorst
This closes the gaps #551 left. Two banners put a value into a translated sentence without isolated(): the runs screen's start error with the vehicle ID, and the login error with the server's address. In Arabic or Persian, a vehicle ID like 599-20 could show as 20-599 there. Both now go through isolated(), as the rest of the app does.
The helper itself looked only at how a name starts, so "Metro محطة" in an English sentence came back unwrapped, and a time after it was pulled into the name. It now looks at how the name ends too, as Android's BidiFormatter does. In a left-to-right sentence, a name is left alone only when it neither starts nor ends right to left; in a right-to-left one, only when it does both. I went with that rather than wrapping any name that holds an opposite-direction letter, because it sets apart only what can disturb its neighbours, and English names in English sentences still come back unchanged.
BidiTextTest gets two cases:
Checked with testDebugUnitTest (942 pass), compileDebugAndroidTestKotlin and lintDebug, with no finding in the changed files.
Fixes #553