Developed by Bill Wake, who published the acronym in his article INVEST in Good Stories, and SMART Tasks on August 17, 2003, with encouragement and feedback from Mike Cohn.
Six properties, independent, negotiable, valuable, estimable, small, and testable, that mark a well-formed user story, so that a team can pick up a backlog item, size it, build it, and know when it is finished.
Four backlog stories, and the INVEST letter each one fails
A team is refining its backlog. For each story pick the INVEST letter it fails most clearly, and read the rewrite that follows. Illustrative.
The team
Product owner
The team
Product owner
Right letter: 0 of 4Right letter: 1 of 4Right letter: 2 of 4Right letter: 3 of 4Right letter: 4 of 4
- Story: the orders table (The team). The story reads: As a user, I want the orders table created in the database. It is small and clear, and the team could test it. Which letter is the problem?
- Valuable: no user can see anything when it is done The owner agrees. It becomes part of one story that shows a customer a single order, which crosses the screen, the service, and the table. Right: a layer finished alone delivers nothing a customer can use.
- Independent: it overlaps with another story It overlaps with nothing. The owner points out the real problem: when the table is finished, no one can use it. The story stands alone, and that is not its fault.
- Small: it is too big It takes about a day. Size is not what stops it from being worth building by itself. A small story can still fail on value.
- A slice users can see (Product owner). The rewritten story delivers something a customer can open. The table now comes into being as part of it, and the team can demonstrate the result at the next review.
- Story: the message queue (The team). The story reads: Use a message queue to send each order to the warehouse, with three retries. The goal is that the warehouse receives every order. Which letter is the problem?
- Negotiable: it dictates the solution and leaves no room for discussion The owner restates the need: every order reaches the warehouse, and failures are noticed within five minutes. The team may still choose a queue and now has a choice. Right: a story captures the essence and leaves the details to talk.
- Testable: no one could write a test for it A test is easy to write. The trouble is that the story has fixed the design before the team has talked. The test is possible. The problem lies elsewhere.
- Valuable: the warehouse does not care The warehouse cares a great deal that orders arrive. What the story is for is sound; how it is written is the trouble. The need is real.
- A need in place of a design (Product owner). The rewritten story states what must be true and leaves the how to the team. Two designs come up in refinement, and the team picks the simpler one.
- Story: the courier link (The team). The story reads: Show courier tracking status on each order. No one on the team has used the courier's service, and its documentation is thin. Which letter is the problem?
- Estimable: the team cannot size it yet The owner agrees to a two-day time-boxed exploration. After it, the team sizes the story at three days with confidence. Right: a spike buys the information needed to estimate.
- Small: it is too big for a sprint It may be small. Nobody can say, because nobody knows how the service behaves. The size is unknown, which is a different problem.
- Independent: it needs other stories first It needs none. The real difficulty is how little the team knows about the courier. The dependency is on knowledge, and no other story blocks it.
- An exploration first (Product owner). The spike returns a working call and a list of surprises. The story can now go on the plan with a number the team believes.
- Story: the account area (The team). The story reads: Rebuild the customer account area. The team guesses it at about three months. Which letter is the problem?
- Small: nobody can finish it in a sprint or two The owner splits it into slices, such as view balance, change address, and download statements, each finished in days and each useful alone. Right: a story that big is a project, and slices keep value flowing.
- Negotiable: the owner is being rigid The owner is open to discussion. The trouble is the size, which negotiation cannot shrink. Flexibility is not the issue.
- Testable: it cannot be tested Each piece could be tested. The size is what makes a single test impractical. The story is testable in parts, and its size is the issue.
- Slices that ship (Product owner). The account area now arrives as a run of small stories. Each one passes through review on its own, and the team can stop or redirect after any of them.
An example
A team of seven opened its planning meeting with thirty stories on the backlog and spent forty minutes on the first one, improve reporting. Nobody could say what improved meant or how long it would take. The next was create the orders table, which delivered nothing a user could see. The third, connect to the courier's tracking service, depended on a system no one on the team had used.
Before the next refinement session, the product owner and the technical lead wrote the six INVEST letters on the wall and ran the top ten stories through them. Improve reporting became three stories, each a single report a named user could open and check. The orders table was folded into the first story that displayed an order. The courier connection got a two-day exploration to learn enough to size it. The next planning meeting took forty-five minutes, and the team finished what it forecast.
The core idea
INVEST is a checklist for user stories, the short statements of what a user wants that fill an agile team's backlog. Each pair of letters guards a different moment in a story's life. Independent and Negotiable keep it easy to schedule and open to talk: it should stand apart from other stories, and it should record the need while leaving the design for the customer and the team to work out. Valuable keeps it worth building, which usually means a thin slice through every layer of the system, since a database table alone serves no one. Estimable and Small make it plannable: the team can size it well enough to rank it, and it fits in days or a few weeks. Testable makes it finishable, because a story nobody could write a test for is not yet understood.
The letters also pull against each other. Splitting for size can cost value, and forcing independence can break a real dependency, so a team uses them as questions that start a conversation more than as a score.
The thinking behind it
Bill Wake Bill Wake says he consciously developed INVEST in 2003. He listed attributes of good stories, grouped them into clusters, and rearranged the initials until they formed a word, and he thanks Mike Cohn for encouragement and feedback. The acronym appeared in his article INVEST in Good Stories, and SMART Tasks, posted on August 17, 2003, which pairs it with a similar test for the tasks inside a story: specific, measurable, achievable, relevant, and time-boxed. He is candid that independence is not always possible, for instance when a later story needs an earlier one. The problem it answered was stories too vague or too large to plan.
Where it sits in the layers
INVEST sits in Layer 9, Tools and Techniques, as a quality test any team can apply to its backlog items. It serves the Agile Manifesto in Layer 6, which prizes customer collaboration over fixed contracts, a spirit visible in the negotiable letter. It supports the product backlog in Scrum in Layer 8 and it is used in Layer 10 at Backlog Refinement, where the team readies the next items for planning. The common mistake is asking it to prioritize. It tells a team whether a story is well formed and says nothing about whether the story matters more than another. Choosing among valuable stories takes a separate method, and a story can pass all six letters and still be the wrong thing to build.
How organizations put it to work
The product owner owns the quality of the backlog and the team shares it. INVEST is applied at refinement, a few weeks before work starts, by running the top items through the six questions out loud. Stories that fail are rewritten, split, or sent for a short investigation, and Wake's own advice for an unclear story is a time-boxed spike to gather information.
The behavior that follows is vertical slicing. Stories cross every layer of the system and are small enough to finish in days, so the team delivers something working each time it finishes one. The measures are the share of top-of-backlog items that pass refinement, how often stories carry over a sprint, and the gap between estimates and actuals.
Sustaining it takes a product owner who accepts that a story is revised until it is ready, and a team that asks the questions out of curiosity and never as a gate. In the first year a leader should expect thinner stories, more time in refinement at first, and arguments about whether technical work such as a database layer can be valuable by itself.
Where it goes wrong
The first failure is the checklist as a gate. If every story must pass all six letters before work can begin, refinement turns into paperwork and good enough stories wait. The sign is stories that sit in the backlog because one letter is arguable.
The second is slicing without value. Pushing the small letter alone produces stories so thin that no customer notices them when done. The sign is demonstrations of work that no one outside the team can see.
The third is forced independence. Breaking real dependencies apart artificially creates stories that cannot be built or tested alone, and Wake himself notes that independence is not always possible. The sign is a story whose test needs three others to finish first.
The fourth is treating valuable as proven. The letter records a claim that the story matters, and nobody has checked it. The sign is stories that pass every letter and meet a shrug on release.
Related and rival frameworks
- Definition of Done. Tests work at the other end, when it is finished. Better when the trouble is half-finished items; INVEST catches unclear ones.
- User Story Mapping. Arranges stories along the user's journey so the team can see the whole and choose the first slice. Better for deciding what to build, while INVEST judges each item.
- MoSCoW Prioritization. Sorts requirements into must, should, could, and won't have. Better when the real question is scope and priority, which INVEST does not address.
Go to the source
- INVEST in Good Stories, and SMART Tasks, xp123.com, posted August 17, 2003, 2003