In the first post in this series, I said that once a team is merging a few hundred changes a day, the question that matters for most of them stops being "has someone read this?" and becomes "is there evidence this works?" That's an easy thing to say. This post is about what it actually takes to produce that evidence for every change, all day, without a person reading each diff, and about the tool we built to do it, which we call Bugspray.
Most teams already think they have this covered, because they have CI. A pull request goes green, so it works. I want to start by explaining why that isn't enough at agent scale, because the gap is easy to miss until it bites you.
What a green check actually tells you
A green CI run tells you that the tests which exist, and which ran, passed against that commit. That's useful, and it's also much narrower than it sounds.
It doesn't tell you whether any of those tests exercise the behavior the change touched. It doesn't tell you whether the tests ran against the commit that's about to merge, or one from twenty minutes ago. And it says nothing about the behaviors nobody wrote a test for, which is usually most of them.
When people write the code, a reviewer fills a lot of that gap without thinking about it. They know the change touches saved views, they know saved views are fragile, and they click through it on a preview before approving. That judgment is doing real verification work, and it's exactly the part that disappears when 330 changes a day go through and nobody has time to click through anything.
So the question we had to answer was how to get that judgment out of people's heads and into something a machine can run every time. Our answer has three parts. Write down what the product is supposed to do. Connect each of those expectations to the tests that claim to check it. Then, for every pull request, collect evidence that can be traced back to both, and refuse to call anything a pass when the evidence isn't there.
Start by writing down what the product should do
The first part sounds almost too simple, and it's the one teams most often skip. Before you can check that a change didn't break anything, you need a description of what "working" means that both people and agents can read.
In Bugspray this lives in what we call the catalog. It's organized the way people already talk about a product: the product itself, a handful of areas inside it, and inside each area a set of workflows. A workflow is a single user behavior with an expected result. "A user saves a filtered view, reloads the page and reopens it, and the same filters come back with the matching records showing" is a workflow. "Views tests" is not, and we push back on that kind of naming, because a workflow should tell a reviewer what to look for rather than which file to open.
Workflows are written by people who understand the product, which in practice is a mix of engineers, product managers and QA. They don't need to know anything about how the tests are built, and they don't need a test to exist yet. Some of the most useful workflows in a catalog are the ones with nothing covering them, because they show you exactly where you're relying on luck.
Every time someone edits a workflow's expected result, Bugspray saves a new version and keeps the old one. That sounds like housekeeping, but it matters more than you'd expect. If a verification run checked a change against Tuesday's expectation and the expectation changed on Thursday, you want to know that the run was judged against Tuesday's version. Each run records the exact version it used, so a later edit can never quietly make an old result look like it covered something it didn't.
Connect expectations to the tests that claim to cover them
The second part is linking those workflows to real tests in the codebase.
We do this from the repository side. Each repository keeps a small manifest file that lists its test suites: a stable ID for each suite, a sentence about what it's meant to check, where it runs in CI, what it needs (test accounts, fixtures, a particular environment) and, most importantly, which catalog workflows it covers. The link is many-to-many. One end-to-end suite might cover three workflows in the records area, and the "save and reopen a view" workflow might be covered by both that suite and a separate navigation suite.

Keeping the manifest in the repository is deliberate. When an agent changes a test, moves a file or adds a suite, the manifest change goes through the same pull request, so the declared coverage and the code move together. It also means the suite IDs stay stable when files get renamed, which is important when you want to look at a workflow's history over months.
One thing the manifest doesn't contain is commands. It says which workflow in CI runs a suite, but it can't tell Bugspray to run an arbitrary shell command, and that's on purpose. When agents are writing a large share of your pull requests, anything in the repository that controls what gets executed is something an agent can change. The commands, the list of suites that must always run and the rules for what happens when something can't be decided all live in trusted configuration that a pull request can't edit.
Once the links exist, you can read them in both directions. From a suite, you can see which product behaviors it claims to protect. From a workflow, you can see every suite in every repository that says it covers that behavior, and, just as usefully, you can see the workflows with no suites at all. On one client project, a fix to how an embedded table remembered its state came with good unit tests, but when we looked at the catalog, none of the browser suites ever opened an embedded table. Nobody had noticed, because CI was green. The gap only became visible once the expectation and the tests were written down next to each other.
I want to be clear about what a declaration is and isn't. A suite saying it covers a workflow is a claim. It doesn't prove the test exists at the path it names, that it actually checks the expected result, or that it passed. Bugspray keeps those things separate on purpose, and the PR report never treats "declared" as "verified".
What happens when a pull request opens
The third part is the pull request itself. Here's roughly what happens when one opens on a repository Bugspray is watching.
The first step is pinning down exactly what's being tested. Bugspray records the head and base commits, reads the manifest at that head commit, and resolves the exact versions of the catalog workflows those suites point to. If the manifest is missing, or a suite points at a workflow that's been archived, that shows up as a visible gap in the report rather than being silently skipped.
Next comes a plan. A model reads the change (the diff, the changed files and the saved expectations for the workflows involved) and proposes which registered suites are relevant and why. This is a place where AI genuinely helps, because "this change touches the view manager, so the saved-view suites matter" is the kind of judgment a reviewer used to make. But the model only proposes. Trusted policy decides. Suites marked as mandatory, like a smoke suite, can't be removed by the model, suites that other suites depend on get added back, and if the model's output is missing or doesn't make sense, the plan falls back to running more, never less. The pull request's own description is treated as information about the change, never as an instruction, because a description is just text an agent wrote.
For now, we run the full inventory of suites on every pull request anyway and record what the model would have picked alongside it. That gives you a real measure of how often the model's selection would have missed a failure, measured against what actually broke. In our first comparison, the model did pick the suite that caught a real bug, but that's one case, and a run of green pull requests tells you nothing about what a smaller selection would miss. We'd rather keep collecting that evidence than assume the selection is good.
Then the suites run in the repository's own CI, against the preview built from that exact commit. One detail here is easy to get wrong: the test runner itself comes from reviewed code on the main branch, and the pull request only supplies the app being tested and its manifest. If the pull request could change the code that runs the tests and holds the test credentials, an agent could change what "passing" means in the same change it's trying to get passed.
When the run finishes, Bugspray collects the result from the run's artifacts, checks that it came from the run it asked for, and validates it against a strict format. A result it can't authenticate is treated the same as no result. Every suite also has to have actually run something, so a suite that reports zero tests, or skipped some, can't count as a pass. That rule exists because we found tests that quietly returned early when a backend wasn't ready, and reported green while checking nothing.
The last step is the one I'd most like other teams to copy. Before Bugspray publishes a verdict, it checks everything again, live. Is the pull request's head still the commit the suites ran against? Is the preview still serving the same build? Is the deployment the evidence came from still current, and did the pull request's own build pass? If anything has drifted since the suites started, the result doesn't count, even if every single test passed. The suites ran against something that isn't what's about to merge, so their results are history, not evidence.

The verdict shows up on the pull request as a check called "Bugspray / registered suites", with a report page behind it showing which suites ran, why they were selected, which workflow versions they covered, what was found and where the gaps are.
Bugs you've already found shouldn't come back
The suites cover what you've decided to test in advance. The other half of verification is making sure known bugs stay fixed.
When someone, or an agent, finds a bug with Bugspray, the finding includes a recorded reproduction: a Playwright script that walks through the steps, plus a video of it happening. Before a reproduction is accepted, Bugspray runs it twice and both runs have to agree, which keeps a lot of flaky reports out from the start. When a pull request comes in, Bugspray works out which pages the change can affect, picks the known bugs on those pages and replays them against the pull request's preview, then reports the result as a separate check on the pull request.
That check only fails for one reason: a bug that had been fixed has come back. A bug that's still open doesn't fail anyone's pull request, because otherwise every change that touched that page would go red for a problem it didn't cause, and people would learn to ignore the check.
There's a detail here that took us a while to get right. A replay against a pull request's preview is a hypothetical. It answers "what would this change do to this bug?", and it doesn't change the bug's actual status. Only a replay against the environment the bug was originally found on can mark a bug as fixed or reopened. That separation sounds pedantic, but without it, one pull request's preview can mark a bug as fixed, the next pull request inherits that state, and nobody can rerun a check and get the same answer twice.
Agents can also explore a preview in a real browser, clicking through workflows and reporting anything that looks wrong. That's useful, and it finds things, but we keep it in its own section of the report and label it advisory. An agent's observation is a lead worth following up. It isn't the same kind of evidence as a deterministic suite passing, and mixing the two in one green check is how teams end up trusting results they shouldn't.
The real bug that made the case for us
The clearest example I have comes from an early pilot on a records page in a client's app. We'd written three workflows for that area, including saving a filtered view, and linked them to three existing browser suites.
On one commit, the suites for viewing and filtering records passed, and the suite for saving a private view failed. A follow-up check, run with a normal user and changing nothing, clicked the Save View button and watched what happened. No dialog opened. The Save Column Set button right next to it worked fine. The cause turned out to be a broken call into the component that opens the dialog, and the fix was to switch it over to the shared modal manager everything else used.
What made this useful wasn't that a test failed. Tests fail all the time. It was that the failure arrived already attached to a named product behavior, with the exact expectation it was judged against, a recording of the run and a clean baseline showing the rest of the page was fine. Nobody had to work out what the test was supposed to be checking. The report said, in effect, "users can't save a view anymore, here's the expectation, here's the run, here's what didn't happen".
What we got wrong along the way
Not all of this worked the first time, and some of the lessons are more useful than the design.
The first was that a gate nobody can understand is a gate people learn to ignore. Early on, the check could go red with one generic sentence after every suite had passed, because the final re-check had found drift but the reason got thrown away. From the pull request, it looked like Bugspray had failed for no reason. We changed the check so it always says what failed, what's blocking it and which run to look at, and every failure now says up front whether it was caused by the pull request or by something else, like an expired preview or a broken build on main. That one change did more for trust in the system than any new feature.
The second was a set of results that looked like flakiness and weren't. On one pull request, fourteen replays of known bugs all came back inconclusive. It looked like the reproductions were unreliable. The real cause was that the test sessions were signing in on the main environment and never actually moving to the pull request's preview, so the replays were checking the wrong app. We now refuse to run a replay unless the session is bound to the exact preview being tested, and the lesson stuck with us: before you blame a flaky test, check what it actually ran against.
The third was speed. A verification gate that takes half an hour gets bypassed, or it becomes the new bottleneck I described in part 1. We spent real time cutting the wait between CI finishing and the verdict appearing, mostly by making Bugspray react to CI events as they happen, where it used to poll on a timer.
The last was learning to treat missing evidence as a failure. It's tempting, when a result is late or a run didn't report back, to let the change through and check later. At 330 changes a day, "later" never comes. Bugspray now fails closed: if it can't show evidence for the exact commit, it doesn't pass it.
Where to start
If I were starting with a team today, this is the order I'd go in. It's also roughly the order we follow when we bring Bugspray into a new codebase:
- Write down ten workflows. Pick the ten behaviors that would hurt most if they broke, and write each one as a user action plus an expected result. Keep them somewhere people and agents can both read.
- Map your existing end-to-end tests to those workflows, even if it's just a list in a file in the repo. You'll find workflows nothing covers, and you'll probably find tests that don't cover anything you care about.
- Make CI results traceable. Every run should report results per suite, tied to the exact commit it tested, in a form a machine can check.
- Re-check before you trust a result. Make sure the commit you tested is still the one about to merge, and the environment you tested against hasn't changed.
- Fail closed. If the evidence for a change is missing, the change doesn't pass.
- Only then start letting a model choose which tests to run, and keep running everything for a while so you can measure what it would have missed.
We built Bugspray because we kept wiring these pieces together by hand for every team we worked with. It gives you the catalog, the links from workflows to the suites already in your repository, a plan for every pull request, the live re-check before a verdict and the replays of bugs you've already fixed, all running on the CI you already have and showing up as checks on your pull requests. Your tests stay in your repository and your team keeps owning them. Bugspray is what makes their results something you can trust when changes are arriving every few minutes.
This is the work we do at ES Consulting. We bring Bugspray into your codebase, work alongside your engineers to write the first catalog and connect it to the tests you already have, and leave your team owning all of it. If your teams are shipping more with AI and you're not confident about what's reaching production, we'd be glad to compare notes: esconsulting.io.
