# AI pull request review checklist

Use this alongside the [verification guide](https://aldeningram.com/guides/verify-ai-generated-pull-request/). It is original checklist wording for a bounded change, not a certification or a substitute for domain-specific review.

## Before accepting the change

| # | Check | How you verify | Evidence location |
| --- | --- | --- | --- |
| 1 | Done condition is falsifiable | Name a command or test that fails before the change and passes after | Ticket / plan acceptance criteria |
| 2 | Reproduction (bugs) | Run the stated failing command on base; confirm it fails; repeat on head | PR description or comment with base/head SHAs |
| 3 | Repository checks | Run the same typecheck, lint and test commands CI uses | CI run URL or dated local log excerpt |
| 4 | Tests not weakened | Diff test files for deletes, `.skip`, commented assertions or looser matchers | PR diff on `test/` (or your repo’s test paths) |
| 5 | Scope and risks | Scan for dependency, auth, data-handling and user-visible changes outside the ticket | Full diff; note findings inline |
| 6 | Cross-model review | When a second model exists, record its provider/model and the reviewed head SHA | Review comment or QA artifact |
| 7 | Freshness | After new commits, re-run checks and update evidence | Head SHA matching the latest log |
| 8 | Human decision | A person records accept, request changes or block | Merge button actor / review state |

If step 6 is unavailable, write “cross-model review not recorded” instead of inventing a reviewer.

## Filled teaching example (ready-task fixture)

The companion guides use a ready-task selection example that the project keeps under test. Input order is `C-3, B-2, A-1`; only `C-3` and `A-1` are ready. Sorting those two tasks is outside the contract.

| Item | Filled record |
| --- | --- |
| Contract | Select ready tasks, preserve input order, leave input unchanged; empty input gives an empty selection |
| Negative check | `PR_EXAMPLE_VARIANT=plausible node --experimental-strip-types --test examples/pr-evidence/check.mjs` exits nonzero; order assertion shows `A-1` before `C-3` |
| Correction | Filter without sorting; default `check.mjs` exits 0 |
| Boundary | No sorting, deduplication, persistence, endpoint or UI |
| Review status | Executable checks exist in this repo; a live PR still needs its own revision-specific review |
| Limits | No production incident, reader outcome or performance gain is claimed |

## Hypothetical filled row (labeled, not Alden evidence)

| Item | Filled record |
| --- | --- |
| Ticket | “Expose ready tasks for the sprint board API.” |
| Agent mistake | Adds alphabetical sort on IDs |
| Reviewer action | Pastes failing test output; requests removal of `.sort(` |
| Outcome | Changes requested before merge |

Illustrates how rows 1–4 apply; not a testimonial from a named team.

## Copy into a pull request

```text
Contract:
Base revision:
Head revision:
Reproduction and setup:
Commands and exit codes:
Relevant output:
Test changes inspected:
Reviewer and reviewed revision:
Open findings / unavailable checks:
Acceptance decision:
```

Do not paste credentials, private user data or complete production logs into the evidence bundle. The [acceptance criteria guide](https://aldeningram.com/guides/acceptance-criteria-ai-coding/) explains how to create a checkable contract before the agent starts.

## Sources

- Git diff documentation: https://git-scm.com/docs/git-diff
- Node.js test runner documentation: https://nodejs.org/api/test.html
