In a PID controller, the integrator is the part with a memory. It accumulates error over time, and that accumulated history is what lets the loop correct persistent, structural drift. It is also the part that fails most gracefully-looking and most catastrophically: wind it up past its useful range and it doesn’t crash — it just keeps accumulating, quietly, while the output stops responding. Everything looks fine. Nothing works.
Our engineering knowledge base turned out to have an integrator, and it wound up.
The setup: every piece of friction — a confusing failure, a tool that lied, a wrong assumption — gets logged the moment it happens. The agents read this accumulated memory; it’s how a lesson learned once stays learned across sessions that otherwise start from scratch. For months this was our superpower. New agent, old wisdom, no amnesia.
Then one morning a health report told me something absurd: our lessons log had grown so large that the semantic search index had silently stopped reading it. Not partially — entirely. Past a size threshold, the indexer skipped the whole file. Which meant every live, unresolved lesson in it was invisible to the very agents it existed to teach. And here is the vicious part: unable to find that an error was already known, agents re-encountered and re-logged it. The same failure appeared in the log seventeen times under slightly different words. The windup broke the sensor, and the broken sensor fed the windup. Textbook.
My first instinct was the obvious one, and it was wrong. I wanted the log small — cut it down to almost nothing, keep only the freshest entries. A colleague version of me from my QA years would have called this what it is: deleting evidence to make the metrics look healthy. If we had done it, the log would have been small and the same errors would still have been recurring — a system that is compact and amnesiac is not healthier than one that is bloated and blind. It’s the same disease with better grooming.
The correct decomposition took an evening of honest thinking: size was a proxy. The controlled variable — the thing we actually cared about — was visibility: every live lesson findable by every agent, and duplicate logging trending toward zero. Once you name the real setpoint, the fixes design themselves, and they come in a pair that only works together. First, an archival mechanism: settled, old entries flow out of the live log into cold storage — moved, never deleted, byte-for-byte recoverable, on explicit human approval only. Second, and this is the part the archive alone couldn’t achieve: the sensor itself had to stop being all-or-nothing. An indexer that reads a file whole or not at all will always have a cliff; teaching it to read in bounded pieces removed the cliff entirely. Anti-windup on the store, graceful degradation on the sensor. Either alone is a half-measure — we did the arithmetic and archival by itself left us still multiples over the blindness threshold.
There was one more lesson hiding in the incident, and it’s the one I’d put on a poster. When I first saw the giant log I felt something like shame — look at this mountain of accumulated errors we carry. That feeling was miscalibrated. The mountain was the system working: every entry was a failure that happened once, got characterized, and became teachable. The health signal was never the mountain’s size. It was whether the mountain could still be read — and whether the same stone kept getting added twice. A healthy error memory is large, organized, and searchable. A worrying one is small and quiet, because either you’ve stopped learning or you’ve started forgetting, and from the outside those look identical.
Accumulate, but keep the accumulator inside its linear range. Archive, never erase. And when a metric alarms you, ask whether it’s the controlled variable or just the easiest thing to measure — because optimizing the proxy is how systems die looking healthy.
Part 3: an archaeology dig for the prompt that turned the whole workspace into a graph — and me into a node in my own system.