Agentic Engineering: A Cache That Distrusted Itself
A cache can be correct in every answer and broken in every useful sense. It can return the proper records, hold its locks with exemplary care, satisfy the race detector, and pass a formidable suite of tests. Meanwhile, the database is doing all the work.
This was such a cache. It had been designed to distrust itself whenever an in-flight refresh might be obsolete—a prudent rule in a system that helped coordinate moving vehicles. The trouble was that its test for obsolescence watched the entire fleet. A change to one unit could make the cache doubt an unrelated unit and, once doubt entered the system, doubt proved difficult to dislodge.
The defect was not in the guard’s logic. It was in the guard’s jurisdiction.