Design production-grade stateful agentic loops with Microsoft Foundry Agent Service. Implement run-status handling and context accumulation, configure agent reflection and planning cycles, architect session state persistence, build fork-based session patterns, and migrate existing Agents v1 workloads to the Agents v2 Responses API.