Sub topic 7
The author owns the change
This chapter assumes you know the pull request workflow, have done code review on a team, and have used an AI coding assistant. It covers the accountability rule at the center of an AI-assisted code policy: the human who opens a change is responsible for it, whatever tool wrote the code.
The rule
An AI tool cannot be held responsible for anything. It cannot be paged at 2 a.m., answer a reviewer's question, or fix a bug it introduced. So the policy puts responsibility on the person who submits the change. The policy can state it in one sentence:
> The author of a pull request is accountable for every line in it, whether they typed it, copied it, or accepted it from an AI tool.
The rule has three practical effects:
- "The AI wrote it" is not a defense for a bug, a security hole, or a license problem.
- Reviewers can treat the author as the person who understands the change.
- Authors have a reason to check AI output before they ask anyone else to read it.
What ownership means in practice
Ownership turns into specific duties for the author:
- Understand the code. The author can explain what each part does and why it is there. If they cannot, they do not submit it.
- Verify it. The author runs the tests locally and adds tests for new or changed behavior. Passing code that nobody exercised is not verified.
- Check the inputs and outputs. The author checks that no secrets, customer data, or restricted code went into the tool, and that nothing unexpected came out, such as unfamiliar dependencies or copied license headers.
- Respond to review. The author answers questions and makes fixes. Pasting reviewer comments back into the AI tool without reading the result does not count.
Making the rule visible in the workflow
A rule that lives only in a document gets forgotten. A pull request template puts it in front of the author at the moment they submit.
<!-- .github/pull_request_template.md -->
## What changed and why
## How I verified it
- [ ] I read and understand every line in this PR
- [ ] I ran the tests locally
- [ ] New or changed behavior has tests
## AI assistance (per team policy)
- [ ] No AI tool was used
- [ ] AI tool used for part of this change (tool and scope: ____ )
- [ ] No secrets, customer data, or restricted code were shared with the toolThe checkboxes are an attestation. The author is stating that they did the work. This gives the team a clear record if something goes wrong later. The checklist cannot prove anything on its own, so it works together with review and CI, which later chapters cover.
The flow of responsibility looks like this:
Common errors
- Treating review as the safety net. Authors submit unread AI output and expect the reviewer to catch problems. Reviewers are a second check, not the first. The policy should say so directly.
- Large, unexplained changes. An assistant can produce a 900-line diff in minutes. If the author cannot explain it, the change is too big. Ask the author to split it up.
- Blaming the tool in a postmortem. A blameless postmortem looks at process failures, not at individuals. Even so, "the tool generated it" is never the root cause. The root cause is a gap in verification or review, and the postmortem should name that gap.
- Unclear ownership of agent-made changes. When an agentic tool opens a branch or pull request, a named human must still own it. Assign that person before the work starts.
Exercise
Exercise
A teammate opens a pull request containing a function generated by an AI assistant. A reviewer asks why the function retries three times. The teammate replies, "The AI chose that, I'm not sure." Under an author-owns-the-change policy, what should happen next, and why?
Show answer
The author should find out why, for example by reading the code, checking the requirements, or testing the behavior, and then either justify the retry count or change it. The reply "the AI chose that" does not meet the policy because the author is accountable for every line and must be able to explain it. The reviewer can reasonably pause the review until the author understands the change.
Exercise
Why is a pull request template with an attestation checklist useful, and what is its limit?
Show answer
It puts the author's duties in front of them at submission time and records that they confirmed understanding, testing, and data handling, which supports accountability. Its limit is that it is self-reported, so it must be paired with code review and automated checks that enforce the rules.