From 7c89205e064369fdfa5897dec263bdb5a4543b61 Mon Sep 17 00:00:00 2001 From: Kyle Merritt Date: Wed, 25 Nov 2026 20:41:06 -0500 Subject: [PATCH 1/4] Update Planner and Reviewer packages for proof translation, typed escalation, and guardrails (v0.16.0) planner-scope (schema 2, issueClaim unchanged) now translates the Specification Designer's requested proof, fast-test completeness, and declared test resources into Implementer fast checks and Building Inspector verification goals in Plan v1. A new escalation.md resolves Implementer needs_operator_decision and scope_exceeded flags inside the approved specification or promotes them, and escalates directly with one typed Layer C reason and a short risk summary, never downgrading operator_review_required. code-review-auto and code-review share a Trust Pyramid "Propose a guardrail" section (architecture/API boundary, then static check or fast regression test, then verification harness, then a candidate prose skill as last resort) and a typed "Escalate" section. planner-communication and reviewer-communication (schema 3) frame escalations and Review Packets. RELEASE-NOTES.md gives each package's before and after for fork maintainers; OVERRIDING.md and README.md record the new versions and seams. Co-Authored-By: Claude Opus 5.5 --- OVERRIDING.md | 52 +++++- README.md | 6 +- RELEASE-NOTES.md | 82 +++++++++ packages/code-review-auto/SKILL.md | 31 +++- .../code-review-auto/relayview-skill.json | 4 +- packages/code-review/SKILL.md | 27 ++- packages/code-review/relayview-skill.json | 4 +- packages/planner-communication/SKILL.md | 4 +- .../relayview-skill.json | 4 +- packages/planner-scope/SKILL.md | 21 ++- packages/planner-scope/escalation.md | 31 ++++ packages/planner-scope/relayview-skill.json | 10 +- packages/planner-scope/scope.md | 23 ++- packages/reviewer-communication/SKILL.md | 4 +- .../relayview-skill.json | 4 +- tests/test_packages.py | 22 +-- tests/test_planner_reviewer.py | 166 ++++++++++++++++++ 17 files changed, 450 insertions(+), 45 deletions(-) create mode 100644 RELEASE-NOTES.md create mode 100644 packages/planner-scope/escalation.md create mode 100644 tests/test_planner_reviewer.py diff --git a/OVERRIDING.md b/OVERRIDING.md index 542dc20..d5e9e3f 100644 --- a/OVERRIDING.md +++ b/OVERRIDING.md @@ -82,8 +82,8 @@ and no RelayView bundle contains it. | `coordinator-dispatch` | `coordinator` / `coordination` | automatic | 1 | — | 0.17.0 | `v0.17.0`, not yet tagged | No; role not yet admitted | | `coordinator-communication` | `coordinator` / `coordination` | automatic | 3 | `communication_context` | 0.17.0 | `v0.17.0`, not yet tagged | No; role not yet admitted | | `planner-investigation` | `planner` / `planning` | automatic | 1 | — | 0.13.0 | `v0.13.0` | Planner automatic, 1st | -| `planner-scope` | `planner` / `planning` | automatic | 2 | `issueClaim: status/in-progress` | 0.13.0 | `v0.13.0` | Planner automatic, 2nd | -| `planner-communication` | `planner` / `planning` | automatic | 3 | `communication_context` | 0.14.0 | `v0.14.0` | Planner automatic, 3rd | +| `planner-scope` | `planner` / `planning` | automatic | 2 | `issueClaim: status/in-progress` | 0.16.0 | `v0.16.0`, not yet tagged | Planner automatic, 2nd | +| `planner-communication` | `planner` / `planning` | automatic | 3 | `communication_context` | 0.16.0 | `v0.16.0`, not yet tagged | Planner automatic, 3rd | | `research-auto` | `planner` / `planning` | automatic | 1 | — | 0.13.0 | `v0.13.0` | Planner automatic, 4th | | `codebase-design` | `planner` / `planning` | automatic | 1 | — | 0.13.0 | `v0.13.0` | No | | `grill-me` | `planner` / `planning` | manual | 1 | — | 0.13.0 | `v0.13.0` | No | @@ -106,10 +106,10 @@ and no RelayView bundle contains it. | `tdd` | `implementer` / `implementation` | manual | 1 | — | 0.13.0 | `v0.13.0` | No | | `writing-for-agents` | `implementer` / `implementation` | manual | 1 | — | 0.13.0 | `v0.13.0` | No | | `reviewer-investigation` | `reviewer` / `review` | automatic | 1 | — | 0.13.0 | `v0.13.0` | Reviewer automatic, 1st | -| `code-review-auto` | `reviewer` / `review` | automatic | 1 | — | 0.13.0 | `v0.13.0` | Reviewer automatic, 2nd | -| `reviewer-communication` | `reviewer` / `review` | automatic | 3 | `communication_context` | 0.13.0 | `v0.13.0` | Reviewer automatic, 3rd | +| `code-review-auto` | `reviewer` / `review` | automatic | 1 | — | 0.16.0 | `v0.16.0`, not yet tagged | Reviewer automatic, 2nd | +| `reviewer-communication` | `reviewer` / `review` | automatic | 3 | `communication_context` | 0.16.0 | `v0.16.0`, not yet tagged | Reviewer automatic, 3rd | | `c4-diff` | `reviewer` / `review` | manual | 1 | — | 0.13.0 | `v0.13.0` | No | -| `code-review` | `reviewer` / `review` | manual | 1 | — | 0.13.0 | `v0.13.0` | No | +| `code-review` | `reviewer` / `review` | manual | 1 | — | 0.16.0 | `v0.16.0`, not yet tagged | No | | `tester-inspection` | `tester` / `testing` | automatic | 1 | — | 0.15.0 | `v0.15.0`, not yet tagged | No; pair not yet admitted | | `tester-communication` | `tester` / `testing` | automatic | 3 | `communication_context` | 0.15.0 | `v0.15.0`, not yet tagged | No; pair not yet admitted | @@ -146,6 +146,45 @@ resources the Tester may use; RelayView's owner would supply those. The packages describe only what the Tester observes, writes, and presents within 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 +[release notes](RELEASE-NOTES.md) give each package's before and after text. +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 + 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 + the Plan's shape or translation rules and `escalation.md` to change when the + Planner resolves or escalates. Keep `schemaVersion: 2` and the `issueClaim` + 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: + 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 + resort. Fork these sections to change when a guardrail is worth proposing or + which rung to prefer. A fork that drops the ladder order recommends prose + rules where a deterministic check would hold. +- **`planner-communication`** and **`reviewer-communication`** present an + escalation as its typed reason and risk summary first, and a Review Packet's + findings and Guardrail Proposals after it. Fork them to change tone or + order; keep `schemaVersion: 3` and the `communication_context` treatment. + +No package defines the owner's escalation record, the Guardrail Proposal card, +or how a guardrail task is queued; RelayView's owner would supply those. Where +the owner assigns no escalation interface, the packages put the reason and +risk summary in the Plan or review result instead. + ## What a skill controls and what the owner enforces A package is model-facing text. It changes how an agent works inside its role; @@ -167,7 +206,8 @@ admission. | Acceptance | Nothing | Operator acceptance requires a person | Current | | Coordination | Wave aggressiveness, contention heuristics, resource batching, when to escalate, Control Tower reporting tone | Ready state and prerequisites, dispatch through owner commands, the Operator's Autopilot toggle, resource leases, review policy, nudge budgets and cooldowns | Proposed | | Testing | How to exercise a candidate, which defects to look for, when to escalate, and how to present a proof summary | The Tester's tool and resource confinement, the exact-candidate binding of the Verification Proof Bundle and its fields, invalidation of proof from a superseded candidate, and the typed escalation record | Proposed | -| Review tiers | How to frame a risk or escalation summary, and how the Specification Designer proposes proof artifacts, fast-test completeness, test resources, and a review stamp | Repository trust ceiling (Layer A), the Operator's per-specification stamp (Layer B), and the one-way escalation ratchet with typed reasons (Layer C): no agent may downgrade `operator_review_required` | Proposed | +| Review tiers | How to frame a risk or escalation summary, when the Planner resolves or promotes an Implementer flag, and how the Specification Designer proposes proof artifacts, fast-test completeness, test resources, and a review stamp | Repository trust ceiling (Layer A), the Operator's per-specification stamp (Layer B), and the one-way escalation ratchet with typed reasons (Layer C): no agent may downgrade `operator_review_required` | Proposed | +| Guardrail proposals | When a defect class is repeatable enough to propose a guardrail, and which Trust Pyramid rung to recommend | The Guardrail Proposal card, queueing its follow-up task, and Operator approval before any candidate prose skill becomes active | Proposed | Proposed rows come from RelayView's coordinator and verification operating model (`docs/speculative/coordinator-and-verification-operating-model.md` in diff --git a/README.md b/README.md index a379977..6d5521c 100644 --- a/README.md +++ b/README.md @@ -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. Both use only the assigned Reviewer capabilities; required adequacy, disposition and recovery stay with the owner. +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. Automatic role communication packages (`planner-communication`, `implementer-communication`, `reviewer-communication`, and the not yet admitted @@ -86,4 +86,6 @@ owner keeps prerequisites, dispatch execution, resource leases and review policy [OVERRIDING.md](OVERRIDING.md#customize-the-technical-coordinator) shows which seam to fork for each customization. -Planner direct-address presentation is supplied by planner-communication v0.14.0. Apart from the new Tester, Specification Designer, and Coordinator packages, other packages retain their existing versions. Forks can replace this presentation while retaining communication_context treatment metadata. +Planner direct-address presentation is supplied by planner-communication. Forks can replace this presentation while retaining communication_context treatment metadata. + +The not-yet-tagged v0.16.0 release updates `planner-scope`, `planner-communication`, `code-review-auto`, `code-review`, and `reviewer-communication`: the Planner turns the Specification Designer's requested proof into Implementer fast checks and Building Inspector verification goals, resolves or promotes Implementer escalation flags, and escalates with typed reasons, and the Reviewer proposes guardrails. `planner-scope` keeps schema 2 and its `issueClaim`. Apart from these and the new Tester, Specification Designer, and Coordinator packages, other packages retain their existing versions. The [release notes](RELEASE-NOTES.md) give each changed package's before and after for fork maintainers. diff --git a/RELEASE-NOTES.md b/RELEASE-NOTES.md new file mode 100644 index 0000000..28674c5 --- /dev/null +++ b/RELEASE-NOTES.md @@ -0,0 +1,82 @@ +# Release notes + +What changed in each release's packages, for Operators who maintain a fork of +one. Compare your fork with the package at the new tag, and carry over the +changes you want. A fork keeps its own `source` identity and is never +replaced by a bundled update. [OVERRIDING.md](OVERRIDING.md) lists every +package's current version and release. + +## v0.16.0 (not yet tagged) + +Planner and Reviewer guidance for RelayView's proposed tiered review: the +Planner turns the Specification Designer's requested proof into checks, +triages Implementer flags, and escalates with typed reasons; the Reviewer +proposes Trust Pyramid guardrails. Owner rules for typed escalation and +Guardrail Proposal cards are proposed in RelayView and not yet shipped, so +the packages fall back to stating an escalation in the Plan or review result +when no escalation interface is assigned. No schema, role, or step changes; +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`, + `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 + scope. +- **Fork:** schema 2 and `issueClaim: status/in-progress` are unchanged. A + fork that wants the new behavior adds `escalation.md` to its directory and + its sidecar `files`, and recalculates the digests. + +### `planner-communication` + +- **Before (0.14.0):** direct address, proportional detail, Markdown, + acknowledgements, and pre-finalization discussion. +- **After:** adds one paragraph: call the specification's author the + Specification Designer, lead an escalation with its typed reason and risk + summary, and report a flag settled inside the specification as a decision + rather than a question. +- **Fork:** schema 3 and `communication_context` are unchanged. + +### `code-review-auto` + +- **Before (0.13.0):** one line asking for bounded, path-aware, actionable + findings. +- **After:** each finding names its file and line, evidence, and requested + 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. +- **Fork:** schema 1 is unchanged. The package still leaves two-axis + inspection to the manual `code-review`. + +### `code-review` + +- **Before (0.13.0):** manual two-axis standards and Plan-fidelity review. +- **After:** the same review, plus the "Propose a guardrail" and "Escalate" + sections shared with `code-review-auto`. The description names the new + scope. +- **Fork:** schema 1 and manual mode are unchanged. + +### `reviewer-communication` + +- **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. diff --git a/packages/code-review-auto/SKILL.md b/packages/code-review-auto/SKILL.md index fffb234..95a9cc4 100644 --- a/packages/code-review-auto/SKILL.md +++ b/packages/code-review-auto/SKILL.md @@ -1,11 +1,34 @@ --- name: code-review-auto -description: Present findings for the owner-assigned review candidate. +description: Present findings for the owner-assigned review candidate, propose the lowest viable guardrail for a repeatable defect class, and escalate with a typed reason. metadata: - relayview-display-name: Review finding presentation - relayview-version: 0.13.0 + relayview-display-name: Review findings and guardrails + relayview-version: 0.16.0 --- # Review finding presentation -Keep findings bounded, path-aware, and actionable. +Keep findings bounded, path-aware, and actionable. Give each finding the file and line, the evidence, and the change you request. + +## 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: + +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. + +## Escalate + +Escalate when a finding needs the Operator's judgment rather than another correction round. Give exactly one typed reason and a risk summary of one or two sentences naming the decision and its evidence: + +- `boundary_crossed`: the candidate touches a sensitive boundary the specification did not approve, such as a public contract or API, a schema migration, authentication or security, CI or release configuration, a user-facing screen, or a new dependency, network egress, secret, or privilege. +- `spec_ambiguity`: the candidate and the Plan read the specification differently, and no contract settles which reading the Operator intended. +- `verification_incomplete`: the evidence cannot establish an acceptance observation, for example because fast tests cannot cover it or a required check was skipped or replaced by a mock. +- `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. diff --git a/packages/code-review-auto/relayview-skill.json b/packages/code-review-auto/relayview-skill.json index 028f90c..bd5549d 100644 --- a/packages/code-review-auto/relayview-skill.json +++ b/packages/code-review-auto/relayview-skill.json @@ -2,14 +2,14 @@ "schemaVersion": 1, "source": { "kind": "first-party", - "reference": "v0.13.0" + "reference": "v0.16.0" }, "role": "reviewer", "step": "review", "files": [ { "path": "SKILL.md", - "sha256": "2040364a3cd49fb21346295fff371c1ef242e3227e33cd9138c30bbf10923514" + "sha256": "13758a75e416a304008d41e7ad2ab8b525a0c1cac86f82e8000d6f36e501a57c" } ] } diff --git a/packages/code-review/SKILL.md b/packages/code-review/SKILL.md index 788d58a..a8a4c94 100644 --- a/packages/code-review/SKILL.md +++ b/packages/code-review/SKILL.md @@ -1,10 +1,10 @@ --- name: code-review -description: Review the owner-pinned candidate against repository standards and the admitted Plan on separate evidence axes. +description: Review the owner-pinned candidate against repository standards and the admitted Plan on separate evidence axes, propose guardrails for repeatable defects, and escalate with typed reasons. disable-model-invocation: true metadata: relayview-display-name: Code review - relayview-version: 0.13.0 + relayview-version: 0.16.0 --- # Two-axis code review @@ -14,3 +14,26 @@ Review only the candidate and commit identity supplied by the owner. Keep standa Report both axes even if one has no findings. Distinguish evidence, inference, and uncertainty; skip issues already enforced by tooling unless the enforcement itself failed. Do not edit the candidate, create subagents, choose a new base, change the acceptance state, or request a new review run. The owner controls review scheduling, exact-head binding, and the response to findings. 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: + +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. + +## Escalate + +Escalate when a finding needs the Operator's judgment rather than another correction round. Give exactly one typed reason and a risk summary of one or two sentences naming the decision and its evidence: + +- `boundary_crossed`: the candidate touches a sensitive boundary the specification did not approve, such as a public contract or API, a schema migration, authentication or security, CI or release configuration, a user-facing screen, or a new dependency, network egress, secret, or privilege. +- `spec_ambiguity`: the candidate and the Plan read the specification differently, and no contract settles which reading the Operator intended. +- `verification_incomplete`: the evidence cannot establish an acceptance observation, for example because fast tests cannot cover it or a required check was skipped or replaced by a mock. +- `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. diff --git a/packages/code-review/relayview-skill.json b/packages/code-review/relayview-skill.json index c4d93dd..5e81560 100644 --- a/packages/code-review/relayview-skill.json +++ b/packages/code-review/relayview-skill.json @@ -2,14 +2,14 @@ "schemaVersion": 1, "source": { "kind": "first-party", - "reference": "v0.13.0" + "reference": "v0.16.0" }, "role": "reviewer", "step": "review", "files": [ { "path": "SKILL.md", - "sha256": "c3ce841b0e1e104393d2feabd9982fff08bab59177a8b36a7910dec89a3a8734" + "sha256": "b8644a9e2ad6011aea5da7630f14c6f42afe8e673fc57591a815d2bec3683e14" } ] } diff --git a/packages/planner-communication/SKILL.md b/packages/planner-communication/SKILL.md index b504125..926300e 100644 --- a/packages/planner-communication/SKILL.md +++ b/packages/planner-communication/SKILL.md @@ -3,7 +3,7 @@ name: planner-communication description: Communication style for the assigned planner; proportional answers, examples, Markdown and natural acknowledgements. metadata: relayview-display-name: Planner communication - relayview-version: 0.14.0 + relayview-version: 0.16.0 --- Address the person you are speaking with as “you” and describe their decisions, permissions, and next actions from their perspective. Explain workflow behavior in familiar language, naming the responsible agent or RelayView when the software acts. Before publishing a reply, check that the person can tell who acts next and what, if anything, you need from them. @@ -15,3 +15,5 @@ For user-facing focused Chat messages, use Markdown when it makes the answer eas Keep the acknowledgement brief, relaxed, clear, and professional. Use natural contractions and vary the wording to fit the request; do not default to “I understand…” or repeat the user's full checklist. Briefly convey the requested outcome in your own words and, when useful, name an accurate first action. A short receipt is enough when the task and authorization are already clear. There is no fixed sentence count; three short sentences are fine. Describe only work within your current authorization. Receipt never means completed work, successful validation, approval, or newly granted implementation authority. Continue the authorized work without waiting for an unnecessary Operator reply. 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. diff --git a/packages/planner-communication/relayview-skill.json b/packages/planner-communication/relayview-skill.json index 6449d3c..9b447de 100644 --- a/packages/planner-communication/relayview-skill.json +++ b/packages/planner-communication/relayview-skill.json @@ -2,7 +2,7 @@ "schemaVersion": 3, "source": { "kind": "first-party", - "reference": "v0.14.0" + "reference": "v0.16.0" }, "role": "planner", "step": "planning", @@ -10,7 +10,7 @@ "files": [ { "path": "SKILL.md", - "sha256": "26154c0d1985dc0214fde7c42f02e0581c4779c2e41b027d676acf5b0b23edfc" + "sha256": "c78b2ea9b8cf941766583b8bc29f8a00513523eb7db116f7ef23014f62e429c2" } ] } diff --git a/packages/planner-scope/SKILL.md b/packages/planner-scope/SKILL.md index ed5b05e..2a0be41 100644 --- a/packages/planner-scope/SKILL.md +++ b/packages/planner-scope/SKILL.md @@ -1,9 +1,9 @@ --- name: planner-scope -description: Check assigned issue scope, neighboring work, and verification before drafting a Plan. +description: Check assigned issue scope, turn the specification's requested proof into fast checks and verification goals, and triage escalations while drafting and supervising a Plan. metadata: relayview-display-name: Planner scope - relayview-version: 0.13.0 + relayview-version: 0.16.0 --- # Planner scope @@ -12,6 +12,21 @@ When drafting the assigned Plan, identify the requested behavior, its boundary, If the owner supplies an admitted work-item identity, use the assigned read tools to inspect it. Preserve source attribution; an issue description is a request, not evidence that its proposed behavior exists. Where tracker access is unavailable, state the missing context instead of guessing a work-item identity. -Write the Plan through the owner's assigned planning interface. The Plan is ready when each requested outcome has an implementation boundary and a checkable success or recovery observation. Owner-controlled workflow stages and checks determine execution authority. +## Translate the specification's proof into Plan v1 + +A specification from the Specification Designer may state requested proof artifacts, fast-test completeness, declared test resources, and a review stamp. Plan v1 turns them into work two other roles can do without rereading the specification: + +- **Implementer fast checks:** the deterministic checks that run in seconds (types, lint, static analysis, unit and integration tests) the Implementer must run and pass before sealing the candidate, each tied to the acceptance observation it proves. +- **Building Inspector verification goals:** for each requested proof artifact, the flow the Tester (Building Inspector) exercises on the running candidate, the artifact it captures, and the observation that passes. + +The [scope guide](scope.md) gives the translation rules. When the specification states none of these, derive fast checks from the acceptance criteria and record the missing proof requirements as an open decision. + +## Triage and escalate + +During planning and while supervising the Implementer, follow the [escalation guide](escalation.md): resolve Implementer flags that stay inside the approved specification yourself, and escalate to the Operator only with a typed reason and a short risk summary. + +## Finish + +Write the Plan through the owner's assigned planning interface. The Plan is ready when each requested outcome has an implementation boundary and a checkable success or recovery observation, and each requested proof artifact maps to a fast check, a verification goal, or a remaining manual Operator check. Owner-controlled workflow stages and checks determine execution authority. For a linked Gitea issue, this package declares the owner's transition from `status/ready-for-agent` to `status/in-progress` after it proves that the exact Plan reached the Implementer. Finalize the Plan through the assigned interface, then use owner-reported handoff and issue-claim outcomes when explaining progress to the Operator. An accepted Plan alone does not establish that claim. A user may replace this skill with a Planner fork whose package declares a different target status or disables the claim; follow the selected package's policy recorded for the task. diff --git a/packages/planner-scope/escalation.md b/packages/planner-scope/escalation.md new file mode 100644 index 0000000..bb0c015 --- /dev/null +++ b/packages/planner-scope/escalation.md @@ -0,0 +1,31 @@ +# Escalation guide + +Operator attention is the scarcest resource in the workflow. Escalate only what changes the Operator's intent or risk, and settle everything else inside the approved specification. + +## 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: + +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. + +## Escalate directly + +Escalate with exactly one typed reason and a risk summary of one or two sentences that names the decision the Operator must make and the evidence behind it: + +- `boundary_crossed`: the work needs a sensitive boundary the specification did not approve, such as a public contract or API, a schema migration, authentication or security, CI or release configuration, a user-facing screen, or a new dependency, network egress, secret, or privilege. +- `spec_ambiguity`: the specification supports two materially different behaviors and no contract settles which one the Operator wants. +- `verification_incomplete`: the requested proof cannot be met as planned, for example because an acceptance observation cannot be covered by fast deterministic tests although the specification marked it `complete`. +- `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. + +## Discipline + +- 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. diff --git a/packages/planner-scope/relayview-skill.json b/packages/planner-scope/relayview-skill.json index 4c9c888..7b5a7aa 100644 --- a/packages/planner-scope/relayview-skill.json +++ b/packages/planner-scope/relayview-skill.json @@ -2,7 +2,7 @@ "schemaVersion": 2, "source": { "kind": "first-party", - "reference": "v0.13.0" + "reference": "v0.16.0" }, "role": "planner", "step": "planning", @@ -12,11 +12,15 @@ "files": [ { "path": "SKILL.md", - "sha256": "015651bbb9022025ff71732cb9ff1f6ea087ed143d76fa69091b6273a8fc7db7" + "sha256": "e79d389fecacd119865fa71fe337b46f06f7bbae96b3493b8f35ab850dc84d4f" }, { "path": "scope.md", - "sha256": "abed1a1590273b5f62f1e1f47ba8c92d00693de72c0d5e9b014ed1c911ac0a8e" + "sha256": "b6ca7c2ae67914f78a6329a4aa467797f01d57331e581b2ee98f2a7c5ec6efd4" + }, + { + "path": "escalation.md", + "sha256": "0555e8e86b458480c1c051e3f554b288f37c26113262eb2a5c6475f35733728d" } ] } diff --git a/packages/planner-scope/scope.md b/packages/planner-scope/scope.md index 1acd63c..b2c3103 100644 --- a/packages/planner-scope/scope.md +++ b/packages/planner-scope/scope.md @@ -16,6 +16,17 @@ Focus on: - any assumptions that the implementer must know - explicitly authorized supporting context that influences behavior +## Translate requested proof + +Read the specification's proof decisions as the Operator's bar for review, then plan the cheapest checks that meet it: + +- **Fast-test completeness `complete`:** every acceptance observation gets an Implementer fast check. Name the test file and case, or the seam a new test needs. Verification goals cover only proof artifacts the Operator still requested. +- **Fast-test completeness `requires_runtime_or_human_judgment`:** give each observation that fast tests can prove a fast check, and give each remaining observation a verification goal for the Building Inspector. Say which part needs a running application, a browser, a real service, timing, layout, or human perception. +- **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:` 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. + +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: ```yaml @@ -33,6 +44,17 @@ steps: - ... depends_on: - ... +fast_checks: + - check: ... + proves: ... +verification_goals: + - flow: ... + artifact: ... + passes_when: ... + test_resources: + - ... +manual_operator_checks: + - ... edge_cases: - ... validation: @@ -40,4 +62,3 @@ validation: open_questions: - ... ``` - diff --git a/packages/reviewer-communication/SKILL.md b/packages/reviewer-communication/SKILL.md index 588bb77..cd0fc85 100644 --- a/packages/reviewer-communication/SKILL.md +++ b/packages/reviewer-communication/SKILL.md @@ -3,7 +3,7 @@ name: reviewer-communication description: Communication style for the assigned reviewer; proportional answers, examples, Markdown and natural acknowledgements. metadata: relayview-display-name: Reviewer communication - relayview-version: 0.13.0 + relayview-version: 0.16.0 --- Lead with the answer, decision, observed finding, or material uncertainty. Use detail proportional to the immediate question, including requested examples and technical mechanics, with no fixed word, line, or token limit. Keep inspection effort independent of conversational length. @@ -13,3 +13,5 @@ For user-facing focused Chat messages, use Markdown when it makes the answer eas Keep the acknowledgement brief, relaxed, clear, and professional. Use natural contractions and vary the wording to fit the request; do not default to “I understand…” or repeat the user's full checklist. Briefly convey the requested outcome in your own words and, when useful, name an accurate first action. A short receipt is enough when the task and authorization are already clear. There is no fixed sentence count; three short sentences are fine. Describe only work within your current authorization. Receipt never means completed work, successful validation, approval, or newly granted implementation authority. Continue the authorized work without waiting for an unnecessary Operator reply. 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. diff --git a/packages/reviewer-communication/relayview-skill.json b/packages/reviewer-communication/relayview-skill.json index f8b48d3..dce0a0e 100644 --- a/packages/reviewer-communication/relayview-skill.json +++ b/packages/reviewer-communication/relayview-skill.json @@ -2,7 +2,7 @@ "schemaVersion": 3, "source": { "kind": "first-party", - "reference": "v0.13.0" + "reference": "v0.16.0" }, "role": "reviewer", "step": "review", @@ -10,7 +10,7 @@ "files": [ { "path": "SKILL.md", - "sha256": "cebbfd13a642195d7419462557f9d6f4cf774c893d8002d3198880e9e33ce6ca" + "sha256": "fd28b016e885118495967c015c6f7e900a403251923d38a062616cef52a2eee3" } ] } diff --git a/tests/test_packages.py b/tests/test_packages.py index 8766406..cbcc45b 100644 --- a/tests/test_packages.py +++ b/tests/test_packages.py @@ -111,14 +111,6 @@ class PackageTests(unittest.TestCase): identifiers = set(re.findall(r"\b\w+_\w+\b|\b[a-z]+[A-Z]\w*\b|\b[A-Z][a-z]+[A-Z]\w*\b", text)) self.assertLessEqual(identifiers, {"verification_incomplete", "behavioral_tradeoff", "unique_resource_needed"}) - def test_automatic_review_is_only_extracted_presentation(self): - package = ROOT / "packages/code-review-auto" - check_package(package) - text = (package / "SKILL.md").read_text() - self.assertIn("path-aware, and actionable", text) - self.assertNotIn("Report both axes", text) - self.assertNotIn("subagent", text) - def test_handoff_clarification_method(self): package = ROOT / "packages/implementer-handoff" check_package(package) @@ -223,15 +215,15 @@ class PackageTests(unittest.TestCase): def test_maintained_guidance_covers_distinct_role_steps(self): expected = { - "planner-scope": ("planner", "planning", "scope.md", "Plan"), - "implementer-handoff": ("implementer", "implementation", "handoff.md", "documentation"), + "planner-scope": ("planner", "planning", "scope.md", "Plan", "v0.16.0"), + "implementer-handoff": ("implementer", "implementation", "handoff.md", "documentation", "v0.13.0"), } - for name, (role, step, resource, marker) in expected.items(): + for name, (role, step, resource, marker, release) in expected.items(): with self.subTest(name=name): package = ROOT / "packages" / name manifest = json.loads((package / "relayview-skill.json").read_text()) self.assertEqual((manifest["role"], manifest["step"]), (role, step)) - self.assertEqual(manifest["source"], {"kind": "first-party", "reference": "v0.13.0"}) + self.assertEqual(manifest["source"], {"kind": "first-party", "reference": release}) self.assertIn(resource, [item["path"] for item in manifest["files"]]) self.assertIn(marker, (package / "SKILL.md").read_text() + (package / resource).read_text()) @@ -304,13 +296,15 @@ class PackageTests(unittest.TestCase): def test_rejects_owner_incompatible_frontmatter_values(self): for old, new in ( ("metadata:\n", "disable-model-invocation: yes\nmetadata:\n"), - ("description: Check assigned issue scope, neighboring work, and verification before drafting a Plan.", "description: "), + (r"^description: .+$", "description: "), ): with self.subTest(new=new), tempfile.TemporaryDirectory() as directory: package = Path(directory) / "planner-scope" shutil.copytree(ROOT / "packages/planner-scope", package) skill = package / "SKILL.md" - skill.write_text(skill.read_text().replace(old, new)) + changed = re.sub(old, new, skill.read_text(), count=1, flags=re.M) + self.assertNotEqual(changed, skill.read_text()) + skill.write_text(changed) manifest = package / "relayview-skill.json" data = json.loads(manifest.read_text()) next(item for item in data["files"] if item["path"] == "SKILL.md")["sha256"] = hashlib.sha256(skill.read_bytes()).hexdigest() diff --git a/tests/test_planner_reviewer.py b/tests/test_planner_reviewer.py new file mode 100644 index 0000000..c0997c5 --- /dev/null +++ b/tests/test_planner_reviewer.py @@ -0,0 +1,166 @@ +"""Pin the v0.16.0 Planner and Reviewer guidance: proof translation, typed +Layer C escalation, and Trust Pyramid Guardrail Proposals.""" + +import json +import re +import unittest +from pathlib import Path + +from tools.packages import check_package + +ROOT = Path(__file__).resolve().parents[1] +VERSION = "0.16.0" + +# name: (role, step, schema, sidecar extra, manual, declared files) +PACKAGES = { + "planner-scope": ("planner", "planning", 2, {"issueClaim": {"statusLabel": "status/in-progress"}}, False, + ["SKILL.md", "scope.md", "escalation.md"]), + "planner-communication": ("planner", "planning", 3, {"treatment": "communication_context"}, False, ["SKILL.md"]), + "code-review-auto": ("reviewer", "review", 1, {}, False, ["SKILL.md"]), + "code-review": ("reviewer", "review", 1, {}, True, ["SKILL.md"]), + "reviewer-communication": ("reviewer", "review", 3, {"treatment": "communication_context"}, False, ["SKILL.md"]), +} + +DIRECT_REASONS = ("boundary_crossed", "spec_ambiguity", "verification_incomplete", + "behavioral_tradeoff", "convergence_exceeded") +IMPLEMENTER_FLAGS = ("needs_operator_decision", "scope_exceeded") +REVIEW_PACKAGES = ("code-review-auto", "code-review") + +# The Trust Pyramid rungs, lowest (most deterministic) first. +GUARDRAIL_LADDER = ("architecture or API boundary", "static check or lint rule", + "verification harness", "candidate prose skill") + + +def read(name): + package = ROOT / "packages" / name + manifest = json.loads((package / "relayview-skill.json").read_text()) + skill = (package / "SKILL.md").read_text() + frontmatter, body = skill.split("---\n", 2)[1:] + resources = "".join((package / item["path"]).read_text() for item in manifest["files"] if item["path"] != "SKILL.md") + return manifest, frontmatter, body + resources + + +def guardrail_section(text): + match = re.search(r"^## Propose a guardrail\n.*?(?=^## |\Z)", text, re.M | re.S) + if not match: + raise AssertionError("no '## Propose a guardrail' section") + return match.group(0) + + +class PlannerReviewerReleaseTests(unittest.TestCase): + def test_packages_release_together_and_keep_their_schemas(self): + for name, (role, step, schema, extra, manual, files) in PACKAGES.items(): + with self.subTest(package=name): + check_package(ROOT / "packages" / name) + manifest, frontmatter, _ = read(name) + self.assertEqual(manifest["source"], {"kind": "first-party", "reference": f"v{VERSION}"}) + self.assertEqual((manifest["role"], manifest["step"], manifest["schemaVersion"]), (role, step, schema)) + for key, value in extra.items(): + self.assertEqual(manifest[key], value) + self.assertEqual([item["path"] for item in manifest["files"]], files) + self.assertIn(f"relayview-version: {VERSION}", frontmatter) + self.assertEqual("disable-model-invocation: true" in frontmatter, manual) + + def test_packages_use_specification_designer_terminology(self): + for name in PACKAGES: + with self.subTest(package=name): + self.assertNotRegex(read(name)[2], r"(?i)issue designer") + + +class PlannerScopeTests(unittest.TestCase): + def setUp(self): + self.text = read("planner-scope")[2] + + def test_translates_specification_proof_into_plan_v1(self): + for phrase in ("Specification Designer", "requested proof artifact", "fast-test completeness", + "declared test resource", "Plan v1", "Implementer fast check", + "Building Inspector", "verification goal", "`requires_runtime_or_human_judgment`", + "fast_checks:", "verification_goals:", "test_resources:"): + with self.subTest(phrase=phrase): + self.assertIn(phrase.lower(), self.text.lower()) + + def test_triages_implementer_flags(self): + for flag in IMPLEMENTER_FLAGS: + self.assertIn(f"`{flag}`", self.text) + self.assertIn("strictly inside the approved specification", self.text) + self.assertIn("promote", self.text) + + def test_direct_escalation_discipline(self): + for reason in DIRECT_REASONS: + with self.subTest(reason=reason): + self.assertIn(f"`{reason}`", self.text) + for phrase in ("risk summary", "just to be safe", "never downgrade `operator_review_required`"): + with self.subTest(phrase=phrase): + self.assertIn(phrase, self.text) + + +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] + 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"): + with self.subTest(phrase=phrase): + self.assertIn(phrase, section) + + def test_review_escalation_uses_typed_reasons(self): + for name in REVIEW_PACKAGES: + text = read(name)[2] + for reason in DIRECT_REASONS: + with self.subTest(package=name, reason=reason): + self.assertIn(f"`{reason}`", text) + self.assertIn("never downgrade `operator_review_required`", text) + self.assertIn("just to be safe", text) + + def test_reviewer_prose_stays_out_of_owner_schemas(self): + for name in REVIEW_PACKAGES + ("reviewer-communication", "planner-communication"): + with self.subTest(package=name): + text = read(name)[2] + self.assertNotIn("```", text) + self.assertNotIn("{", text) + + def test_automatic_review_keeps_manual_inspection_out(self): + text = read("code-review-auto")[2] + self.assertIn("path-aware, and actionable", text) + for phrase in ("Report both axes", "subagent"): + self.assertNotIn(phrase, text) + + +class CommunicationTests(unittest.TestCase): + def test_planner_communication_frames_specification_and_escalation(self): + text = read("planner-communication")[2] + for phrase in ("Specification Designer", "typed reason", "risk summary", "proportional", + "acknowledgement", "Markdown"): + with self.subTest(phrase=phrase): + self.assertIn(phrase, text) + + 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", + "proportional", "acknowledgement", "Markdown"): + with self.subTest(phrase=phrase): + self.assertIn(phrase, text) + + +class ReleaseNotesTests(unittest.TestCase): + def test_release_notes_give_before_and_after_for_each_package(self): + notes = (ROOT / "RELEASE-NOTES.md").read_text() + match = re.search(rf"^## v{re.escape(VERSION)}\b.*?(?=^## |\Z)", notes, re.M | re.S) + self.assertIsNotNone(match, "no v0.16.0 section") + section = match.group(0) + for name in PACKAGES: + with self.subTest(package=name): + entry = re.search(rf"^### `{name}`\n.*?(?=^### |\Z)", section, re.M | re.S) + self.assertIsNotNone(entry, f"no entry for {name}") + self.assertRegex(entry.group(0), r"\*\*Before \(\d+\.\d+\.\d+\):\*\*") + self.assertIn("**After:**", entry.group(0)) + self.assertIn("**Fork:**", entry.group(0)) + self.assertIn("(RELEASE-NOTES.md)", (ROOT / "OVERRIDING.md").read_text()) + self.assertIn("(RELEASE-NOTES.md)", (ROOT / "README.md").read_text()) + + +if __name__ == "__main__": + unittest.main() -- 2.54.0 From ae1b6d95aad7ce29c52285fdd911f011b86e81f5 Mon Sep 17 00:00:00 2001 From: Kyle Merritt Date: Wed, 25 Nov 2026 20:41:21 -0500 Subject: [PATCH 2/4] Record v0.15.0 as published The v0.15.0 tag is on origin, so the package matrix, README, and package contract no longer call it not yet tagged or unpublished. v0.16.0 and v0.17.0 remain proposed. Co-Authored-By: Claude Opus 5.5 --- OVERRIDING.md | 22 +++++++++---------- README.md | 2 +- .../instruction-package-contract.md | 17 +++++++------- 3 files changed, 20 insertions(+), 21 deletions(-) diff --git a/OVERRIDING.md b/OVERRIDING.md index d5e9e3f..95abf8e 100644 --- a/OVERRIDING.md +++ b/OVERRIDING.md @@ -69,16 +69,16 @@ and no RelayView bundle contains it. | Package | Role / step | Mode | Schema | Sidecar extra | Version | Release | RelayView maintained default | | --- | --- | --- | --- | --- | --- | --- | --- | -| `specification-designer-default` | `designer` / `design` | automatic | 1 | — | 0.15.0 | `v0.15.0`, not yet tagged | Proposed Designer default | +| `specification-designer-default` | `designer` / `design` | automatic | 1 | — | 0.15.0 | `v0.15.0` | Proposed Designer default | | `issue-designer-default` | `designer` / `design` | automatic | 1 | — | 0.13.0 | `v0.13.0` | Pinned Designer default; replaced by `specification-designer-default` once RelayView pins `v0.15.0` | -| `designer-domain-modeling` | `designer` / `design` | manual | 1 | — | 0.15.0 | `v0.15.0`, not yet tagged | No | -| `designer-grilling` | `designer` / `design` | manual | 1 | — | 0.15.0 | `v0.15.0`, not yet tagged | No | -| `designer-prototype` | `designer` / `design` | manual | 1 | — | 0.15.0 | `v0.15.0`, not yet tagged | No | -| `designer-research` | `designer` / `design` | manual | 1 | — | 0.15.0 | `v0.15.0`, not yet tagged | No | -| `designer-to-spec` | `designer` / `design` | manual | 1 | — | 0.15.0 | `v0.15.0`, not yet tagged | No | -| `designer-to-tickets` | `designer` / `design` | manual | 1 | — | 0.15.0 | `v0.15.0`, not yet tagged | No | -| `designer-triage` | `designer` / `design` | manual | 1 | — | 0.15.0 | `v0.15.0`, not yet tagged | No | -| `designer-wayfinder` | `designer` / `design` | manual | 1 | — | 0.15.0 | `v0.15.0`, not yet tagged | No | +| `designer-domain-modeling` | `designer` / `design` | manual | 1 | — | 0.15.0 | `v0.15.0` | No | +| `designer-grilling` | `designer` / `design` | manual | 1 | — | 0.15.0 | `v0.15.0` | No | +| `designer-prototype` | `designer` / `design` | manual | 1 | — | 0.15.0 | `v0.15.0` | No | +| `designer-research` | `designer` / `design` | manual | 1 | — | 0.15.0 | `v0.15.0` | No | +| `designer-to-spec` | `designer` / `design` | manual | 1 | — | 0.15.0 | `v0.15.0` | No | +| `designer-to-tickets` | `designer` / `design` | manual | 1 | — | 0.15.0 | `v0.15.0` | No | +| `designer-triage` | `designer` / `design` | manual | 1 | — | 0.15.0 | `v0.15.0` | No | +| `designer-wayfinder` | `designer` / `design` | manual | 1 | — | 0.15.0 | `v0.15.0` | No | | `coordinator-dispatch` | `coordinator` / `coordination` | automatic | 1 | — | 0.17.0 | `v0.17.0`, not yet tagged | No; role not yet admitted | | `coordinator-communication` | `coordinator` / `coordination` | automatic | 3 | `communication_context` | 0.17.0 | `v0.17.0`, not yet tagged | No; role not yet admitted | | `planner-investigation` | `planner` / `planning` | automatic | 1 | — | 0.13.0 | `v0.13.0` | Planner automatic, 1st | @@ -110,8 +110,8 @@ and no RelayView bundle contains it. | `reviewer-communication` | `reviewer` / `review` | automatic | 3 | `communication_context` | 0.16.0 | `v0.16.0`, not yet tagged | Reviewer automatic, 3rd | | `c4-diff` | `reviewer` / `review` | manual | 1 | — | 0.13.0 | `v0.13.0` | No | | `code-review` | `reviewer` / `review` | manual | 1 | — | 0.16.0 | `v0.16.0`, not yet tagged | No | -| `tester-inspection` | `tester` / `testing` | automatic | 1 | — | 0.15.0 | `v0.15.0`, not yet tagged | No; pair not yet admitted | -| `tester-communication` | `tester` / `testing` | automatic | 3 | `communication_context` | 0.15.0 | `v0.15.0`, not yet tagged | No; pair not yet admitted | +| `tester-inspection` | `tester` / `testing` | automatic | 1 | — | 0.15.0 | `v0.15.0` | No; pair not yet admitted | +| `tester-communication` | `tester` / `testing` | automatic | 3 | `communication_context` | 0.15.0 | `v0.15.0` | No; pair not yet admitted | `tests/test_overriding.py` fails when this table disagrees with a package's sidecar or frontmatter. diff --git a/README.md b/README.md index 6d5521c..5ebb063 100644 --- a/README.md +++ b/README.md @@ -74,7 +74,7 @@ The automatic `research-auto` Planner package supplies primary-source selection, `specification-designer-default` v0.15.0 replaces `issue-designer-default` as this repository's Specification Designer default; RelayView keeps assigning `issue-designer-default` until it pins v0.15.0. With it, the eight Designer methods move to v0.15.0 with Specification Designer naming. They help the Operator specify requested proof artifacts, fast-test completeness, declared test resources, and a recommended Layer B review stamp; the Operator sets the stamp, and RelayView's owner decides review. `issue-designer-default` remains unchanged at v0.13.0 for retained sessions. -The automatic Tester packages `tester-inspection` and `tester-communication`, versioned 0.15.0 for the not-yet-tagged `v0.15.0` release, teach the Building Inspector method: exercise the exact sealed candidate as a user, capture the requested proof, separate verified runtime observations from remaining manual Operator checks, and escalate with a typed reason. They are the proposed Tester defaults; RelayView admits them only after it adopts the `tester`/`testing` pair. See [Tester packages](OVERRIDING.md#tester-packages). +The automatic Tester packages `tester-inspection` and `tester-communication`, released in `v0.15.0`, teach the Building Inspector method: exercise the exact sealed candidate as a user, capture the requested proof, separate verified runtime observations from remaining manual Operator checks, and escalate with a typed reason. They are the proposed Tester defaults; RelayView admits them only after it adopts the `tester`/`testing` pair. See [Tester packages](OVERRIDING.md#tester-packages). The automatic Technical Coordinator packages target the proposed `v0.17.0` release and are not yet tagged. `coordinator-dispatch` selects compatible diff --git a/docs/authoritative/instruction-package-contract.md b/docs/authoritative/instruction-package-contract.md index 8f7b659..98eac97 100644 --- a/docs/authoritative/instruction-package-contract.md +++ b/docs/authoritative/instruction-package-contract.md @@ -119,17 +119,16 @@ retained sessions. ## RelayView adoption of the Tester and Coordinator pairs RelayView's owner admits only `planner`, `implementer`, `reviewer`, and -`designer` packages. No released package declares `tester` or `coordinator` -yet. `tester-inspection` (schema 1) and `tester-communication` (schema 3) -declare `tester`/`testing` in this repository with source reference `v0.15.0`, -and `coordinator-dispatch` (schema 1) and `coordinator-communication` (schema 3) -declare `coordinator`/`coordination` with source reference `v0.17.0`; neither -tag is published yet. The planned releases below are proposed, not published: +`designer` packages. The published `v0.15.0` release declares +`tester`/`testing` in `tester-inspection` (schema 1) and `tester-communication` +(schema 3). `coordinator-dispatch` (schema 1) and `coordinator-communication` +(schema 3) declare `coordinator`/`coordination` in this repository with source +reference `v0.17.0`, a proposed release that is not yet published: -| Proposed release | New pair | Planned packages | +| Release | New pair | Packages | | --- | --- | --- | -| `v0.15.0` | `tester`/`testing` | `tester-inspection` (schema 1) and `tester-communication` (schema 3) | -| `v0.17.0` | `coordinator`/`coordination` | `coordinator-dispatch` (schema 1) and `coordinator-communication` (schema 3), in source; further Coordinator automatic and manual methods (schema 1) | +| `v0.15.0`, published | `tester`/`testing` | `tester-inspection` (schema 1) and `tester-communication` (schema 3) | +| `v0.17.0`, proposed | `coordinator`/`coordination` | `coordinator-dispatch` (schema 1) and `coordinator-communication` (schema 3), in source; further Coordinator automatic and manual methods (schema 1) | Before RelayView pins a release containing either pair, it must: -- 2.54.0 From 540afcd86067dded1f5aab7075eff384a71699fb Mon Sep 17 00:00:00 2001 From: Kyle Merritt Date: Wed, 25 Nov 2026 20:44:39 -0500 Subject: [PATCH 3/4] 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 --- OVERRIDING.md | 2 +- README.md | 2 +- RELEASE-NOTES.md | 47 +++++++++++-------- packages/code-review-auto/SKILL.md | 4 +- .../code-review-auto/relayview-skill.json | 2 +- packages/code-review/SKILL.md | 4 +- packages/code-review/relayview-skill.json | 2 +- packages/planner-communication/SKILL.md | 2 +- .../relayview-skill.json | 2 +- packages/planner-scope/escalation.md | 6 +-- packages/planner-scope/relayview-skill.json | 4 +- packages/planner-scope/scope.md | 2 + packages/reviewer-communication/SKILL.md | 2 +- .../relayview-skill.json | 2 +- tests/test_planner_reviewer.py | 29 ++++++++---- 15 files changed, 66 insertions(+), 46 deletions(-) diff --git a/OVERRIDING.md b/OVERRIDING.md index 95abf8e..0d70810 100644 --- a/OVERRIDING.md +++ b/OVERRIDING.md @@ -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 diff --git a/README.md b/README.md index 5ebb063..43183c4 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/RELEASE-NOTES.md b/RELEASE-NOTES.md index 28674c5..b91e593 100644 --- a/RELEASE-NOTES.md +++ b/RELEASE-NOTES.md @@ -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. \ No newline at end of file diff --git a/packages/code-review-auto/SKILL.md b/packages/code-review-auto/SKILL.md index 95a9cc4..3914dc9 100644 --- a/packages/code-review-auto/SKILL.md +++ b/packages/code-review-auto/SKILL.md @@ -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 diff --git a/packages/code-review-auto/relayview-skill.json b/packages/code-review-auto/relayview-skill.json index bd5549d..ceba79f 100644 --- a/packages/code-review-auto/relayview-skill.json +++ b/packages/code-review-auto/relayview-skill.json @@ -9,7 +9,7 @@ "files": [ { "path": "SKILL.md", - "sha256": "13758a75e416a304008d41e7ad2ab8b525a0c1cac86f82e8000d6f36e501a57c" + "sha256": "49812be03ce5d5c805904859e54529ec021e565b7783eeffc31f83891ff8c6f5" } ] } diff --git a/packages/code-review/SKILL.md b/packages/code-review/SKILL.md index a8a4c94..b6d1177 100644 --- a/packages/code-review/SKILL.md +++ b/packages/code-review/SKILL.md @@ -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 diff --git a/packages/code-review/relayview-skill.json b/packages/code-review/relayview-skill.json index 5e81560..914901c 100644 --- a/packages/code-review/relayview-skill.json +++ b/packages/code-review/relayview-skill.json @@ -9,7 +9,7 @@ "files": [ { "path": "SKILL.md", - "sha256": "b8644a9e2ad6011aea5da7630f14c6f42afe8e673fc57591a815d2bec3683e14" + "sha256": "081f5a0233ff8255ba88f2f343fb98094b78fcebc776ab46d07c00c704776b9e" } ] } diff --git a/packages/planner-communication/SKILL.md b/packages/planner-communication/SKILL.md index 926300e..2e831c5 100644 --- a/packages/planner-communication/SKILL.md +++ b/packages/planner-communication/SKILL.md @@ -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. diff --git a/packages/planner-communication/relayview-skill.json b/packages/planner-communication/relayview-skill.json index 9b447de..edbe820 100644 --- a/packages/planner-communication/relayview-skill.json +++ b/packages/planner-communication/relayview-skill.json @@ -10,7 +10,7 @@ "files": [ { "path": "SKILL.md", - "sha256": "c78b2ea9b8cf941766583b8bc29f8a00513523eb7db116f7ef23014f62e429c2" + "sha256": "5ba9cf83685330e15afce7c65df8f6a766b0c8e23ea16c07bd4087706309cb37" } ] } diff --git a/packages/planner-scope/escalation.md b/packages/planner-scope/escalation.md index bb0c015..11f0ce2 100644 --- a/packages/planner-scope/escalation.md +++ b/packages/planner-scope/escalation.md @@ -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 diff --git a/packages/planner-scope/relayview-skill.json b/packages/planner-scope/relayview-skill.json index 7b5a7aa..10508e8 100644 --- a/packages/planner-scope/relayview-skill.json +++ b/packages/planner-scope/relayview-skill.json @@ -16,11 +16,11 @@ }, { "path": "scope.md", - "sha256": "b6ca7c2ae67914f78a6329a4aa467797f01d57331e581b2ee98f2a7c5ec6efd4" + "sha256": "4c0848840f670e23657b17da366a7ff504b39e30675644c3026736016294e396" }, { "path": "escalation.md", - "sha256": "0555e8e86b458480c1c051e3f554b288f37c26113262eb2a5c6475f35733728d" + "sha256": "7292969d41cca14bff78d6fd75025b92ac1cbe2b4bff5de4cba74a5f0c5f4cb3" } ] } diff --git a/packages/planner-scope/scope.md b/packages/planner-scope/scope.md index b2c3103..71bbc74 100644 --- a/packages/planner-scope/scope.md +++ b/packages/planner-scope/scope.md @@ -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:` 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: diff --git a/packages/reviewer-communication/SKILL.md b/packages/reviewer-communication/SKILL.md index cd0fc85..0afc16e 100644 --- a/packages/reviewer-communication/SKILL.md +++ b/packages/reviewer-communication/SKILL.md @@ -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. diff --git a/packages/reviewer-communication/relayview-skill.json b/packages/reviewer-communication/relayview-skill.json index dce0a0e..1434ed0 100644 --- a/packages/reviewer-communication/relayview-skill.json +++ b/packages/reviewer-communication/relayview-skill.json @@ -10,7 +10,7 @@ "files": [ { "path": "SKILL.md", - "sha256": "fd28b016e885118495967c015c6f7e900a403251923d38a062616cef52a2eee3" + "sha256": "005b9e68e4a9b37be8006faf75df8830b208f005454ee57b270087b9814f31ad" } ] } diff --git a/tests/test_planner_reviewer.py b/tests/test_planner_reviewer.py index c0997c5..93c9492 100644 --- a/tests/test_planner_reviewer.py +++ b/tests/test_planner_reviewer.py @@ -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) -- 2.54.0 From d8c73c21f95249c0a339cdf6b3e1bb852bf7d64a Mon Sep 17 00:00:00 2001 From: Kyle Merritt Date: Wed, 25 Nov 2026 20:46:24 -0500 Subject: [PATCH 4/4] Address second review: conditional docs, escalation checks, rung 3 wording - OVERRIDING.md describes Implementer flag triage as conditional, no longer implies RelayView assigns the manual code-review, and links the ladder to the layer-4 authoring template's trust pyramid. - README labels the v0.16.0 guardrail behavior as not yet tagged. - Both review packages' rung 3 includes formal checks and no longer ties property tests to the running application; their Escalate sections and planner-scope's escalation guide gain a check that the risk summary names one Operator decision. - planner-scope says what to do when the owner reports nothing about a Tester step; code-review-auto's heading matches its display name. Co-Authored-By: Claude Opus 5.5 --- OVERRIDING.md | 14 ++++++++------ README.md | 2 +- RELEASE-NOTES.md | 2 +- packages/code-review-auto/SKILL.md | 6 +++--- packages/code-review-auto/relayview-skill.json | 2 +- packages/code-review/SKILL.md | 4 ++-- packages/code-review/relayview-skill.json | 2 +- packages/planner-scope/escalation.md | 2 ++ packages/planner-scope/relayview-skill.json | 4 ++-- packages/planner-scope/scope.md | 2 +- tests/test_planner_reviewer.py | 3 ++- 11 files changed, 24 insertions(+), 19 deletions(-) diff --git a/OVERRIDING.md b/OVERRIDING.md index 0d70810..325177f 100644 --- a/OVERRIDING.md +++ b/OVERRIDING.md @@ -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 diff --git a/README.md b/README.md index 43183c4..19e2fb2 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/RELEASE-NOTES.md b/RELEASE-NOTES.md index b91e593..cdd2f5e 100644 --- a/RELEASE-NOTES.md +++ b/RELEASE-NOTES.md @@ -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. \ No newline at end of file +- **Fork:** schema 3 and `communication_context` are unchanged. diff --git a/packages/code-review-auto/SKILL.md b/packages/code-review-auto/SKILL.md index 3914dc9..2921d77 100644 --- a/packages/code-review-auto/SKILL.md +++ b/packages/code-review-auto/SKILL.md @@ -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. diff --git a/packages/code-review-auto/relayview-skill.json b/packages/code-review-auto/relayview-skill.json index ceba79f..e0b2dfd 100644 --- a/packages/code-review-auto/relayview-skill.json +++ b/packages/code-review-auto/relayview-skill.json @@ -9,7 +9,7 @@ "files": [ { "path": "SKILL.md", - "sha256": "49812be03ce5d5c805904859e54529ec021e565b7783eeffc31f83891ff8c6f5" + "sha256": "fb6a234090dd4e45c5995f1ee1562aecfb57b9e9bbfa30a9ec15c30e26160deb" } ] } diff --git a/packages/code-review/SKILL.md b/packages/code-review/SKILL.md index b6d1177..08623eb 100644 --- a/packages/code-review/SKILL.md +++ b/packages/code-review/SKILL.md @@ -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. diff --git a/packages/code-review/relayview-skill.json b/packages/code-review/relayview-skill.json index 914901c..5717023 100644 --- a/packages/code-review/relayview-skill.json +++ b/packages/code-review/relayview-skill.json @@ -9,7 +9,7 @@ "files": [ { "path": "SKILL.md", - "sha256": "081f5a0233ff8255ba88f2f343fb98094b78fcebc776ab46d07c00c704776b9e" + "sha256": "46992be090ef755f533c583412445f9b4b493de4df5f81da641931e494c1df80" } ] } diff --git a/packages/planner-scope/escalation.md b/packages/planner-scope/escalation.md index 11f0ce2..3403dec 100644 --- a/packages/planner-scope/escalation.md +++ b/packages/planner-scope/escalation.md @@ -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. diff --git a/packages/planner-scope/relayview-skill.json b/packages/planner-scope/relayview-skill.json index 10508e8..1aa8e68 100644 --- a/packages/planner-scope/relayview-skill.json +++ b/packages/planner-scope/relayview-skill.json @@ -16,11 +16,11 @@ }, { "path": "scope.md", - "sha256": "4c0848840f670e23657b17da366a7ff504b39e30675644c3026736016294e396" + "sha256": "ba67191d5a442726d5f6e1cba7d5ae889234851650c24e77b1a5dd718b31d69a" }, { "path": "escalation.md", - "sha256": "7292969d41cca14bff78d6fd75025b92ac1cbe2b4bff5de4cba74a5f0c5f4cb3" + "sha256": "2a9ccc1456f9b928b7a8d497e23454c07f4c38dc6b09b88eb8af5bbb0b70dd99" } ] } diff --git a/packages/planner-scope/scope.md b/packages/planner-scope/scope.md index 71bbc74..6a68989 100644 --- a/packages/planner-scope/scope.md +++ b/packages/planner-scope/scope.md @@ -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:` 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. diff --git a/tests/test_planner_reviewer.py b/tests/test_planner_reviewer.py index 93c9492..942935e 100644 --- a/tests/test_planner_reviewer.py +++ b/tests/test_planner_reviewer.py @@ -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: -- 2.54.0