Make Every Leaf Testable

A decomposition ends when each leaf has a clear action and an observable result.

DecomposeScore a decomposition →

The question

How would we know this piece is complete?

Do this

  • Attach one observation to every leaf.
  • Rename vague leaves such as “handle auth” until the behaviour is explicit.
  • If the observation still needs several outcomes, split again.

Example

  • “Process payment” is too broad. “Given a provider confirmation, mark the order paid exactly once” is a testable leaf.

Ask next

  • ?What input starts this leaf?
  • ?What result can be observed?
  • ?Can it fail independently of its siblings?