Engineering note

Agents need boring infrastructure

20 June 20262 min read
On this page

Expanded 9 October 2026.

Retries, timeouts, idempotency, logs. The model makes an agent interesting; the surrounding software decides whether a person can rely on it. A useful agent has to survive more than the first successful response.

Start with one owner for state

Consider a coding session opened in a terminal and then resumed in a desktop app. The conversation, running tools and pending approvals need to describe the same task. If both interfaces independently own that state, an interruption can leave two conflicting versions of what happened.

Codypendent centres that responsibility on a Rust daemon. Clients collect input and present events. The backend owns the session and execution machinery. That does not make recovery automatic, but it gives recovery a defined place to happen.

A timeout needs a meaning

When a model request times out, a retry may simply regenerate text. When a tool times out, it may already have changed a file or started a process. The caller needs to distinguish “never started”, “still running”, “completed but the response was lost” and “failed”.

For a state-changing action, an operation identifier and an inspectable result are more useful than a blind retry. An idempotent action can be repeated without multiplying its effect. Where that property is unavailable, the system should first check what actually happened.

A small failure table is a useful design exercise:

Event What the user needs to see
Provider unavailable A bounded failure and a way to retry
Approval required The exact proposed action and its context
Tool interrupted Whether it started and what state remains
Client disconnected The session it can reconnect to
Task cancelled Which work stopped and which changes exist

Discovery is not permission

A retrieved tool may be relevant to the request without being permitted to execute. Tool descriptions, provider schemas and policy decisions are separate pieces of the path. Agent-Gantry and ADAPT-Agent explore those boundaries through selection, execution controls, adapters and observation.

A good tool result gives the next step enough information to proceed or stop. A failure should identify the action and the boundary that rejected it, rather than disappearing into a generic model response.

Recovery belongs in the interface

An interrupted coding session still has a draft, edits, command output and perhaps a pending approval. Those are parts of the product. A restored window that hides the last tool failure is less useful than a visibly interrupted session with a clear next action.

Son of Anton makes checkpoint recovery inspectable with a restore preview. Codypendent’s shared session design makes continuity across clients an explicit engineering concern. Both put the result of execution close to the person deciding what happens next.

Test the unhappy path deliberately

A useful reliability check disconnects the client, refuses an approval, interrupts a tool and resumes the session. It inspects the files and process state as well as the final message. Logs and traces should make those observations explainable.

The infrastructure is doing its job when a failure leaves the user with an accurate account of the task and a usable recovery path. The evaluation note turns that expectation into cases that can be repeated.