Changelog#
0.4.6 (2026-11-29)#
Clients know the second witness, and the pages say what runs today. No code changes.
- The pinned witness policy lists a second witness,
second, run fromgrantstamp/grantstamp-witness. The quorum is unchanged. Both witnesses are the project's own, so the second adds redundancy, not independence. - The pages say what runs today: two witnesses that cosign every 5 minutes, two mirrors refreshed every 10 minutes, a Cloudflare Worker as the timer, and the check map published. They also say why two witnesses of the same operator prove no more than one.
0.4.5 (2026-11-29)#
Mirrors and witnesses no longer depend on GitHub's scheduler. No protocol or API changes.
- GitHub's scheduler is no longer the timer. It skipped runs for hours at a time. The mirror and witness workflows now run when something starts them, and the operator picks what does.
grantstamp triggerstarts a mirror or witness workflow on GitHub: once, in a loop, or from the machine's cron with--install. It needs a token that can start that workflow and nothing else. The token is kept in a private file and never written into cron.grantstamp witness runkeeps a witness going on one's own machine, with no GitHub at all.grantstamp mirror --every --servekeeps a mirror folder up to date and serves it.- A hosted timer for Cloudflare Workers is in
integrations/join/timer/. - Run a mirror or a witness was rewritten. It says what each role does and needs, then gives two ways: fork
grantstamp-mirrororgrantstamp-witnesson GitHub, or run everything on one's own machine.
0.4.4 (2026-11-29)#
The check map survives a restart, and a kit for running a mirror or a witness. No protocol or API changes.
- The same check map comes back after a restart. A registry without a disk of its own lost its map files on every restart. It then built a new generation and added a
map.generationentry to the log each time. It now writes the same generation again and logs nothing, when nothing changed. A registry started under 0.4.3 or earlier adds one or two last entries after the upgrade. - Run a mirror or a witness. A new page walks through both, with two ready workflow files in
integrations/join/. It also says what a registry's operator does when someone sends one. - The witness and mirror jobs run more often, because GitHub skips many scheduled runs.
0.4.3 (2026-11-29)#
One fix, and documentation that shows how 0.4 holds together. No protocol or API changes.
- A mirror that cannot be reached is skipped.
grantstamp check --via-hostsstopped with an error when the first mirror was down or lacked a file. It now tries the next one, as it already did for a mirror that fails a check. - A forced check-map build waits.
grantstamp admin build-mapnow waits for a build that is running, where it used to do nothing. - Documentation. A new page, "Mirrors and witnesses", publishes the 0.4 design. The architecture page is rewritten around who holds what, and says what runs on grantstamp.io today. There are five diagrams. Long paragraphs are split. Lists that showed as one block of text now show as lists.
- Website. The home page has a section on witnesses and mirrors. The security page is revised for 0.4.
0.4.2 (2026-11-28)#
A log that anyone can serve and nobody can quietly change. See docs/design/0.4-untrusted-nodes.md.
- Tiled transparency log. The registry also publishes its log as an RFC 6962 Merkle tree in the C2SP formats: signed checkpoints at
/log/checkpoint, tiles and entry bundles at/log/tile/, the log key and witness policy at/v1/log/policy. The 0.3 hash chain and/v1/log/headstay. - Witnesses. The registry pushes checkpoints to C2SP witnesses (
GRANTSTAMP_WITNESS_POLICY) and accepts cosignatures from scheduled witnesses at/v1/log/cosign. With a quorum set,/log/checkpointserves only cosigned checkpoints.grantstamp witness serve,witness cosignandwitness submitrun a witness. A witness saves its state before any cosignature leaves it. An hourly GitHub witness is included (.github/workflows/cosign.yml). - Mirrors.
grantstamp mirrorcopies the log and the records of listed stamps into a folder any web host can serve, checking everything and fetching only what is new.grantstamp audit --fromandgrantstamp log show --fromcheck a mirror without asking the registry. The website keeps an hourly mirror at/registry/and falls back to it while the registry sleeps. - Pinned log keys.
grantstamp log pinremembers a registry's log key and witnesses. A policy file insrc/grantstamp/logs/pins it for every user of a release. - Unlisted stamps are no longer named in the public log. From now on, a log entry about an unlisted stamp names it by the SHA-256 of its id. Entries made before 0.4 still name it.
- Checks answered by untrusted hosts (experimental, off by default). With
GRANTSTAMP_MAP=1the registry publishes a check map: keyed tokens of every registered feature (exact hashes included), sorted in a Merkle tree, with small JSON files, all committed to bymap.generationentries in the log.POST /v1/tokensmakes tokens and counts every feature against the rate limit. Mirrors copy the current map, so every mirror can answer checks.grantstamp check --via-hostsverifies everything against the witnessed log and grades the evidence with the registry's own matching code. Image hashes, owners' procedures, publisher signatures and licence tokens still need the registry.grantstamp admin build-mapandrotate-map-keymanage it. A host's map counts only if it is the registry's current one, or was made in the last 2 hours. A client never accepts a log older than one it saw. Each host is tried on its own, and the registry is last. - Mirrored records are tied to the log. A record must list exactly the log's entries for its stamp and its owner, and say what the latest entries say. Every key that signed a claim must be one the log recorded for the owner. The registry now keeps the payload behind each stamp entry and serves it with the proof, along with keys replaced by a recovery. An operator's edit to an owner is logged one field per entry.
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.4, licensed CC BY 4.0.