Skip to content

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

test: strengthen host doc contracts

Trevin Chow207cfa1e7456
diff --git a/tests/test_codex_host_contract.py b/tests/test_codex_host_contract.py
index a6107219..4f021164 100644
--- a/tests/test_codex_host_contract.py
+++ b/tests/test_codex_host_contract.py
@@ -10,8 +10,12 @@ SKILL_MD = ROOT / "skills" / "last30days" / "SKILL.md"
def _prose_flow() -> str:
text = SKILL_MD.read_text(encoding="utf-8")
- start = text.index("### Non-Modal Prose Flow")
- end = text.index("### Manual Setup Guide", start)
+ start_marker = "### Non-Modal Prose Flow"
+ end_marker = "### Manual Setup Guide"
+ start = text.find(start_marker)
+ assert start != -1, f"missing section marker: {start_marker}"
+ end = text.find(end_marker, start)
+ assert end != -1, f"missing section marker: {end_marker}"
return text[start:end]
diff --git a/tests/test_doc_security_contract.py b/tests/test_doc_security_contract.py
index 3bb7ff23..02a1f719 100644
--- a/tests/test_doc_security_contract.py
+++ b/tests/test_doc_security_contract.py
@@ -6,6 +6,7 @@ from pathlib import Path
ROOT = Path(__file__).resolve().parents[1]
CONFIGURATION = ROOT / "CONFIGURATION.md"
+README = ROOT / "README.md"
SKILL_MD = ROOT / "skills" / "last30days" / "SKILL.md"
UI_PY = ROOT / "skills" / "last30days" / "scripts" / "lib" / "ui.py"
@@ -37,6 +38,7 @@ def test_scrapecreators_copy_uses_canonical_free_call_count():
text = "\n".join(
[
CONFIGURATION.read_text(encoding="utf-8"),
+ README.read_text(encoding="utf-8"),
SKILL_MD.read_text(encoding="utf-8"),
UI_PY.read_text(encoding="utf-8"),
]