What it takes to build a software factory: part 3 - how do you know it's any good?
When I started writing this post, I wanted to check the details of a run from July. I remembered it as the moment we realised something about how agents behave, but I didn't trust my memory of the specifics. So I asked Easel for the run, and got back every step the agent took, in order, with its reasoning along the way. Four months later, nothing was missing.
That's a small thing, but it's also the reason this post exists. Everything below depends on keeping a complete record of what every agent did.
Spotting it
The run was a simple bug fix in one of our Kotlin services. The agent found the problem line within thirty seconds of starting, and about a minute later, it had written the fix as well as a unit test for it.
Then it tried to run the test.
The sandbox didn't have the right version of Java, so it installed the closest one it could find. The build then needed an internal tool that also wasn't installed. The agent couldn't install it, so it wrote a fake one: a small script with the same name that printed something plausible. That didn't work either, so it decompiled part of the build plugin to work out why, and traced the problem to a build process that was caching the old version. It stopped that, moved on, and found that some generated code was missing. The tool that generates that code wasn't available anywhere it could reach, so it started writing the generated code by hand.
Twenty minutes after writing the fix, still trying to get the build to run, the sandbox died, probably because it ran out of memory. The agent left no report.
At no point did the agent say it was stuck. Its instructions said the build had to pass before it could finish, and that if it couldn't get there in reasonable time it should stop and say so. It did neither. Looking back through its reasoning, you can see the moment it thought "this is getting quite complex", and then decided that rather than fight the build system, it would write the missing code itself.
We fixed the specific problems that morning. The service got enough memory to build, and we started letting each repository declare what its sandbox needs, so the next agent wouldn't have to guess. A day later, the missing tool was in the image.
The more important lesson here is that agents try really hard to meet their goal and given the choice between finishing or admitting defeat, they'll finish, even if that means jumping through hoops that make them wildly inefficient.
We saw the same thing again in early testing. Many of our engineers use an internal wrapper around a popular open-source command-line tool, which adds some Miro-specific behaviour. It wasn't in the sandbox. Rather than report that, agents preferred to download the open-source tool, build it from source and then carry on with their task. The tasks succeeded. We only noticed because, while run volumes were low, we were reading individual traces end to end.
This is one of the reasons that makes software factories hard to run at scale. An agent that gives up is easy to spot but an agent that succeeds the long way round looks exactly like one that succeeded the short way - unless you look at how it got there. It also makes changes to the agent sandbox or it's network access difficult, because jobs keep completing even after you've broken something. "Still green" doesn't necessarily mean "still fine".
We could only see any of this because we keep a record of every run: every turn and tool call, stored against the run that made it. Once you have that, these types of agent behaviour move from something you stumble across, to something you can measure.
Watching every run
Reading traces one at a time works when you have a handful of runs per day. It doesn't work at tens of thousands a month.
Our first answer was sampling. We added a "reflection" for each preset: a scheduled agent run that takes a sample of recent traces from the preset, looks for places where agents struggled, and works out what to change. At first the output was a report for the platform team. Then the reflection agent was told to open PRs with a change it thought would help. Most of these improvements are small and specific, like telling an alert triage agent to check its telemetry queries against each other before drawing a conclusion, or stopping another one from loading the same skill twice.
Sampling has an obvious gap, though. Some problems only happen in a small share of runs. One we kept hitting was agents fighting the sandbox's file permissions while trying to install tools they didn't have. It didn't happen often, but when it did, it was slow and expensive.
A weekly sample rarely caught these kinds of outliers so we stopped relying on samples. Every run is now digested into a compact summary of what the agent did, and an LLM acts as a judge across those summaries, seeking out runs that don't look like the others: far more tool calls than the task needed, or long stretches spent on setup. The interesting cases come back as findings, with the stretch of the trace that shows the problem and what it cost. This process is not cheap and it runs periodically, but it offers real insights into how the system can be improved.
This plumbing started to form into something more powerful - a loop where the factory improves its own instructions, using evidence from its own work.
What that enables
None of this was designed in from the start. We built Easel to run agents, not to evaluate them. But a platform that can launch thousands of isolated agent runs, record everything they do and compare the results turns out to be most of an evaluation system. Cole Hoffer saw this early, and adapted the platform to run evaluation campaigns: normal agent sandboxes running across different models and harnesses, on real work, without writing anything anywhere.
We have two benchmarks:
- EaselBench takes a repository at the commit just before a real historical pull request, and asks agents to recreate the change.
- EaselBench-Review takes real pull requests at the state they were in when they were opened, and reruns our AI code review on them.
In both benchmarks, candidates are compared head to head, blind, on the same frozen input, and the results are combined into a rating for each model and harness.
For reviews, we also have hindsight. Since September, the platform has recorded what happened to every review it posted: later pushes, human reviews and comments, which threads were resolved, and whether the pull request merged. When the benchmark judges two reviews of an old pull request, it knows which comments the author actually acted on and which they ignored.
We check the judge too. The same pair of reviews is judged again with the order swapped, and we record how often the judge agrees with itself. Perhaps unsurprisingly, we found that models from a particular model family tend to agree with each other more.
The payoff for all this plumbing came at the end of October, when a new model was released. Cole ran it through the review benchmark: 16 configurations across 62 real pull requests, and more than 2,500 blind head-to-head judgments. GPT-6.1 Terra came out effectively tied with GPT-6.1 Sol, the model we were then using for reviews, but at half the cost and around 20% faster. We switched all AI reviews to Terra 6.1 the same day.
The benchmark was careful to call this an operating choice rather than a clear quality win, because the confidence intervals overlapped. So we watched production. In the two weeks before the switch, a review cost us 33 cents on average. In the two weeks after, it was 18 cents, and reviews finished about 10% faster. That's a little less than the benchmark predicted, but close enough.
The other thing the traces enable is less obvious. Easel's agents work across a lot of our codebases, so their traces are a dataset about those codebases as much as about Easel itself. They show where agents struggle to find context, and where a missing tool sends them the long way round. Our developer experience team is now using Easel as the input for codebase improvements; making our code ready for local and hosted agents to work more effectively.
So, is it any good?
Honestly, it's hard to say exactly why it's got better. Since June we've changed harness and models several times, and the platform has changed almost daily. Everything moved at once, and it's near impossible to cleanly separate what the platform improved from what the models improved.
What I can say is that we no longer have to guess. When someone asks whether a change made things better, we can usually answer with data from real work, and when an agent quietly takes the long way round, there's a good chance we'll find out.
If you're building something like this, keep every trace from the first day. You won't know what you need them for until much later.
Next time: what happens when agents build the agent platform.
This is part 3 of a series:
- Starting with a toy
- Access without trust
- How do you know it's any good? (this post)
- When agents build the agent platform