AI agent skill that researches any topic across Reddit, X, YouTube, HN, Polymarket, and the web - then synthesizes a grounded summary
Python ai-promptsai-skillblueskyclaudeclaude-codeclawhubdeep-researchhackernewsinstagramopenclawpolymarketrecencyredditresearchsocial-mediatiktoktrendstwitterweb-searchyoutube
fix(arxiv): preserve adapter-valid papers during normalization (#947)
Dustin Persek8e82edac7363
diff --git a/changelog.d/946.fixed.md b/changelog.d/946.fixed.mdnew file mode 100644index 00000000..4ba8ee6f--- /dev/null+++ b/changelog.d/946.fixed.md@@ -0,0 +1 @@+Adapter-valid arXiv papers are no longer dropped by the report date window during normalization.diff --git a/skills/last30days/scripts/lib/normalize.py b/skills/last30days/scripts/lib/normalize.pyindex 18f70763..7490ba8e 100644--- a/skills/last30days/scripts/lib/normalize.py+++ b/skills/last30days/scripts/lib/normalize.py@@ -83,6 +83,10 @@ def normalize_source_items(normalizer(source, item, index, from_date, to_date)for index, item in enumerate(items)]+ if source == "arxiv":+ # The adapter owns arXiv's 365-day recency contract. Applying the+ # report window again here drops relevant papers the adapter accepted.+ return normalizedif source == "jobs":# A careers board is a snapshot of CURRENTLY OPEN roles. An open posting# is current evidence regardless of when it was posted, so date-windowingdiff --git a/tests/test_normalize_v3.py b/tests/test_normalize_v3.pyindex 85f82630..9b1f68dc 100644--- a/tests/test_normalize_v3.py+++ b/tests/test_normalize_v3.py@@ -45,6 +45,32 @@ class NormalizeV3Tests(unittest.TestCase):)self.assertEqual([], normalized)+ def test_arxiv_keeps_adapter_valid_items_older_than_report_window(self):+ items = [+ {+ "id": "http://arxiv.org/abs/2509.00001v1",+ "title": "Reliable Agent Memory",+ "url": "https://arxiv.org/abs/2509.00001v1",+ "summary": "A study of memory systems for coding agents.",+ "author": "Ada Lovelace",+ "authors": ["Ada Lovelace"],+ "date": "2025-09-04",+ "relevance": 0.9,+ }+ ]++ normalized = normalize.normalize_source_items(+ "arxiv",+ items,+ "2026-07-06",+ "2026-08-05",+ )++ self.assertEqual(1, len(normalized))+ self.assertEqual("Reliable Agent Memory", normalized[0].title)+ self.assertEqual("https://arxiv.org/abs/2509.00001v1", normalized[0].url)+ self.assertEqual("2025-09-04", normalized[0].published_at)+def test_youtube_top_comments_passthrough_with_field_mapping(self):"""YT comments from enrich_with_comments use likes/text; normalize mustcarry them into metadata as the Reddit-compatible {score, excerpt} shape."""