fix(android): close the remaining End Locally gaps from #149 #154
All Vouch review confidence checks passed
Residual risk 0.15 = Change Risk (0.37) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.37 · 239 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.328
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #154"
general
weight: 0.35
aaronbrethorst
Part of #149
Fixes the three Android gaps left after #148, one commit each. iOS
endLocallyis not in this PR; it stays open on #149.What I changed:
sendEndhelper. Before, a Retry after a lost reply kept failing and pushed the driver to End Locally for a trip that was already closed.subof the signed-in JWT, and only that driver's start sends it. Before, if another driver signed in on the same phone, their start sent the end, got a 404 for the user mismatch, and cleared the key, leaving the first driver's trip open for good.Why it works this way:
/trips/end.Resultbecause the start's catch maps everything throughmapHttpError, which would turn the new error intoOther.Tested: unit tests for each item, and each new test fails with its part of the fix reverted (10 mutations in all).
assembleDebugbuilds. No emulator run, since sign-in didn't change.