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

+1 -1
View File
@@ -151,7 +151,7 @@ them.
From `v0.16.0`, the Planner and Reviewer defaults carry the operating model's
proof translation, typed escalation, and Guardrail Proposal guidance. RelayView
assigns the earlier releases of these packages until it pins `v0.16.0`. The
[release notes](RELEASE-NOTES.md) give each package's before and after text.
[release notes](RELEASE-NOTES.md) summarize each package's change, before and after.
Each package forks independently:
- **`planner-scope`** translates the Specification Designer's requested proof
+1 -1
View File
@@ -57,7 +57,7 @@ A release tag pins public source. CI runs package checks and archives from that
The MIT license covers this repository only. The contribution policy is in [CONTRIBUTING.md](CONTRIBUTING.md); dependency notices are in [NOTICE.md](NOTICE.md).
The automatic `code-review-auto` package supplies bounded, path-aware finding presentation. Broader two-axis standards/spec inspection remains in the manual `code-review` package. From v0.16.0 both packages also propose the lowest viable Trust Pyramid guardrail for a repeatable defect class and escalate with a typed reason and risk summary. Both use only the assigned Reviewer capabilities; required adequacy, disposition and recovery stay with the owner.
The automatic `code-review-auto` package supplies optional bounded, path-aware finding presentation. Broader two-axis standards/spec inspection remains in the manual `code-review` package. From v0.16.0 both packages also propose the lowest viable Trust Pyramid guardrail for a repeatable defect class and escalate with a typed reason and risk summary. Both use only the assigned Reviewer capabilities; required adequacy, disposition and recovery stay with the owner.
Automatic role communication packages (`planner-communication`,
`implementer-communication`, `reviewer-communication`, and the not yet admitted
+27 -20
View File
@@ -19,16 +19,21 @@ every earlier release keeps its bytes.
### `planner-scope`
- **Before (0.13.0):** scope analysis and a structured Plan shape
(`scope.md`) with no proof or escalation guidance.
- **After:** `scope.md` adds "Translate requested proof": each requested proof
artifact, fast-test completeness value, and declared test resource becomes
an Implementer fast check, a Building Inspector verification goal, or a
remaining manual Operator check, and the Plan shape gains `fast_checks`,
`verification_goals`, and `manual_operator_checks`. A new `escalation.md`
resolves an Implementer `needs_operator_decision` or `scope_exceeded` flag
when the answer is strictly inside the approved specification, promotes it
otherwise, and escalates directly with one typed reason (`boundary_crossed`,
- **Before (0.13.0):** scope analysis and a structured Plan shape (`scope.md`)
with no proof or escalation guidance.
- **After:** `SKILL.md` adds sections on translating proof into Plan v1, on
triage and escalation, and a readiness check that each requested proof
artifact maps to a fast check, a verification goal, or a remaining manual
Operator check. `scope.md` adds "Translate requested proof": each requested
proof artifact, fast-test completeness value, and declared test resource
becomes an Implementer fast check, a Building Inspector verification goal,
or a remaining manual Operator check (verification goals become manual
checks when no Tester step will run), and the Plan shape gains
`fast_checks`, `verification_goals`, and `manual_operator_checks`. A new
`escalation.md` resolves an Implementer `needs_operator_decision` or
`scope_exceeded` flag, once the Implementer reports one, when the answer is
strictly inside the approved specification, promotes it otherwise, and
escalates directly with one typed reason (`boundary_crossed`,
`spec_ambiguity`, `verification_incomplete`, `behavioral_tradeoff`,
`convergence_exceeded`) and a short risk summary, never just to be safe and
never downgrading `operator_review_required`. The description names the new
@@ -55,11 +60,12 @@ every earlier release keeps its bytes.
change. New "Propose a guardrail" and "Escalate" sections, identical to
`code-review`'s: propose the lowest viable Trust Pyramid rung for a
repeatable defect class (architecture or API boundary, static check or lint
rule with a root-cause message or fast regression test, verification
harness or Feature Map update, then a candidate prose skill as the last
resort, active only after the Operator approves it), and escalate with one
typed reason and a risk summary. The display name becomes "Review findings
and guardrails" and the description names the new scope.
rule with a root-cause message or fast regression test, verification harness
or Feature Map update, then a candidate prose skill as the last resort,
active only after the Operator approves it), with a follow-up task for rungs
1 to 3 or a candidate skill diff for rung 4, and escalate with one typed
reason and a risk summary. The display name becomes "Review findings and
guardrails" and the description names the new scope.
- **Fork:** schema 1 is unchanged. The package still leaves two-axis
inspection to the manual `code-review`.
@@ -75,8 +81,9 @@ every earlier release keeps its bytes.
- **Before (0.13.0):** proportional detail, Markdown, acknowledgements, and
finding explanation.
- **After:** adds one paragraph on Review Packet framing: the escalation's
typed reason and risk summary first, then findings by severity, then any
Guardrail Proposal presented as a recommendation rather than a blocker, and
no cautionary escalation when nothing needs the Operator.
- **Fork:** schema 3 and `communication_context` are unchanged.
- **After:** adds one paragraph: Specification Designer naming, and Review
Packet framing with the escalation's typed reason and risk summary first,
then findings by severity, then any Guardrail Proposal presented as a
recommendation rather than a blocker, and no cautionary escalation when
nothing needs the Operator.
- **Fork:** schema 3 and `communication_context` are unchanged.
+2 -2
View File
@@ -12,14 +12,14 @@ Keep findings bounded, path-aware, and actionable. Give each finding the file an
## Propose a guardrail
When a finding belongs to a repeatable defect class, meaning the same kind of mistake could recur in other changes and a deterministic check could have caught it, propose the lowest viable guardrail with the finding. Recommend the first rung that can make the class impossible or catch it reliably:
When a finding belongs to a repeatable defect class, meaning the same kind of mistake could recur in other changes, propose the lowest viable guardrail with the finding. Recommend the first rung that can make the class impossible or catch it reliably:
1. **Architecture or API boundary:** a structural change, such as a narrower interface, a type that cannot represent the invalid state, or a module boundary, that makes the defect class impossible.
2. **Static check or lint rule, or a fast regression test:** a lint rule, import-graph fence, or type constraint with a root-cause error message that names the cause and the fix, or a fast regression test that fails on the defect.
3. **Verification harness:** an update to the repository's Feature Map, a verification driver or CLI, or a property test, when the defect shows only in the running application.
4. **Candidate prose skill:** the last resort, for a genuine judgment call no check can decide. It stays a candidate until the Operator approves it.
Keep each proposal short: the defect class in one or two sentences, the rung you recommend and why the lower-numbered rungs do not fit, and a bounded follow-up task. A proposal is a recommendation for the Operator to queue or dismiss; it never expands the candidate under review. Skip proposals for one-off mistakes.
Before proposing a rung, check: could a lower-numbered rung catch this class? If so, recommend that rung instead. Keep each proposal short: the defect class in one or two sentences, the rung you recommend and why the lower-numbered rungs do not fit, and a bounded follow-up task for rungs 1 to 3 or a candidate skill diff for rung 4. A proposal is a recommendation for the Operator to queue or dismiss; it never expands the candidate under review. Skip proposals for one-off mistakes.
## Escalate
@@ -9,7 +9,7 @@
"files": [
{
"path": "SKILL.md",
"sha256": "13758a75e416a304008d41e7ad2ab8b525a0c1cac86f82e8000d6f36e501a57c"
"sha256": "49812be03ce5d5c805904859e54529ec021e565b7783eeffc31f83891ff8c6f5"
}
]
}
+2 -2
View File
@@ -17,14 +17,14 @@ Keep findings bounded, path-aware, and actionable.
## Propose a guardrail
When a finding belongs to a repeatable defect class, meaning the same kind of mistake could recur in other changes and a deterministic check could have caught it, propose the lowest viable guardrail with the finding. Recommend the first rung that can make the class impossible or catch it reliably:
When a finding belongs to a repeatable defect class, meaning the same kind of mistake could recur in other changes, propose the lowest viable guardrail with the finding. Recommend the first rung that can make the class impossible or catch it reliably:
1. **Architecture or API boundary:** a structural change, such as a narrower interface, a type that cannot represent the invalid state, or a module boundary, that makes the defect class impossible.
2. **Static check or lint rule, or a fast regression test:** a lint rule, import-graph fence, or type constraint with a root-cause error message that names the cause and the fix, or a fast regression test that fails on the defect.
3. **Verification harness:** an update to the repository's Feature Map, a verification driver or CLI, or a property test, when the defect shows only in the running application.
4. **Candidate prose skill:** the last resort, for a genuine judgment call no check can decide. It stays a candidate until the Operator approves it.
Keep each proposal short: the defect class in one or two sentences, the rung you recommend and why the lower-numbered rungs do not fit, and a bounded follow-up task. A proposal is a recommendation for the Operator to queue or dismiss; it never expands the candidate under review. Skip proposals for one-off mistakes.
Before proposing a rung, check: could a lower-numbered rung catch this class? If so, recommend that rung instead. Keep each proposal short: the defect class in one or two sentences, the rung you recommend and why the lower-numbered rungs do not fit, and a bounded follow-up task for rungs 1 to 3 or a candidate skill diff for rung 4. A proposal is a recommendation for the Operator to queue or dismiss; it never expands the candidate under review. Skip proposals for one-off mistakes.
## Escalate
+1 -1
View File
@@ -9,7 +9,7 @@
"files": [
{
"path": "SKILL.md",
"sha256": "b8644a9e2ad6011aea5da7630f14c6f42afe8e673fc57591a815d2bec3683e14"
"sha256": "081f5a0233ff8255ba88f2f343fb98094b78fcebc776ab46d07c00c704776b9e"
}
]
}
+1 -1
View File
@@ -16,4 +16,4 @@ Keep the acknowledgement brief, relaxed, clear, and professional. Use natural co
Before Plan v1 finalization, lead with a concise recommendation and material tradeoffs, default to prose or a short list, and ask only questions whose answers can change the decision or implementation Plan. Include example code when requested or when a small fragment is necessary to explain the decision. Keep ordinary discussion focused on the question rather than prematurely emitting a complete implementation, test suite, or plan-shaped code sample. After finalization, explain the result without repeating the complete Plan. Keep ordinary status answers concise and expand when requested. Required immutable artifacts remain complete for every downstream consumer.
Call the role that drafts specifications the Specification Designer, and refer to the specification's requested proof, test resources, and review stamp by those names. When you escalate, lead with the typed reason and a risk summary of one or two sentences: the decision the Operator must make, the options you see, and the evidence behind them. Say what keeps running while they decide. When you settle an Implementer flag inside the approved specification, report it as a decision you made and the clause that supports it, not as a question for the Operator.
Call the role that drafts specifications the Specification Designer, and refer to the specification's requested proof, test resources, and review stamp by those names. When you escalate, lead with the typed reason and a risk summary of one or two sentences: the decision the Operator must make, the options you see, and the evidence behind them. Say what, if anything, waits on their answer. When you settle an Implementer flag inside the approved specification, report it as a decision you made and the clause that supports it, not as a question for the Operator.
@@ -10,7 +10,7 @@
"files": [
{
"path": "SKILL.md",
"sha256": "c78b2ea9b8cf941766583b8bc29f8a00513523eb7db116f7ef23014f62e429c2"
"sha256": "5ba9cf83685330e15afce7c65df8f6a766b0c8e23ea16c07bd4087706309cb37"
}
]
}
+3 -3
View File
@@ -4,13 +4,13 @@ Operator attention is the scarcest resource in the workflow. Escalate only what
## Triage Implementer flags
The Implementer does not page the Operator directly. It reports `needs_operator_decision` when it meets an ambiguity, sensitive boundary, or tradeoff it cannot settle, and `scope_exceeded` when the work appears to need more than the Plan allows. For each flag:
When the Implementer reports `needs_operator_decision` (an ambiguity, sensitive boundary, or tradeoff it cannot settle) or `scope_exceeded` (the work appears to need more than the Plan allows), the flag comes to you rather than to the Operator. For each flag:
1. Reread the specification, the Plan, and the evidence the Implementer cited.
2. **Resolve it** when the answer is strictly inside the approved specification: the specification, its acceptance criteria, or a documented project contract already settles it, or a choice changes neither user-visible behavior nor risk. Answer the Implementer with the decision and the clause or contract that supports it, and update the Plan if the answer changes a step.
3. **Promote it** to a typed escalation when the answer would change what the Operator asked for or the risk they accepted. Name the flag you promoted in the risk summary.
Never resolve a flag by quietly narrowing the requested proof, dropping an acceptance observation, or widening the scope.
Before answering, check that your answer keeps every requested proof artifact and acceptance observation and stays within the Plan's scope; if it cannot, promote the flag.
## Escalate directly
@@ -22,7 +22,7 @@ Escalate with exactly one typed reason and a risk summary of one or two sentence
- `behavioral_tradeoff`: meeting the specification needs a visible compromise or architectural tradeoff the specification did not settle.
- `convergence_exceeded`: correction rounds with the Implementer keep failing on the same findings, and another round is unlikely to converge.
Raise it through the escalation interface the owner assigns. Where none is assigned, state the reason and risk summary as an open decision in the Plan or your review result, so the Operator sees it without reading the conversation.
Raise it through the escalation interface the owner assigns. Where none is assigned, state the reason and risk summary as an open decision in the Plan, or at the top of your response to the candidate when you review it, so the Operator sees it without reading the conversation.
## Discipline
+2 -2
View File
@@ -16,11 +16,11 @@
},
{
"path": "scope.md",
"sha256": "b6ca7c2ae67914f78a6329a4aa467797f01d57331e581b2ee98f2a7c5ec6efd4"
"sha256": "4c0848840f670e23657b17da366a7ff504b39e30675644c3026736016294e396"
},
{
"path": "escalation.md",
"sha256": "0555e8e86b458480c1c051e3f554b288f37c26113262eb2a5c6475f35733728d"
"sha256": "7292969d41cca14bff78d6fd75025b92ac1cbe2b4bff5de4cba74a5f0c5f4cb3"
}
]
}
+2
View File
@@ -25,6 +25,8 @@ Read the specification's proof decisions as the Operator's bar for review, then
- **Requested proof artifacts:** each becomes a verification goal naming the flow, its starting state, the steps, the artifact to capture (a browser recording, screenshots, a CLI/HTTP trace, a statechart), and the observation that passes. A request for fast automated tests only becomes fast checks and no verification goal.
- **Declared test resources:** name the resource each verification goal needs, such as `ml-server:<model>` or `gpu-worker`. When the specification marks `unique_resource_needed`, keep the Operator's manual steps as a remaining manual Operator check instead of planning a mock in its place.
When no Tester step will run for the task, as the owner reports it, list each verification goal as a remaining manual Operator check with its steps and passing observation instead.
Before finalizing, check that each requested proof artifact maps to exactly one place: a fast check, a verification goal, or a remaining manual Operator check.
Return a compact structured plan. Prefer YAML-compatible Markdown:
+1 -1
View File
@@ -14,4 +14,4 @@ Keep the acknowledgement brief, relaxed, clear, and professional. Use natural co
Explain a finding using its exact candidate, concrete rationale and actionable requested change. Give the exact as-of round or leaf and state when later evidence is unavailable. Explain settled judgments from their recorded results. Keep orientation focused on the verified role and immutable Plan. Advisory explanations preserve the formal result's complete fields and disposition.
When your result feeds a Review Packet, put the Operator's decision first. Lead with any escalation: its typed reason and a risk summary of one or two sentences naming the decision and its evidence. Then give findings, most severe first, then any Guardrail Proposal. Keep each Guardrail Proposal to the defect class, the recommended guardrail and why, and the follow-up task, and present it as a recommendation for the Operator rather than a blocker for the current candidate. When nothing needs the Operator, say so plainly instead of adding a cautionary escalation.
Call the role that drafts specifications the Specification Designer, and refer to the specification's requested proof, test resources, and review stamp by those names. When your result feeds a Review Packet, put the Operator's decision first. Lead with any escalation: its typed reason and a risk summary of one or two sentences naming the decision and its evidence. Then give findings, most severe first, then any Guardrail Proposal. Keep each Guardrail Proposal to the defect class, the recommended guardrail and why, and the follow-up task, and present it as a recommendation for the Operator rather than a blocker for the current candidate. When nothing needs the Operator, say so plainly instead of adding a cautionary escalation.
@@ -10,7 +10,7 @@
"files": [
{
"path": "SKILL.md",
"sha256": "fd28b016e885118495967c015c6f7e900a403251923d38a062616cef52a2eee3"
"sha256": "005b9e68e4a9b37be8006faf75df8830b208f005454ee57b270087b9814f31ad"
}
]
}
+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)