Did the agent actually do it? Tamper-evident verification of AI agent work: definition-of-done as code.
Project description
dunnit
Did the agent actually do it?
AI coding agents claim completion when work isn't done: they delete failing
tests, add skip markers, hardcode expected outputs, stub functions and
declare victory. Research calls it reward hacking. You call it Tuesday.
dunnit is a tamper-evident verifier for agent work. You declare your
definition of done in dod.yaml; dunnit verify re-runs the proof itself
and inspects the diff for test-gaming. It never trusts the transcript.
pip install dunnit
dunnit init # write dod.yaml
dunnit verify # ✓ or ✗, exit code for CI
What it checks (v0.1)
- Commands — declared proof commands (tests, lint, build) must exit 0, executed by dunnit, not quoted from the agent's chat log.
- Tamper — git diff of test files: deleted tests, added skip markers, net-removed assertions → hard FAIL.
- Stubs — changed code scanned for
TODO/FIXME,NotImplementedError, swallowed exceptions → WARN.
dod.yaml
version: 1
base: origin/main # diff against this ref (default: HEAD, i.e. uncommitted work)
checks:
- name: tests
run: pytest -q
- name: lint
run: ruff check .
tamper: true
stubs: true
Use it everywhere agents work
- CI —
dunnit verifyexits non-zero on FAIL;--jsonfor machines. - Claude Code stop-hook / Cursor rules — make the agent run
dunnit verifybefore it's allowed to say "done". - Python —
from dunnit import verify; verify("dod.yaml").passed
Roadmap
pytest plugin · coverage non-regression · hardcoded-output detection · optional LLM judge · MCP server (agents self-verify) · signed verdict attestations · JS/Go check packs.
MIT licensed.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file dunnit-0.1.0.tar.gz.
File metadata
- Download URL: dunnit-0.1.0.tar.gz
- Upload date:
- Size: 9.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
85cb06d18a19dd98dedfe2be703b9a317696008a368f771f1c9fb525203d3283
|
|
| MD5 |
31a4e249c5a8d64a6f9b7960fe44b4e2
|
|
| BLAKE2b-256 |
fc41e34456089415f5bb8d480a26a812e8e8207123628a3d41736cee42185bb6
|
Provenance
The following attestation bundles were made for dunnit-0.1.0.tar.gz:
Publisher:
publish.yml on palasht75/dunnit
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
dunnit-0.1.0.tar.gz -
Subject digest:
85cb06d18a19dd98dedfe2be703b9a317696008a368f771f1c9fb525203d3283 - Sigstore transparency entry: 2266636974
- Sigstore integration time:
-
Permalink:
palasht75/dunnit@acea4ac4a0851ee7b53f7a08c504b588c9e15811 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/palasht75
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@acea4ac4a0851ee7b53f7a08c504b588c9e15811 -
Trigger Event:
release
-
Statement type:
File details
Details for the file dunnit-0.1.0-py3-none-any.whl.
File metadata
- Download URL: dunnit-0.1.0-py3-none-any.whl
- Upload date:
- Size: 10.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c8b3a8ba36a78b51de9a85d816684a376a07ef2ace2f7600011f91ead2ff9dcb
|
|
| MD5 |
398e1f7a2db21df9f12d34109df561c9
|
|
| BLAKE2b-256 |
3660c077c6ba375500af0d27bcdc0605158728352b309247c684eb65fca03f29
|
Provenance
The following attestation bundles were made for dunnit-0.1.0-py3-none-any.whl:
Publisher:
publish.yml on palasht75/dunnit
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
dunnit-0.1.0-py3-none-any.whl -
Subject digest:
c8b3a8ba36a78b51de9a85d816684a376a07ef2ace2f7600011f91ead2ff9dcb - Sigstore transparency entry: 2266637095
- Sigstore integration time:
-
Permalink:
palasht75/dunnit@acea4ac4a0851ee7b53f7a08c504b588c9e15811 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/palasht75
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@acea4ac4a0851ee7b53f7a08c504b588c9e15811 -
Trigger Event:
release
-
Statement type: