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

Agent Swarms Need a Discovery Contract, Not a Shared Database
At swarm scale, the hard problem is agreeing on how facts are named, versioned and retired. A discovery contract must precede any shared store.

Access Requests From Agents Need a Provenance Header, Not a User-Agent String
User-agent strings cannot assert who is accountable. Agent traffic needs signed provenance metadata carrying operator identity, declared purpose and a revocable scope.

Agent Identity Governance Belongs in the Directory, Not in the Agent Framework
Agent permissions defined inside frameworks are invisible to access reviews, survive retirement, and sprawl. Directory-native identity fixes the lifecycle.

On-Device Arbitration: What an Agent Should Never Send Upstream
The choice of which agent steps leave the handset is a design-time data-classification and latency trade-off, not a runtime privacy filter.

Runtime Governance Needs Enforcement Points, Not Policy Documents
Governance that records agent behaviour after the fact does not constrain it. The useful layer is a set of synchronous enforcement points that block or reshape a tool call before it executes.

Pre-Deployment Validation for Agents Is a Fault-Injection Problem
A clean trace only proves the agent handled the cases you ran. Readiness means injecting the failures production will produce and watching the recovery path.

An Agent That Reaches a Government Portal Is a Routing Failure
Unauthorised reach is settled at the egress chokepoint, not in the prompt. Every agent fleet needs one auditable network boundary whose denials are first-class events.

Agent Swarms Need Rate Budgets, Not Just Query Budgets
Long-running swarms exhaust third-party request tolerance before they exhaust tokens. Orchestration must schedule against per-target rate envelopes, enforced at egress.

Leaked Output Is a Provenance Failure, Not a Model Alignment Failure
When an agent publishes user artefacts it should never have exported, the defect is missing provenance and taint tracking on data flowing into generated output.