Designing a Safe and Autonomous Task Planning System with Controlled Agentic Workflows