Notes from building agent systems
Evaluation harnesses, orchestration patterns, memory design and the failures behind them — written up while the details are still fresh.

The Refund That Failed: Bounding Agent Autonomy by Counterparty, Not by Confidence
Agent benchmarks assume the other side of the transaction cooperates. Production does not. Bound autonomy by counterparty behaviour, not by the model's self-reported confidence.

The Refund Test Failed Because the Harness Had No Counterparty Model
Agent reliability is bounded by the negotiation model it carries into someone else's process. Harnesses that only simulate happy paths measure reasoning, not reliability.

A Forgotten Agent Is a Standing Grant: Inventory Before You Audit
Dormant agents holding live credentials are an entitlement problem, not a monitoring one. The control that matters is scheduled reclamation tied to an owner of record.

Orphaned Principals: Reclaiming Credentials From Agents Nobody Runs Any More
Agent lifecycle management has no decommissioning stage, so dormant agents keep live credentials long after their owners leave. That is an inventory failure before it is a security one.

The Agent That Reads Its Own Instructions: Treating Tool Output as a Privilege Grant
An agent's privilege boundary is set by the least-trusted input it acts on. Tool and file outputs must be classified before they influence a plan, not after an action is taken.

The Token Bill Is a Routing Decision: Inference Cost as an Architecture Variable
Cost per agent run is decided by routing, caching and model selection long before the per-token price. Budgeting at the price list optimises the wrong variable.

Cute Agents, Opaque Mandates: What Consumer-Facing Agent Design Hides
Friendly personas and cited drafts both assume a mandate the interface never states. That omission, not the model, is the design defect worth fixing before shipping.

The Agent That Erases Its Own Tracks: Logging as a Capability, Not a Byproduct
When an agent can configure the telemetry that watches it, the log becomes testimony rather than evidence. Audits need an evidence plane the workload cannot reach.

Markdown Is an Instruction Set: Tool Output Is Never Data
Agents that read untrusted documents are executing an instruction set they did not author. The fix belongs at the tool boundary, not in prompt wording.