Most small teams have a task that sits at 90 per cent for a long time. The code is written. The pull request is merged. Someone says "it's done" in the chat. Then the task stays in a column for a week, the live site runs a version nobody has looked at, and a customer finds the bug before the team does.
The problem is rarely laziness. It is that nobody has agreed where the finish line is. This article sets out a short definition of done that a team of two to ten can actually remember, and explains who should close the task when it is met.
Why tasks get stuck at 90 per cent in a team of two to ten
In a small team, everyone is close to the work, so nobody writes down what finished means. Each person has a private version of it.
The developer thinks done means the code works on their own machine. The reviewer thinks done means they approved the change. The person who looks after the client thinks done means the client has been told. Each of them is partly right. The task stays open because no one has said which of those counts.
There is also a gap that is easy to miss. A change can be merged and still not be live. It can be live and still break something that no one is watching. A team that counts merge as done will often find out about the second problem from a user.
A definition of done fixes this by making the stages explicit. It turns "it's basically finished" into a list that anyone on the team can check.
A definition of done in four lines: merged, deployed, checked, told
Write the definition down where the team will see it every day. A pinned note, the top of the task template, or the first lines of your project's README will all do. Keep it to four lines:
- Merged. The change is in the main branch, and someone other than the author has reviewed it.
- Deployed. The change is live on the production site or app, not only on a staging copy.
- Checked. The after-deploy check has passed, as described below.
- Told. Whoever needs to know has been told. That includes the client, a colleague who depends on the work, or the support inbox if customers were affected.
Notice that these are in order. You cannot check something that is not yet live, and you cannot tell anyone a change is ready until it has passed the check. The order also makes it obvious where a task is stuck. If the code has been merged for three days but never deployed, the task is at step two, and the team can see that without a meeting.
The fourth line is the one teams forget most often. A task that is live but not communicated can still cause confusion. The client may ask about a feature they have never heard of, or a colleague may keep working around an old behaviour. Telling people is part of finishing the work.
Include an after-deploy check: the monitor is green and no new errors have appeared
The third line needs more detail, because "checked" can mean almost anything. For most small teams, a useful after-deploy check has two parts.
First, the monitors for the thing you changed should be green. For a website or web app, that usually means an HTTPS monitor is still responding and its certificate is still valid. Every HTTPS monitor checks the certificate and warns before it expires, by default at 30, 14 and 7 days left. For a cron job or a backup, it means the job has checked in as expected since the deploy. A heartbeat monitor expects the job to check in each time it succeeds, and alerts you when a check-in is late. If the check-in has not arrived since the deploy, the change may have broken the job even though nothing else looks wrong.
Second, no new errors should have appeared since the deploy. Look at the errors list for the window after the release, and compare it with the window before. A few old errors that were already there are not a reason to hold the task. A new error that started with the change is.
Two things help here. Give the check a time limit, such as "at least 30 minutes of normal traffic", so that people are not guessing when they have looked long enough. And write down what a failed check looks like, so that the owner knows whether to roll back or to fix forward. Each monitor has a failure threshold you set, so it alerts only after that many failed checks in a row. That is useful, but it also means a single quiet check does not prove much. Look at the monitor's recent history, not just its current colour.
Keep the after-deploy check short. If it takes twenty minutes of clicking around, people will skip it. If it takes two minutes and is written in the task, people will do it.
Who closes the task: the owner, not the reviewer
The person who closes the task should be the owner, meaning the person who took it on. This is the single most useful rule in a small team.
It is tempting to let the reviewer close the task once they have approved the change. But the reviewer has seen the code, not the deploy, the monitors, or the client message. Closing it at review means the task is marked done at step one of four.
The owner carries the whole task. They are the one who knows whether the deploy happened, whether the check passed, and whether the client was told. If they are not sure, they know who to ask. A reviewer can say "this looks right", and the owner then moves the task through the other steps and closes it when all four are true.
This also makes handover visible. If an owner is ill or moves to another project, the task stays open with a clear next step, rather than appearing finished when it is not.
Keeping the definition short enough to remember
The definition only works if people can recite it. Four lines is about the limit for most teams. Once you add sub-bullets, exceptions, and a link to a longer policy, people stop reading it.
Some habits help:
- Put the four lines in the task template so they appear every time someone opens a task.
- Use the same words in conversation. If you say "is it merged, deployed, checked, told?" in a stand-up, people start to think in those terms.
- Resist adding a fifth line every time something goes wrong. Ask instead whether the existing four would have caught it. Often they would, if the check had been run properly.
- Keep exceptions out of the definition. A hotfix at midnight still goes through the same four lines. It may just happen quickly.
A short definition is also easier to apply to work that is not code. A design change, a content update or a server setting can still be merged or published, deployed or made live, checked and told. The words stretch to fit most small-team work.
Reviewing it once a quarter and dropping lines nobody uses
A definition of done should change, but slowly. Once a quarter, sit down as a team for twenty minutes and ask three questions.
Which line did we skip most often? If "checked" keeps getting missed, the check may be too long or unclear. Shorten it, or make it more specific.
Which line never caused a problem? If "told" has never been missed in three months, it may still be worth keeping, but you may find the team already does it without thinking. If a line is never useful, drop it.
What went wrong that the definition did not cover? Add a line only if the same kind of problem is likely to come back.
Keep the record of changes short too. A dated note in the README is enough. The aim is a definition the team trusts, not a document that grows every quarter.
If your tasks, errors and monitors are in three different places, the after-deploy check takes longer than it should, and it is easy to miss a step. Keeping them together makes the four lines easier to follow. AperioFlow brings tasks, errors and uptime monitors into one place, and you can start free at https://app.aperioflow.co.uk/#/signup.