[16.0][FIX] endpoint_route_handler: pass route group as query parameter #206
All Vouch review confidence checks passed
Residual risk 0.14 = 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 · 117 lines diff across 1 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
Shallow Review Depth
shallow_review_depth
0.289
Diff Size
diff_size
0.285
Ai Authored
ai_authored
0.050
Real PR Conversation Timeline
1 comments
"Review active on #206"
general
weight: 0.35
simahawk
Split out of #205 as requested there.
EndpointRegistry.get_rules_by_groupbuilds its query with an f-string:A group containing a quote breaks the query, and the value ends up as SQL.
Route groups are not only set by code: on
endpoint.endpointthe "Route Group"is a free-text field in the form.
Changes
get_rules_by_grouppasses the group as a query parameter.get_rules/_get_rulestake an optionalwhere_paramstuple for theplaceholders of
where. The default()keeps every current caller as it is.Tests
test_get_rule_by_group_is_escaped: a group containing a quote is found, andx' OR '1'='1returns nothing. Fails before the change with a syntax error.AI assistance
Prepared with Claude Code (Claude Opus 5.5): drafting the fix, the test and this
description. I reviewed the change and ran the tests myself.