Source-derived protocol · AI Engineer
Write the PR to Pass Critical Review
When you want to improve PR quality, write the PR record so it explains what is happening behind the scenes rather than a line-by-line explanation of the diffs, and include the why behind changes, the code, and the checks that were run with attributions and relationships between them. Add exact preview links for the URLs, command attribution, and qualification of earlier work, so the record passes a very critical review.
6 actions
AI Engineer's principle
A pull request should be a connected packet of information — the why, the code, and the checks with attributions and relationships between them — rather than a line-by-line explanation of the diffs, which is what most AI PRs read like because that is what the agents build the PRs off of.
What you will do
6 total
When you want to improve PR quality, produce a PR record that explains the why, the code, and the checks behind the changes so it is accepted by a very critical review.
From this source
When you want to improve PR quality, explain what's happening behind the scenes on the PR rather than giving a line-by-line explanation of the diffs.
Setup · onceDone when: The PR description explains what is happening behind the scenes on the PR and does not read as a line-by-line explanation of the diffs.
When you want to improve PR quality, include the why behind changes, the code, and the checks that were run — with attributions and relationships between them — in the PR.
Setup · onceDone when: The PR includes the why behind changes, the code, and the checks that were run, each with attributions and the relationships between them.
When you want to improve PR quality, include exact preview links for the URLs in the PR record.
Setup · onceDone when: The PR record contains exact preview links for the URLs.
When you want to improve PR quality, have the PR record include command attribution.
Setup · onceDone when: The PR record includes command attribution.
When you want to improve PR quality, make sure earlier work is qualified in the PR record.
Setup · onceDone when: Earlier work is qualified in the PR record.
When you want to improve PR quality, explain all of the PR details in the PR record so it is accepted by a very critical review.
Setup · onceDone when: The PR record explains all of the PR details in detail and is ready to be accepted by a very critical review.
Why it works
What AI Engineer says this builds. Their framing, not ours — every line links to where they said it.
An agent writing a PR from its own session log becomes increasingly inaccurate as its context window compresses
Stephen Chin explains that when an AI agent writes a PR from its own session log, it compresses its context window as it churns, making the PR increasingly inaccurate; it reads its session log using its inflated context window to figure out what it should have done.
View in the full analysis →A PR can claim tests passed and all checks ran when that is not what the code did
Stephen Chin describes how a PR can claim tests passing and all the checks were run when that is not actually what the code did.
View in the full analysis →The graph-plus-evidence approach applies to any project with data, relationships, or evidence
Stephen Chin and Cassandra Chin endorse applying the graph-plus-evidence approach to pretty much any project where you have data, relationships, evidence, or things you are trying to compare.
View in the full analysis →
Source-derived protocol
Based on “Your PR Says the Tests Passed. Prove It. - Stephen Chin & Cassandra Chin” by AI Engineer.
- Source fidelity verifiedPassed · Nov 18, 2026
- Checked that it can be followedPassed
- Editorially reviewedNot yet
- Supported by independent sourcesNot evaluated
Source fidelity means each creator-worded element was checked against the exact statements it cites. It says nothing about whether the approach works.