[19.0][IMP] base_tier_validation_formula: code widget on python expressions #28
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 · 168 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.307
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #28"
general
weight: 0.35
santostelmo
Summary
widget="code"withoptions="{'mode': 'python'}"toreviewer_expression, so the Python Expression reviewer field gets the same syntax-highlighted editor aspython_code.python_codeinto its own full-width group (col="4"/colspan="4") so the code editor is no longer squeezed to half-width inside the default 2-column Apply On group.placeholderhints on both fields listing the available locals (rec, expected return type) for the first time a user clears the default.Test plan
tier.definitionrecord, set Review Type = Python Expression: the Review Expression field renders with the code widget (syntax highlighting, monospace) and takes full sheet width.Before:
<img width="2042" height="747" alt="image" src="https://github.com/user-attachments/assets/ac5b466d-27aa-425b-a3d4-5d93e2ff8d40" />
After:
<img width="2042" height="747" alt="image" src="https://github.com/user-attachments/assets/8122f676-4a55-4218-b285-0ca19a698fdb" />