docs/agents/agents-review-guide.md
This document is a repeatable review guide for changes to AGENTS.md and related agent runbooks.
Normative requirements (MUST/SHOULD/MAY/MUST NOT) remain in root AGENTS.md.
Run this guide before merging changes to:
AGENTS.mddocs/agents/AGENTS.md: policy and contract (normative behavior).docs/agents/: supporting runbooks, indexes, and review checklists (for example architecture index and testing flow).Review gate:
AGENTS.md first.AGENTS.md.AGENTS.md remains concise: policy-focused, not overloaded with step-by-step runbook detail.AGENTS.md to docs/agents/* instead of copied inline.Validate these first because they caused prior drift/regressions:
Issue Number: line with close #<id> or ref #<id>.docs/agents/notes-guide.md and planner notes.AGENTS.md matches testing runbook guidance under docs/agents/ (no contradiction).Task -> Validation Matrix still defines minimal required test surfaces by change scope.Testing Policy remains policy-level and points to command playbooks under docs/agents/..github/pull_request_template.md.AGENTS.md and docs under docs/agents/ remain valid.make <target> mention in docs is verified against Makefile.Use from repository root.
# Check critical policy anchors in AGENTS.md
grep -n "Issue Number:" AGENTS.md
grep -n "Task -> Validation Matrix\|Testing Policy\|make bazel_prepare" AGENTS.md
# Ensure normative keywords are not wrapped in backticks in policy docs.
rg -n -P '\x60(MUST(?: NOT)?|SHOULD|MAY)\x60' AGENTS.md docs/agents/agents-review-guide.md
# Check cross-doc source-of-truth boundaries in docs/agents/
grep -R -n 'root `AGENTS.md`' --include="*.md" docs/agents
# Ensure deleted/renamed paths in this change are not referenced in Markdown docs.
# Replace <base_ref> with the PR base branch if needed.
git diff --name-status <base_ref>...HEAD | \
awk '$1=="D"{print $2} $1 ~ /^R[0-9]*/{print $2}' | \
while read -r old_path; do
[ -n "${old_path}" ] && rg -n --fixed-strings "${old_path}" --glob '*.md' . || true
done
A review is complete only when all are true:
AGENTS.md and the changed docs under docs/agents/.AGENTS.md preserves policy-level clarity and does not re-accumulate large runbook detail.Use this summary format in review comments: