Draft for review · not published · 1395 words · ~6 min read · Companion video: shot list and example
Open-sourcing Attest: how we ship this fast without breaking the product
The engine behind SageOx's 900 end-to-end scenarios is now open source. Write what your product should do in plain English, let your AI coworkers build it, and see the proof for yourself.
Laurentiu Pavel · 2026-11-25 · engineering
We teased it less than a month ago in How we've evolved our CI/CD in the agentic era, and now we're super excited to open source the engine we use for end-to-end testing of user scenarios.
It's called Attest, and it turns plain-English scenarios into real end-to-end tests of your product. It's MIT-licensed, the code is on GitHub, and you can install it from npm as @sageox/attest.
What Attest is
You describe what a user does and what they should see, in plain English. Attest runs that against your real product and comes back with a verdict and a record of what happened.
A scenario is written in Gherkin, the Given / When / Then format many teams already know:
Scenario: Robin orders a tin of jasmine tea
Given Robin opens the tea shop
When Robin adds the jasmine tea to the basket
And Robin places the order with a delivery note
Then Robin should see the order confirmation
Nothing technical is required to write a scenario, or to understand what it describes.
Run it, and Attest hands back a report. This is the run page for that tea shop:
Open a scenario and you see every sentence, whether it passed, and what the browser looked like at that moment:
Each person in the story, here Robin, gets their own small sandboxed virtual machine that can only reach the hosts you allow. While the scenario runs, Attest records the evidence: screenshots, console logs, command transcripts, requests and responses. You don't have to take anyone's word that it worked. You can look.
Why we wrote a new testing framework
In the CI/CD post, Ryan showed how much our team's throughput has grown this year. In the month since, it went up again: in the week of November 16 we shipped about 21 PRs per engineer per day.
Of course, that kind of speed can't come with regressions for our customers. So we had to come up with a system that makes it easy to write end-to-end scenarios of what a customer actually does. We rely on it for two things: keeping quality up, and seeing how a regression shows up for our customers.
At SageOx, we don't write code anymore and we rarely even read it. Our AI coworkers do the writing. When code is this cheap to produce, the slow part is knowing it works.
What we really want to know is simple: does the product still do what we promised our customers? End-to-end tests are the best answer we have. Addy Osmani wrote a great piece on how the Claude Code team thinks about verification. His point is that verification is what lets you hand more work to agents, and that if you can invest in only one kind of test, it should be end-to-end, because "either the whole feature works or it doesn't." That matches what we've seen.
We also learned something about ourselves. Human brains are much better at grokking visuals than large amounts of text. So we're happy to let agents write the tests. What we optimize for is measuring quality and surfacing issues visually. A person should be able to see, at a high level, what a test does and what happened when it ran, without digging through implementation details in code.
That's what Attest is built for. It started as the test harness inside our own product repo. In July we pulled it out into its own package, so we'd use it exactly the way any other team would. Today we rely on about 900 scenarios to keep running at 40x speed. More than 250 commits landed in that suite in the last month alone.
How a sentence turns into a test
A step doesn't call code directly. It goes through three small layers:
- The scenario, in Gherkin. What should happen, in words people agree on.
- A step definition, in Markdown. Attest calls these business actions and verifications. The one behind "Robin should see the order confirmation" maps that sentence onto a call,
shop/seeConfirmation, and a check:.data.confirmedmust be true. - A driver, in TypeScript. The code that actually does it. Here, that means looking at the confirmation page in a real browser.
The matching is plain pattern matching, done once, when you compile. No model guesses what your sentence meant. If two step definitions match the same sentence, compiling fails by default, and a person fixes the wording.
Then attest exec runs the compiled plan, and attest report turns the evidence into the report you saw above.
What you get
- Several people in one story. A scenario can have several people in it, each with their own sandbox and browser. That's how collaboration features really behave. In one of ours, Tina hosts a meeting, Dana and Marcus both ask to speak, and the scenario checks that Marcus is never shown his place in line.
- True user actions, not just API calls. Attest uses your product the way a customer does. It clicks and types in a real browser, and it runs real commands in a real terminal.
- Verdicts you can act on. A failed check, a broken test setup and out-of-date tests each get their own exit code, so an agent or a CI job knows what to do next.
- An auditable visual trail. Every step leaves evidence behind: the screenshots it took, the checks it ran, and what came back. Anyone can review a run later, without running it again.
TDD, rewritten for agents
The biggest thing we've learned working this way: AI agents do much better work when the end result is clear.
So we start with the end result. Before any code exists, we write the scenarios: who does what, and what they should see at the end. Then we let our AI coworkers build everything else, the step definitions, the drivers and the feature itself, and they keep going until the scenarios go green.
It also keeps us close to what's being built. At any point we can open the latest report and see the exact user experience so far, screenshot by screenshot, and make sure the agent is on the right path.
Attest ships a skill that teaches Claude Code and Codex this whole loop, and attest init copies it into your project.
Try it
Your first passing run takes about five minutes. You need Node.js 22.15 or newer and, to run scenarios, an Apple Silicon Mac or ARM64 Linux with KVM. You don't need a model key, an app of your own, or an account:
npx --yes @sageox/attest init hello-attest
cd hello-attest && npm install
init prints the one-time sandbox setup for your machine. Then:
npx --no-install attest compile --app tests/bdd
npx --no-install attest exec --app tests/bdd
npx --no-install attest report --app tests/bdd
That first run is a small command-line check. A web sample is included too, switched off until you point it at your app and add a model key. Steps that click and type on exact targets never call a model; the key is for steps you describe in words. The README has the full quickstart.
Help us make it better
Attest is young, and there's a lot more it can do. That's a big part of why we're open-sourcing it.
Pull requests are welcome from anyone. So are issues, ideas, and even plans for how something should be built. New ways to drive an app (Attest calls them executors) are especially welcome. The contributing guide explains how.
We believe this is how teams will build user interfaces in the age of AI: at 40x speed, with great quality.
We can't wait to see what you build with it.

