--- name: code-review-auto 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 findings and guardrails relayview-version: 0.16.0 --- # Review finding presentation 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.