ClickHouse is the agent's legal memory: vector retrieval, authority graph, source cache, and replayable reasoning trace in one system.