feat(query): generalize hybrid business wiki routing

This commit is contained in:
Codex
2026-07-07 16:44:24 +00:00
parent e5f26a5540
commit 37e6ce5673
6 changed files with 40 additions and 16 deletions
+5 -1
View File
@@ -121,7 +121,11 @@ class McpQueryTests(unittest.TestCase):
self.assertIn("obsidian-wiki business sql", prompt)
self.assertIn("read-only business facts", prompt)
self.assertIn("hybrid business + wiki questions", prompt)
self.assertIn("spawn read-only subagents", prompt)
self.assertIn("two read-only tracks", prompt)
self.assertIn("parallel subagents when the host supports them", prompt)
self.assertIn("run those tracks sequentially", prompt)
self.assertIn("customer, product, salesperson, project, delivery, anomaly, ranking, or quality", prompt)
self.assertNotIn("spawn read-only subagents", prompt)
self.assertIn("Do not run arbitrary shell commands", prompt)
self.assertIn("If Visibility is public only, do not use business facts", prompt)
self.assertNotIn("shell commands, file writes", prompt)
+12 -1
View File
@@ -7,7 +7,18 @@ class WikiSkillInstructionTests(unittest.TestCase):
text = Path(".skills/wiki-query/SKILL.md").read_text(encoding="utf-8")
self.assertIn("Hybrid Business + Wiki Route", text)
self.assertIn("spawn two subagents", text)
self.assertNotIn("spawn two subagents", text)
self.assertIn("two independent tracks", text)
self.assertIn("parallel subagents are optional", text)
self.assertIn("run the same tracks sequentially", text)
self.assertIn("customer/account health", text)
self.assertIn("product/material situation", text)
self.assertIn("salesperson/team activity", text)
self.assertIn("project progress with commercial signal", text)
self.assertIn("delivery risk", text)
self.assertIn("anomaly explanation", text)
self.assertIn("TOP ranking context", text)
self.assertIn("quality or complaint impact", text)
self.assertIn("ordinary wiki-query", text)
self.assertIn("business facts query", text)
self.assertIn("fuse the two results", text)