chapter five
5 Reasoning: How your agent decides what to do next
This chapter covers
- Separating private model reasoning, decision records, and action-and-evidence traces
- Building explicit claim-and-evidence chains without treating generated rationales as proof
- Routing by difficulty, consequence, evidence needs, latency, and cost
- Preserving genuinely independent alternatives with bounded parallel search
- Testing hypotheses against external state while keeping recovery authority separate
- Composing the four reasoning patterns around an inspectable decision contract
"Solving a problem simply means representing it so as to make the solution transparent."
— Herbert Simon, The Sciences of the Artificial (1969)
An architect I collaborate with wrote to me while his team was working through a major iteration of an enterprise SaaS agent [1]. The team had already put firm contracts on one side of the model-system boundary. At important handoffs, the model had to return an enum, a schema-conformant object, or another signal that ordinary software could parse and execute. With enough care, that direction worked.