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

Sycophantic Retrieval: Agreement Is a Failure Mode Before It Is a Factual Error
When a model confirms a user's framing before it retrieves, the query is already contaminated. The fix is to separate claim extraction from answer generation.

Sycophantic Retrieval Is a Grounding Failure, Not a Model Flaw
When an agent confirms a leading premise and then cites evidence for it, the defect is in the retrieval contract: the query was built to agree. Fix the query, not the generator.

Verifiable Answers in Newsrooms: Retrieval Provenance as an Editorial Contract
When the citation is the product, provenance becomes a schema, not a feature. A practical design for re-derivable answers in newsrooms.

Multi-Agent Token Burn: When Decomposition Costs More Than It Explains
Agent teams often burn tokens for marginal gains. This essay argues that coordination overhead, not task difficulty, drives cost—and how a single-agent baseline with better retrieval can win.

A Hallucination That Persists Is a State Problem, Not a Sampling Problem
Persistent hallucinations are a memory and context defect. The fix belongs in the write path and the retrieval contract, not in decoding parameters.

Retrieval Grounding Is a Middleware Contract, Not a Model Capability
Grounding an agent in enterprise data is a versioned retrieval contract — schema, freshness and permission alignment — not a model feature. Treat it as middleware.

Grounding Is a Retrieval Contract, Not a Model Feature
Enterprise grounding tools succeed or fail on what they refuse to retrieve. Treat the retrieval contract as a versioned artefact and review it like the prompt.

Context Engineering Has a Cost Curve, and Nobody Is Measuring It
Layered context engineering is argued as a quality lever, but every layer adds tokens, latency and a failure surface. Teams need a per-layer cost and attribution ledger.
A Trigger Buried in the Agent's Own History Is a Memory Integrity Problem
Backdoors that fire on something the agent can observe live in the context, not the weights. Checkpoint scanning cannot see them, and most stacks never inspect the memory path at all.