AI-driven patching