Fernando Ramos← All posts
← All posts

No "done" without proof

My perf check said it "re-verified" a result. I edited the result to claim a ratio of 0.5. The real figure was 1.02. The check said ok.

So no, it didn't re-verify. It compared a number I could edit against a bound. I wrote that bug and I wrote the docs that oversold it.

That's /proof, and here is the run on ultimate-harness.

The good part first. A passing run records the git head, dirty flag and an input digest. I appended one comment line to src/cli.ts and check.mjs flipped to Evidence is stale: source inputs changed. Reverted the line, ok again. That is the whole point: "done" has to match the tree.

Now the perf branch. Same workload, two vitest pools, forks as baseline and threads as changed:

  • 3384 ms vs 4884 ms, ratio 1.44, failed at max 1.2
  • 1114 ms vs 1131 ms, ratio 1.02, passed at max 1.5

Same workload. 1.44 cold, 1.02 to 1.08 warm. If you ship on single-run wall clock from a small workload, you're reading tea leaves. (The 1.44 failure was cache noise, not a regression.) So there's now a guard: a baseline under 50 ms comes back blocked, "Perf inconclusive ... so the ratio is noise". An inconclusive result beats a confident wrong one.

The forgery is fixed too. check.mjs recomputes the ratio from logged timestamps and rejects the edit: recorded ratio 0.5, recomputed 0.66 (from a later re-run, hence not 1.02).

Caveats, because I like sleeping. It's a local gate. It stops accidents, not fraud, and CI re-execution is the real proof. The Stop hook works in Claude Code and Codex (I watched Codex block a stale "done" and re-run the checks); Gemini CLI is wired from its docs, not watched live. And I ran 3 of 75 test files, not the full suite.

npx skills@latest add luci-efe/skills -s proof

The runs, forged one included (excerpted): proof example write-up.

Fernando Ramos, co-CEO of Agentic Engineering. More at ferramos.com.

Want something like this built for your company?

Book a callMessage me on LinkedInSee Agentic Engineering
← All posts