| name | toyota-way |
| description | Toyota Production System (TPS) and Toyota Way for software engineering โ lean thinking, waste elimination, root cause analysis, and continuous improvement. Use when identifying waste (muda/muri/mura), running blameless postmortems, doing 5 Whys, writing A3 problem statements, or connecting lean philosophy to TRIZ contradiction resolution. |
toyota-way โ Toyota Way & TPS Reference
Toyota Production System (TPS) and Toyota Way concepts for software engineering.
English-first. Japanese terms shown inline with kanji and reading.
Use when applying lean thinking, identifying waste, structuring problem-solving,
or connecting the triz tool to Japanese management philosophy.
Scripts
| Script | Use |
|---|
script/postmortem.nu "Incident Title" | Blameless postmortem with 5 Whys + triz integration |
script/postmortem.nu "Title" --save file.md | Write postmortem to file |
script/a3.nu "Problem Title" | A3 one-page problem clarity template |
script/a3.nu "Title" --save file.md | Write A3 to file |
Both scripts print a structured markdown template to stdout. Fill in bracketed fields.
Both embed a triz solve invocation in the root cause section โ run it if a contradiction emerges.
The two pillars
Just-in-Time โ make only what is needed, only when needed, only in the
amount needed. Eliminates inventory (work-in-progress), over-production, waiting.
Jidoka โ ่ชๅๅ (ใใฉใใ) โ autonomation with a human touch. The kanji ๅ
(human work) is deliberate โ not ่ชๅๅ (pure automation). Machines detect defects
and stop automatically; humans investigate before anything resumes. Two mandatory
moves: autonomous detection, then human judgment. Neither alone is jidoka.
The three wastes
Muda โ ็ก้ง (ใใ ) โ waste. Unnecessary work, unused features, dead code,
over-engineering. The target of most lean effort.
Muri โ ็ก็ (ใใ) โ overburden. Asking more than capacity allows. Context
window exhaustion, sprints that require heroics, agents without timeouts.
Mura โ ใ ใฉ (ใใ) โ unevenness. Inconsistency, variability, flakiness.
Non-deterministic builds, variable LLM output without temperature control,
batch-and-queue workflows that create feast-or-famine load.
All three interact: muri creates mura, mura creates muda. Fix muri first.
Problem-solving tools
Poka-yoke โ ใใซใจใฑ (ใฝใใใ) โ mistake-proofing. Prevent errors before
they occur rather than inspect them out afterward. Named from ้ฆฌ้นฟ้ฟใ (fool-avoiding).
The device makes the wrong action impossible, or immediately visible.
Software: type systems, required fields, merge gates, acceptance criteria checked
before merge. Rust's borrow checker is poka-yoke. triz eval --ci is poka-yoke.
Pairs directly with TRIZ Principle 11 (Beforehand Cushioning) โ academic literature
at P2SL Berkeley explicitly connects mistakeproofing to TRIZ inventive principles.
5 Whys โ ใชใใชใๅๆ (ใชใใชใใถใใใ) โ ask "why" five times to reach root
cause. Each answer becomes the next question. Stop when you reach a cause you can
actually fix. The analysis is complete when the root cause is a policy or system
failure, not a person. Pairs naturally with TRIZ: 5 Whys finds the contradiction;
TRIZ resolves it.
A3 thinking โ A3ๆ่ (ใใผใใใใใ) โ entire problem documented on one A3
sheet (420ร297mm). Structured sections: background โ current state โ target โ
root cause analysis โ countermeasures โ acceptance criteria โ follow-up.
Toyota's PDCA (่จ็ปใปๅฎ่กใป็ขบ่ชใปๆนๅ, plan-do-check-improve) made visible and portable.
Forces clarity: if it doesn't fit on one page, the thinking isn't clear yet.
Andon โ ่ก็ฏ (ใใใฉใ) โ the signal light showing production status. Origin:
a paper lantern. Anyone on the line can pull the andon cord to stop production
when they spot a defect. Stopping to fix is faster than passing defects downstream.
Software: CI red build, triz eval exit 1, drift flag in council output.
Genchi genbutsu โ ็พๅฐ็พ็ฉ (ใใใกใใใถใค) โ "go and see." Go to the actual
place (็พๅฐ), observe the actual thing (็พ็ฉ). No decision without direct observation.
Software: reproduce the bug locally before diagnosing, read the actual code before
proposing a fix, run triz doctor before assuming the environment is healthy.
Strategy and alignment
Hoshin kanri โ ๆน้็ฎก็ (ใปใใใใใใ) โ policy deployment. Cascade
organizational direction (ๆน้) down to implementation through the whole structure.
Sets the "what" at each level; teams determine the "how." The TRIZ Journal documents
pairing with TRIZ: hoshin kanri defines the strategic contradiction to resolve;
TRIZ finds the resolution; A3 documents it; the corpus records it.
Nemawashi โ ๆ นๅใ (ใญใพใใ) โ "going around the roots." Build consensus by
consulting each stakeholder individually before the formal meeting. No surprises in
the room; the decision is effectively made before the decision meeting. The formal
meeting ratifies what nemawashi already achieved.
Ringi โ ็จ่ญฐ (ใใใ) โ the formal written proposal circulated for sequential
approval stamps (ๅคๅญ, hanko). Creates an accountability trail. Each stamp = explicit
acknowledgment of responsibility. Software: the PR description as ringi document,
required reviewers as hanko holders, merge as the final stamp.
Heijunka โ ๅนณๆบๅ (ใธใใใ
ใใ) โ production leveling. Smooth out demand
spikes; avoid batch-and-queue. Even flow over time beats maximum throughput followed
by idle. Software: steady spec dispatch over waves rather than sprint crunch, --tier fast for most calls rather than quality-tier for everything.
Learning and mastery
Shu-ha-ri โ ๅฎ็ ด้ข (ใใ
ใฏใ) โ three stages of mastery from martial arts.
ๅฎ (ใพใใ, obey) โ learn the rules exactly as taught. Do not deviate.
Understand the form before questioning it.
็ ด (ใใถใ, break) โ having mastered the rules, examine why they exist.
Begin to adapt. The deviation is informed, not ignorant.
้ข (ใฏใชใใ, leave) โ transcend the rules entirely. Create new forms.
The rules are internalized so deeply they no longer constrain.
Altshuller's 5 levels of invention map almost exactly to ๅฎ็ ด้ข. The triz
--tier system (fast/standard/quality) is a rough ๅฎ็ ด้ข proxy.
Hansei โ ๅ็ (ใฏใใใ) โ self-reflection before improvement. Mandatory
acknowledgment of failure or shortcoming. In Toyota culture, hansei is not
optional and not brief. Kaizen (ๆนๅ, continuous improvement) cannot begin
without genuine hansei. The sequence is hansei โ kaizen, never the reverse.
Kaizen โ ๆนๅ (ใใใใ) โ continuous improvement. Small, daily, everyone's
responsibility. Not a project with an end date โ a permanent practice. The
improvement never completes. Each kaizen creates the conditions for the next.
Philosophy
Monozukuri โ ใใฎใฅใใ โ the art and spirit of making things. Not just
manufacturing (่ฃฝ้ , ใใใใ). Covers technique (ๆ่ก), spirit (็ฒพ็ฅ), and the
craftsman's pride (่ทไบบๆฐ่ณช, ใใใใซใใใใค). A shokunin (่ทไบบ, craftsperson)
does not ship work they are not proud of. The work carries the maker's name.
Ma โ ้ (ใพ) โ negative space. The meaningful pause between notes, the void
between pillars, the silence in conversation. What is not there defines what
is there. In TRIZ: empty matrix cells are ้. Altshuller left them empty
deliberately โ no known solution exists for those contradiction pairs.
Filling the silence with a hallucinated answer violates ้.
Shokunin kishitsu โ ่ทไบบๆฐ่ณช (ใใใใซใใใใค) โ the craftsman's disposition.
Pride that refuses to release work that falls short of one's own standard.
Not perfectionism (which delays indefinitely) but craft integrity (which ships
when the work is genuinely good). The corpus confirmed state is the shokunin's
stamp. needs_validation is the work not yet ready to bear the maker's name.
Quick reference
| Term | ๆฅๆฌ่ช | Reading | Core idea |
|---|
| Jidoka | ่ชๅๅ | ใใฉใใ | Auto-stop + human judgment |
| Poka-yoke | ใใซใจใฑ | ใฝใใใ | Prevent errors before they occur |
| Muda | ็ก้ง | ใใ | Waste |
| Muri | ็ก็ | ใใ | Overburden |
| Mura | ใ ใฉ | ใใ | Unevenness |
| Kaizen | ๆนๅ | ใใใใ | Continuous improvement |
| Hansei | ๅ็ | ใฏใใใ | Reflection before improvement |
| Ma | ้ | ใพ | Meaningful absence |
| Nemawashi | ๆ นๅใ | ใญใพใใ | Consensus before the meeting |
| Shu-ha-ri | ๅฎ็ ด้ข | ใใ
ใฏใ | Obey โ Question โ Transcend |
| Hoshin kanri | ๆน้็ฎก็ | ใปใใใใใใ | Goals cascaded to action |
| Monozukuri | ใใฎใฅใใ | ใใฎใฅใใ | Craft as calling |
| Andon | ่ก็ฏ | ใใใฉใ | Stop-signal: problem here |
| Genchi genbutsu | ็พๅฐ็พ็ฉ | ใใใกใใใถใค | Go and see yourself |
| Heijunka | ๅนณๆบๅ | ใธใใใ
ใใ | Level the flow |
| 5 Whys | ใชใใชใๅๆ | ใชใใชใใถใใใ | Drill to root cause |
| A3 thinking | A3ๆ่ | ใใผใใใใใ | One-page problem clarity |
| Ringi | ็จ่ญฐ | ใใใ | Formal approval trail |
| Shokunin kishitsu | ่ทไบบๆฐ่ณช | ใใใใซใใใใค | Craftsman's pride |