Sub topic 10
Kanban and WIP Limits as a Pull Mechanism
This chapter assumes you know the five Lean principles at a high level. It also assumes you have read the earlier chapters on flow, batch size, work in progress (WIP), and Little's Law. You should be comfortable with simple ratios. You do not need to have used a kanban board.
What kanban is
Kanban is a scheduling method that makes pull concrete. Pull means that downstream demand, not upstream convenience, decides when work starts. The word kanban is Japanese for "signal card" or "visual sign". In the Toyota production system, a physical card travelled with a bin of parts. When the bin was emptied, the card went back upstream. That card was the only authorization to make more.
The method rests on one rule: work starts only when there is free capacity to take it. The free capacity is the signal. Everything else about kanban, such as boards, columns, cards, and colors, is a way to show that signal and enforce the rule.
Kanban is not the same as a task board. A board with columns shows work. A kanban system also caps how much work each stage may hold. Without the cap, the board only displays a pile.
Push versus pull
In a push system, work is released according to a plan or a schedule. Upstream steps keep producing whether or not downstream steps can absorb the output. Queues grow wherever a downstream step is slower. By Little's Law, longer queues mean longer cycle times.
In a pull system, a step starts new work only when the next step signals that it has room. The queue between steps can never grow beyond the agreed limit.
| Aspect | Push | Pull (kanban) |
|---|---|---|
| Trigger to start work | Schedule or forecast | Free capacity downstream |
| Queue sizes | Grow without bound at bottlenecks | Capped by limits |
| Typical symptom | Many items started, few finished | Fewer items started, more finished |
| Problems | Hidden until the end | Visible at once, because flow stops |
| Overproduction | Common | Blocked by design |
Anatomy of a kanban system
A basic board has columns that match the steps in the value stream. Typical columns are Backlog, In analysis, In progress, In review, and Done. Each card is one work item. Each column that holds active work has a WIP limit, a number that sets the maximum count of items allowed in that column at once.
The solid arrows show the work moving forward. The dotted arrows show the signal moving backward. A card moves into Review only if Review holds fewer than two items. When Review finishes one, a space opens. That opening lets Build pass an item forward, which opens a space in Build, and so on back to the backlog.
The WIP limit rule in code
The simplest form of the rule is a single comparison, shown here for one column.
WIP_LIMIT = 3
def can_pull_new_work(in_progress):
"""A team pulls a new item only when it is below its WIP limit."""
return in_progress < WIP_LIMIT
print(can_pull_new_work(2)) # True: capacity is free, so pull the next item
print(can_pull_new_work(3)) # False: finish something before starting moreThe check uses <, not <=. At the limit, the column is full. Helping an item finish is allowed. Starting a new one is not.
Why limiting WIP shortens cycle time
Little's Law says average cycle time equals WIP divided by throughput. If throughput stays the same, cutting WIP cuts cycle time in direct proportion.
def avg_cycle_time(wip, throughput_per_day):
"""Little's Law: average cycle time = WIP / throughput."""
return wip / throughput_per_day
print(avg_cycle_time(30, 5)) # 6.0 days with 30 items in progress
print(avg_cycle_time(10, 5)) # 2.0 days after limiting WIP to 10The important assumption is "if throughput stays the same". In practice it often does, or even rises. Teams that juggle fewer items lose less time to context switching and to rework from stale decisions. Teams that cut WIP so far that people sit idle will see throughput fall. That case is covered under edge cases below.
A limit also changes where waiting happens. Waiting does not vanish. It moves out of the process, where items sit half-finished, and into the backlog, where nothing has been started. For the customer, the second kind is far less harmful. A request that has not been started can be reprioritized or dropped at no cost. A half-built item represents sunk effort and ties up resources.
Setting the first limits
There is no formula that gives the right limit. Use a starting rule and adjust it.
- Count the people who work in a column. A common first limit is one item per person, or slightly fewer.
- Set limits lower at the end of the flow than at the start, so that finished work is not stuck waiting for review or release.
- Run for two or three weeks. Record how often each column hits its limit and how often people are idle.
- If a column is almost never full, lower its limit. If people are often idle and others are blocked, raise the limit by one.
The aim is not to hit a target number. The aim is to find the level where work flows steadily and the board makes problems visible.
Reading the board
A board with limits tells you where the system is constrained.
- A full column with an empty column right after it. The full column's items are waiting for something. The cause is often a handoff, an approval, or a person who is unavailable.
- An empty column with a full column right before it. The empty step is starved. The step upstream is the bottleneck, or the handoff is slow.
- A column that is always full. Either its limit is too low for the work it carries or it is the process bottleneck. Check the cycle time of items in that column before changing anything.
- Cards that stay in one column for days. These are blocked items. Mark them clearly and discuss them every day.
The board does not fix these problems. It makes them hard to ignore, which is the point of pull. When a limit stops work from entering, someone must deal with the cause.
Measuring a kanban system
Three numbers are enough to start.
- Throughput: the number of items finished per unit of time, such as per week.
- Cycle time: the elapsed time from when work starts on an item until it is done.
- WIP: the number of items started and not yet finished.
These are linked by Little's Law, so you can check your data against it. If the average WIP is 12 and throughput is 4 per week, the average cycle time should be near 3 weeks. If your measured value is far off, the data is probably wrong or the system is not stable over the period measured.
Flow efficiency, from the earlier chapter, is the matching view of waiting. A kanban system raises it by shrinking queues. The same four hours of value-added work take less elapsed time when there are fewer items ahead of yours at each step.
Edge cases and common errors
Limits that are ignored. A limit that people exceed "just this once" is a suggestion. When a limit is hit, the right responses are to help finish something, to unblock a stuck item, or to wait. If the limit is wrong, change it in the open with the team and review it later.
Counting only some work. If urgent requests, bug fixes, or "small favors" bypass the board, the real WIP is higher than the displayed WIP. The cycle times then look worse than the limits predict. Put all work on the board, or reserve a visible slot for it, often called an expedite lane, with its own limit of one.
Using limits to hide idle time. When someone has nothing to do because the column ahead is full, the temptation is to start something new. Resist it. Good alternatives are to help the full column, to improve the process, or to prepare for upcoming work without starting items.
Cards that are too different in size. Little's Law uses averages. If one card takes an hour and another takes a month, a limit of five items means very different amounts of work. Split large items or group items by size class, each with its own limit.
Limits without a signal. Some teams set a number but have no visible count of what is in each column. Display the current count next to the limit so that a full column is visible at a glance.
Treating kanban as a tool. A software tool can show the board and warn about limits. It cannot make a team stop starting work. The method works when people agree that finishing is more valuable than starting.
Overcorrecting. A WIP limit of one for every column looks tidy but removes all slack. Variation in task duration then causes frequent stalls. Some buffer is needed to absorb that variation. Set limits to make queues short, not nonexistent.
Pull beyond the physical card
The same logic applies where nothing physical moves. A support team can pull tickets only when an agent finishes one. A hospital ward can admit a patient only when a bed is free. A software team can start a new story only when a story in review is merged. In each case the signal is free capacity downstream, and the limit prevents overproduction of half-finished work.
Pull also supports the fifth principle. Because limits expose bottlenecks and delays, every stoppage becomes a prompt for improvement. The next chapters on continuous improvement build on that.
Exercise
A team has 18 items in progress and finishes 6 items per week. They set a WIP limit that brings the average to 8 items and throughput stays at 6 per week. By Little's Law, what is the average cycle time before and after the change? Name one reason throughput might fall after the change.
Show answer
Before: 18 / 6 = 3 weeks. After: 8 / 6 ≈ 1.33 weeks, which is about 1.3 weeks. Throughput might fall if the limit is so low that people are idle while waiting for a full downstream column, since they have no allowed work to start and no one to help finish.
Exercise
A board shows the Review column always at its limit of 2, while the Build column next to it is always empty and the people in Build are idle. What does this pattern suggest, and what should the team do instead of raising the Build limit?
Show answer
Items are stuck in Review, so Review is the bottleneck, and Build is blocked from handing off work. Raising the Build limit would only add more unfinished work. The team should have the Build people help with reviews, or find out why reviews take long, such as a missing reviewer or an unclear acceptance rule, and fix that cause.