Fix compatibility checks for scientific float placeholders #1446
All Vouch review confidence checks passed
Residual risk 0.18 = Change Risk (0.32) × (1 − Review Confidence (0.43)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.32 · 119 lines diff across 1 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 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.344
Diff Size
diff_size
0.286
Real PR Conversation Timeline
1 comments
"Review active on #1446"
general
weight: 0.35
chrikrah
python_format()rejects valid translations such as%e→%Eand%f→%e. The placeholder parser recognizes both scientific conversions, but the float compatibility group only containsf/F/g/G.Include
e/Ein that group, matching Python's floating-point percent conversions. Integer, hexadecimal and string conversion groups remain unchanged.Tests cover all six float conversions in positional and named messages, non-float rejection controls, and a plural catalog. Each positive case also formats the same actual float with both strings. Before the fix, 37 of the 85 new cases fail; after it, all pass.
Validation on Windows / Python 3.13.4 after importing the repository's CLDR 49 data:
tests/messages: 555 passed.