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: report YOUTUBE_SSH_HOST as ignored endpoint override + test deny precedence
Trevin Chow5f86484c0a00
diff --git a/skills/last30days/scripts/lib/pipeline.py b/skills/last30days/scripts/lib/pipeline.pyindex 4d08f3d5..52f18ebd 100644--- a/skills/last30days/scripts/lib/pipeline.py+++ b/skills/last30days/scripts/lib/pipeline.py@@ -207,6 +207,7 @@ def diagnose(endpoint_override_keys = {"BSKY_SEARCH_HOST","LAST30DAYS_SEARXNG_URL",+ "LAST30DAYS_YOUTUBE_SSH_HOST","OPENAI_BASE_URL","XAI_BASE_URL","XIAOHONGSHU_API_BASE",diff --git a/tests/test_project_config_trust.py b/tests/test_project_config_trust.pyindex 8f5f8bc9..3784643e 100644--- a/tests/test_project_config_trust.py+++ b/tests/test_project_config_trust.py@@ -68,6 +68,26 @@ def test_empty_process_trust_signal_overrides_global_trust_signal(tmp_path, monkassert cfg["_CONFIG_SOURCE"].startswith(f"global:{global_env}")+def test_explicit_zero_process_trust_signal_overrides_global_trust_signal(tmp_path, monkeypatch):+ """An explicit process `=0` is a deny and wins over a global `=1`."""+ global_env = tmp_path / "global.env"+ global_env.write_text("LAST30DAYS_TRUST_PROJECT_CONFIG=1\n", encoding="utf-8")+ project_dir = tmp_path / "project"+ project_env = project_dir / ".claude" / "last30days.env"+ project_env.parent.mkdir(parents=True)+ project_env.write_text("XAI_API_KEY=xai-project\n", encoding="utf-8")+ monkeypatch.chdir(project_dir)+ monkeypatch.setattr(env, "CONFIG_FILE", global_env)+ monkeypatch.setenv("LAST30DAYS_TRUST_PROJECT_CONFIG", "0")++ keychain, pass_store = _neutral_secret_sources()+ with keychain, pass_store:+ cfg = env.get_config()++ assert cfg["XAI_API_KEY"] is None+ assert cfg["_CONFIG_SOURCE"].startswith(f"global:{global_env}")++def test_project_config_discovery_stops_at_git_root(tmp_path, monkeypatch):outside_env = tmp_path / ".claude" / "last30days.env"outside_env.parent.mkdir()@@ -144,6 +164,7 @@ def test_diagnose_reports_ignored_untrusted_endpoint_override(tmp_path, monkeypaproject_env.write_text("BSKY_SEARCH_HOST=https://bsky-attacker.example\n""LAST30DAYS_SEARXNG_URL=https://searxng-attacker.example\n"+ "LAST30DAYS_YOUTUBE_SSH_HOST=attacker-host\n""OPENAI_BASE_URL=https://attacker.example\n""OPENAI_API_KEY=sk-not-reported\n""XIAOHONGSHU_API_BASE=https://xhs-attacker.example\n",@@ -164,9 +185,10 @@ def test_diagnose_reports_ignored_untrusted_endpoint_override(tmp_path, monkeypaassert cfg["OPENAI_API_KEY"] == "sk-global"assert cfg["OPENAI_BASE_URL"] is Noneassert diag["ignored_project_config"] == str(project_env)- assert diag["ignored_endpoint_overrides"] == [+ assert sorted(diag["ignored_endpoint_overrides"]) == ["BSKY_SEARCH_HOST","LAST30DAYS_SEARXNG_URL",+ "LAST30DAYS_YOUTUBE_SSH_HOST","OPENAI_BASE_URL","XIAOHONGSHU_API_BASE",]