PMP-140 · Lesson 6 of 12 · 25 min

Lean, XP and scaling frameworks

Scrum and Kanban are the frameworks most often named in exam questions, but agile practice draws on a wider family of ideas. Lean thinking explains why agile teams obsess over flow and waste. Extreme Programming (XP) supplies the engineering practices that let software teams change direction cheaply. Scaling frameworks try to coordinate many agile teams working on one product. This lesson surveys them at the depth the PMP exam expects: what each is for, its signature practices and when it fits.

Lean thinking

Lean grew from the Toyota Production System and was described for Western audiences in the 1990s. Its central idea is to maximize customer value while minimizing waste, by improving the flow of work through the whole value stream. Mary and Tom Poppendieck later translated lean into software development with seven principles that remain a useful summary: eliminate waste, build quality in, create knowledge, defer commitment, deliver fast, respect people and optimize the whole.

Lean principles applied to software and service delivery.
Lean principle (Poppendieck)What it means in practiceCompass example
Eliminate wasteRemove anything that does not add value for the customerDrop a monthly 20-page status report nobody reads; replace it with the dashboard
Build quality inPrevent defects rather than inspect them outAutomated accessibility checks run on every change
Create knowledgeLearn through short cycles, experiments and shared understandingPrototype two ways to show the holds queue and test both with patrons
Defer commitmentDecide at the last responsible moment, when the most is knownChoose the notification provider only after the library confirms its SMS budget
Deliver fastShort cycle times reduce risk and speed feedbackRelease small changes to a pilot group weekly
Respect peopleEmpower the people closest to the work to improve itFront-line staff help design the kiosk help screens
Optimize the wholeImprove the end-to-end flow, not individual stepsFix the slow release approval, not just the coding speed

"Defer commitment" is often misunderstood. It does not mean avoiding decisions; it means not making irreversible decisions earlier than necessary, so that they can be made with better information. The last responsible moment is the point after which not deciding would eliminate an important option. For the fit-out, that moment came early, because long-lead items had to be ordered. For the app's notification provider, it came much later.

The wastes of knowledge work

Lean manufacturing identified types of waste, often remembered as transport, inventory, motion, waiting, overproduction, overprocessing and defects, with unused talent sometimes added as an eighth. The Poppendiecks mapped these to software and other knowledge work. The mapping helps you recognize waste in exam scenarios that never use the word.

Types of waste and their knowledge work equivalents.
Manufacturing wasteKnowledge work equivalentExample
InventoryPartially done workDesigns approved but not built; code written but not released
OverproductionExtra featuresA reporting module nobody asked for (gold plating)
OverprocessingExtra process and relearningThree approval signatures for a minor text change; rediscovering a forgotten decision
TransportHandoffsRequirements passed from analyst to designer to developer to tester, losing context each time
MotionTask switchingA developer split across four projects
WaitingDelaysWaiting days for test data, decisions or environments
DefectsDefectsBugs found by patrons after release
Unused talentNot using people's knowledgeBranch staff ideas never reach the backlog

Value stream mapping

A value stream map traces a piece of work from request to delivery, recording the time spent actually working on it and the time spent waiting between steps. The ratio of working time to total elapsed time is called process cycle efficiency (sometimes flow efficiency). In knowledge work it is often shockingly low, under 15 %, because items spend most of their time in queues. The Compass team mapped what happened to a typical bug reported by a patron during the pilot, from report to fix in production.

A value stream map for a patron-reported bug, in hours.
# Value stream for a patron-reported app bug, from report to fix in production (hours).
steps = [("Triage queue", 0, 30), ("Triage", 0.5, 0), ("Wait for sprint planning", 0, 120),
         ("Fix and unit test", 4, 0), ("Wait for code review", 0, 16), ("Code review", 1, 0),
         ("Wait for release window", 0, 60), ("Deploy", 0.5, 0)]
work = sum(w for _, w, _ in steps)
wait = sum(q for _, _, q in steps)
print(f"Value-adding work: {work} h; waiting: {wait} h; lead time: {work + wait} h")
print(f"Process cycle efficiency: {work / (work + wait):.1%}")
biggest = max(steps, key=lambda s: s[2])
print("Largest wait:", biggest[0], f"({biggest[2]} h)")
Output
Value-adding work: 6.0 h; waiting: 226 h; lead time: 232.0 h
Process cycle efficiency: 2.6%
Largest wait: Wait for sprint planning (120 h)

Only six of 232 hours were spent working on the bug; the rest was waiting. The biggest wait was not in the team's coding at all but in holding the bug until the next sprint planning. Working faster would barely change the total. The team changed its policy: small defects found by patrons now go straight to the top of the sprint backlog if they take less than half a day, and releases move from a fixed fortnightly window to whenever the automated tests pass. Optimizing the whole meant fixing queues, not effort.

A value stream map with eight steps along a timeline. Work steps such as triage, fix and test, code review and deploy are shown as short boxes above the line with their work hours. Waits such as triage queue, wait for sprint planning, wait for code review and wait for release window are shown as longer segments below the line. Totals at the right read work 6 hours, wait 226 hours, efficiency 2.6 percent.
The bug fix value stream: most of the elapsed time is waiting.

Extreme Programming (XP)

XP, developed by Kent Beck and colleagues in the late 1990s, takes good engineering practices and turns them up to the extreme: if code review is good, review all the time through pair programming; if testing is good, write tests first; if integration is good, integrate many times a day. XP's values are communication, simplicity, feedback, courage and respect. Many Scrum teams adopt XP's technical practices because Scrum itself says nothing about how to build software.

Key XP practices.
XP practiceWhat it isWhy it matters
Pair programmingTwo developers work at one workstation, swapping rolesContinuous review, shared knowledge, fewer defects
Test-driven development (TDD)Write a failing automated test, write code to pass it, then refactorDesigns stay testable; regression safety net
Continuous integrationMerge and test changes many times a dayIntegration problems surface early and small
RefactoringImprove code structure without changing behaviourKeeps the design simple and change cheap
Simple designBuild the simplest thing that works for today's needsAvoids speculative complexity
Collective code ownershipAnyone can improve any part of the codeNo single-person bottlenecks
Small releasesRelease working software frequentlyFast feedback from real use
Whole team / on-site customerA customer representative works with the teamQuestions answered quickly
Sustainable paceAvoid sustained overtimeTired people make more mistakes
Coding standardsShared conventions for codeCode is readable by everyone

A related idea is technical debt: the future cost of shortcuts taken now, such as skipped tests or a quick-and-dirty design. Like financial debt, a little can be useful to hit a date, but unpaid debt accumulates interest in the form of slower and riskier change. XP practices keep debt low. In exam questions, a team whose velocity is steadily falling while defects rise often has a technical debt problem; the best answer usually involves making the debt visible to the product owner and allocating capacity to pay it down.

Other agile methods

Several other methods appear occasionally. The Dynamic Systems Development Method (DSDM), now maintained by the Agile Business Consortium, fixes time, cost and quality and varies features, and gave the world MoSCoW prioritization (must, should, could, won't have this time). Feature-Driven Development (FDD) organizes work around small client-valued features with a modelling phase and feature teams. Crystal is a family of methods scaled by team size and criticality, emphasizing people and communication. You need to recognize their names and signature ideas rather than know them in depth.

Scaling agile

A single Scrum Team of up to about ten people cannot build every product. When several teams work on one product, they need ways to coordinate backlogs, dependencies, integration and releases. Scaling frameworks offer different answers.

Common approaches to scaling agile.
ApproachCore ideaSignature elements
Scrum of ScrumsRepresentatives from each team meet regularly to coordinateShort coordination meetings focused on dependencies and impediments
Nexus (Scrum.org)Three to nine Scrum Teams on one product with an integration teamNexus integration team, shared product backlog, integrated increment
LeSS (Large-Scale Scrum)Scale Scrum with minimal extra structureOne product owner and one product backlog for many teams; shared sprint
SAFe (Scaled Agile Framework)Comprehensive framework from team to portfolio levelAgile release trains, program increment (PI) planning, portfolio management
Disciplined Agile (PMI)A toolkit for choosing your way of working at team and enterprise levelContext-sensitive choices, goal-based guidance; owned by PMI since 2019

Scaling frameworks differ greatly in how much structure they add. LeSS tries to keep Scrum's simplicity and reorganize around customer value; SAFe provides many defined roles and events that large enterprises find familiar. Neither is automatically right. Exam questions about scaling usually reward the basics: a single, clearly ordered backlog per product, coordination of dependencies across teams, an integrated increment at least every sprint, and avoiding extra layers that slow decisions. The Compass app is a single team, so none of these frameworks was needed, but the library's later program to build apps for all branches used a Scrum of Scrums across three teams.

Worked problem

Spotting the waste

The library's web team takes about six weeks to publish a new page. Writing the content takes a day, design half a day and coding half a day. The rest of the time the page waits: for a weekly content committee, for legal review that happens every second Friday, and for a monthly release window. The team asks for an extra developer to speed things up. What should the project manager suggest?

Show solution
  1. Map the value stream: about two days of work in roughly 30 working days means process cycle efficiency below 10 %.
  2. An extra developer would shave part of a day off the coding step and barely change the six weeks.
  3. The waste is waiting and overprocessing: batch approvals and infrequent releases.
  4. Options include delegating routine approvals, having legal review only pages that meet defined criteria, and releasing whenever a page is approved.

Answer: Do not add a developer; reduce the waits by changing approval policies and release frequency, guided by a value stream map.

Choosing among the family

In practice, few teams use one method in pure form. A common combination is Scrum for the team's framework, XP practices for engineering, Kanban-style WIP limits on the task board and lean thinking for improving the end-to-end process. Exam questions rarely ask which method a team "should" adopt in the abstract; they describe a problem and ask for the next step. Match the problem to the idea that addresses it: long lead times with little hands-on work point to lean value stream thinking; rising defects and slow change point to XP practices and technical debt; unpredictable incoming work points to Kanban; coordination trouble across several teams points to scaling practices; and a team unsure of its goals and roles points back to Scrum's accountabilities and events.

Common mistakes

  • MistakeSpeeding up the busiest people to cut lead time.

    InsteadFind and reduce the queues; in knowledge work most time is spent waiting.

  • MistakeReading "defer commitment" as avoiding decisions.

    InsteadDecide at the last responsible moment, before options disappear.

  • MistakeIgnoring technical debt because the product owner wants features.

    InsteadMake the debt visible and reserve capacity to pay it down.

  • MistakeChoosing the heaviest scaling framework by default.

    InsteadAdd only the coordination needed; keep one backlog per product and integrate often.

  • MistakeTreating XP as only for programmers.

    InsteadIts ideas (fast feedback, simple design, sustainable pace) apply widely, though its practices are technical.

Summary and key terms

  • Lean aims to maximize value and minimize waste by improving end-to-end flow.
  • Poppendieck principles: eliminate waste, build quality in, create knowledge, defer commitment, deliver fast, respect people, optimize the whole.
  • Knowledge work wastes include partially done work, extra features, handoffs, task switching, delays and defects.
  • Value stream maps reveal low process cycle efficiency caused mainly by waiting.
  • XP contributes pair programming, TDD, continuous integration, refactoring, simple design and sustainable pace.
  • Technical debt is the growing cost of shortcuts; manage it visibly.
  • Scaling approaches include Scrum of Scrums, Nexus, LeSS, SAFe and Disciplined Agile.
Lean
An approach that maximizes customer value and minimizes waste by improving flow.
Value stream map
A diagram of the steps and waits from request to delivery.
Process cycle efficiency
Working time divided by total elapsed time for a piece of work.
Last responsible moment
The latest point at which a decision can be made without losing important options.
Extreme Programming (XP)
An agile method built around intensive engineering practices and fast feedback.
Test-driven development
Writing an automated test before the code that makes it pass.
Technical debt
The future cost of rework caused by shortcuts in design or quality.
Agile release train
In SAFe, a long-lived team of agile teams that plans and delivers together.

Practice problems

Work each problem on paper first, then reveal the answer to check.

  1. What is process cycle efficiency?

    Show answer

    Working time divided by total elapsed time.

  2. Which waste corresponds to inventory in knowledge work?

    Show answer

    Partially done work.

  3. Why did adding a developer not fix the web page delays?

    Show answer

    Most of the lead time was waiting for approvals and releases.

  4. Name three XP practices.

    Show answer

    Any three of pair programming, TDD, continuous integration, refactoring, simple design, collective ownership, small releases, sustainable pace.

  5. Which method introduced MoSCoW prioritization?

    Show answer

    DSDM.

  6. What signs suggest a technical debt problem?

    Show answer

    Falling velocity with rising defects and slower changes.

  7. What is PI planning?

    Show answer

    A SAFe event where the teams on a release train plan the next program increment together.

  8. Which scaling framework does PMI own?

    Show answer

    Disciplined Agile.

  9. What does "optimize the whole" mean?

    Show answer

    Improve end-to-end flow rather than individual steps.

  10. In LeSS, how many product owners and backlogs serve many teams on one product?

    Show answer

    One product owner and one product backlog.

Lesson quiz · 5 questions

Score 60% or more to complete this lesson.

Take the quiz