Research Note

AI Generated Code Acceptance Framework

AI-generated code earns acceptance through repository evidence. The generator does not lower the standard for intent, correctness, security, maintainability, operations,

Aug 4, 20262 min readBy Dalton Anderson
In this article

AI Generated Code Acceptance Framework

Acceptance principle

AI-generated code earns acceptance through repository evidence. The generator does not lower the standard for intent, correctness, security, maintainability, operations, or ownership.

The review needs extra attention to plausible but invented interfaces, unrequested scope, silent dependency additions, weakened tests, unsafe defaults, permission expansion, data leakage, and comments that describe behavior the code does not implement.

Review chain

GateReviewer questionEvidence
IntentDoes the diff solve the requested problem?Requirement mapped to changed files
ScopeDid anything unrelated change?Whole diff and repository status
InterfacesAre calls, schemas, and contracts real?Definitions, docs, type checks, consumers
BehaviorDo success and failure paths work?Focused tests and manual reproduction
SecurityDid trust, input, auth, secrets, or dependencies change?Threat-aware review and scanners
OperationsCan it be observed, deployed, and recovered?Logs, migration, rollback, runbook
OwnershipCan a maintainer explain and support it?Named approver and review record

Test boundary

Passing tests are necessary evidence, not sufficient evidence. Tests can be incomplete, changed incorrectly, or optimized around by the generator.

The reviewer should inspect test changes separately, run the previously passing suite, add missing failure cases, and compare generated behavior with the actual requirement.

Security boundary

NIST SSDF supports integrating security practices into the software lifecycle. OWASP supports manual security review alongside automated tools. SLSA adds source and build provenance when artifacts are distributed.

No general checklist substitutes for domain expertise, threat modeling, privacy review, or production validation when the consequences are material.

Decision record

Accept only the subset the reviewer understands and can support. Reject unexplained changes. Split mixed diffs. Preserve the requirement, diff, commands, test results, security findings, reviewer, and rollback path.

Sources

Follow the evidence.

  1. daltonanderson.net: how i built a go app in 4 hours with cursor aidaltonanderson.net
  2. owasp.org: www project top 10 for large language model applicationsowasp.org
  3. go.dev: getting startedgo.dev
  4. csrc.nist.gov: finalcsrc.nist.gov
  5. cursor.com: auto reviewcursor.com
  6. daltonanderson.ghost.io: how i built a go app in 4 hours with cursor aidaltonanderson.ghost.io
  7. cursor.com: 1 7cursor.com
  8. Spotify episodeopen.spotify.com
  9. cursor.com: teamscursor.com
  10. youtu.be: n4 J1tDwreMyoutu.be
  11. owasp.org: www project code review guideowasp.org
  12. cursor.com: privacycursor.com
  13. cursor.com: securitycursor.com
  14. slsa.dev: v1.2slsa.dev
  15. git-scm.com: v2git-scm.com
  16. cursor.com: agent best practicescursor.com
  17. cursor.com: data usecursor.com

From this episode

Two useful next steps.

Guide · 1 min

How to Write Project Rules for an AI Coding Agent

Write concise, scoped, versioned rules for AI coding agents, then move behavior, formatting, access, and release requirements into stronger enforceable controls.

Guide · 1 min

How to Review AI-Generated Code Before Accepting It

A rigorous review method for AI-generated code covering intent, scope, interfaces, tests, security, dependencies, operations, provenance, ownership, and rollback.

Return to the episode
AI Generated Code Acceptance Framework