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 is about to decompile, port, modify or redistribute a file fingerprints it locally, asks the registry, and gets back the owner, the owner's decision for that exact 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 |
| Someone connecting an AI agent or tool | Connect an agent |
| Checking whether a stamp can be trusted | Verify a stamp yourself |
| Wondering who you have to trust | Architecture and Mirrors and witnesses |
| Running your own registry, a mirror or a witness | 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.
- Witness: a party that cosigns the log, and only when it extends the log it saw before.
- Mirror: a copy of the log and the public records on any web host. It is trusted for nothing.
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 public witness 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#
Version 0.4 is a working prototype. It is tested, benchmarked and running in public, but not yet hardened for heavy traffic. Interfaces may change before 1.0.
Today the project runs the registry, one witness and one mirror. The architecture page says what that means. The security page says what holds today and what does not.
Source of this page on GitHub. Documentation for Grantstamp 0.4, licensed CC BY 4.0.