Overview

3 AI as a partner and problem

AI can be a powerful partner in software development, but only when it is used with clear intent and human judgment kept above the execution loop. The chapter opens by showing how easily AI-generated code can look correct while quietly introducing business rules, assumptions, and maintenance burdens that nobody explicitly chose. In a Lean context, the core issue is not whether AI is fast, but whether that speed is directed toward real value or toward waste that gets approved and carried forward.

The most effective use of AI is to remove friction from low-commitment work: scaffolding from contracts, generating failing tests from specifications, summarizing pull requests, and handling boilerplate. These uses shorten the path from decision to feedback while preserving the developer’s responsibility for defining the problem, setting constraints, and deciding what “done” means. The chapter emphasizes that AI should reduce effort without increasing long-term commitment, because disposable scaffolds and summaries are cheap to discard, while invented logic becomes expensive inventory.

At the same time, unconstrained prompting can create substantial waste by overproducing code, inventing abstractions, and pushing decisions downstream into review, debugging, and support. To counter this, the chapter recommends standard work for AI: explicit boundaries, reusable prompt patterns, shared team personas, and clear rules about when AI may act and when human judgment must intervene. By making intent visible and constraining generation to the team’s best-known practices, AI becomes a flow-protection tool that reduces variability, protects reviewer attention, and keeps the system easier to understand, change, and improve.

A human developer embedded within the AI-governed execution loop.
A human developer embedded within the AI-governed execution loop.
A human developer positioned above the AI-governed execution loop.
A human developer positioned above the AI-governed execution loop.
Separating high commitment decisions from low commitment execution.
Separating high commitment decisions from low commitment execution.
Low effort + low commitment = Lean AI usage.
Low effort + low commitment = Lean AI usage.
How unconstrained AI generates cascading waste.
How unconstrained AI generates cascading waste.
Four forms of Lean waste introduced through unconstrained AI-generated code
Four forms of Lean waste introduced through unconstrained AI-generated code
Standard work stabilizes AI output variability.
Standard work stabilizes AI output variability.
Use AI heavily when changes are cheap to reverse and sparingly when they're expensive to undo.
Use AI heavily when changes are cheap to reverse and sparingly when they're expensive to undo.
Standard work filters AI output, protecting flow and preventing rework later.
Standard work filters AI output, protecting flow and preventing rework later.
Systematic comparison of handwritten versus AI approaches.
Systematic comparison of handwritten versus AI approaches.

Summary

  • Position matters: Keep yourself above the loop, not inside it. AI is a power tool, not a collaborator. You design the system; AI executes within the boundaries you set.
  • AI creates value when it reduces effort without increasing commitment: scaffolding, test skeletons, PR summaries, and other low-commitment work that accelerates feedback. AI creates waste when it invents behavior: overproduction, premature abstraction, and decisions disguised as completeness.
  • Waste hides in "productivity." Fast output feels like progress. But code that looks complete, tests that pass, and high velocity can still mask inventory, deferred decisions, and underused skills.
  • Standard work stabilizes the system: shared AI personas, prompt templates, and PR templates make output predictable. Standards aren't rules; they're baselines for improvement. They protect the flow by filtering waste before it enters your system.
  • Prompts are interfaces to standard work: Use negative constraints, reference established contracts, bias toward smaller outputs, and resolve ambiguity before generating code. Reusable prompts make expectations explicit and reduce downstream waste. generation. The test for any prompt: Does this reduce downstream work?
  • Visibility prevents waste from surviving review: When reviewers can't see the value stream, the prompt, the contract, the decisions, they approve what looks reasonable. PR templates that expose intent, AI usage, and deferred decisions shift reviews from "does it work?" to "does it serve the intent with minimal waste?"

FAQ

What does it mean to keep the human above the loop in AI-assisted development?It means the human is not just another executor in the workflow. Instead, the human defines intent, sets boundaries, evaluates outcomes, and improves the system while AI handles bounded execution.
Why is the “AI as pair programmer” metaphor considered misleading?Because it suggests AI is a peer inside the workflow, which can hide where value is created and where waste is accumulating. It can cause developers to focus on output instead of decisions, trade-offs, and system flow.
How can AI help a team stay Lean?AI helps when it removes mechanical work that does not differentiate the product, such as boilerplate, scaffolding, repetitive transformations, test setup, and draft documentation. This shortens feedback loops without increasing long-term maintenance burden.
What is the Lean problem with unconstrained AI prompts?Unconstrained prompts cause AI to invent requirements, business rules, abstractions, and error handling that were never requested. This creates overproduction, inventory, extra review work, and future maintenance cost.
Why is scaffolding with a 501 response a better AI use than asking AI to “implement the endpoint”?Because the scaffold is temporary and low-commitment. It preserves the contract, makes incompleteness visible, and lets the developer make the important design decisions before filling in the real logic.
How does AI support test-driven development in a Lean way?AI can generate the boilerplate for failing tests from the contract, reducing setup friction while the human still defines the expected behavior and success criteria. This preserves design intent and speeds up feedback.
What kinds of waste does AI commonly introduce when used without constraints?Common waste includes overproduction, inventory, defects, motion, and extra processing. In practice, this looks like unused code, hidden assumptions, unnecessary abstractions, and more effort required to review or maintain the change.
Why is standard work important for AI-assisted development?Standard work creates a stable baseline for when and how AI should be used. It reduces variability, makes deviations visible, and protects flow by preventing low-quality or ambiguous work from entering review and integration.
What should standard work for AI usually define?It should define where AI is allowed to act, what prompts or outputs are acceptable, where human judgment must intervene, what constraints must be included, and how AI usage should be documented.
What is a Lean approach to prompting AI?Use prompts that are specific, constrained, and grounded in a contract or spec. Favor negative constraints, smaller outputs, explicit success criteria, and prompts that separate reasoning from generation so the AI does less guessing and more useful work.

pro $24.99 per month

  • access to all Manning books, MEAPs, liveVideos, liveProjects, and audiobooks!
  • choose one free eBook per month to keep
  • exclusive 50% discount on all purchases
  • renews monthly, pause or cancel renewal anytime

lite $19.99 per month

  • access to all Manning books, including MEAPs!

team

5, 10 or 20 seats+ for your team - learn more


Close
choose your plan

team

monthly
annual
$49.99
$499.99
only $41.67 per month
  • five seats for your team
  • access to all Manning books, MEAPs, liveVideos, liveProjects, and audiobooks!
  • choose another free product every time you renew
  • choose twelve free products per year
  • exclusive 50% discount on all purchases
  • renews monthly, pause or cancel renewal anytime
  • renews annually, pause or cancel renewal anytime
  • Build High Value Software Systems Build High Value Software Systems ebook for free
Close
choose your plan

team

monthly
annual
$49.99
$499.99
only $41.67 per month
  • five seats for your team
  • access to all Manning books, MEAPs, liveVideos, liveProjects, and audiobooks!
  • choose another free product every time you renew
  • choose twelve free products per year
  • exclusive 50% discount on all purchases
  • renews monthly, pause or cancel renewal anytime
  • renews annually, pause or cancel renewal anytime
  • Build High Value Software Systems Build High Value Software Systems ebook for free