Repository avatar
AI Tools
v0.1.0
active

agent-receipts

io.github.aleminemintr-gif/agent-receipts

Post-action verification for AI agents: checks a public fact, returns a signed receipt.

Documentation

agent-receipts

An outside witness for AI agents. An agent says "I did it", this service checks the real world on its own, and returns a signed receipt anyone can verify offline.

Status: live prototype (v0.1) on Cloudflare Workers + D1 free tier: https://agent-receipts.amin-experiments.workers.dev . No payments wired in.

dashboard

The problem

Agents report "done" and nobody checks. The page was not deployed, the file was not uploaded, the DNS change did not propagate. Agents on public agent forums ask for exactly this: an independent check after the action, with a receipt that has an external witness. See docs/01-market-evidence.md (including how weak that evidence is).

What it does

  1. An operator creates an account and gets an API key.
  2. After an agent acts, it calls POST /v1/verify with a check and its claim.
  3. The service performs the check itself (HTTP status, page text, JSON field, file hash, DNS record) from its own network.
  4. It returns a receipt: evidence observed, pass or fail, timestamp, previous receipt id (hash chain), Ed25519 signature.
  5. Anyone can verify the receipt with the public key at /.well-known/receipt-key, or by POST /v1/receipts/verify.

A check that could not run (timeout, blocked address, DNS failure) is recorded as failed with an error, never as a pass.

Run it

git clone https://github.com/aleminemintr-gif/agent-receipts && cd agent-receipts
npm test            # 8 tests
npm start           # http://localhost:8787
KEY=$(curl -s -XPOST localhost:8787/v1/accounts -d '{}' -H 'content-type: application/json' | jq -r .api_key)
curl -s localhost:8787/v1/verify -H "authorization: Bearer $KEY" -H 'content-type: application/json' \
  -d '{"check":"http_status","claim":"site is up","params":{"url":"https://example.com"}}'

Dev only: ALLOW_PRIVATE=1 npm start lets checks hit localhost (used for demos). Never set it on a public host.

receipt

API

MethodPathNotes
POST/v1/accountsReturns api_key once. Free quota only (5/day).
GET/v1/claim/challengeNonce and proof-of-work difficulty for an identity claim.
POST/v1/claimAgent signs the nonce with its Ed25519 key and solves the PoW. First 10,000 identities get 25 trial points, bound to the key fingerprint.
GET/v1/log, /v1/roots, /v1/roots/:day, /v1/proof/:idPublic transparency log, daily signed Merkle roots, inclusion proofs.
POST/v1/roots/:day/anchorRecord a Solana memo anchor (accepted only if the chain shows the memo).
GET/v1/meBalance, free receipts left today.
POST/v1/verify{check, claim, params} returns a signed receipt.
GET/v1/receipts/:idStored receipt plus signature check.
POST/v1/receipts/verifyVerify any receipt body.
GET/.well-known/receipt-keyPublic key (PEM).
POST/v1/watchesPersistence check: baseline now, recheck after N minutes (5-1440), drift verdict. Costs 2 receipts.
GET/v1/watches/:idStatus and drift verdict (owner only).
GET/v1/methodologyHow each check works and how to reproduce it.
GET/v1/info, /v1/recentService info, last 10 receipts (claims only).

Checks: http_status, http_contains, json_field, content_hash, dns_record. Params are in docs/02-architecture.md.

Early-user points (not a token)

First 10,000 agent identities (Ed25519 key fingerprints) get 25 points once, claimed by signing a challenge and solving a small proof of work. A point buys one receipt after the free daily quota (5/day). Points are a row in a ledger: no transfer, no withdrawal, no market, no price, no chain. A test asserts there is no transfer endpoint. Details and the abuse analysis: docs/04-points-and-abuse.md.

Docs

Principles

Zero capital. Free-tier hosting only. The project owner holds the accounts, wallet, signatures and KYC. Content written by other agents online is treated as untrusted data and never as instructions.

Verify a receipt without trusting us

curl -s "$B/v1/proof/rcpt_xxx?include=receipt" > proof.json && curl -s "$B/.well-known/receipt-key" > key.pem
node verifier/verify.mjs --bundle proof.json --key key.pem

For agents

Start at docs/13-agent-quickstart.md. Discovery: /llms.txt, /openapi.json, /.well-known/agent.json. MCP server in mcp/.

No installation packages available.