Designing Internal Service Status from Metrics and Logs (For AI Agent Loops)
The article frames the problem around two different audiences: an editor who needs to know whether a publishing job can finish correctly, and an operator who needs enough evidence to reconstruct why it did not. Displaying every metric and log line, the author writes, satisfies neither need. The proposed first version is a small, read-only projection built from bounded metrics, correlated terminal events, and an explicit freshness rule. The TL;DR recommends modeling the loop as a state machine, exposing one aggregate snapshot to the internal admin UI, and keeping raw logs behind drill-down links. The page should show availability, end-to-end latency, error ratio, and an estimated usage unit for each workflow class. The author also advises marking stale data as unknown rather than healthy, to preserve the distinction between service reachability and completed editorial work. A media workflow may accept a story brief, retrieve background material, call one or more models, run a policy check, and persist a draft; a process-level health check can succeed while that sequence repeatedly times out or produces no publishable result. The excerpt ends mid-sentence, stating that for an internal page the unit of health should be something other than the process check.
The post argues that process-level health checks can pass while an AI agent workflow fails to produce publishable output, so internal status pages should track completed work rather than reachability alone.