Disclosure up front: I build agentproto, which runs

checks inside an agent's loop rather than only at the end. Everything about

why that matters you can verify without me — the sources are named and dated,

and I'll concede where the plain loop is exactly right. Corrections welcome,

file an issue.