Files
relayview-skills/packages/code-review-auto/SKILL.md
T
adminandClaude Opus 5.5 d8c73c21f9
Check instruction packages / check (push) Successful in 4s
Check instruction packages / check (pull_request) Successful in 5s
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 <noreply@anthropic.com>
2026-11-25 20:46:24 -05:00

3.6 KiB

name, description, metadata
name description metadata
code-review-auto Present findings for the owner-assigned review candidate, propose the lowest viable guardrail for a repeatable defect class, and escalate with a typed reason.
relayview-display-name relayview-version
Review findings and guardrails 0.16.0

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.

Propose a guardrail

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, 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.

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. 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.