fix(cli): strip only a matching pair of quotes from CLI values #643
All Vouch review confidence checks passed
Residual risk 0.14 = Change Risk (0.32) × (1 − Review Confidence (0.57)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.32 · 132 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
Diff Size
diff_size
0.293
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #643"
general
weight: 0.35
CodersAcademy006
What changed
TypeParser.parsestrips the surrounding double quotes only when the value starts and ends with one, instead ofvalue.strip('"')TestSimpleValueParsing.test_string_parsing_keeps_unpaired_quotesandtest_dict_value_keeps_inner_quotesWhy
str.strip('"')removes every double quote at either end, paired or not, so a quote that belongs to the value was dropped:Quoted values (
a="world") parse the same as before. Two other inputs change:Literalvalue with one stray quote (a="xora=x") used to resolve toxby accident and now raisesLiteralParseErrora={"k":"say \"hi\""}forDict[str, str]gives{'k': 'say "hi"'}instead of{'k': 'say "hi'}Checks
pytest test/cli/test_cli_parser.py: 97 passed; both new tests fail on main (assert 'say "hi' == 'say "hi"')ruff format --checkon both files