A pull request can pass its tests and still violate a decision the team made after an outage. An agent adds a retry around a payment operation, the tests turn green, and the reviewer has to remember whether the operation is safe to repeat. The difficult part of review is often the reasoning that sits between a diff and a production consequence.
We can make that reasoning visible by asking for a doctrine review alongside the ordinary test results. A doctrine is a written engineering rule with enough context to apply it. It gives the reviewer a place to point when the issue is a design choice rather than a formatting violation. The human still decides whether the evidence is sufficient to merge.
Trace the retry
Suppose a coding agent opens a pull request that retries a request to a payment provider after a timeout. The team's rule says that side effects must have a clear owner and that retries need a defined boundary and a safe way to handle an uncertain outcome. The diff adds a loop in a request handler, but the pull request description only says that it improves reliability.
We start by reading the task and the changed files. Then we ask the reviewing agent to read the repository's checklist, the applicable doctrine and rejects, and the surrounding code before judging the change. The request can be direct: "Review this diff against our retry and side-effect rules. For each concern, cite the rule, the changed code, and the failure path. Do not edit the pull request."
A useful review might point out that a timeout does not establish whether the provider performed the operation. It should identify where the code repeats the request and ask what prevents a second charge. That finding needs verification against the provider's actual API contract and the existing implementation. If the request uses a valid idempotency key with appropriate scope, the concern may already be addressed. If it does not, a green unit test alone does not settle the question.
We can then request a specific change: move the retry decision to the component that owns the operation, use the provider's documented mechanism where applicable, and add a test for the uncertain response. The final design depends on the real system. The point of the example is the review trail: rule, code, possible consequence, and evidence that resolves it.
Give the reviewer enough context
A rule that says "write reliable code" is too broad to review. A rule that names the risky action, explains why it matters, and describes acceptable evidence can guide a concrete discussion. Keep the rule near the repository and give the agent explicit instructions to read it. Include the relevant files in the review context; an agent cannot reliably assess a module it never examined.
AI Lint provides a checklist, architecture and language doctrine, and
named rejected patterns that teams can put in .ai-lint/.
Its paid packs include wiring prompts for tools such as Claude Code,
Cursor, and Copilot. A team can add its own doctrine to the material. We
would put the payment rule in the team's own words, linked to the
incident or design decision that made it necessary, and make sure its
owner keeps it current.
The review prompt should ask for evidence rather than a pass/fail verdict alone. A reviewer who reports "passes doctrine" without identifying what was checked leaves us with little to inspect. Ask for the rule and the path through the code when there is a concern; ask the author to explain a deliberate exception. AI Lint includes an override protocol that records the reason, risk, and mitigation when a rule needs to be broken with human approval.
Keep mechanical checks doing their job
We still run the compiler, tests, dependency checks, and security tools appropriate to the repository. AI Lint is doctrine read by an agent, not a static analyzer or a guarantee that the agent will catch every issue. Review the agent's citations: it can misunderstand a rule, miss a call site, or assert that a failure is possible without tracing it.
For one individual, including company use, the Personal App Pack is $49 and the Personal Bundle is $79. For unlimited internal users in one legal entity, the Company App Pack is $299 and the Company Bundle is $499. Each is a one-time purchase. The free edition is for personal and evaluation use by individuals only, not company use. Pick the pack that covers the languages under review, then adapt the written rules to the decisions your team actually needs to make.