This guide is for tech leads reviewing a change proposed by a coding agent or by a human using one. You need the base and head revisions, local or CI logs, and permission to run the repository’s checks. Automation products are optional; this page recommends no vendor.
A summary that says “all tests pass” leaves several questions open: which tests, against which revision, and whether they cover the behavior the caller needs. Review evidence attached to the actual change.
Provefab (retrieved 2026-10-11) lists reproduction, repository checks, test integrity, independent review and evidence on the PR. Contrast only— do not republish their cited third-party statistics as Alden facts, and do not treat their product as endorsed here.
The book develops the full ticket→verified-PR path. The sections below use the same ready-task teaching example, which the project keeps under test.
Hypothetical review moment (labeled)
Situation: An agent opens a pull request whose description says tests passed.
Desire: Merge quickly to clear the backlog.
Conflict: The diff adds .sort( after filtering, which violates the written contract from the acceptance criteria guide.
Change: You run the order-sensitive check on the proposed branch; it fails until sorting is removed.
Result: You request changes with the failing output attached; a human still decides merge after other gates.
Not a reported Alden Ingram production incident— a rehearsal pattern aligned with the teaching fixture.
Reproduce one plausible mistake
Use the two local files from the acceptance criteria guide. They select ready tasks without changing the caller’s order. This is a purpose-built example, not an account of a live pull request.
Replace the function’s return statement with this deliberately wrong alternative:
return tasks
.filter((task) => task.ready)
.sort((first, second) => first.id.localeCompare(second.id));
Run node --experimental-strip-types --test check.mjs. The order assertion must fail: the result starts with A-1, although the contract requires C-3 first. If it instead fails to load the module, fix the setup before interpreting that as evidence about sorting.
From this repository’s root, the same failure appears when you run:
PR_EXAMPLE_VARIANT=plausible node --experimental-strip-types --test examples/pr-evidence/check.mjs
Restore return tasks.filter((task) => task.ready); and run the same command again. It must exit successfully. This before/after comparison supports a narrow conclusion: the check distinguishes these two implementations for this fixture. It does not certify arbitrary generated code.
Inspect how the tests became green
In a real repository, compare the proposed branch with its actual base revision:
git diff --name-status BASE_SHA...HEAD_SHA
git diff BASE_SHA...HEAD_SHA -- src test examples
Replace the uppercase placeholders with the exact revisions being reviewed and the paths with your repository’s locations. Look for skipped tests, deleted assertions, weakened expected results and unrelated changes. In our example, replacing the order assertion with a length check would hide the sorting mistake.
For a bug fix, run its reproduction on the base revision and the proposed revision. A test added on the proposed branch may need to be copied into a separate base checkout before it can run there. Record that setup; do not claim a command worked unchanged when the base lacked its test file.
On this website repository, agent-generated changes are expected to pass deterministic gates (typecheck, lint, tests, architecture checks) before a pull request is treated as merge-ready. Describe only checks that actually ran for the revision under review.
Keep a small evidence bundle
Record the contract and the base/head revisions, the commands and exit codes, the relevant test output, and where a reviewer can inspect the full diff. A result tied to yesterday’s revision is stale after a new source or test change.
For this example, a filled record looks like this:
| Check | Evidence | What it supports |
|---|---|---|
| Wrong sorted variant | Nonzero exit; expected C-3, A-1, actual A-1, C-3 |
The check detects this ordering error |
| Correct filtered variant | Same check exits 0 | The tested contract holds for the fixture |
| Input unchanged | Frozen array and objects; original IDs preserved | No input mutation occurs during this call |
| Repository checks | Your own typecheck, lint and test logs | Only the checks that actually ran |
| Review | Findings linked to the exact head revision | What that reviewer inspected |
Use another model for an independent review when one is available and its identity is known. That review can identify omissions; its agreement is not proof of correctness. Record unavailable review separately instead of inventing a second reviewer.
Practical cases before you merge
| Situation | Minimum evidence | Common failure mode |
|---|---|---|
| New behavior | Failing test on base (or documented inability to run it), passing on head | Test added only on head without proving it failed before |
| Refactor | Same public outputs; no weakened assertions | Deleted tests “because they were flaky” |
| Thin test suite | Honest statement that green tests prove little | Treating a single smoke test as full verification |
| Cross-model review | Reviewer provider/model ≠ implementer when recorded | Skipping review because “CI is green” |
Hypothetical (labeled): A team merges because an agent-generated summary says “LGTM” and no git diff output was attached. The checklist below is meant to prevent that shortcut— not to claim Alden measured merge rates.
Make the acceptance decision explicit
Passing checks are more useful when their limits are stated. If the repository has no meaningful tests, a green test command is weak evidence. If permissions, external services or a human editorial review remain outstanding, leave them as explicit blockers.
The merge decision remains a person’s responsibility in this workflow. Use the AI pull request review checklist to record what is checked and what remains open. The first book is still in preparation.