Address review: reachable rung 4, Tester fallback, conditional flags

- The guardrail trigger no longer presupposes a deterministic check, so a
  genuine judgment call can reach the candidate prose skill rung; rung 4
  proposes a candidate skill diff, and a check asks whether a lower rung
  would catch the class. Both review packages' Escalate sections are now
  pinned identical too.
- planner-scope turns verification goals into manual Operator checks when
  no Tester step will run, and triages Implementer flags only once the
  Implementer reports one.
- reviewer-communication uses Specification Designer terminology.
- Release notes cover the planner-scope SKILL.md change; README keeps
  "optional" for code-review-auto.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
adminandClaude Opus 5.5 committed 2026-11-25 20:44:39 -05:00
1 parent ae1b6d95aa
commit 540afcd860
15 files changed
+66 -46

No files matched your search

+20 -9
View File
@@ -40,10 +40,10 @@ def read(name):
return manifest, frontmatter, body + resources
def guardrail_section(text):
match = re.search(r"^## Propose a guardrail\n.*?(?=^## |\Z)", text, re.M | re.S)
def section(text, heading):
match = re.search(rf"^## {re.escape(heading)}\n.*?(?=^## |\Z)", text, re.M | re.S)
if not match:
raise AssertionError("no '## Propose a guardrail' section")
raise AssertionError(f"no '## {heading}' section")
return match.group(0)
@@ -84,6 +84,12 @@ class PlannerScopeTests(unittest.TestCase):
self.assertIn(f"`{flag}`", self.text)
self.assertIn("strictly inside the approved specification", self.text)
self.assertIn("promote", self.text)
# Implementer flags arrive only once the Implementer emits them, so the
# triage is conditional rather than a claim about current behavior.
self.assertIn("When the Implementer reports", self.text)
def test_verification_goals_have_a_fallback_without_a_tester(self):
self.assertIn("When no Tester step will run for the task", self.text)
def test_direct_escalation_discipline(self):
for reason in DIRECT_REASONS:
@@ -96,15 +102,19 @@ class PlannerScopeTests(unittest.TestCase):
class ReviewerGuardrailTests(unittest.TestCase):
def test_review_packages_share_one_guardrail_ladder(self):
sections = {name: guardrail_section(read(name)[2]) for name in REVIEW_PACKAGES}
self.assertEqual(sections["code-review-auto"], sections["code-review"])
section = sections["code-review"]
positions = [section.lower().index(rung.lower()) for rung in GUARDRAIL_LADDER]
for heading in ("Propose a guardrail", "Escalate"):
with self.subTest(heading=heading):
self.assertEqual(section(read("code-review-auto")[2], heading), section(read("code-review")[2], heading))
ladder = section(read("code-review")[2], "Propose a guardrail")
positions = [ladder.lower().index(rung.lower()) for rung in GUARDRAIL_LADDER]
self.assertEqual(positions, sorted(positions), "rungs run from most to least deterministic")
for phrase in ("lowest viable", "repeatable defect class", "root-cause", "fast regression test",
"Feature Map", "last resort", "Operator approves"):
"Feature Map", "last resort", "Operator approves", "candidate skill diff",
"could a lower-numbered rung"):
with self.subTest(phrase=phrase):
self.assertIn(phrase, section)
self.assertIn(phrase, ladder)
# The trigger must not presuppose a deterministic check, or rung 4 is unreachable.
self.assertNotIn("a deterministic check could have caught it", ladder)
def test_review_escalation_uses_typed_reasons(self):
for name in REVIEW_PACKAGES:
@@ -140,6 +150,7 @@ class CommunicationTests(unittest.TestCase):
def test_reviewer_communication_frames_review_packet_and_escalation(self):
text = read("reviewer-communication")[2]
for phrase in ("Review Packet", "typed reason", "risk summary", "Guardrail Proposal",
"Specification Designer", "requested proof",
"proportional", "acknowledgement", "Markdown"):
with self.subTest(phrase=phrase):
self.assertIn(phrase, text)