Build a Plan–Execute–Review Agent Without Infinite Loops

Implement an agent loop with typed plans, evidence-based review, bounded revision, explicit stop states, and safe tool execution.