Skip to main content
Scrumagic
Learn Scrum

Definition of Done, including for AI-assisted code

By Scrumagic Team Last reviewed 7 min read

In short

The Definition of Done is the team's shared description of what a finished piece of work looks like. Work that meets it becomes part of an Increment, and work that doesn't goes back to the backlog. This post covers how to write one, what a good one contains, and what changes when some of the code is generated by AI.

"Done" is the most argued-over word in software. A developer says it when the code compiles. A tester says it when the checks pass. A product owner says it when a customer could use it. If nobody has agreed which of those it means, a Sprint can end with everything "done" and nothing you could release.

The Definition of Done is the fix, and in Scrum it is more than a convenience.

What the Guide says

The Scrum Guide ties the Definition of Done to the Increment, which is a concrete step towards the Product Goal. The key sentence is short: the moment a Product Backlog item meets the Definition of Done, an Increment is born.

The Guide's description of the Definition of Done is "a formal description of the state of the Increment when it meets the quality measures required for the product." Three consequences follow from it:

  • It is a commitment, with teeth. If an item doesn't meet the Definition of Done, it can't be released or even presented at the Sprint Review. It goes back to the Product Backlog.
  • Someone has to write it. If the organisation has a standard, every team must follow it as a minimum. If it doesn't, the Scrum Team creates one that fits the product.
  • The Developers answer for it. They are accountable for holding to the Definition of Done, and for holding each other to it.

So it is the thing that stops "almost done" from counting. It also makes progress honest: the work remaining is everything that doesn't yet meet it.

What a good one looks like

A useful Definition of Done is a checklist that two people would tick the same way. That is the test, and it rules out most of what teams write first.

Here is the top of one from the Mobile Banking App scenario in the Scrumagic simulator, a fictional credit union. It's an excerpt: the full document has two more criteria.

The top of a Definition of Done document for a credit union mobile app, listing the first six criteria the team agreed to
Excerpt from the Mobile Banking App scenario (a fictional project).

The text of this excerpt

Definition of Done. Criteria: The acceptance criteria are met The code is reviewed by a second developer, and by a developer with payment clearance if it moves money Automated tests cover it and pass There are no known critical defects It is deployed to the test system and checked with realistic synthetic data Every screen a member meets works with large text and a screen reader, and meets the accessibility standard at level AA

What works about these lines is that each can be checked by someone who wasn't involved. "Reviewed by a second developer" has an answer, and so does "deployed to the test system". Together they mix the kinds of evidence that matter: behaviour (acceptance criteria), quality (reviews and tests), delivery (a test system) and the people who will use it (accessibility to a named standard). What makes it this product's own is the detail. A second reviewer with payment clearance when a change moves money, and testing with realistic synthetic data, are things a list copied from the internet would never say, and a credit union's app has to. The two criteria the excerpt leaves out, a security review for anything that moves money and an audit entry that nobody can edit, carry on in the same vein.

The criterion to be wary of is "automated tests cover it". Cover how much, and of what? It can be satisfied by one trivial test. A team would do well to tighten it, by saying what the tests have to demonstrate.

How to write yours

  1. Start from what you would be embarrassed to release without. List the things that have gone wrong before, and the checks that would have caught them.
  2. Keep it checkable. If a line needs interpretation, rewrite it until it doesn't. "Code is clean" fails. "No new warnings from the linter" passes.
  3. Make it the same for everyone. One Definition of Done for the product, not one per person.
  4. Raise it over time. The Guide expects the Definition of Done to be strengthened as the team matures, and a team that never revisits it is probably ignoring it.
  5. Don't hide work in it. Anything on the list takes time. If a criterion is added, the plan for the next Sprint has to make room.

When some of the code was not typed by a person

Tools that generate code from a description are now part of many teams' day. That raises one question for the Definition of Done: does it need a lower or a different standard for generated code? It doesn't. The Guide's wording, "the quality measures required for the product", doesn't care who or what produced the work. What changes is where the risk sits, so some criteria deserve more weight.

A widely read developer blog drew a useful line in March 2025. It defines vibe coding as "building software with an LLM without reviewing the code it writes", and says AI-assisted programming that is reviewed, tested and understood is simply software development. That boundary is a good place to anchor a team's Definition of Done. The point is not that generated code is bad. It is that nobody can vouch for code that nobody has read.

Here are the additions we would consider, as our opinion and not a rule:

  • A named person has read it and can explain it. Not "reviewed by the tool" or "approved by the pipeline": a person on the team who could walk a colleague through what it does and why. This is the criterion that carries the most weight.
  • The tests mean something. Generated tests tend to confirm what the generated code does. A criterion such as "at least one test fails if the behaviour is broken, and a person has checked that" turns a count into evidence.
  • New dependencies are looked at. A generated change can pull in a library nobody chose. Ask who maintains it, what licence it carries, and whether you needed it.
  • Secrets and data handling are checked. The same security review as before, applied to every change, since the pace of generated work makes it easier to skip.
  • It's still small enough to review. A change nobody can review in one sitting doesn't meet "reviewed", whoever wrote it.

None of these is new. They are what the Definition of Done was always for, now with more at stake because code is cheap to produce and the checking is where the effort goes. The Agile principles say that working software is the primary measure of progress, and that continuous attention to technical excellence enhances agility. If code appears faster than anyone can verify it, progress is an illusion.

Two perspectives

The Scrum Guide and SBOK agree here.

Scrum Guide

The Scrum Guide defines the Definition of Done as a formal description of the state of the Increment when it meets the quality measures the product requires, and says work that does not meet it cannot be released.

SBOK®

The SBOK® Guide also expects the team to agree criteria for when a deliverable is done, usually called done criteria or the Definition of Done, and uses them to decide whether work is accepted.

Same thing, different words

  • Definition of Done (Scrum Guide) = Done Criteria (SBOK)

Neither source says anything specific about code written by AI tools. The additions in this post are our opinion.

Practising it

Writing a Definition of Done is easy, and holding to it when a sponsor wants the feature by Friday is hard. That is the situation worth rehearsing.

Sources

  1. The 2020 Scrum Guide, Scrum Guides. Read on 8 October 2026.
  2. Not all AI-assisted programming is vibe coding (but vibe coding rocks), simonwillison.net. Read on 8 October 2026.
  3. Principles behind the Agile Manifesto, Agile Manifesto. Read on 8 October 2026.

SBOK® is a registered trademark of its owner. Scrumagic is independent and is not affiliated with the owners of SBOK®.

Share this post Link copied

Nothing opened? This computer may have no email program set up. Write it in Gmail or use the copy button and paste the link into your email.

  • Learn Scrum 6 min read

    The Product Owner role in Scrum

    The Product Owner is one person accountable for the value of the product. They set and communicate the Product Goal, keep the Product Backlog ordered and understood, and make the calls about what comes first. They can take advice from anyone, but the decision is theirs, and the organisation has to respect it.

  • Learn Scrum 6 min read

    Scrum in the age of vibe coding: what still needs a team

    When code is cheap to produce, the scarce things are deciding what to build and knowing whether it works. Scrum was built around exactly those two problems. This post looks at what vibe coding changes for a Scrum Team, what it doesn't, and where a team still has to do the slow, human part of the work.

  • Learn Scrum 7 min read

    Sprint Planning: purpose and structure

    Sprint Planning is the event that starts a Sprint. The whole Scrum Team agrees why the Sprint is valuable, what can be finished in it, and how the chosen work will get done. It ends with a Sprint Backlog: a goal, the items chosen to serve it, and a plan the Developers can follow.

  • Learn Scrum 7 min read

    What is Scrum? A plain-language guide

    Scrum is a lightweight framework for solving complex problems in small steps. One small team works in fixed-length Sprints of a month or less, shows something usable at the end of each one, and uses what it learns to plan the next. This guide explains how that works, and where Scrum deliberately stops.

  • Learn Scrum 7 min read

    Writing a Sprint Goal that survives a bad week

    The Sprint Goal is the single objective for a Sprint. It answers why the Sprint is worth doing, gives the team a reason to work together instead of on separate items, and lets the scope bend while the purpose stays fixed. A good goal says what will be true at the end, can be checked at the Sprint Review, and is smaller than the Product Goal it serves.

We use analytics cookies to see which pages help and which don't. Scrumagic works the same whichever you choose, and you can change your mind any time from "Cookie settings" in the footer. Privacy Policy.