fix: reject non-mapping input when deserializing a Pipeline #13739
All Vouch review confidence checks passed
Residual risk 0.19 = Change Risk (0.35) × (1 − Review Confidence (0.47)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.35 · 173 lines diff across 2 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.309
Real PR Conversation Timeline
1 comments
"Review active on #13739"
general
weight: 0.35
its-amann
Closes #13738
Pipeline.loads()documents:raises DeserializationError:, but a non-mapping document reachedfrom_dict(), which readdata.get(...)and raised a bareAttributeError. That includes ordinary inputs: an empty or comment-only pipeline file unmarshals toNone.Change
Pipeline.from_dictvalidates that the deserialized data is a dict and raisesDeserializationErrorotherwise;loadsinherits that because it hands the unmarshalled document tofrom_dict.test/fuzz/fuzz_pipeline_loads.py: drop_KNOWN_BUGS, as its own comment asks oncefrom_dictvalidates its input type. That also removes the blanketAttributeErrortolerance, which hid any other unexpectedAttributeErrorraised fromloads().from_dict(list, list of str, str, int,None) andloads(empty document,[],- a\n- b,42,null, a bare string).releasenotes/notes/.Verification
pytest test/core -m "not integration": 1913 passedmainand pass on this branchruff check,ruff format --checkandmypyon the touched files: clean