How to Review a Large AI-Generated Pull Request
Review a large AI-generated pull request as a bounded set of changes, not one monolithic diff. Keep GitHub or GitLab for discussion and CI when that is your collaboration surface. Use native review to inspect intent, contracts, consumers, and coverage, then explicitly attest any accepted degradation. Neither review nor publication executes an agent or LLM or requires a particular provider. See Review the shape, not the diff for a draft-to-shared walkthrough.
Is this a GitHub/GitLab review or an Atomic-native review?
They are related workflows, but they answer different questions.
| Review surface | Primary job | Source of truth |
|---|---|---|
| GitHub pull request or GitLab merge request | Conversation, line comments, approvals, and hosted CI | The hosting platform's branch diff and checks |
| Atomic native review | Anti-slop, conformance, blast radius/risk, complete endpoint evidence, and optional attested insertion evaluation | Recorded changes/view states and signed review decisions |
If Git remains the team's collaboration platform, continue the hosted review and use Atomic as the provenance and verification sidecar. See Git Shim for the supported GitHub/GitLab workflow.
What would actually land?
Start with the candidate set instead of reading every changed file in arbitrary order:
atomic insert preview <FEATURE> --to <TARGET>
This separates changes present only in the feature view from changes already visible in the target and exposes dependency-closure additions. Treat every candidate hash and every added dependency as review scope.
Candidate-set checklist:
- Every candidate belongs in this promotion.
- Dependency additions are expected, not unrelated baggage.
- The target view is the intended integration point.
- The feature view did not move after review began.
Which review scope and format should you use?
Use the format that matches the reviewer or tool:
atomic review --from <FEATURE> --to <TARGET>
atomic review --from <FEATURE> --to <TARGET> --json
atomic review --from <FEATURE> --to <TARGET> --html
# Investigate an individual record separately:
atomic review --change <HASH> --details
| Format | Best use |
|---|---|
Default terminal / change --details | Compact local evidence, or detail for a selected change |
--json | Complete machine-readable evidence, including finding 101 and beyond |
--html | Shareable visual inspection |
From is the draft/source; To is the shared/destination. Measurements compare target-before/source-after. Summary holds report-wide coverage and risk; detail tabs focus on selected source or criteria. Conformance groups source-view intents and criteria, including unlinked intents. Assignment and author declarations are not independent acceptance. Unsupported/unavailable checks remain explicit; review does not run tests or prove correctness. Inspect the actual changes.
How should you inspect each AI-generated change?
For every candidate hash, start with the combined change summary and then inspect token-level detail:
atomic change <HASH>
atomic diff -c <HASH> --word-diff
Review in risk order rather than file order:
| Priority | Look for |
|---|---|
| 1. Security and data boundaries | Authorization, validation, secret handling, destructive operations |
| 2. Public behavior | API contracts, schemas, migrations, compatibility |
| 3. Failure paths | Error propagation, retries, timeouts, cleanup, partial writes |
| 4. Concurrency and state | Races, ordering, idempotency, shared mutable state |
| 5. Verification | Regression tests, negative cases, realistic fixtures |
| 6. Maintainability | Duplication, generated noise, unnecessary abstractions |
Large AI changes often look internally consistent when the same model is reported across all layers. Independently verify assumptions at module boundaries instead of accepting consistency as correctness.
How do you verify why the change exists?
Read the embedded provenance displayed as === Attestation === and the === Change Ledger === in atomic change <HASH> rather than guessing from its message or author label. Use the dedicated projection when review policy requires it:
atomic provenance trace <HASH>
List attestations covering the feature view, then inspect the relevant attestation by its own hash:
atomic agent attest --view <FEATURE>
atomic agent attest --hash <ATTESTATION_HASH> --verbose
Provenance can show the goal, exploration, edits, and verification associated with a change. A session attestation summarizes agent activity; neither artifact replaces code inspection or an independent review decision. See How to See Why an AI Agent Changed Your Code and AI Agent Session Audit Trails.
How do you check intent and evidence?
For each linked work intent, ask whether the acceptance criteria are specific, current, and supported by evidence. Validate and verify the signed record:
atomic intent validate <INTENT>
atomic intent verify <INTENT> --identity <IDENTITY>
Check that:
- The intent explains why the change is needed.
- Acceptance criteria describe observable outcomes.
- Tests cover failure and boundary cases, not only the happy path.
- Modified paths are in scope.
- Evidence applies to the exact candidate state under review.
- The reviewer is independent of the work author where policy requires it.
For the full intent and review model, see Atomic Vault.
When is the review ready to sign?
Inspect every candidate and rerun required checks. Obtain the same native report with an evaluation template, keeping exports outside the working copy:
atomic review publish --from <FEATURE> --to <TARGET> --dry-run --json \
> /path/outside/repository/review-plan.json
# Evaluate report/issues and fill evaluation_template before signing:
atomic review publish --from <FEATURE> --to <TARGET> \
--evaluation /path/outside/repository/review-plan.json --identity <IDENTITY> \
--yes --json > /path/outside/repository/attested-review.json
Every pass requires evaluated: true, a rationale, and ready,
accepted_degradation, or not_ready. Accepted degradation requires every exact
issue ID and a nonempty rationale; --yes only confirms a supplied evaluation.
Findings, unmet/unknown criteria, elevated risk, and coverage gaps stay linked to
the complete signed report. Evidence readiness remains not_ready when issues
exist, even if the signer knowingly permits insertion. A not_ready disposition
records rejection and blocks insertion. Integrity/provenance failures cannot be
waived as code debt.
Publication uses an existing trusted local identity, not a new agent or credential. It retains the attestation in the vault database without dirtying the working copy. If either endpoint or intent context changes, regenerate and evaluate again; supersede a current decision explicitly rather than overwriting it. See publication options and the audit guide for trust limitations.
How do you promote the reviewed changes?
Preview the integration, insert the view, and immediately check repository state:
atomic insert preview <FEATURE> --to <TARGET>
atomic view switch <TARGET>
atomic insert view <FEATURE> --to <TARGET>
atomic conflicts --short
atomic status --short
Run post-insert checks with the target current. Matching insertion revalidates the
applicable native decision, surfaces accepted degradation, and retains its hash in
operation evidence; original provenance and working-copy rules still apply.
Do not insert merely because a hosted PR has approval or a local check has no
finding. See atomic insert and
Merging and Conflicts.
Final review checklist
- Candidate set and dependency closure are understood.
- Every change was inspected with hunk and word-level views.
- High-risk boundaries and failure paths were reviewed first.
- Provenance was traced without treating it as proof of correctness.
- Intent, evidence, and signatures are current.
- Hosted CI and required local checks passed.
- All three native passes were evaluated at the final source/target state; every accepted issue has a signed rationale without hiding unready evidence.
- Insert preview matched the reviewed candidate set.
- Post-insert status and conflicts are clean.