a builder's codex
codex · operators · Thorsten Ball · ins_ball-observability-legible-to-agent

When agents write code, the decisive technology selection criterion is whether failure modes are legible to the agent

By Thorsten Ball · Engineering Lead, Amp at Sourcegraph; author of Register Spill newsletter · 2026-09-26 · post · Joy & Curiosity #101

Tier B · TL;DR
When agents write code, the decisive technology selection criterion is whether failure modes are legible to the agent

Claim

With agents as primary code authors, the decisive criterion for selecting languages and frameworks shifts from developer ergonomics to agent-legibility: how clearly the system exposes performance characteristics, resource usage, failure modes, and deployment state to external tools.

Mechanism

Human engineers can ask questions. They can read code, search context, and request clarification. Agents cannot. Agents diagnose systems through external observation: logs, test output, error messages, and monitoring signals. A framework that produces opaque failure messages, hides internal state, or relies on implicit conventions forces the agent to guess. A framework that surfaces structured, descriptive errors, exposes runtime state to external tools, and behaves consistently under failure gives the agent the signals it needs to fix problems correctly the first time. Observability was a quality-of-life improvement when humans were the primary authors. When agents become primary authors, observability becomes load-bearing infrastructure.

Conditions

Holds when: agents write and debug most of the code with limited human intervention between cycles. Fails when: agents are used only for initial generation and humans handle all debugging and modification, in which case developer ergonomics remain primary.

Evidence

Ball names the dimensions explicitly:

"performance characteristics, resource usage, failure modes, observability, debuggability, deployments, rollbacks"

He frames these as the properties that must be "legible to the agent." Systems built for human readability often fail this test: they use implicit error handling, rely on developer familiarity with internal state, and produce messages optimized for humans who can scroll context. Agent-legible systems produce structured, machine-readable failure signals at every boundary.

Signals

Counter-evidence

Many highly observable systems are also pleasant for human engineers to work with, so this criterion does not necessarily conflict with developer ergonomics. For greenfield work where agents are generating the observability infrastructure itself, the ordering problem is circular: a well-prompted agent can build observable systems from scratch rather than requiring the team to pre-select an observable framework.

Cross-references

Open the interactive view → View original source → Markdown source →