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 <noreply@anthropic.com>
This commit is contained in:
1 parent
7d3b057510
commit
7c89205e06
17 files changed
+450
-45
No files matched your search
@@ -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.
|
||||
@@ -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"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -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.
|
||||
@@ -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"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -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.
|
||||
@@ -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"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -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.
|
||||
@@ -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.
|
||||
@@ -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"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -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:<model>` or `gpu-worker`. When the specification marks `unique_resource_needed`, keep the Operator's manual steps as a remaining manual Operator check instead of planning a mock in its place.
|
||||
|
||||
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:
|
||||
- ...
|
||||
```
|
||||
|
||||
@@ -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.
|
||||
@@ -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"
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in new issue
Block a user