Skip to content

AI agent skill that researches any topic across Reddit, X, YouTube, HN, Polymarket, and the web - then synthesizes a grounded summary

fix(pipeline): forward pinned parameters in thin-source retry logic (#795)

ASTITVA BHARDWAJd5a8f2836a18
diff --git a/skills/last30days/scripts/lib/pipeline.py b/skills/last30days/scripts/lib/pipeline.py
index 1137cfaa..1f90c653 100644
--- a/skills/last30days/scripts/lib/pipeline.py
+++ b/skills/last30days/scripts/lib/pipeline.py
@@ -1675,6 +1675,10 @@ def run(
settings=settings,
web_backend=web_backend,
skip_sources=_github_skip_retry,
+ subreddits=subreddits,
+ tiktok_hashtags=tiktok_hashtags,
+ tiktok_creators=tiktok_creators,
+ ig_creators=ig_creators,
)
# Reclassify partial failures as DEGRADED instead of silently dropping them.
@@ -2636,6 +2640,10 @@ def _retry_thin_sources(
settings: dict[str, Any],
web_backend: str = "auto",
skip_sources: set[str] | None = None,
+ subreddits: list[str] | None = None,
+ tiktok_hashtags: list[str] | None = None,
+ tiktok_creators: list[str] | None = None,
+ ig_creators: list[str] | None = None,
) -> None:
"""Retry sources with thin results using simplified core subject query."""
if depth == "quick":
@@ -2698,6 +2706,10 @@ def _retry_thin_sources(
rate_limit_lock=rate_limit_lock,
web_backend=web_backend,
raw_topic=topic,
+ subreddits=subreddits,
+ tiktok_hashtags=tiktok_hashtags,
+ tiktok_creators=tiktok_creators,
+ ig_creators=ig_creators,
)
outcome_note = artifact.get("_source_outcome") if isinstance(artifact, dict) else None
normalized = _normalize_score_dedupe(
@@ -3454,3 +3466,4 @@ def _mock_stream_results(source: str, subquery: schema.SubQuery) -> tuple[list[d
"resultCount": 1,
}
return payloads.get(source, []), {}
+