Distilling production-grade resilience patterns from OpenClaw open-source Agent engine into a reusable library for LLM applications