diff --git a/AGENTS.md b/AGENTS.md index ba4c2533..f9b77056 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -28,5 +28,21 @@ Report consequential bugs introduced, exposed or worsened by this PR, with a con and a precise changed-line location. Inspect callers and existing protections; avoid speculative/style findings. Check the PR walkthrough against the code and flag consequential misinformation. Do not demand unrelated historical fixes or recommend enterprise-only dependencies. -Keep explanations separate from actionable defects. After three unresolved rounds, summarize for a human. +After three unresolved rounds, summarize for a human. Review does not authorize automatic repair, merge or deployment. + +Provide a separate, concise PR-level review summary, including on a clean review when the +review interface supports posting a summary. Assess the current head against its base. + +1. **Functional changes.** Name affected product modules and describe what a user or operator + can do, what behavior changed, or what outcome improved. Explain before and after in product + terms. Use implementation details only as evidence. +2. **Necessity and scope.** Judge whether each material change solves a demonstrated problem + in the current system. Identify excess abstraction, refactoring, or scope. Explain the evidence + and describe a smaller adequate change when one exists. +3. **Cross-module impact.** Trace the affected workflows and consumers across module + boundaries. State confirmed effects, plausible regression risks, and unverified boundaries + separately. Name the relevant check or state when the inspected dependencies support a + conclusion that no downstream change is expected. + +Keep actionable findings separate and use inline comments only for qualifying defects. diff --git a/REVIEW.md b/REVIEW.md index 7f4e8fb6..1f2eefd7 100644 --- a/REVIEW.md +++ b/REVIEW.md @@ -88,9 +88,20 @@ Do not put production inventories, credentials, customer data or private hostnam The reviewer checks whether the explanation matches the diff. Report consequential contradictions as findings; do not turn optional teaching material into style blockers. -When supported, provide a separate short explanation: goal, flow, boundaries and what to read next. -If the native reviewer posts only findings or a clean reaction, use the PR body and the -`PR review context / context` Actions job summary as the visible walkthrough. +When the review interface supports a PR-level summary, use the three headings from the +Code Review Rules in `AGENTS.md`, including when there are no actionable findings. + +- Under **Functional changes**, lead with the observable before/after behavior by feature. + For documentation or tooling changes, describe the contributor or operator workflow affected. +- Under **Necessity and scope**, distinguish the work needed for the stated goal from optional + improvements and excess scope. Tie the judgment to current behavior and existing mechanisms. +- Under **Cross-module impact**, follow affected callers, shared data, permissions, APIs, and + clients as applicable. Say what changed downstream, what evidence supports the assessment, + and which checks remain open. + +Reserve inline findings for actionable defects. If the native reviewer only posts findings +or a clean reaction, use the PR body and the `PR review context / context` Actions job summary +for the author's walkthrough. ## 5. Findings and convergence