Fix JSON Feed parser: use correct key for date_updated and prefer content_html #558
All Vouch review confidence checks passed
Residual risk 0.22 = Change Risk (0.39) × (1 − Review Confidence (0.45)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.39 · 126 lines diff across 1 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.290
Real PR Conversation Timeline
1 comments
"Review active on #558"
general
weight: 0.35
rupayon123
Two bugs in the JSON Feed parser:
1. KeyError when parsing
date_updatedparse_entry()checks"date_updated" in e(correct per the JSON Feed spec) but then readse["date_modified"]which doesn't exist in JSON Feed. Every entry with adate_updatedfield raises aKeyError.2.
content_textsilently wins overcontent_htmlThe current
if/elifreturnscontent_textwhenever present, even ifcontent_htmlis also present. The JSON Feed 1.1 spec recommends HTML-capable clients prefercontent_html. Swapping the branches gives richer content by default and matches the spec intent.Both bugs are in
feedparser/parsers/json.py, no new imports needed.