This is the documentation for version 0.5. Read this page for version 0.6, the latest.
Overview#
Grantstamp is an open ownership registry that AI agents check before they work on a file.
An owner registers a stamp: fingerprints of a build plus a policy that says what is allowed.
An agent that has the check fingerprints a file locally before it decompiles, ports, modifies or redistributes it. It asks the registry and gets back the owner, the owner's decision for that use, a confidence band and a signed receipt.
Files never leave the machine they are on. Only hashes travel.
Pick your path#
| You are | Start here |
|---|---|
| An owner who wants to register a build | Register your first stamp |
| New here, and wondering what happens in a check | How a check works |
| Someone connecting an AI agent or tool | Connect an AI tool |
| Checking whether a stamp can be trusted | Verify a stamp yourself |
| Wondering who you have to trust | How trust works |
| Running a mirror or a witness | Run a mirror or a witness |
| Running your own registry | Run a registry |
| Implementing the protocol in another language | Protocol specification |
The parts#
- Client (
pip install grantstamp, Apache-2.0): the command-line tool, the Python library, the MCP server and the Claude Code hook. It fingerprints files and talks to a registry. - Registry (
pip install grantstamp-server, AGPL-3.0): stores stamps, answers checks, alerts owners and keeps the public log. The public registry runs athttps://registry.grantstamp.io. Anyone can run their own. - Witnesses and mirrors: parts anyone can run. A witness cosigns the public log, so the registry cannot show two histories. A mirror serves a copy that every reader checks.
- Protocol (CC BY 4.0): the bundle format, the feature definitions, the check request and response, signatures, tokens and the log.
Words used in these pages#
- Stamp: one registered title or release, with all its files and one policy. Its id looks like
stamp_m6q21daksxa188bx, and its public page ishttps://registry.grantstamp.io/s/<id>. - Band: how strong a match is. exact is the same bytes, high is very likely derived, medium is substantial overlap, low is weak.
- Use: what the caller wants to do: analyze, decompile, modify, port, extract, redistribute or train.
- Decision: what the owner's policy says for that use: allow, ask or deny. Only high and exact matches can produce a deny. A medium match turns deny into ask.
- Licence token: a statement signed by the owner that lets a named licensee through.
- Claim: a statement the owner signs about a stamp. The registry stores it so that anyone can check the stamp without trusting the registry.
- Receipt: the registry's signed record of a check or a registration.
- Log: the public, append-only list of everything the registry did. It holds digests, not data.
- Log head: the latest state of the log: its size and its root hash, signed by the registry.
- Witness: a party that cosigns the log head, and only when it extends the log it saw before. The quorum is the set of witnesses whose cosignatures a client requires.
- Daily copy: once a day the log head is saved in a public Git repository and timestamped in Bitcoin.
- Mirror: a copy of the log and the public records on any web host. It is trusted for nothing.
- Check map: keyed tokens of every registered fingerprint, published so that mirrors can answer checks. Only the registry's token service can turn a file's fingerprints into tokens.
- MCP: the Model Context Protocol, a common way for AI tools to call outside tools.
grantstamp-mcpis an MCP server.
From a match to a decision#
What is new in 0.4#
- The log is now a Merkle tree that anyone can copy and serve. See Mirrors and witnesses.
- Witnesses cosign the log. The registry then serves only log heads that a witness has cosigned.
grantstamp mirrorcopies the log and the listed stamps to a folder any web host can serve.grantstamp audit --fromchecks a mirror without asking the registry.- Unlisted stamps are no longer named in the public log.
- Experimental: mirrors can answer checks, without being trusted and without learning what was checked.
What was new in 0.3#
- Owners are on record before they can stamp: an identity and a public contact, and they accept the Terms. The stamp shows the contact and what was checked about the identity. See Who can stamp, and conflicts.
- The registry no longer holds conflicting stamps. A registration that conflicts with an earlier one is refused, and owners can share content under the same policy.
- A case against a stamp starts no clock by itself. Only a notice from the registry does.
- Owners can add a fingerprint procedure of their own, and the registry verifies publisher signatures on signed executables. See the attestation protocol.
What was new in 0.2#
- Owners sign every registration and change, and the registry publishes those signatures. See Verify a stamp yourself.
grantstamp auditchecks the log, its daily copies and any stamp.- Stamps can be searched, kept unlisted, and shared as a link or QR code.
- Fair-use limits per owner, and rate limits that a caller cannot dodge with a forged header.
The full list is in the changelog.
Status#
Grantstamp is a working prototype, before 1.0. Interfaces may change. What runs today, who runs it and what is not done yet are on the status page. Where it is going is in the roadmap.
Source of this page on GitHub. Documentation for Grantstamp 0.5, licensed CC BY 4.0.