agent_safety_middleware
