Build a production-ready autonomous coding agent loop in Python implementing the ORAE cycle, tool registries, safety gates, and budget guards.