What we have learned building AI agents, retrieval systems, automation pipelines and production software. Specifics over abstractions — including the parts that did not work.
Every long-running agent eventually has to throw away its own history to keep running, and the summary that replaces it is a generation, not a compression. Prohibitions, exact error strings, dead ends and half-finished writes are the first things to disappear, which is why the safest design keeps the record outside the window and treats the summary as a rendering of it.
Streaming moves the failure modes of a request into the middle of it: a proxy that buffers the whole body, a chunk boundary that splits an SSE frame, a tool call whose arguments are invalid JSON until the last fragment, and a client that stops reading while the model keeps billing. Each one is fixable, but only after accepting that the generation is a job and the stream is one way to watch it.
The default RAG pipeline retrieves broadly and filters afterwards, which answers a relevance question and hopes the security one follows. Filtering is applied after an approximate index scan, so a selective permission filter silently returns three rows instead of ten, and every cache layer between the query and the reader can serve a document to somebody who lost access to it an hour ago.
Two pull requests for one ticket is not a model failure, it is a queue that promised exclusive ownership without an owner. A claim has to be an atomic statement, a lease rather than a lock, a proof that survives a reclaimed worker, and a dedupe at the effect boundary where the pull request is actually created.
A 429 is not a failed request, it is a statement about the next window. Retries at four layers multiply into an outage nobody owns, and the fix is admission control: a retry budget paid for by successes, concurrency sized from Little's law, a bounded queue with priority, and failover that is visible instead of silent.
A customer reports the run id, so you open the trace — and it shows six of eleven spans, a retry that looks like one slow call, and a tool error the runtime handled so the span still says OK. Span design, context across queues, and why sampling decides which failures you will never see.
A delete request returns 204 and closes a ticket, while the passage stays retrievable for months. The row is one copy — the chunks, vectors, cached answers, traces, judgement sets and backups are the rest, and only some of them can be rebuilt.
Changing the embedding model is a full corpus migration wearing the costume of a config change. The rebuild is the easy half — the evidence that the new index is better, and the switch that goes back, are the work.
An agent that can run commands is executing code you did not write, from a branch you have not reviewed, with whatever the machine can reach. The container is the easy part — egress and credentials are where the design actually happens.
A performance score asserted inside a shared CI container measures the runner as much as the page. The budgets that survive are the ones on numbers the build controls exactly — and the timing metrics need a different gate entirely.
A cross-tenant leak is rarely a breach of the boundary. It is a missing seam — one query without a predicate, one cache key without a tenant, one worker that never re-entered its context. The enforcement points are the design.
A schema-constrained decoder guarantees the shape of a response and nothing about its meaning. The failures that reach production live in that gap — null read as absent, truncated objects completed by a repair pass, and enums that changed underneath an exhaustive switch.
A schema change has two audiences: the code running now and the code that will be running in ten minutes. Expand and contract keeps both correct — and the lock queue is what turns a well-ordered migration into an outage anyway.
An injection is not a jailbreak and it is not a prompt problem: a model enforces no boundary between the instructions it should obey and the data it should only read. The fix is an access-control one — break the capability combination, resolve the plan before exposure, carry provenance in code, and treat the renderer as an egress boundary.
A cap that raises an exception throws away everything the run learned; a cap reported as success hides the gap. Where the step counter belongs, how to see a loop before it reaches the ceiling, and what a truncated run owes the caller.
A test that fails one run in four and passes on re-run is usually a defect with a working alarm. Retries hide the evidence, quarantine files it — and the classification decides which fix you actually need.
A worker restarts mid-run and the invoice posts twice. Durability is not the model’s problem — it is the gap between doing an effect and recording it, and the three contracts that close it.
A non-deterministic system graded by a non-deterministic judge produces a check that either blocks every merge or is ignored. How we build eval gates that survive: deterministic checks as the gate, a measured noise floor, critical slices that block on a single case, and a judge kept advisory.
We design and build your site at no cost and host it free for three months. Here is the honest cost over three years, and where a free build is the wrong choice.
Most free CRMs cap seats or records, which is exactly what breaks a CRM. Here is why coverage matters, and what our free-forever tier does and does not include.
Review used to be a conversation between two people who had both thought about the problem. That contract is broken, and most teams have not replaced it with anything.
LLM cost is rarely one expensive thing. It is a small per-call cost multiplied by a call volume nobody modelled, with context that grows quadratically.
Retrieve the chunks for a failing question and read them. Nine times out of ten the answer passage is simply not there — the generator was never the problem.
Route support tickets or approve supplier invoices. Same shape on a slide, completely different risk. Most automation programmes fail at selection, not build.
A model can take a module from 12% to 90% coverage before lunch, and the suite will catch nothing — because every assertion came from the implementation.
One client component in the root layout shipped 340KB the server could have rendered. Most App Router performance work is two or three structural decisions.
A missing await gets caught every time. A change that violates an invariant enforced three modules away gets approved. The difference is where the evidence lives.
The ticket still takes two hours. The time moved — into the review queue, and into the question the ticket asserted and never justified. Not acceleration. Redistribution.