Urgent.News

What's breaking now, across hundreds of outlets.

AI

My AI swore all tests passed. Here's the free one-file fix that makes it prove it.

My agent told me "All tests pass." It had run 74 of our 105 test files. Another time it wrote "The email went out at 08:45." The clock said 08:37. A third time: "14 people clicked Sign in." Those were page views. Nobody had counted clicks. None of that was lying. The agent said what it believed. The trouble is that "done" is a sentence, and a sentence costs nothing to write. So I stopped…

The wire material describes a tool called "proof-gate" that verifies the output of AI agents by running checks on tasks and recording their results in a receipt file. The key points are:

1. An agent may claim a task "done" but can be wrong without proof. proof-gate prevents this by requiring a check to exit with a 0 code for the task to be considered done.

2. For each task, proof-gate runs the relevant tests, build steps, lint checks, etc. It then writes a receipt containing the commit hash, time, commands run and their exit codes.

3. The receipt provides a transparent record of what the agent did, including the commit state before/after the gate ran. This prevents an agent from reporting green after making code changes.

4. The procedure is simple: git clone the proof-gate repo, create a proof-gate.json with checks and a control (a test that should fail), run node proof-gate.mjs <task>, and the exit code determines if the gate is green/red.

5. The agent should only hand over the receipt if the gate is green, otherwise it should not call the task done. This adds accountability.

6. The receipt helps catch if expected checks are missing. It can also be used in CI pipelines to verify agents.

7. The tool is language and model agnostic, works with Node 18+, and can be used with Claude Code, Cursor, Copilot, or plain shell scripts. No dependencies are required.

In essence, proof-gate provides a straightforward way to make AI agents accountable by requiring them to prove their work through real-time verification of task completion.

Rewritten by urgent.news; may contain errors — check the original.

Source: dev.to

Read the original at dev.to →

Report a problem with this story

More in AI

Seven time trackers with MCP servers and what an AI can do

If you want to ask Claude or ChatGPT about your time, seven trackers document an MCP server: TimeUno, RescueTime, Rize, Timing, Toggl, Harvest and Clockify.

  • Seven time tracking apps use MCP protocol for AI integration
  • TimeUno allows AI to pause/resume tracking and set productivity rules
  • Harvest and Toggl recommended for logging billable hours

More from Wednesday 25 November →