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
+4 -6
View File
@@ -7,9 +7,8 @@ sys.path.insert(0, str(pathlib.Path(__file__).resolve().parents[1]))
from review_rules.review_passes import PASS_AGENTS, PASSES
from repo_checks import ROOT
from rule_hook.reviewer_rung import SEAT, SECURITY_OPENER
from rule_hook.reviewer_rung import SEAT_AGENT, SECURITY_OPENER
OPENING = re.compile(r"^## Opening\n+```\n([^\n]+?\.)(?: |\n)", re.MULTILINE)
# An agent's name, as opposed to the skill or plugin that reviews a pass.
AGENT_NAME = re.compile(r"[a-z]+(?:-[a-z]+)*")
# A row of the pass table: its pass and its reviewer cell.
@@ -25,10 +24,9 @@ class ReviewerLaunches(unittest.TestCase):
rows = [(name.lower(), reviewer if AGENT_NAME.fullmatch(reviewer) else None) for name, reviewer in PASS_ROW.findall(PASS_TABLE)]
self.assertEqual(rows, list(PASS_AGENTS.items()))
def test_the_seat_opening_is_the_sentence_that_opens_every_seat_prompt(self):
opening = OPENING.search((ROOT / "skills" / "comprehension-panel" / "seat-prompts.md").read_text(encoding="utf-8"))
self.assertIsNotNone(opening, "seat-prompts.md has a `## Opening` section whose code block opens with a sentence")
self.assertEqual(SEAT, opening.group(1) if opening else "")
def test_the_seat_agent_is_the_agent_under_agents_that_larv_review_has_every_seat_run_as(self):
self.assertTrue((ROOT / "agents" / f"{SEAT_AGENT}.md").is_file())
self.assertIn(f"`{SEAT_AGENT}`", LARV_REVIEW.split("### Comprehension check", 1)[1].split("### Security", 1)[0])
def test_the_security_opening_is_the_sentence_larv_review_has_the_security_pass_open_with(self):
security = LARV_REVIEW.split("### Security", 1)[1].split("### Overrides", 1)[0]