AI agent workflow resilience