Update Planner and Reviewer packages for proof translation, typed escalation, and guardrails (v0.16.0) #37

Merged
anodyine merged 5 commits from ISSUE-24 into main 2026-11-25 21:27:38 -05:00
11 changed files with 24 additions and 19 deletions
Showing only changes of commit d8c73c21f9 - Show all commits

No files matched your search

+8 -6
View File
@@ -149,17 +149,18 @@ them.
### Planner and Reviewer escalation and guardrail packages
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
proof translation, typed escalation, and Guardrail Proposal guidance. Until
RelayView pins `v0.16.0`, it uses the earlier releases of these packages. The
[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
artifacts, fast-test completeness, and declared test resources into
Implementer fast checks and Building Inspector verification goals in Plan v1
(`scope.md`). Its `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
(`scope.md`). Its `escalation.md` handles an Implementer
`needs_operator_decision` or `scope_exceeded` flag once the Implementer
reports one: it resolves the flag when the answer is strictly inside the
approved specification and promotes it otherwise. It also
escalates directly with one typed reason (`boundary_crossed`,
`spec_ambiguity`, `verification_incomplete`, `behavioral_tradeoff`, or
`convergence_exceeded`) and a short risk summary. Fork `scope.md` to change
@@ -168,7 +169,8 @@ Each package forks independently:
object if the fork should keep the owner's issue claim.
- **`code-review-auto`** and **`code-review`** carry the same "Propose a
guardrail" and "Escalate" sections. When a repeatable defect class escapes
the Implementer, the Reviewer proposes the lowest viable Trust Pyramid rung:
the Implementer, the Reviewer proposes the lowest viable rung of the trust
pyramid in the [layer-4 authoring template](#layer-4-authoring-template):
an architecture or API boundary, then a static check or lint rule with a
root-cause message or a fast regression test, then a verification harness
such as a Feature Map update, and a candidate prose skill only as the last
+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 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.
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. In the not-yet-tagged v0.16.0 release, 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
+1 -1
View File
@@ -86,4 +86,4 @@ every earlier release keeps its bytes.
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.
- **Fork:** schema 3 and `communication_context` are unchanged.
+3 -3
View File
@@ -6,7 +6,7 @@ metadata:
relayview-version: 0.16.0
---
# Review finding presentation
# Review findings and guardrails
Keep findings bounded, path-aware, and actionable. Give each finding the file and line, the evidence, and the change you request.
@@ -16,7 +16,7 @@ When a finding belongs to a repeatable defect class, meaning the same kind of mi
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.
3. **Verification harness:** an update to the repository's Feature Map, a verification driver or CLI, a property test, or a formal check, when the first two rungs cannot reach the defect.
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.
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.
@@ -31,4 +31,4 @@ Escalate when a finding needs the Operator's judgment rather than another correc
- `behavioral_tradeoff`: the candidate makes a behavioral tradeoff or architectural compromise the specification did not settle.
- `convergence_exceeded`: the same findings return across correction rounds, and another round is unlikely to converge.
Report ordinary defects as findings, not escalations; an escalation made just to be safe spends Operator attention without saying what to decide. An escalation only raises the review a task needs: never downgrade `operator_review_required` or recommend a lower review tier. Raise it through the escalation interface the owner assigns; where none is assigned, state the reason and risk summary at the top of the review result.
Report ordinary defects as findings, not escalations; an escalation made just to be safe spends Operator attention without saying what to decide. An escalation only raises the review a task needs: never downgrade `operator_review_required` or recommend a lower review tier. Before raising one, check that its risk summary names one decision the Operator must make and the evidence behind it; if it cannot, report a finding instead. Raise it through the escalation interface the owner assigns; where none is assigned, state the reason and risk summary at the top of the review result.
@@ -9,7 +9,7 @@
"files": [
{
"path": "SKILL.md",
"sha256": "49812be03ce5d5c805904859e54529ec021e565b7783eeffc31f83891ff8c6f5"
"sha256": "fb6a234090dd4e45c5995f1ee1562aecfb57b9e9bbfa30a9ec15c30e26160deb"
}
]
}
+2 -2
View File
@@ -21,7 +21,7 @@ When a finding belongs to a repeatable defect class, meaning the same kind of mi
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.
3. **Verification harness:** an update to the repository's Feature Map, a verification driver or CLI, a property test, or a formal check, when the first two rungs cannot reach the defect.
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.
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.
@@ -36,4 +36,4 @@ Escalate when a finding needs the Operator's judgment rather than another correc
- `behavioral_tradeoff`: the candidate makes a behavioral tradeoff or architectural compromise the specification did not settle.
- `convergence_exceeded`: the same findings return across correction rounds, and another round is unlikely to converge.
Report ordinary defects as findings, not escalations; an escalation made just to be safe spends Operator attention without saying what to decide. An escalation only raises the review a task needs: never downgrade `operator_review_required` or recommend a lower review tier. Raise it through the escalation interface the owner assigns; where none is assigned, state the reason and risk summary at the top of the review result.
Report ordinary defects as findings, not escalations; an escalation made just to be safe spends Operator attention without saying what to decide. An escalation only raises the review a task needs: never downgrade `operator_review_required` or recommend a lower review tier. Before raising one, check that its risk summary names one decision the Operator must make and the evidence behind it; if it cannot, report a finding instead. Raise it through the escalation interface the owner assigns; where none is assigned, state the reason and risk summary at the top of the review result.
+1 -1
View File
@@ -9,7 +9,7 @@
"files": [
{
"path": "SKILL.md",
"sha256": "081f5a0233ff8255ba88f2f343fb98094b78fcebc776ab46d07c00c704776b9e"
"sha256": "46992be090ef755f533c583412445f9b4b493de4df5f81da641931e494c1df80"
}
]
}
+2
View File
@@ -29,3 +29,5 @@ Raise it through the escalation interface the owner assigns. Where none is assig
- Escalate only with a reason and evidence. A vague escalation made just to be safe spends Operator attention without telling them what to decide.
- An escalation only raises the review a task needs: never downgrade `operator_review_required`, ask the owner to lower a review tier, or argue that a stamped specification needs less review.
- One escalation per decision. Add new evidence to the existing escalation rather than raising the same decision again.
Before raising an escalation, check that its risk summary names one decision the Operator must make and the evidence behind it. If you cannot name the decision, resolve the question yourself or record it as an open question instead.
+2 -2
View File
@@ -16,11 +16,11 @@
},
{
"path": "scope.md",
"sha256": "4c0848840f670e23657b17da366a7ff504b39e30675644c3026736016294e396"
"sha256": "ba67191d5a442726d5f6e1cba7d5ae889234851650c24e77b1a5dd718b31d69a"
},
{
"path": "escalation.md",
"sha256": "7292969d41cca14bff78d6fd75025b92ac1cbe2b4bff5de4cba74a5f0c5f4cb3"
"sha256": "2a9ccc1456f9b928b7a8d497e23454c07f4c38dc6b09b88eb8af5bbb0b70dd99"
}
]
}
+1 -1
View File
@@ -25,7 +25,7 @@ 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.
When the owner reports that no Tester step will run for the task, list each verification goal as a remaining manual Operator check with its steps and passing observation instead. When the owner reports nothing about a Tester step, keep the verification goals and record the assumption that a Tester will run them as an open question.
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.
+2 -1
View File
@@ -89,7 +89,8 @@ class PlannerScopeTests(unittest.TestCase):
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)
self.assertIn("When the owner reports that no Tester step will run for the task", self.text)
self.assertIn("When the owner reports nothing about a Tester step", self.text)
def test_direct_escalation_discipline(self):
for reason in DIRECT_REASONS: