Skip to content

Agile and Hybrid

Definition of Done

PMP · Agile and Hybrid · 2 lessons · about 25 min

Part of the free PMP video course: every lesson starts with its video →

What this chapter covers

“Done” is the word agile teams disagree about most easily. The Definition of Done turns it into a checklist the team agrees on beforehand: when every item is met, the related deliverable can be considered ready for customer use. This chapter first covers what the Definition of Done is, who sets it and what it governs, and compares it with two concepts that are easily confused with it, acceptance criteria and the definition of ready. It then covers how it protects quality: building quality in, the order of response when defects increase, what to do when there is not enough time for testing, and how non-functional requirements are allocated between the Definition of Done and item-specific acceptance criteria.

By the end of this chapter you should be able to do the following. Explain what the Definition of Done means; know that the team must follow it together, that where the organization already has a standard the team follows at least that standard, and that otherwise the Scrum Team creates one jointly. Tell the definition of ready, acceptance criteria and the Definition of Done apart in what each governs and when it applies. When an item that does not meet the Definition of Done turns up at the Sprint Review, do not present it as part of the Increment: say honestly that it is not done and put it back in the Product Backlog for future consideration. When defects increase or testing is squeezed, know to find the root cause first and take targeted improvement action (and add to the Definition of Done if the root cause is a missing completion criterion), or to split the stories smaller.

Lessons in this chapter

  • Lesson 1: The Definition of Done: meaning, acceptance criteria and the definition of ready. The Definition of Done is a checklist shared by everyone; whether an Increment is done is judged only by it. The three concepts are told apart as the readiness condition before an item enters a Sprint, the acceptance condition for a specific item, and the general quality criteria for completion. Acceptance criteria only need to be settled before development starts.
  • Lesson 2: The Definition of Done and quality. Building quality in and shifting testing left; when defects rise, find the root cause first and then improve in a targeted way (adding to the Definition of Done where needed); when testing is pushed to the end, make the stories smaller; performance, security and other non-functional requirements are identified first and brought into the requirements or the backlog; requirements that apply to every Increment can go into the Definition of Done, while requirements for a particular story go into that story's acceptance criteria and are verified in the relevant Sprint.

Chapter map

ConceptWhat it governsWhen it appliesThe question it answers
Definition of ready (DoR)Backlog itemsBefore entering a SprintCan this item be started?
Acceptance criteriaA specific story or deliverableAgreed before developmentWas this story built right?
Definition of Done (DoD)Stories, features, Increments and other work items, common to the teamDuring and at the end of the SprintIs this thing done?
Quality problemResponse
Defects keep increasingFind the root cause first and involve the testers; when the root cause is a missing or unclear completion criterion, add the quality activity to the Definition of Done
Testing time is squeezed to the end of the SprintSplit the work into smaller stories so that testing runs throughout the Sprint
Non-functional requirements are found not to be met only at the endCommon exam practice: general requirements can go into the Definition of Done and requirements for a particular story into its acceptance criteria. The details are tailored to the team's context, and each Sprint is checked against them

Study tips and practice

  • Memorize the difference between the three lists as one sentence: before a Sprint, look at the definition of ready; for this story, look at the acceptance criteria; for whether it is done, look at the Definition of Done.
  • When a question mentions “more defects”, “not enough testing time” or “non-functional requirements not met”, look for the matching one of the three scenarios in Lesson 2. When it mentions “does not meet the Definition of Done”, go back to the Sprint Review handling principle from Lesson 1.
  • The content of this chapter is concentrated, so review it together with the previous chapter (the Product Backlog and the Increment) and the next chapter (Scrum events): an Increment must meet the Definition of Done, and the Sprint Review presents only Increments that do.

Lesson 1

The Definition of Done: Meaning, Acceptance Criteria and the Definition of Ready

Lesson video

Lesson overview

“Done” is the word on which agile teams most easily disagree. The developer says it is done, the tester says it has not been tested, and the Product Owner says it is not what was asked for. The Definition of Done exists to remove disagreements like these. This lesson first covers what the Definition of Done is, who sets it and what it governs, and then compares it with two concepts that are easily confused with it: acceptance criteria and the definition of ready. This is the foundation of agile quality questions, and the next lesson shows how it keeps quality under control. ECO: Process domain, Task 7 (Plan and optimize quality of products/deliverables).

What the Definition of Done is

The PMBOK 8 glossary defines the definition of done (DoD) as “a checklist of all the criteria required to be met so that a deliverable can be considered ready for customer use.” PMBOK 8 also states that in projects using an adaptive approach, “a DoD is a shared understanding of the specific criteria that should be met before a piece of work (e.g., a user story, feature, or increment) is considered complete and ready for release to the next stage or the customer.”

In everyday terms, it is a checklist, and the work counts as done only when every box is ticked. Typical items are: code has been reviewed, unit and integration tests pass, the work is deployed to a usable environment, no serious defects remain, and necessary documentation is updated. Note the last item. If you want documentation to stay in step with the product, write “update the documentation” into the Definition of Done and set aside time for it in every Sprint, rather than waiting to catch up in the last Sprint.

Who sets it and what it governs

The Scrum Team creates the Definition of Done jointly, and everyone on the team works to the same standard. It is the only standard for judging whether an Increment is done, and it has nothing to do with whether the meeting finished or the time ran out. At the end of the Sprint, an item that meets the Definition of Done counts toward the Increment. One that does not goes back to the Product Backlog for future consideration; if needed the Developers update the estimate, and the Product Owner then adjusts the order in light of value and other factors.

It is not fixed forever. When a team is just starting out, the checklist may be short, and as capabilities such as automated testing and continuous integration are built up, it can become stricter. The team changes it together after discussion (the retrospective is usually a good place to inspect and adjust it), and once changed, everyone follows it. When several Scrum Teams work on the same product, they must jointly define and follow the same Definition of Done. If the organization already has a standard, that standard is the minimum the shared Definition of Done must meet, so that the teams' Increments can be integrated.

At the Sprint Review, the team presents only the items that meet the Definition of Done. When an item does not, say so honestly and put it back in the Product Backlog. Do not hide it or jump to blaming individuals; focus first on making the unfinished item transparent and improving the process.

Telling the three concepts apart

All three are checklists or standards. They differ in what they govern and when they are used:

ConceptWhat it governsWhen it applies
Definition of ready (DoR)Backlog itemsBefore entering a Sprint, to judge whether the item is prepared
Acceptance criteriaA specific deliverable or Product Backlog item (usually a single story when user stories are used)Agreed before development, to judge whether this story was built right
Definition of Done (DoD)All Increments, common to the teamDuring and at the end of the Sprint, to judge whether it is done

PMBOK 8 defines acceptance criteria as “a set of conditions that are met before deliverables are accepted.” They are usually recorded on the story card, in the Product Backlog item or in accompanying notes, and they apply to a specific story or deliverable. Take login as an example: entering the right user name and password logs the user in, a wrong password produces a message, and several wrong attempts in a row lock the account. A story is done only when it meets both its own acceptance criteria and the team's general Definition of Done.

When should acceptance criteria be written? Only before development of the story starts. At release planning the stories are still coarse, so writing acceptance criteria for all of them is neither realistic nor useful, because later changes would invalidate them. Writing them on a rolling basis, Sprint by Sprint, and finishing them for the stories in the coming Sprint at Sprint Planning, is appropriate.

A specific requirement can be written either as acceptance criteria or elevated into the Definition of Done, depending on how widely it applies. “Login completes within two seconds” concerns only the login story. “Every page loads within three seconds” applies to every page and can go into the Definition of Done.

Worked scenario: the “change phone number” story in a government services app

The team's Definition of Done has five items: peer review, unit tests pass, integration tests pass, verified in the staging environment, and the user manual updated. The story has three acceptance criteria of its own, for example “once the new number is verified, the old number stops working”. At the end of the Sprint, all three acceptance criteria pass and the first four items of the Definition of Done are met, but the manual has not been updated.

Conclusion: the story is not done. At the Sprint Review only the other stories are presented. “Change phone number” is honestly reported as not done and goes back to the Product Backlog, where the Product Owner reorders it. If it is selected again in a later Sprint, it counts toward the Increment only after the manual is finished and the Definition of Done is met.

Worked examples

Example 1 A story that does not meet the Definition of Done is found at the review

Question 1Example

Before the Sprint Review, the Developers find that one of the user stories to be demonstrated, although complete in function, still has automated testing and code review unfinished, so it does not meet the team's agreed Definition of Done. What should the team do?

Show answer and explanation

Correct answer: A

Before a Sprint Review, the Developers find that one of the stories to be demonstrated is complete in function, but its automated testing and code review are unfinished, so it does not meet the Definition of Done. The question is what the team should do.

The Definition of Done is the common standard for judging whether an item is done, and being complete in function is not the same as done. The story does not meet it, so it is not done, and nobody, including the Product Owner, can confer Done status on it. The team should uphold transparency: state openly that the story is not done and keep it out of the Increment presented at the Sprint Review. The story returns to the Product Backlog, and once the remaining work is finished it can be inspected as part of an Increment that meets the Definition of Done. The answer is A.

Why the other options are wrong

  • B. Unfinished technical work leaves risk and technical debt. An item that does not meet the Definition of Done cannot count as done, and it cannot be ignored because it is functionally complete.
  • C. Presenting the story as done and finishing the work later misrepresents the Increment. An item that does not meet the Definition of Done is not done, and doing this violates transparency and pushes the problem out.
  • D. Agile stresses that the team shares responsibility. Blaming an individual does not finish the item and makes people afraid to raise problems later.

Key takeaway An item that does not meet the Definition of Done is not done: say so openly and keep it out of the Increment. Do not hide it and do not blame anyone.

Variation If the shortfall is discovered the day before the review, the team can tell the Product Owner in advance. The review then presents only items that meet the standard, and those that do not go back to the Product Backlog to be re-estimated.

Something wrong with this question?

Report an issue with this question

Example 2 When should acceptance criteria be written?

Question 2Example

An e-commerce app project uses an agile approach. The Product Owner does not write acceptance criteria for all user stories at release planning. Instead he plans to write them at Sprint Planning only for the stories to be built in that Sprint, believing this makes the most of agile's continuous improvement. Is this approach appropriate?

Show answer and explanation

Correct answer: C

In an agile project, the Product Owner plans to write acceptance criteria at Sprint Planning only for the stories to be built in that Sprint, instead of writing them for all stories at release planning. The question is whether the timing is appropriate.

At the user-story level in this question, acceptance criteria are the conditions that the story must meet to be accepted, and it is enough to settle them before development of that story starts. At release planning the stories are still coarse, so writing criteria for all of them is neither realistic nor useful, since later changes would invalidate them. By Sprint Planning the stories are clearer, and writing criteria then for the stories of that Sprint is exactly the agile way of rolling refinement. So the approach is appropriate. The answer is C.

Why the other options are wrong

  • A. There is no rule that criteria must be written for all stories at release planning, and doing so would produce a lot of documents that later have to be changed.
  • B. If the customer proposes criteria only at the review, development is already over, the team can only guess, and the criteria no longer guide the work.
  • D. By the time of the demonstration, coding may long since be done. Criteria set then cannot guide development and testing, so the timing is too late.

Key takeaway At the user-story level, acceptance criteria apply to the specific story and need only be settled before development. The Definition of Done is the shared quality standard for the Increment.

Variation If the question is what to do when an item lacks acceptance criteria before entering a Sprint, the answer is to add them at refinement or Sprint Planning, making them clear before the item is selected. Whether this comes before estimating is for the team to agree. If the question asks where “every page must load within 3 seconds” goes, it is elevated into the Definition of Done.

Something wrong with this question?

Report an issue with this question

Common traps

Common trap

  • Whether an Increment is done is judged by the Definition of Done. It is not judged by the definition of ready, and it is not decided by the timebox ending or the meeting finishing.
  • If an item that is about to enter a Sprint lacks acceptance criteria, the team can include “acceptance criteria are clear enough” in its definition of ready and settle them through refinement or Sprint Planning before the item is selected. Whether this must come before estimating is for the team to agree (the definition of ready is not a mandatory artifact in the Scrum Guide).
  • Acceptance criteria apply to a specific deliverable or Product Backlog item (usually a single story when user stories are used), while the Definition of Done is the general quality standard for all work items and Increments. Both must be met.
  • Functionally complete does not mean done. If the technical work is not finished, the Definition of Done is not met and the gap cannot be ignored.
  • When it is not met, do not cover it up and do not blame individuals. Say so honestly at the review and put the item back in the backlog.

Compare

  • Should the item enter the Sprint? Look at the definition of ready.
  • Was this story built right? Look at the acceptance criteria.
  • Is the Increment done? Look at the Definition of Done.

Key takeaways

Key point

  • The Definition of Done is a checklist the team creates jointly and everyone shares. The work is done only when every item is met.
  • Whether an Increment is done depends on whether it meets the Definition of Done. Formal acceptance by stakeholders or the Product Owner's release decision are separate activities and do not change its done status.
  • The definition of ready governs the time before a Sprint, acceptance criteria govern a single story, and the Definition of Done governs all Increments.
  • Acceptance criteria only need to be settled before development starts. There is no need to write them for all stories at release planning.
  • An item that does not meet the Definition of Done is honestly reported at the review and goes back to the Product Backlog. If needed the Developers update the estimate, and the Product Owner reorders it.
  • The Definition of Done is adjusted by the team, commonly at the retrospective. The project manager does not set it unilaterally.

Lesson 2

The Definition of Done and Quality

Lesson video

Lesson overview

Agile teams run into two kinds of quality problems most often: defects keep increasing, and quality requirements are found not to be met only at the very end. Both are solved by building quality in, and the Definition of Done is one of the main levers. This lesson covers how quality gets “built in” to the process, what to do first when defects rise, what to do when there is not enough time for testing, and how non-functional requirements land in the Definition of Done and acceptance criteria. ECO: Process domain, Task 7 (Plan and optimize quality of products/deliverables). The last lesson covered what the Definition of Done is, and this lesson covers how to use it to keep quality under control.

Quality is built in, not inspected in at the end

PMBOK 8 lists “Embed Quality Into Processes and Deliverables” as a principle. It states that the quality of the deliverable and the processes used to achieve it are measured by conformance to acceptance criteria, the definition of done (DoD), fitness for use, and overall efficiency. In practice, quality is built in while the work is done, instead of being inspected after the work is complete. For deliverables, make the quality requirements and the acceptance criteria for each deliverable clear first. In agile, the team also uses the Definition of Done to set the level of completion every Increment must reach (it is not the same thing as the acceptance criteria of a single item, and the two are used together), and then safeguards the quality of delivery through testing and inspection.

Shifting testing left is a common practice. Testing no longer waits until development is finished: it moves forward into the development period, even to before the code is written. Test-driven development is the classic example: write a failing test first, then write the minimum code that passes it, then refactor under the protection of the tests and repeat the cycle. When a user story is finished, it is also verified against its acceptance criteria and the Definition of Done. This way every story can be verified as soon as it is done, and defects are found while they are still small.

What to do: three common scenarios

Scenario 1: defects keep increasing. You cannot protect velocity by “relaxing the standard”, and you must never skip testing. First find the root cause, involve the testers in the analysis, and align on quality goals; then address the identified cause. If necessary quality activities are missing from the team's working agreements, the team improves those agreements. If the Definition of Done is missing something or is unclear, the team improves the Definition of Done. The Scrum Master coaches the team to analyze and improve its own way of working, rather than going to the project manager or sponsor for a ready-made method, or discussing defects one by one at the Daily Scrum.

The order matters most here: if the root cause has not been found, you cannot fix the right place. Sometimes the testers get involved too late, sometimes the parties understand “quality met” differently, and sometimes the Definition of Done never said anything about testing. Remember also that velocity is no reason to relax quality. Lowering the standard to make velocity look good only pushes defects into later Sprints and amounts to creating technical debt.

Scenario 2: testing keeps getting squeezed to the end of the Sprint. The cause is usually that the stories are too big and can be tested only when they are all finished. The remedy is to split the work into smaller user stories and test each one as soon as it is done, so that testing runs through the whole Sprint. The answer is not to reduce developers, deliberately slow down, or alternate development Sprints with testing Sprints, because the development Sprints would not produce Done Increments, and defects and feedback would be delayed.

Scenario 3: non-functional requirements. Requirements such as performance, security and usability are often too late to fix if they are left until the end. A better way is to identify them first and bring them into the requirements or the backlog. A general requirement that applies to every Increment goes into the Definition of Done, a requirement that applies to one story only goes into that story's acceptance criteria, and both are checked in the relevant Sprint (this is common exam practice).

Worked scenario: a response-time requirement

A ticket-booking app has 7 features, and each page is required to respond within 2 seconds. The team builds all 7 features and runs a load test only in the last Sprint. All 7 turn out to be slower than 2 seconds. The whole thing has to be reworked and the schedule slips by 3 weeks.

Suppose the Definition of Done had said from the start that “response time must not exceed 2 seconds and must pass a load test”. The slow response would have been found as soon as the first feature was done. Only that 1 feature would need fixing, and what was learned about optimizing could be applied to the other 6 at once. For the same problem, the cost of finding it early is rework on 1 feature, and the cost of finding it late is 7 features plus a concentrated round of corrections.

Worked examples

Example 1 The testers always receive the work at the end of the Sprint

Question 1Example

An agile team has completed three Sprints. Testers complain that they receive the work only near the end of each Sprint and never have enough time to ensure the quality of the deliverables. How should the Product Owner resolve this?

Show answer and explanation

Correct answer: C

An agile team has completed three Sprints, and the testers receive the work only near the end of each Sprint, with no time to ensure quality. The question is how the Product Owner should resolve this.

Testing gets squeezed to the end of the Sprint for reasons that include stories being too big and development and testing being handed off in sequence. If the work is split into smaller user stories, each one can be tested as soon as it is done, testing runs throughout the Sprint, quality activities move in step with development, and every Sprint ends with a result that can be verified. Quality is not to be traded for velocity, so the remedy is not to cut people or slow down but to change how the work is split. The answer is C.

Why the other options are wrong

  • A. Reducing the number of developers may further weaken delivery capacity, and cutting both people and work does not change the sequential handoff that pushes testing to the end.
  • B. Deliberately slowing development does not change the structure in which results appear only at the end of the Sprint, so testing still has no time.
  • D. A dedicated testing Sprint puts testing outside the Sprint, so the development Sprints no longer produce a done Increment, and quality problems surface later. Embedding testing in the Sprint is better.

Key takeaway When testing time is not enough, do not cut people or slow down. Split the stories smaller so that testing runs throughout the Sprint.

Variation If the stem changes to “defects keep rising”, find the root cause first, involve the testers and add the quality activities to the Definition of Done, instead of simply splitting stories.

Something wrong with this question?

Report an issue with this question

Example 2 General quality specifications are missing from the Definition of Done: how do you reduce rejections in the next Sprint?

Question 2Example

A new retail project in the execution phase has this situation: quality specifications that apply to every Increment were not included in the existing Definition of Done, and team members have different understandings of what counts as complete. As a result, the delivered features did not meet the specifications required by key stakeholders, SPI fell from 1.00 to 0.74, and CPI dropped from 1.40 to 1.05. What action should the project manager take to reduce the chance of rejection again in the next Sprint?

Show answer and explanation

Correct answer: C

A project in execution delivered features that did not meet the quality specifications required by key stakeholders: specifications that apply to every Increment were not included in the existing Definition of Done, and the team has inconsistent understandings of completion. The question asks how to reduce the chance of rejection in the next Sprint. The key is fixing the identified completion-standard gap.

The stem explicitly says that quality specifications applying to every Increment were omitted from the Definition of Done and that the team lacks a shared understanding of completion. Strengthening the Definition of Done to include those general specifications restores that shared understanding and ensures that later Increments are checked against the same standard before being considered done. Therefore C is the best answer. The changes in SPI and CPI describe performance impacts; they are not the basis for choosing C.

Why the other options are wrong

  • A. Submitting a change request and giving the quality problem priority mainly arranges remedial work. It does not directly correct the missing general completion standard and inconsistent understanding identified in the stem, so it is not the best answer.
  • B. The priority and dependencies of backlog items have no direct link to whether the quality specification is met, so this will not fix the rejections.
  • D. A dedicated Sprint to finish leftover specifications postpones the quality problem and handles it in a lump. It cannot prevent rejection in the next Sprint and goes against building quality in.

Key takeaway If a quality problem comes from a missing or unclear shared standard of completion, strengthen the Definition of Done first. Do not detour into the change process or a dedicated Sprint.

Variation If the delivered features all meet the quality specification and only the schedule variance has widened, the problem does not lie in the Definition of Done. Look for causes in schedule and capacity instead of strengthening the Definition of Done.

Something wrong with this question?

Report an issue with this question

Common traps

Common trap

  • Skipping testing or reviews to go faster creates technical debt and eventually slows the team down.
  • An item that does not meet the Definition of Done cannot be “handed over first and fixed later”. It does not count as an Increment and goes back to the Product Backlog.
  • When defects increase, look for the root cause first. If the root cause is that completion criteria are missing or unclear, then add the quality activities to the Definition of Done. Do not respond with overtime, added headcount or blaming individuals.
  • If the organization already has a standard for the Definition of Done, the Scrum Team follows at least that standard; otherwise the Scrum Team creates one jointly, and the project manager does not set it unilaterally. The team can keep improving it based on inspection results, and the retrospective is a common occasion to adjust it.
  • Do not leave non-functional requirements until the end: general requirements go into the Definition of Done, requirements for a particular story go into that story's acceptance criteria, and both are checked in the relevant Sprint.

Key takeaways

Key point

  • Building quality in: make the quality requirements and acceptance criteria clear first, and in agile also use the Definition of Done to set the level of completion every Increment must reach, then safeguard quality with testing and inspection.
  • Shifting testing left and test-driven development let defects be found early and while they are small.
  • When defects rise: find the root cause first, involve the testers, and address the identified cause. Improve the Definition of Done or the team's working agreements when the analysis shows that the corresponding content is missing or unclear.
  • When there is not enough testing time: split the stories smaller so that testing runs throughout the Sprint, instead of cutting people or slowing down.
  • Performance, security and other non-functional requirements are identified first and brought into the requirements or the backlog: general ones go into the Definition of Done, specific-story ones into acceptance criteria, and both are checked in the relevant Sprint.

This chapter has 12 questions in the full bank; the questions beyond the worked examples are practiced in the question bank. Practice this chapter.