[18.0][FIX] payroll: the structure of a draft payslip is editable again #320
All Vouch review confidence checks passed
Residual risk 0.32 = Change Risk (0.58) × (1 − Review Confidence (0.45)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.58 · 60 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.246
Sensitive Paths
sensitive_paths
0.058
Real PR Conversation Timeline
1 comments
"Review active on #320"
general
weight: 0.35
dreispt
On a draft payslip the Structure field cannot be changed. In 16.0 the field was readonly except in draft (
states={"draft": [("readonly", False)]}); the 17.0 migration dropped thestatesand keptreadonly=True, so the structure can never be chosen on the payslip, only through the contract.Fix: drop the
readonlyfrom the field and make it readonly by state on the form (readonly="state != 'draft'"), the same way the payslip batch form already does for its own structure.