Launch comprehension seats as an agent type of their own, without CLAUDE.md
CI / tests (pull_request) Successful in 4m45s

This commit is contained in:
2026-11-17 09:30:54 +01:00
parent 641645c081
commit aa2815ba75
14 changed files with 83 additions and 167 deletions
+2 -2
View File
@@ -13,9 +13,9 @@ class ReviewPasses(unittest.TestCase):
self.assertEqual(list(REVIEWERS), list(typing.get_args(ReviewedPass)))
self.assertEqual(list(REVIEWERS), [name for name in PASSES if PASS_AGENTS[name]])
def test_names_each_agent_under_agents(self):
def test_names_each_agent_under_agents_beside_the_comprehension_seat_that_reviews_no_pass(self):
agents = pathlib.Path(__file__).resolve().parents[2] / "agents"
self.assertEqual(sorted(REVIEWERS.values()), sorted(path.stem for path in agents.glob("*.md")))
self.assertEqual(sorted([*REVIEWERS.values(), "comprehension-seat"]), sorted(path.stem for path in agents.glob("*.md")))
def test_counts_markdown_an_agent_follows_as_config_and_the_rest_as_prose(self):
for path in ("README.md", "docs/decisions.md", "todo.md", "workflow-bench/README.md"):
+2 -2
View File
@@ -90,10 +90,10 @@ class PrinciplesLine(unittest.TestCase):
class Reviewers(unittest.TestCase):
def test_only_the_reviewers_whose_pass_met_the_replay_gate_start_without_claude_md(self):
def test_only_the_reviewers_whose_pass_met_the_replay_gate_and_the_comprehension_seat_start_without_claude_md(self):
# docs/decisions.md → `agents/: a reviewer starts without CLAUDE.md only where a replay of its pass missed no more findings than the most an unchanged replay missed` holds each pass's result; override-reviewer has no archived round to replay.
bare = [path.stem for path in sorted((REPO / "agents").glob("*.md")) if "omitClaudeMd: true" in path.read_text().split("---\n")[1].splitlines()]
self.assertEqual(bare, ["principles-auditor", "product-owner-reviewer", "prose-reviewer", "stability-reviewer", "systems-architect"])
self.assertEqual(bare, ["comprehension-seat", "principles-auditor", "product-owner-reviewer", "prose-reviewer", "stability-reviewer", "systems-architect"])
def test_settings_run_the_hook_as_each_subagent_starts(self):
hooks = json.loads((REPO / "settings.json").read_text())["hooks"]["SubagentStart"]