AI Usage & Verification in Code Review
Pre-Submission Verification
Summary
An author independently verifies the correctness, security, tests, and dependencies of AI-generated code before submitting it for review.
Standards
std-ai-pre-submission-verification-01Authors MUST independently verify the correctness and intended behaviour of AI-generated or AI-modified code before submitting it for review.std-ai-pre-submission-verification-02Authors SHOULD confirm that applicable automated tests, linting, and static analysis pass before submission.std-ai-pre-submission-verification-03Authors SHOULD confirm that test coverage adequately reflects the change before submission.std-ai-pre-submission-verification-04Authors MUST check AI-generated code for hallucinated or non-existent dependencies, packages, and APIs before submission.std-ai-pre-submission-verification-05Authors MUST screen AI-generated code for security weaknesses.
Related Standards
Implements These Principles
AI Disclosure
Summary
Material AI involvement in a submission is disclosed clearly enough for a reviewer to identify which parts.
Standards
std-ai-ai-disclosure-01Authors MUST disclose when a submission contains material AI-generated or AI-modified content by completing the AI disclosure section of the standard pull or merge request template.std-ai-ai-disclosure-02Where AI assistance is not applied uniformly across a change, disclosure MUST be specific enough for a reviewer to identify which parts of the change were AI-assisted.
Implements These Principles
Reviewer Scrutiny
Summary
A reviewer gives an AI-disclosed submission at least the same scrutiny as human-authored code.
Standards
std-ai-reviewer-scrutiny-01Reviewers MUST apply scrutiny to AI-disclosed submissions at least equivalent to that applied to human-authored code.std-ai-reviewer-scrutiny-02Reviewers MUST NOT approve a submission solely because the author disclosed AI involvement or the AI-generated code appears plausible.std-ai-reviewer-scrutiny-03Reviewers SHOULD pay particular attention to defects characteristic of generative AI output, including hallucinated APIs, subtle logic errors, and insecure default patterns.
Related Standards
Implements These Principles
AI-Assisted Review
Summary
A reviewer may use an approved AI tool to assist review while retaining independent judgement.
Standards
std-ai-ai-assisted-review-01Reviewers MAY use AI tools to assist review activity, such as summarising changes, surfacing potential defects, or checking adherence to coding standards.std-ai-ai-assisted-review-02AI tools used by reviewers MUST be limited to approved tooling.std-ai-ai-assisted-review-03Reviewers MUST NOT rely on AI-generated review output as a substitute for the reviewer's own understanding of the change.
Related Standards
Implements These Principles
Approval Accountability
Summary
A qualified human reviewer approves each change and remains accountable for the decision.
Standards
std-ai-approval-accountability-01An AI tool MUST NOT be recorded, configured, or represented as an approver of a code change.std-ai-approval-accountability-02At least one qualified human reviewer MUST review and approve the change, regardless of any AI assistance used by the author or reviewer.std-ai-approval-accountability-03Accountability for the approval decision MUST remain with the human reviewers of record.