Changelog#
0.3.1 (2026-11-27)#
Accountability before ownership. See docs/design/0.3-accountability.md.
- Owners must be on record, reachable and bound by the Terms before they can stamp.
grantstamp owner sign-in(formerlyowner verify-identity, which still works) is a one-time LinkedIn sign-in. Stamps say what that establishes: "A LinkedIn sign-in stands behind this account. Identity not checked." The name from LinkedIn is held by the operator and not published. Stronger levels: checked by the operator (grantstamp admin verify-identity), or a code-signing certificate (grantstamp owner publisher); their names are published because they were checked.grantstamp owner contactsets the public contact shown on every stamp.grantstamp owner create --accept-termsandgrantstamp owner terms --acceptrecord acceptance of the Terms.GRANTSTAMP_REQUIRE_IDENTITY=0turns this off. - The registry no longer holds conflicting stamps. A registration that conflicts with an earlier stamp is rejected with the earlier stamps, their owners and the files that matched listed. Owners can share content with
grantstamp register --sharedwhen every co-owner uses the same policy (the same action for every use and the same accepted purposes), and change that policy together: the change applies once every co-owner asks for it. An owner whose stamp was suspended after a case cannot register the same content again. Theconflictstatus is no longer assigned. - Cases. Only a notice issued by the operator (
grantstamp admin notice --sent-to …) starts a response window (14 days by default), and only a notice with a recorded address can lapse. The owner reads the claim withgrantstamp caseand answers withgrantstamp respond. While a notice is open the stamp is "Under review" and agents ask instead of refusing. An unanswered notice, or a case upheld by the operator, suspends the stamp. The claim is shown to the owner only after a notice. Owners are alerted when a case is decided. New operator commands:admin queue,admin export-owner,admin erase-identity,admin owner-edit;admin resolverefuses to uphold a case before the owner was heard (--without-notice) and to change a decided case (--reopen, logged as a reopening). - Domain age. The registry records when a proven domain was registered and shows it on the stamp page. A domain younger than 90 days (
GRANTSTAMP_DOMAIN_MIN_AGE_DAYS) does not yet count. Free subdomains (github.io, eu.org and similar) are refused. New dependency for the server:tldextract. - Attestation protocol (
spec/attestation.md): exact, generic and procedural evidence. Owners can fingerprint with a procedure of their own:grantstamp register --recipe NAME|FILE,grantstamp recipe list|show|test. A recipe is a short, declarative list of steps that anyone can run safely.GET /v1/recipeslists the ones in use; the client, the MCP server and the hook run them before a check, within a time budget. Four standard recipes ship with the protocol. - Publisher signatures. The registry verifies the Authenticode signature of each signed executable in a stamp and shows who published it. Publishers are compared exactly with names the owner has proven, never with the name the account chose. When a file's signer is not proven to be the stamp's owner, the stamp page says so and agents are told to ask; such files never block other owners, and a publisher who proves the signature can register over that stamp.
grantstamp owner publisherlets an owner prove they hold a code-signing certificate (SHA-256 signatures), which records the identity levelpublisher. Revocation is checked against the issuer's signed revocation list, outside the request loop, with a time budget. New client dependencies:asn1crypto,mscerts. New settings:GRANTSTAMP_CODESIGN_ROOTS,GRANTSTAMP_MAX_SIGNATURES,GRANTSTAMP_REVOCATION_BUDGET. - What agents receive. Guidance is in the registry's own wording and never contains owner-written text; titles, names, contacts and messages come in separate fields marked as data. Each match carries the owner's identity level and label, public contact and case status. A folder is judged by its strictest match. Receipts also name the owner, the identity level and the policy digest. The MCP tool returns a summary built on the same rules. Policy text fields are single-line with length limits, and links must be https.
- Privacy. Checks no longer send the folder's name or file names and paths. Saved licence tokens are sent only to the stamps they were issued for. Owners see callers under an id that differs per owner and changes daily. Events and alerts are deleted after 12 months (
GRANTSTAMP_RETENTION_DAYS). Request logs are off. A case's claimant is named to the owner only with a notice and never in the public log. - Compatibility.
GET /v1/statuslists the registry'sfeaturesandterms_version. The client asks a registry for a dry run only when it offers one, so a 0.3 client no longer creates a duplicate stamp on a 0.2 registry. - The Claude Code hook caches answers per registry and set of saved tokens, and never caches a failure. It now follows chained shell commands,
cd, redirections, wildcards and folders, reads the scripts a command runs for file paths, checks files with a Grantstamp notice, and gives other text files a private exact-copy lookup (GRANTSTAMP_HOOK_TEXT). - Lost-key recovery.
grantstamp owner recoverlets a new key take over an owner account once proven through a verified domain, the LinkedIn member on record, or the operator (admin approve-recovery), after a waiting period (GRANTSTAMP_RECOVERY_DAYS, 7) in which the current key is alerted and can cancel (--cancel). - Per-agent rate limits for AI providers:
admin agent-limit. - Salted log entries about people: the salt is published while the data is public and deleted when it is erased, so a digest cannot confirm a guess afterwards.
- Every alert kind now reaches the owner's webhook, including those made by operator commands and by the registry's own sweep, each with its own wording.
- Owner names cannot read like the registry's labels ("Identity checked…", "Domain verified…").
- New settings for registries other than the hosted one:
GRANTSTAMP_TERMS_VERSION(noneturns acceptance off),GRANTSTAMP_TERMS_URL,GRANTSTAMP_PRIVACY_URL,GRANTSTAMP_CASE_POLICY_URL. - Stamp page: "Domain verified" in place of "Verified owner"; "Owner not verified" now reads "No verified domain"; a stamp that is not active says so above its policy. Missing pages get a page, not JSON.
- New settings:
GRANTSTAMP_LINKEDIN_CLIENT_ID,GRANTSTAMP_LINKEDIN_CLIENT_SECRET,GRANTSTAMP_LINKEDIN_PRODUCT,GRANTSTAMP_LINKEDIN_VERSION,GRANTSTAMP_DOMAIN_MIN_AGE_DAYS,GRANTSTAMP_NOTICE_DAYS,GRANTSTAMP_RETENTION_DAYS. - The Terms, privacy notice and case policy are published on the website, versioned 2026-11-27.
- Website. A new design in one typeface (Archivo), built around the Grantstamp seal: a guilloche rosette in the home hero, a full navigation footer, a link-preview card, a home-screen icon and a
security.txt. Stamp pages show the owner's policy as a schedule and a seal that changes with the stamp's state (registered, under review, suspended); README badges show an open case. The hero's live facts wait for a registry that is waking up. Keyboard focus, contrast and phone layouts were checked on every page, and motion stops for visitors who ask for less of it.
0.2.1 (2026-11-26)#
Trust without trusting the registry:
- Owner claims. The client signs every registration, upload, policy change, listing change and withdrawal with the owner's key. The registry verifies, stores and publishes the claims at
GET /v1/stamps/{id}/proof, so it cannot create or alter a stamp on its own.grantstamp attest <stamp>adds a claim to a stamp registered with 0.1. - Registration receipts.
POST /v1/stampsreturns a receipt signed by the registry that names the log entry. The CLI saves it in~/.grantstamp/receipts/. grantstamp audit. Verifies the log chain and its signed head, compares the log with the public witness, and checks each stamp's claims, logged owner key and DNS record. Exits 1 on any problem.- Witness timestamps. The daily witness job also timestamps each saved log head with OpenTimestamps.
Hardening:
- Rate limits can no longer be dodged with a forged
X-Forwarded-Forheader. The registry reads the caller's address from the header its edge sets (GRANTSTAMP_IP_HEADER,CF-Connecting-IPon Render) or from the right-hand end ofX-Forwarded-For(GRANTSTAMP_PROXY_HOPS). In 0.1 it trusted the left-hand entry, which the caller controls. - Fair-use ceilings on stamps and stored fingerprint features (
GRANTSTAMP_QUOTA_*): per owner (far lower before a domain is verified), for all unverified owners together, and for the registry as a whole.grantstamp admin purge-stampfrees the space a junk stamp took. - Anonymous callers on IPv6 are rate-limited per /64, not per address.
- Withdrawing a stamp deletes its fingerprints. The stamp's record and log entries remain.
GET /v1/status(version, build commit, database health and size, log head),GET /v1/whoami, and aratelimit-remainingresponse header. Statistics are cached for 30 seconds.- Registry: answer
HEADwhereverGETis served, so uptime monitors and link checkers no longer get 405. - The database upgrades itself: new columns are added on start.
Stamps:
- Search:
GET /v1/stamps?q=,grantstamp search, and a search page on the website. - Unlisted stamps:
grantstamp register --unlisted,grantstamp listandunlist. Unlisted stamps still match checks and keep their page. - QR codes and badges:
/s/{id}/qr.svg,/s/{id}/qr.png,/s/{id}/badge.svg,grantstamp qr. The stamp page is redesigned and shows the owner's signature and log entries.
Website and documentation:
- New home page, and new pages for stamp search, security, pricing and status.
- Versioned documentation at
/docs/<version>/, built byscripts/build_site.py, with new guides for owners, agents and verification. bench/load_bench.pyandbench/LOAD.md: speed and storage measured with 3,000 registered files.
Changed:
- The registry's OpenAPI page moved from
/docsto/v1/docs;/docs/now serves the documentation. grantstamp-servernow depends onsegno(QR codes).
0.1.2 (2026-11-26)#
- Registry server: reconnects to Postgres after hosted databases (such as Neon) pause and close idle connections, and recovers after a failed statement instead of failing every later request. A new Postgres test kills the server's connection mid-run.
- Release workflow: a re-run after a partial upload skips files already on PyPI.
- Announce workflow: fixed a YAML error that failed it on every push.
- Archiving: Zenodo and citation metadata (
.zenodo.json,CITATION.cff). Each GitHub release now gets a DOI.
0.1.0 (2026-11-26)#
First public prototype.
-
Two packages from one repository:
grantstamp(client, CLI, MCP server, agent hook, website; Apache-2.0) andgrantstamp-server(registry; AGPL-3.0-only). The client never depends on the server. -
Layered fingerprints: SHA-256, content-defined chunks, strings, symbols, code winnowing, image dHash, embedded markers, and signed
grantstamp.jsonmanifests. - Registry server (FastAPI) on SQLite or Postgres. It supports owner keys and domain verification, stamps with per-use policies, checks graded in confidence bands, licensee tokens, signed receipts, a hash-chained transparency log, alerts and webhooks (JSON, Slack, Discord), disputes, rate limits with proof-of-work relief, and k-anonymity exact lookup.
- RFC 9421 HTTP Message Signatures (Ed25519) for owners and agents, with Web Bot Auth key-directory discovery.
grantstampcommand-line tool, MCP server, and Claude Code PreToolUse hook.- Website with an in-browser file check that matches the Python features bit for bit.
- Benchmark: recompiled, stripped, patched, ported and decompiled variants all match high or exact. There were no medium-or-higher cross-matches between different source packages in a 400-binary sample.
Source of this page on GitHub. Documentation for Grantstamp 0.3, licensed CC BY 4.0.