fix(eval): flip negated invalid answers to valid in audio scoring #853
All Vouch review confidence checks passed
Residual risk 0.07 = Change Risk (0.21) × (1 − Review Confidence (0.68)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.21 · 15 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.35 · 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.166
Real PR Conversation Timeline
2 items
Approved
andimarafioti
CJstate
_extract_validonly flippedvalidtoinvalidwhen a negation preceded it.A reply like "not invalid" was therefore graded as
invalid, when the doublenegation means the answer is
valid— a correct model answer marked wrong.Negation now flips both labels, matching
_extract_yes_no'syes/nopath.Regression coverage adds "not invalid" to the negation test; the three existing
"not valid" cases still grade as
invalid.Validation:
pytest tests/evals/— 128 passedgit diff --check— clean