Answer stability round 1: 1 🔴, 3 🟡 (0 misread); define SEAT_AGENT once, drop the duplicate prepare-scoring check, restore the worktree assertion
CI / tests (pull_request) Successful in 4m34s

This commit is contained in:
2026-11-17 10:56:35 +01:00
parent bb8516380e
commit 3229f13b7a
7 changed files with 11 additions and 15 deletions
+2
View File
@@ -13,6 +13,8 @@ def _reviewed(name: str) -> typing.TypeGuard[ReviewedPass]:
return name in typing.get_args(ReviewedPass)
# The agent under agents/ that every comprehension seat runs as; it reviews no pass, so it is not in `PASS_AGENTS`: skills/larv-review/SKILL.md → "Comprehension check".
SEAT_AGENT = "comprehension-seat"
# The passes that have an agent. A pass missing from `ReviewedPass` drops out of it, which test_review_passes fails on.
REVIEWERS: dict[ReviewedPass, str] = {name: agent for name, agent in PASS_AGENTS.items() if agent and _reviewed(name)}
+2 -2
View File
@@ -5,7 +5,7 @@ import unittest
sys.path.insert(0, str(pathlib.Path(__file__).resolve().parents[1]))
from review_rules.review_passes import PASS_AGENTS, PASSES, prose, ReviewedPass, REVIEWERS
from review_rules.review_passes import PASS_AGENTS, PASSES, prose, ReviewedPass, REVIEWERS, SEAT_AGENT
class ReviewPasses(unittest.TestCase):
@@ -15,7 +15,7 @@ class ReviewPasses(unittest.TestCase):
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(), "comprehension-seat"]), sorted(path.stem for path in agents.glob("*.md")))
self.assertEqual(sorted([*REVIEWERS.values(), SEAT_AGENT]), 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"):