Skip to content

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

Address PR review feedback (#789)

Trevin Chowf1beee7e81bd
diff --git a/tests/test_plugin_contract.py b/tests/test_plugin_contract.py
index 0404f6d3..253a282b 100644
--- a/tests/test_plugin_contract.py
+++ b/tests/test_plugin_contract.py
@@ -58,6 +58,7 @@ class TestPluginContract(unittest.TestCase):
self.assertEqual("last30days-skill", marketplace["name"])
self.assertIn("last30days", plugin_by_name)
plugin = plugin_by_name["last30days"]
+ # Exact dict equality locks the bare Git URL source (anti-self-referential-local).
self.assertEqual(
{
"source": "url",
@@ -65,9 +66,6 @@ class TestPluginContract(unittest.TestCase):
},
plugin["source"],
)
- # Grok rejects self-referential local marketplace sources (path "." / "./").
- self.assertNotEqual("local", plugin["source"].get("type"))
- self.assertNotIn(plugin["source"].get("path"), {".", "./"})
def test_versions_match_across_manifests(self) -> None:
pyproject = tomllib.loads((ROOT / "pyproject.toml").read_text(encoding="utf-8"))
@@ -97,6 +95,16 @@ class TestPluginContract(unittest.TestCase):
self.assertIn("metadata", marketplace)
self.assertIn("description", marketplace["metadata"])
+ def test_grok_marketplace_has_current_schema_shape(self) -> None:
+ marketplace = _json(ROOT / ".grok-plugin" / "marketplace.json")
+
+ self.assertNotIn("$schema", marketplace)
+ self.assertNotIn("metadata", marketplace)
+ self.assertIsInstance(marketplace["description"], str)
+ self.assertIn("name", marketplace)
+ self.assertIn("owner", marketplace)
+ self.assertIn("plugins", marketplace)
+
def test_workflows_do_not_reference_removed_root_scripts_dir(self) -> None:
# The root-level scripts/ directory was removed; workflows must not
# reference it. Subdirectory scripts/ paths (skills/last30days/scripts/