Catching tool errors at the right layer
The mental model is the easy part - handle each kind of tool error where it can actually be fixed. The build is where the detail lives: telling failures apart when you can't trust their wording, retrying in the harness, and stopping a model that won't stop itself.