FrameworkAddy Osmani

Own The Outer Loop

The durable product-builder skill is no longer crafting one clever prompt or one capable harness. It is owning the outer loop around the agent: how failures are detected, clustered, verified, fixed, remembered, and re-tested until the workflow becomes more reliable every week.

What Changed

The strongest July 18 signal came from Digg Tech resurfacing LangSmith Engine because it captures a pattern that is now showing up across serious agent work: production traces are becoming the raw material for continuous improvement, not just debugging. LangChain’s primary materials describe an agent that watches traces, groups recurring failures into issues, proposes fixes, and adds eval coverage so the same bug is less likely to return. Addy Osmani’s recent writing sharpens the operating lesson for builders: the product edge is moving into the outer loop that investigates, implements, verifies, and repeats. Simon Willison’s recent DSPy evaluation work points at the same habit from the practitioner side: you do not trust a prompt because it looked good in a demo, you wire a real evaluation path around the behavior you care about.

Why Product Builders Should Care

Agent products now fail less like static software and more like live systems with behavioral drift, hidden edge cases, and distribution shift. That means the moat is no longer just model quality or tool access. The moat is whether your product can learn from real usage faster than competitors can. Teams that keep shipping static prompts will keep rediscovering the same failures. Teams that convert failures into reusable evals, datasets, and harness changes will compound reliability over time.

How To Use This

Turn one repeated agent workflow into a closed improvement loop. Trigger: a failed or low-confidence production run, negative user feedback, or a verifier miss. Context: capture the full trace, environment state, task class, and acceptance criteria for that run. Tools: attach trace storage, issue clustering, a small eval runner, patch generation or prompt editing, and a separate verifier that does not rely on the agent declaring success. Verifier: require a concrete check such as tests passing, schema validity, citation accuracy, or rubric-based review on held-out examples. Budget: cap how many repair attempts, tokens, wall-clock minutes, and external side effects the loop can consume before escalation. Artifacts: produce a named issue, the failing examples, the proposed fix, the new eval or rubric, and a receipt showing before-versus-after performance. Stop condition: the loop ends only when the independent verifier passes and the new case is added to the regression suite, or when budget is exhausted and the task escalates to a human.

Practice Drill

Pick one workflow you already run with an agent and write its outer loop on one page: failure trigger, trace captured, verifier, repair budget, artifact created, and rule for adding the case to regression coverage. If the workflow still ends when the model says “done,” the loop is not designed yet.

What could make this wrong

For tiny internal workflows with low stakes and low volume, a manual review loop can still be cheaper than building full trace mining and automated repair infrastructure too early.

Confidence · high

A Digg-surfaced product signal, a first-party agent-improvement system, and recent operator commentary all point in the same direction: the winning builder pattern is shifting from static prompt design to closed-loop reliability engineering around traces, evals, and verification.

Revisit · Aug 1, 2026

Did adding an explicit outer loop reduce repeated failures without increasing review overhead more than the workflow’s value?

Watch: repeat failure rate · time to verified fix · eval coverage growth · human escalations per 100 runs

Apply it now

Knowledge only counts when it changes the build.

Pick one workflow you already run with an agent and write its outer loop on one page: failure trigger, trace captured, verifier, repair budget, artifact created, and rule for adding the case to regression coverage. If the workflow still ends when the model says “done,” the loop is not designed yet.

Stage
learn
Produce
Outer-loop spec for one production agent workflow

Full context at Addy Osmani. Bring back one decision, test, or workflow change.

Read the original ↗

Keep Going