docs(agents): hold a review to the PR's invariant and stop at a third round
Summary
#4724 started as a 186-line fix for one invariant (#4518: a remote response never chooses a local write destination). Review rounds then asked for adjacent hardening in the same code, and the author added each item. The PR reached about 690 production lines over more than ten rounds before the maintainer cut it back. The existing guidance did not stop this: it sent only an unrelated finding to an issue, and its size threshold triggered late.
This changes the invariant that review holds a PR to:
- Blocking: a finding blocks only if the change breaks the PR's invariant or regresses behavior. Every other finding goes to an issue, adjacent code included.
- Stop rule: a third review round that adds requirements now triggers the same step as the size thresholds: an independent reviewer assesses a smaller design, and the maintainer re-scopes.
- PR body: the Summary states the invariant.
To stay inside the 40,000-byte agent-docs budget, it removes three lines: the narrower "unrelated finding" rule that the new rule replaces, "For moves, weigh gross churn. Explain justified growth." (the move exemption and the size threshold cover it), and the git diff --stat measuring hint. Two files changed.
Validation
- Tested SHA:
d0aa8f66dc. scripts/__tests__/agent-guidance-contract.test.ts: 5 passed.docs/agentsis 39,999 bytes.- Docs-only agent guidance. Runtime tests do not apply. I did not run
check:affected. - This is a prose change to review rules. Another model provider did not review the wording.
![Autofix with [code]smith](https://pr-comments-assets.blacksmith.sh/codesmith/autofix-with-codesmith-dark-3x.png)
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.