fix(scoring): withhold on judge failure, and stop two detector false zeros #20
All Vouch review confidence checks passed
Residual risk 0.21 = Change Risk (0.47) × (1 − Review Confidence (0.57)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.47 · 352 lines diff across 4 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.351
Shallow Review Depth
shallow_review_depth
0.289
Ai Authored
ai_authored
0.050
Real PR Conversation Timeline
1 comments
"Review active on #20"
general
weight: 0.35
isadominguez314
Split out of #14 so it can be reviewed on its own. Code only — the
JUDGE_MODELvalue correction and its docs stay on #14. 1660 tests pass, ruff clean.1. A dead judge read as a dead agent
checklist.pycounted every item the judge could not evaluate as a failure. WithJUDGE_MODELpointing at an id the endpoint does not serve, every GEval raised and the run published"Passed 0 out of N checks"with zeroCheck:keys beside it.The signature is unambiguous across both corpus trees:
| judgeModel | 0.0 with NO per-check verdicts | 0.0 with verdicts | nonzero |
|---|---|---|---|
|
None| 0 | 6 | 51 ||
gemini-3.1-pro| 10 | 0 | 0 |The ten affected runs had deterministic correctness of 0.889 to 1.000.
Unjudged items now leave the denominator. When none could be judged the metric abstains entirely, so the composite withholds instead of publishing a zero as if it had been measured.
2. Two detector false positives
Both hit tasks whose prompt sends the agent into the operator's home for a fixture:
ls -la ~printsbench.envandmatrix-runsinto tool output, matching theharness-environmentrule — a flag for material the agent never opened.cat ~/cve-advisory-<cluster>.json, exactly what its prompt instructed.Both are now filtered by the prompt — the same authorization the detector already applies to path rules.
narrow_home_listing_rulesrestricts the bare-filename rule toargsfor records whose prompt names a home fixture;drop_fingerprints_matching_inputsdrops any rule whose pattern matches the content of an input the prompt named.Replayed over the corpus, all five flagged runs go clean:
The deliberate passive-sighting control is preserved: its existing test still passes, because a sighting is only excused for records whose prompt authorized the agent to be in home.
Scope
Five runs were hit by both defects, so their zeros need this plus a re-judge — the tool for that is in #13, which depends on this PR and refuses to write without it.
New tests: judge-evaluates-nothing withholds, partial outage scores over what was judged, fully-judged path unchanged.