This fall, day three of a “hackathon” with Salomon. The project is ambitious: a database, a server, and two apps for mobile, desktop and web. Airtight functional spec, meticulous technical spec. The agents plan with Opus on extra high and churn out implementations. To keep them on track: our guides, and nothing else.
The PRs pile up, each a mile long: forty already, a few thousand lines apiece. We only half-review them. Fatigue. The easy way out, too.
LGTM.

Recently, at a client, I saw a lot of code merged and shipped to production with declining rigor. That's a feeling, not a measurement. I had recognized the beginnings of disengagement in it.
We had answered with more guides, until we got a codebase that met our expectations, without writing a single line of it. Personally, I believed this was enough to let the AI do our coding.
This time, with Salomon, on our own project, it wasn't disengagement: we were all in. But it was a loss of control: I wasn't able to own what we had just produced.
We vibe-code our internal tools. Our open source libraries are always technical, so we follow the code closely, out of conviction and out of passion too ;). A product is something else: you want to watch it grow, to be able to maintain it, to be able to explain its every feature. I'd like to ship more while staying confident in what our agents produce, even though I can't review everything. And I needed reassurance before building more features.
So I put the pencil down.
Two false starts
My first idea: multiply the agents and specialize them by platform. But the word was right there: silos. We were going to pump out tunnel-vision code, with no one accountable for what came out of it.
I was also weighing another route: a more generic software factory, with only the architecture rules in Markdown files.
Then I talked about it with a friend. He told me that many people hadn't yet put the harness map to use, and sent me an article, along with one sentence:
“Guides steer. Only sensors and gates guarantee.”
Our guides steered. Nothing guaranteed.
Guides, sensors, gates
The article is “Harness engineering for coding agent users”, by Birgitta Böckeler. The harness is everything around the model. The outer layer, however, is specific to each project, and it falls to its users.
Guides steer the agent before it acts. Sensors observe afterwards and let it correct itself. A harness made only of guides states expectations without ever saying whether the agent met them. That was my second route. It was also our hackathon.
Then come the gates, the part that blocks, and the improvement loop, front and center: every defect found makes the harness stronger.
I took one rule from it. Facts, not claims. Trust in an agent's work doesn't come from what it writes or claims. It comes from what you've watched run, and fail.
Our project hasn't shipped yet; you'll hear more about it soon. It has two separate apps.
I built the harness around the product, not next to it, with Claude Code, starting from a first milestone we had already validated and reviewed several times with agents. In a few days, I merged close to 50 PRs, mostly for the harness. The rest, product work (three bugs fixed, three features and the foundation for the next ones), helped me build it and partly validate it.
From “ready to test” to “tested”
First building block. We write our specs as stories, which we use for QA. We declare a story ready when the server and the apps implement what it requires. Ready to test, in other words. Not “tested.” Not “validated.”
I did find bugs, but only after merging the code. For example, with both apps open in the same browser, signing in on one side overwrote my session on the other. In development, both apps ran on localhost, on two ports, and a browser stores a cookie per hostname, never per port. However, our spec claimed the opposite.
We had declared the story ready, and that was true. But nothing said whether anyone had tested it, or when, or on which commit. What was missing was a fact: an actual run.
Quickly spotted, slowly fixed: I had to correct the spec, write a test that reproduces the bug, then put up a gate. That's the price of a harness. The agent recommended one cookie per app. I went with one hostname for each, because in production they'll have their own domains, and it didn't know that. These are the decisions my process stops for, waiting for my input on the scoping.
Since then, every story carries a verification block that replays what it expects through the API:
sign_in_web $WEB_MEMBRE member alice@example.org $JAR sign_in_web $WEB_GERANT manager paul@example.org $JAR expect "Membre lit Alice" alice@example.org "$(curl -s -b $JAR $M/auth/me | jq -r .account.email)" expect "Gérant lit Paul" paul@example.org "$(curl -s -b $JAR $G/auth/me | jq -r .account.email)"
A script runs these blocks on every relevant PR and every night. The specs site then shows, under each story, whether it passes, on which commit, or whether nobody has tested it yet. No merge without this verification run.
In a few PRs, 149 of the 316 stories got their verification, and one run executes 562 checks. I won't lie to you: there's a limit. These checks go through the API, and the on-screen steps are still manual.
A test that has never been red
The second building block follows from that: a test only counts if I've seen it fail. For every new test, we reintroduce the fault it's supposed to catch, note which tests fail, then put the code back. On the foundation for the upcoming features, we reintroduced 24 faults one by one this way, and each one made at least one test fail.
It's mutation testing, done by hand, with the result recorded in the PR. Birgitta Böckeler mentions it as a way to monitor test quality; she thinks we put too much faith in AI-written tests.
And then came an awkward moment. While applying the rule, I found existing tests, nice and green, that caught nothing. Once I reintroduced the fault, every 403 refusal restarted the session, and the test meant to catch it stayed green.
A green test that has never been red is still just a claim.
What fails the build
The third building block is the gates. A rule written in an AGENTS.md steers the agent, nothing more. If I want a guarantee, it has to fail the build. That's what these now do: formatting with ktfmt, a dozen families of architecture rules with Konsist, five checks required to merge, and a confirmation before any push.
Remember those mile-long PRs? My harness started off by producing a beauty, with 60,499 characters of raw output in its description. It's unreadable: I will never read that much output. Since then, a PR reads in two minutes, the evidence goes in a table, and the full output of the run goes into a CI artifact.
Five days later
After five days, I'm reassured: I know what's verified and what isn't. I'm tired, too, because a harness is real work. And the fun is coming back. I decide and design more than I review: I approve the scoping, then skim the diff and read the evidence table.
I wondered what would remain of all this when the state of the art in agents changes every two weeks. My harness is tied to the product, not to the agent: if I switch tools, only the hooks need redoing.
Then there's what I don't know. I only have a week of hindsight, gathered alongside other projects. I also haven't measured the human time. And “shipping more” remains to be proven: as with Kotlin Multiplatform, I don't present the harness as a speed gain, but as a guarantee.
Part 2 will put it to the test. Ten features are waiting: I'll track the defects that slip past the harness, and my time per feature. Meanwhile, the improvement loop will continue with snapshot testing and screen scenarios run with VIE, our open source MVI library.
In the end, maybe we can own the LGTM. But on facts this time, not claims.
These articles might interest you
Tutorials, lessons learned and best practices around KOSI and the Kotlin ecosystem, from the people who maintain the libraries.
01/12/2026
Kotlin Multiplatform: a skill to ship your Swift glue code
A Kotlin Multiplatform library that exposes ViewModels to SwiftUI needs a layer of Swift glue code, and a Swift package would force the framework's name on its consumers. We show another way to ship it: a skill, with the Swift files, the rules to install them and an agent that adapts them to the project.
Read more
17/11/2026
Inara has no magic: read the code it writes
In most DI frameworks, a module is an anonymous bag of bindings, and dependencies are looked up by type. Inara gives modules an identity. Let's open the hood and read the code it generates: there is no trick, only plain Kotlin you can Cmd+click through.
Read more
09/11/2026
LARPing enthusiasm: the ghost of disengagement
I can hand the work to AI, but not my judgment or my product sense. A story of sliding into disengagement, and of a comeback still in progress.
Read more
02/11/2026
Inara: Inject your dependencies at compile time
I created Kodein, yet I now believe it is detrimental to the Kotlin Multiplatform ecosystem. Meet Inara, a Kotlin Symbol Processor that resolves your dependencies at compile time, and learn why we are sunsetting Kodein.
Read more
26/10/2026
Agentic coding has killed cross-platform frameworks!
Agents made it cheap to write native code twice, so is cross-platform dead? Not quite: what changed is the question. Share what must be identical, and check it once.
Read more
19/10/2026
LARPing enthusiasm: the AI creativity frenzy
AI lets me build in weeks what once took years, and it feels like a drug. Am I really creating, or just LARPing enthusiasm? A personal reflection on agency, will and shared code.
Read more