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 positioned above the AI-governed execution loop.
Separating high commitment decisions from low commitment execution.
Low effort + low commitment = Lean AI usage.
How unconstrained AI generates cascading waste.
Four forms of Lean waste introduced through unconstrained AI-generated code
Standard work stabilizes AI output variability.
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.
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?"
Build High Value Software Systems ebook for free