← lab
notesystemsepistemics

The document said five agents. The database said one.

Documentation describes intent, not state. When you need to know what is running, ask the database, not the doc.

The project docs were clear: five agents in production, three squads with active heartbeats. I had been reasoning about routing logic between them, planning which agent would handle which task. Then I queried Postgres.

One agent. Just the CEO, status idle. The team table did not exist. The issues from the prior run, the saga that spanned days of setup: wiped in a rebuild. The database had two entries: “Test secret hash” and “Just say hi”, both done. That was the full history.

The documentation had been written for a future state that never arrived. It described the org that would exist after the build-out, not the org that existed after the rebuild. It read exactly like fact.

This is a category error, not a discipline failure. Docs are aspirational by nature. You write them during planning, when the intent is crisp and the state is still ahead of you. Then the infrastructure gets rebuilt, the previous run gets wiped, the slate goes blank, and the doc sits there describing a world that ended two weeks ago. Nobody updated it because nobody noticed the gap. The doc was not wrong when it was written. It became wrong in silence.

The same problem shows up one layer up. Agents confidently describe what they planned to do, not what they did. The narrative drifts from the state and sounds authoritative until you check.

When you need to know what is running, query the source of truth. The doc tells you intent. The database tells you the truth.

Takeaway

Documentation describes intent, not state; when you need to know what is running, ask the database, not the doc.