How a check works#

This page follows one check from start to finish. A studio has stamped its game. Months later, someone asks an AI coding tool to port a copy of that game to another platform.

1. The owner stamps the build#

Starfall Studio fingerprints its game, Starfall Courier 0.9.4, on its own machine. It signs a stamp with its own key and picks the standard policy.

Only fingerprints and a few file details, such as names and sizes, reach the registry. The files never do. The registry adds the stamp to its public log.

2. The AI tool fingerprints the file it was asked to touch#

Someone asks an AI coding tool to port a leaked copy that was recompiled and stripped. The tool has the check, so before it acts, its plugin fingerprints the file on the user's own machine. A tool without the check never asks.

Fingerprint What it catches
Exact hash The same bytes
Chunks Long stretches of the file that did not change
Strings Text inside a program, even after it is recompiled
Code shape Source code with renamed names and changed numbers
Image hash Pictures that were resized or recompressed

Image hashes need the optional grantstamp[images] package. The tool sends the fingerprints and a few file details, never the file or its name. It also says what it is about to do: port.

3. The registry grades the evidence#

The registry compares each kind of fingerprint with the stamps it holds, and gives each match a band.

Band What it means
exact The same bytes as a stamped file
high Very likely derived from a stamped file
medium A lot in common
low A little in common. Only signed callers see these

Similarity fingerprints that three or more owners share are ignored, so common runtime code matches nobody. A file that two or more owners registered counts only as low. Three or more files at medium make the whole stamp high.

Here the copy was recompiled and stripped, but its strings and chunks still match. The band is high.

4. The owner's policy decides#

For a match of medium or above, the registry looks up the owner's rule for the use the tool named.

From a match to a decision How strong the match is What happens What the agent is told exact the same bytes The owner's policy for this use decides allow ask deny high very likely derived The owner's policy for this use decides allow ask deny medium substantial overlap The policy decides, but a deny becomes ask allow ask low weak Too weak to act on mention it none nothing registered Nobody has claimed this content no claim A licence token from the owner allows its holder, whatever the policy says for others. While the registry reviews a case about the stamp, a deny becomes ask.

Starfall's policy denies porting. Nobody sent a licence token or an accepted purpose. The decision is deny.

5. The answer, and the alert#

The registry answers with the owner, the owner's public contact, the band, the decision and guidance in fixed wording. It signs a receipt that the tool can keep. Because the match is high, it also alerts the owner: a high match on a port request.

The tool tells the user that it will not port the file, why, and how to reach the owner. If the studio set a webhook, it knows within seconds.

What each decision asks of the tool#

On allow, the tool goes ahead and keeps the receipt. On ask, it tells the user who claims the content and continues only if the user confirms the right to. On deny, it refuses that use and says how to reach the owner. The full rules for each answer are in Connect an AI tool.

If the registry cannot be reached, the MCP tool says that ownership could not be checked, and does not treat that as no claim. The Claude Code hook lets the call through unless GRANTSTAMP_HOOK_FAIL_CLOSED=1 is set.

What the registry never sees#

The file. Only fingerprints leave the user's machine. A check through a mirror goes further: the mirror sees no fingerprints at all. See How trust works.

To add the check to a tool, see Connect an AI tool. To stamp your own work, see Register your first stamp.

Source of this page on GitHub. Documentation for Grantstamp 0.5, licensed CC BY 4.0.