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(pipeline): respect explicit source filters for company topics
spiky02plateaub8db4341ed04
diff --git a/skills/last30days/scripts/lib/pipeline.py b/skills/last30days/scripts/lib/pipeline.pyindex 816fd1c1..dcead0a9 100644--- a/skills/last30days/scripts/lib/pipeline.py+++ b/skills/last30days/scripts/lib/pipeline.py@@ -1956,7 +1956,10 @@ def run(available = [s for s in available if s != "grounding"]elif web_backend in ("brave", "exa", "serper", "parallel", "keyless") and "grounding" not in available:available.append("grounding")- if (hiring_signals_mode or _company_topic_likely(topic)) and "jobs" not in available:+ if (+ hiring_signals_mode+ or (not requested_sources and _company_topic_likely(topic))+ ) and "jobs" not in available:available.append("jobs")if hiring_signals_mode:config = dict(config)diff --git a/tests/test_pipeline_v3.py b/tests/test_pipeline_v3.pyindex aa90a4ef..ae3f5956 100644--- a/tests/test_pipeline_v3.py+++ b/tests/test_pipeline_v3.py@@ -142,6 +142,30 @@ class PipelineV3Tests(unittest.TestCase):self.assertEqual(["jobs"], sorted(report.items_by_source))self.assertTrue(report.artifacts["hiring_signals"]["include"])+ def test_explicit_sources_suppress_automatic_company_jobs(self):+ report = pipeline.run(+ topic="Listen Labs",+ config={"LAST30DAYS_REASONING_PROVIDER": "gemini"},+ depth="quick",+ requested_sources=["grounding", "x"],+ mock=True,+ )+ self.assertEqual({"grounding", "x"}, set(report.items_by_source))+ self.assertTrue(+ all("jobs" not in subquery.sources for subquery in report.query_plan.subqueries)+ )++ def test_hiring_signals_forces_jobs_with_explicit_non_jobs_sources(self):+ report = pipeline.run(+ topic="Listen Labs",+ config={"LAST30DAYS_REASONING_PROVIDER": "gemini"},+ depth="quick",+ requested_sources=["grounding", "x"],+ mock=True,+ hiring_signals_mode=True,+ )+ self.assertEqual({"grounding", "jobs", "x"}, set(report.items_by_source))+def test_standard_company_run_fetches_jobs_for_signal_gate(self):report = pipeline.run(topic="Listen Labs",