Skip to content

LLM-Specific Review Guide

Purpose

Describe the additional concerns to consider when large language models (LLMs) assist with implementation, tests, documentation, or review. This note supports the LLM-specific risks component of the Engineering Review Framework.

These concerns can also appear in human-written work. Keep them visible when reviewing AI-assisted changes, alongside the same product requirements and engineering standards used elsewhere.

Why a separate guide is useful

Generated code and explanations need verification. GitHub’s documentation identifies inaccurate or insecure suggestions, missed issues, and false positives among the limitations of its agentic features.[1]

This guide collects the concerns that deserve deliberate attention in AI-assisted work. It does not assume that every tool behaves the same way or claim how often any failure mode occurs.

Main review concerns

ConcernWhat belongs here
Invented or incompatible referencesAPIs, packages, methods, configuration options, or documented behavior that have not been confirmed against the actual dependency and version.
Unsupported assumptionsBusiness rules, repository behavior, environment capabilities, or compatibility expectations inferred without sufficient context.
Unnecessary complexitySpeculative features, premature abstractions, unnecessary dependencies, and structure that exceeds the current requirements.
Duplicated functionalityNew implementations of capabilities already provided by the repository, standard library, or platform.
Scope expansion and inconsistencyUnrelated edits, broad refactoring, changed conventions, or new configuration outside the intended change.
Weak or misleading testsExpectations derived only from the generated implementation, excessive mocking, missing failure cases, and tests weakened or skipped to obtain a passing result.
Regressions in safeguardsRemoved validation, weakened authorization, swallowed errors, unsafe defaults, and loss of compatibility or data protection.
Unsupported execution claimsStatements about tests, benchmarks, deployment, or compatibility without corresponding results from the relevant code and environment.
Incorrect review findingsInvented defects, misunderstood contracts, speculative failure scenarios, and suggested fixes that introduce new problems.

The Software Engineering Principles note provides the shared guidance on simplicity, scope, and abstraction. Apply that guidance to generated changes without creating a separate design standard for them.

Establishing the basis for a claim

Use the repository, relevant dependency versions, authoritative documentation, and actual execution results to resolve uncertain claims. Distinguish observed behavior, reasoning based on the code, and untested assumptions.

Review expected behavior independently of how the implementation was produced. A generated test should express an intended contract or requirement. Generated code, tests, and explanations can all agree and still be wrong if they share an unconfirmed assumption.

For reported execution, retain enough context to understand what ran and which revision it covered. Work that was proposed, skipped, or blocked remains distinguishable from completed checks.

Untrusted instructions and agent access

Prompt injection is an attempt to redirect an agent through content it reads. OWASP includes repository comments, documentation, and change descriptions among possible sources of such instructions.[2]

Keep review material separate from authorized instructions. Enforce permissions outside the model, limit access to secrets and external services, and require appropriate authorization for consequential actions.[2] The companion tools guide describes the framework’s approach to agent access.

Responding to findings

Confirm the relevant behavior before accepting an automated comment or applying a suggested fix. GitHub explicitly recommends reviewing agent feedback and testing suggested code.[1]

Keep corrections focused on the confirmed issue. Revisit affected tests and requirements after the correction. A reviewer can state what remains uncertain without claiming a defect exists or asking for an unrelated redesign.

Scope boundary

This note concerns AI used in the engineering process. A product that itself uses an LLM may need additional product requirements, security analysis, and behavior evaluation. Include those in the relevant product and technical guidance when applicable.

References

External references checked on 2026-04-20. The concern list and application guidance above are recommendations for this framework, not measured claims about all models.

[1] GitHub Docs, Application card: GitHub Copilot Agents, especially the limitations and responsible-use guidance.

[2] OWASP, LLM Prompt Injection Prevention Cheat Sheet.

  • Project Understanding – why maintainers need to understand accepted changes even when an agent can generate and explain them.

Engineering Review Framework · Review Reference Lists · Software Engineering Principles · Testing, CI, and PR Review Guide · Review Agents, Skills, and Tools