A failed agent prototype led to a new architecture built around replaceable providers, tools, memory, retrieval, runtimes, and headless UI contracts.