Building a Safe Autonomous Task Planner Using Agentic Control Loops – Agentic AI