QA (seq 43) identified a content-triggered KeyError in the CTO-Review
postprocessor: when a model returns a concerns[] item without a 'severity'
key, line 454 crashed with KeyError instead of degrading.
sev = c[severity].upper() # before — hard KeyError
sev = c.get("severity", "UNKNOWN").upper() # after — degrades gracefully
The JSON schema marks severity as required but the postprocessor does not
enforce it — a model deviating on a large diff (91K bytes for f10e177 vs
41K for 02e9aab) triggered the crash. The fix surfaces UNKNOWN-severity
concerns rather than killing the check.
No other workflow changes.
Agent-Session: prab-v0183-20260612
26 KiB
26 KiB