This is why behavioral acceptance tests matter more than code that merely compiles. For a cache, the minimum contract should include hit behavior, invalidation, key normalization, eviction, and metrics that reveal the hit ratio in a real workload. Agents can write plausible code quickly, but the contract is what proves it is useful.