[Fix] Reject invalid fit-probe answer keys before inference #50
All Vouch review confidence checks passed
Residual risk 0.15 = Change Risk (0.37) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.37 · 236 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.327
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #50"
general
weight: 0.35
hsliuustc0106
Why
s1a probeaccepted a JSONL case whoseacceptkey was absent fromoptions. A typo in the expected key made a valid model choice score as wrong, potentially changing the fit verdict after a paid inference call. Emptyoptionsand emptyacceptalso passed file validation.How
Validate offered options and accepted keys in
s1a/probe.py:read_caseswhile reading the file, before building a model. Errors identify the file, line, and invalid key. Add regression cases for all three invalid inputs.What
acceptkey outsideoptions.Authored code diff: 22 added lines in source and tests; total diff: 27 changed lines. No generated artifacts are committed.
Verification
uv run --no-sync ruff format --check . && uv run --no-sync ruff check . && uv run --no-sync ty check— passed.PATH=/Users/danyangchen/.cache/codex-runtimes/codex-primary-runtime/dependencies/node/bin:$PATH uv run --no-sync pytest -q— 624 passed, 43 skipped, 89 subtests passed.scripts/smoke.sh— passed.CHANGELOG.mdanddocs/skills.mdupdated.The first full test run had one unrelated Node subprocess abort because the machine's Homebrew Node is missing
libsimdjson.29.dylib; rerunning with the bundled Node v24.19.0 passed. No model key or inference service was used.Demo / evidence
A one-line JSONL file with
options: {"a": "only choice"}andaccept: ["typo"]was accepted on basee7b7d2b; on head2578141,probe.read_casesreportscases.jsonl:1: accept names keys not in options: typo. The new regression test reproduces this with a temporary file. A video is N/A because this change only validates local input before inference.