Try Air in your JetBrains IDE
Air in JetBrains IDEs lets you run several AI coding agents in one place: you pick the agents, and you review every change before you accept it. Because agents can use IDE tools such as inspections, tests, and the debugger, they make fewer wrong turns.
For a limited time, try Air free with Junie Lite.
✍️ From the editor’s desk
Welcome to the 73rd issue of Deep Engineering!
At Microsoft Ignite on November 17, Microsoft and more than 40 organizations, including Mastercard, Accenture, and KPMG, launched an AI Transparency Initiative to develop open standards for AI transparency, security, and governance. Its starting point is familiar to anyone operating agents. Organizations can observe much of the activity around their models, Microsoft says, but they often “cannot reconstruct what happened between a request and an outcome.”
That gap is where the harness does much of its work. The code around the model decides what an agent may do, records what it did, and determines how it responds when something fails. In today’s feature, Tun Shwe, Dr. Ali Arsanjani, Juan Pablo Bustos, and Rohit Bhardwaj offer different perspectives on governing, testing, and rebuilding that layer. They also explain why several of them expect to keep rebuilding it as models improve.
Let’s get started.
Prepare for Claude Certified Architect – Foundations (CCAR-F)
Join Puria Izady for a two-day, 10-hour bootcamp covering agent architecture, MCP, tool design, Claude Code, and reliability.
Includes six hands-on labs, exam-style exercises, a 60-question practice exam, and recordings.
Register for the Bootcamp → November 21–22 | 40% OFF
🧠 Expert Insight
To Run AI Agents in Production, Invest in the Harness
At the AI Engineer conference in New York this autumn, Tun Shwe heard a speaker argue that “you should build harnesses to delete them.” Shwe, a Staff AI Engineer at Lenses.io, found the line funny at the time. But when he said the same thing in a Deep Engineering session a week later, it was because he had come to agree with it.
The line is a joke with a serious point. For these engineers, running agents reliably in production depends heavily on the harness around the rented model, the code that governs what an agent can do, records what it did, decides how it fails and gets retested whenever the model changes. Several of them design that harness expecting to rebuild parts of it as models improve.
Other engineering leaders we hosted this year said more or less the same thing from different parts of the stack. Dr. Ali Arsanjani and Juan Pablo Bustos of Google work on governance and evaluation for agentic systems. Rohit Bhardwaj of Salesforce, who by his count has put more than 100 agents into production, focuses on how those agents behave under real load. Their advice comes down to five decisions a team can make before its next agent ships.
Begin with the outcome and keep the model’s job small
The temptation for engineers working with agents is to start from capability and work backward to a use case. Bustos argues for the opposite order. “Everything starts with and everything should end with what value I’m bringing to the customer,” he says. The goal is to prove the value before adding more complexity. “And if you get to the point that you need to have this long running task with all these sophisticated requirements, then you can start adding components.” For Bustos, the harness should grow in response to demonstrated need, one component at a time.
That approach also forces a closer look at the work itself. Once the outcome is clear, a team can separate tasks that need model judgment from steps that ordinary software already handles predictably.
Bhardwaj approaches that distinction from the inference side and reaches a similar conclusion about how much work the model should carry. “Agents are moving more deterministic,” he says. “You want to solve most of the problem through the same automation you used to run before.” In the systems he describes, steps such as permission checks, numerical calculations and schema validation stay in ordinary code, avoiding model-call costs and often completing in milliseconds. The model handles the parts of the workflow that genuinely need reasoning, and the rest stays predictable.
For a team planning its next agent, that suggests a simple exercise. Write down the outcome the agent is meant to deliver, then walk through its workflow step by step and mark each step that deterministic code could handle. The steps left over are where the model earns its place, and they define how much harness the agent actually needs. Once that scope is clear, the next decision is how much freedom to give the model within it.
Let governance grow with autonomy
Agents rarely receive broad autonomy on day one. They gain it gradually, through a new tool here and wider data access there, and the controls around them don’t always keep pace. Arsanjani treats that gap as the central governance risk. “As you increase the autonomy, we want to increase governance so that the agents don’t go off the rails,” he says. In his view, a team earns the right to trust an agent more by observing the path it took to an outcome, as well as the outcome itself, and by evaluating both.
Arsanjani and Bustos point to a recurring shortcut that undermines governance from the start, which is giving agents root access because it’s faster to set up. Their alternative is to treat each agent as an identity in its own right, with the least privilege its job requires. A misbehaving agent then has a smaller blast radius and leaves an audit trail of its own. And once an agent serves a whole team, Bustos argues its actions should be attributable to the agent and an accountable owner, while the system still records who invoked or authorized each task. Our deep dive with Arsanjani and Bustos covers these patterns in detail.
In practice, this means treating each expansion of an agent’s scope as a governance change, reviewed the way a team would review a new production permission for a person. Before an agent gets a new tool or wider data access, decide which identity it acts under, who answers for its actions and how you’d trace what it did. Governance defines what an agent may do. The harness also has to decide what happens when the agent, or something it depends on, fails.
Choose the failure behavior before launch
Bhardwaj starts from an assumption he hears often. “A lot of people think that creating an agent is just putting it in production. It’s really not,” he says. Much of what he sees go wrong after launch traces back to failure behavior nobody chose on purpose, and retries are the clearest example. A single timeout with open-ended retries can repeat the vector queries, embeddings and model calls behind it, so cost and latency multiply with each attempt. His rule is blunt. “Do only one retry. Don’t do more than one retry.” He applies a similar limit to agents that call themselves. “One loop is fine. The second loop is not fine.”
Capacity shortages require the same advance planning. When GPUs run short, Bhardwaj puts correctness ahead of speed. “Preserve the correctness and approved behavior first,” he says, and he warns that a smaller model “is not automatically” a safe fallback, because it can change the accuracy of the answer along with its cost. Some limits can’t be engineered away in the moment. “This is a physics problem. You can’t solve the physics right away,” he says. His response, which he calls the hurricane pattern, protects essential paths such as checkout and sheds optional work first until capacity recovers.
The practical step is to write these choices down as policy before launch, so the team isn’t discovering them during an incident. Decide which layer owns retries and how many each layer allows, cap how many loops an agent can take, and list the work you’d shed first under load. Bhardwaj’s full set of patterns is in his recent deep dive. None of these policies help, though, unless a team can tell whether they’re working, which brings the discussion to evaluation.
Treat evals as the part of the harness that lasts
Bustos sees testing as the discipline the industry most needs to build. Too often, a use case appears to work and the team moves on after “a very superficial gut check,” as he puts it. “We shouldn’t bring agents to production without having evals, without having a testing harness, without having a practice to do it,” he says. He means evaluating the agent’s trajectory, its decisions and tool handoffs along the way, as well as its final answer. “It’s not only about using a feature or developing a feature,” he adds. “It’s also enabling the practice and having the technical rigor that we have applied for all these years on software engineering to agent engineering.”
Shwe draws the same line and adds where to begin. “Your agent is not truly in production unless you have evals,” he says. “What you need to do is that exploratory data analysis first. You need to figure out what your ground truth is.” For the teams he works with, the event log he described in his recent Deep Engineering session provides a record of what each agent did and saw, which they can examine to identify failures and develop their evals. That history also helps teams recover context lost in agent handoffs without relying solely on the next agent’s summary.
Evals matter for a second reason, and it brings Shwe back to the conference line. “The harness that you’re building is to plug in the shortcomings of the model, the capabilities that the model doesn’t have,” he says. As frontier models improve, “over time, you’ll see that it starts eating into the harness.” A skill a team wrote last quarter may stop being called because the new model handles that task itself, and evals are how the team notices. “Have a really good set of evals. That’s the thing that you’ll fall back to every time,” he says. “If you take that mindset that the harness should always be something that’s to be replaced, I think you’ll have a better time.” Bustos puts the same idea in four words. “It’s not set and forget.”
Two practical habits follow from this approach, because a harness needs evidence of its behavior both at launch and whenever the underlying model changes. Build the first eval set from real sessions instead of invented test cases, labeling what good looked like and scoring trajectories alongside outcomes. Then, when a new model arrives, replay a set of past workflows through the existing harness with the same inputs and compare the results. If the agent finishes in fewer steps or no longer calls a skill, the team can consider removing it once evaluations show that the required behavior and quality hold up.
Staff the harness with builders who test
A harness built this way depends on people who enjoy testing as much as building. Shwe notices that teams with ML engineers and data scientists tend to do well, because they start from the data before they write code. He also urges leaders not to cut earlier-career hiring. “Let’s hire more mids. Let’s hire more juniors, because to build all these verifiers, all these validations, you need someone to get into the weeds and build those tests,” he says. Verifiers, guardrails, linters and static analysis are the kind of work a junior or mid-level engineer can own and grow into.
The architect’s job changes as well. Arsanjani expects the role to move “from a top-down blueprint designer into an orchestrator” of dynamic, autonomous environments, focused on “systemic intent and harness design rather than static blueprints.” Bustos adds that orchestration still demands engineering depth. “You need to have a background of coding,” he says, because someone has to judge whether what the agents produce is any good.
For leaders, that points to an explicit place for harness work in team plans. Pair someone with data skills on evals, give juniors ownership of verifiers and guardrails, and make the architect accountable for the boundaries and quality targets the harness enforces.
A test before the next agent ships
Bustos offers a useful question for any agent heading to production. “Would you trust your credit card to an agent? That’s the golden question.” For many engineering teams, the honest answer today is not yet. The useful next step is to find out why, by checking which identity the agent acts under, whether its last failure can be replayed, whether anyone chose its retry policy and whether an eval set exists. The weakest of those answers is the next piece of harness to build.
🛠️ Tool of the Week
Inspect - The UK AI Security Institute’s open source framework for evaluating LLMs and agents, including multi-turn dialog and tool use.
Highlights:
Built-in components for prompts, tool use and model-graded scoring
More than 200 pre-built evaluations ready for any model
New scoring techniques plug in as Python packages
MIT licensed, with v0.3.291 released on 17 November
📎 Tech Briefs
Google documents autonomous patch-to-exploit activity - Attackers used AI agents to analyze patches, generate exploits, and attempt attacks autonomously.
Anthropic introduces self-hosted Claude Managed Agents - Enterprises can run agent infrastructure in their own environments while using hosted models.
Epoch AI reports agents escaping evaluation boundaries - Agents attempted SQL injection and impersonated staff during unauthorized testing.
Linx Security expands shadow-agent detection - New controls detect unauthorized AI agents across endpoints and cloud environments.
HYPR launches AgentPass for agent identity - Links AI agents to accountable humans and requires passkey approval for high-risk actions.
That’s all for this week.
Stay awesome, keep building,
Saqib Jan, Editor-in-Chief, Deep Engineering
Sponsor Deep Engineering
If your company wants to reach senior developers, software engineers, and technical decision-makers, speak to us about partnering with Deep Engineering




The Microsoft line about not being able to reconstruct what happened between a request and an outcome is where I'd start. The usual gap is that the model call gets logged and the tool call doesn't, so nobody can say which prompt and tool versions the agent actually ran with. Stamping every tool call with the harness version closes a lot of it, and it matters more if you expect to rebuild the harness as models improve, like Shwe says.
A layer teams often miss when deciding who owns retries: the model SDK itself. The OpenAI and Anthropic Python SDKs retry twice by default (max_retries=2), so "one retry" in the agent loop can mean up to 6 model calls per timeout unless you set the client's max_retries to 0.