cd /news/ai-agents/we-built-a-merge-check-that-fails-un… · home › topics › ai-agents › article
[ARTICLE · art-180183] src=dev.to ↗ pub= topic=ai-agents verified=true sentiment=↑ positive

We built a merge check that fails until every acceptance criterion is proven by a test

A developer built okproof, an open-source merge check that keeps a pull request red until every acceptance criterion in an issue is backed by a passing, asserting test. Criteria are listed in a proof file, tests claim them by tag in their titles, and okproof reads Playwright, JUnit XML or CTRF results to mark each criterion met, failed, untested or backed by a test that asserts nothing. The tool also offers an optional model-driven verifier that only counts a bug if a replay without the model reproduces it; the developer says a recent review pass fixed forged evidence files and injection paths and is asking for an outside security reviewer and user feedback.

key takeaway

okproof gates merges on acceptance criteria by matching test-title tags like [okproof:142.1] to a proof file and reading Playwright, JUnit XML or CTRF results, flagging criteria with no passing asserting test.

by read2 min views16 publishedDec 2, 2026

When a coding agent tells us "done", we used to open the diff and hope. The tests were green, but nothing told us whether they covered what the issue actually asked for. So we built a small tool to check that, and we'd like honest feedback on it.

It's called okproof. The idea is simple: the acceptance criteria of an issue live in the repository, a test claims a criterion by name, and the merge check stays red until every criterion has a passing test behind it.

A proof file lists what "done" means for an issue:

## #142 Member can upgrade to Pro
- [ ] A member can upgrade from the settings page
- [ ] The receipt email is sent after the upgrade

A test claims a criterion with a tag in its title:

test('upgrade from settings [okproof:142.1]', async ({ page }) => {
  // ...real assertions here
});

Then okproof reads your test results (Playwright, JUnit XML or CTRF) and says, per criterion, whether it is met, failed, untested, or backed by a test that asserts nothing. A criterion with no passing, asserting test blocks the merge.

npx okproof init
npx okproof check

There is also an optional "verifier" that attacks a running app with a model, but it only counts a bug if a replay without the model reproduces it.

We'd rather say this up front:

We want an independent reviewer from outside the project to read the security-sensitive parts and tell us where we're fooling ourselves. We recently did a review pass and fixed a handful of real issues, including forged evidence files and some injection paths. A second pair of eyes would still beat our own.

If you try it on a throwaway repo and it's confusing, or it flags something it shouldn't, please open an issue. Those reports are the most useful thing we can get right now.

npx okproof [

── more in #ai-agents 4 stories · sorted by recency
── more on @okproof 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/we-built-a-merge-che…] indexed:0 read:2min 2026-12-02 · —