Patterns
Confidence-gated routing
Use confidence as a second axis. The answer tells you what; confidence tells you whether to act.
One of TypeSafe’s most powerful features is confidence. By being intentional with the way you gate decisions on confidence, you can build systems that are both reliable and safe.
The 0.6 floor catches anything the model is genuinely uncertain about. Above that floor, each action type has its own threshold based on the consequences of acting on a wrong classification. Checking a balance at 0.6 is fine because the worst case is the user having to listen to the balance read-out. But approving a transfer requires very high confidence (>0.85), otherwise the system should ask the user to confirm.
See Confidence for more details on how to think about confidence in your systems.

