Answer product-owner round 1: 0 🔴, 3 🟡 (0 misread); hold a seat launched as another agent to its rung

This commit is contained in:
2026-11-17 09:36:33 +01:00
parent 970ecdb8a3
commit cdff7a234e
3 changed files with 16 additions and 5 deletions
+5 -3
View File
@@ -16,8 +16,9 @@ from claude_code.entries import UserText
# The pass each agent under agents/ reviews.
PASS_OF = {agent: kind for kind, agent in REVIEWERS.items()}
# The agent under agents/ that every comprehension seat runs as: skills/comprehension-panel/SKILL.md → "The scoring run".
# The agent under agents/ that every comprehension seat runs as, and the opening of every seat's prompt, which also marks a seat launched as another agent: skills/larv-review/SKILL.md → "Comprehension check", skills/comprehension-panel/seat-prompts.md → "Opening".
SEAT_AGENT = "comprehension-seat"
SEAT = "You are one seat of a comprehension panel."
# The opening of the security pass's prompt: skills/larv-review/SKILL.md → "Security".
SECURITY_OPENER = "You are the security pass for this chunk."
SUBJECTS: dict[ReviewKind, str] = {"seat": "a comprehension seat", "security": "the security pass's subagent"}
@@ -79,9 +80,10 @@ def review_kind(given: dict[str, typing.Any]) -> ReviewKind | None:
"""What a launch reviews, a reviewer's pass, a comprehension seat or the security pass; None for any other subagent."""
if pass_reviewed := PASS_OF.get(text(given, "subagent_type")):
return pass_reviewed
if text(given, "subagent_type") == SEAT_AGENT:
opening = text(given, "prompt").lstrip()
if text(given, "subagent_type") == SEAT_AGENT or opening.startswith(SEAT):
return "seat"
if text(given, "prompt").lstrip().startswith(SECURITY_OPENER):
if opening.startswith(SECURITY_OPENER):
return "security"
return None