ai resilient software architecture