Every check runs on your machine.
AINRA gives every AI agent a passport it can prove: who it is, who stands behind it, what it may do, and whether it is still trusted — verifiable offline, fail-closed, with the root switched off. These docs take you from zero to a verified passport in about a minute per page.
Get the reference
Clone the public repository. Every gate passes from a cold clone — that is the project's standing promise, re-proven by CI nightly and by the board in docs/releases/.
$ git clone https://github.com/AINRA-organization/ainra && cd ainra $ make verify # the real verifier: a valid + a revoked credential, named reasons $ make issue-first # a local registrar + your first issued, verified passport
Or install the verifier from a registry. Published with attestations that bind each artifact to the workflow that built it, so you can check its provenance before you trust it — which is the point of a verifier.
$ npm i @ainra/sdk # Sigstore provenance $ npm audit signatures # proves which workflow built it $ pip install ainra # PEP 740 attestations, published token-free
Prefer no checkout? Download the reference CLI (zip) — zero dependencies, runs on any platform with just node. The releases page carries the signed artifacts (a Linux x86_64 binary, the CC0 vector corpus, provenance and SBOM) for anyone verifying the release itself.
Verify in five lines
Point at a root-signed directory, verify the bundle, gate on the verdict. VALID proceeds; anything else returns a named reason — revoked, stale_status, alg_downgrade, … The decision stays yours.
import { Verifier } from "@ainra/sdk"; const v = Verifier.fromDirectory(dir, rootEd, rootSlh); // null: the directory is not authentic if (!v) throw new Error("untrusted directory"); const verdict = v.verify(bundle, now); // → { verdict: "valid" } — or { verdict: "invalid", reason }
from ainra import Verifier v = Verifier.from_directory(dir, root_ed, root_slh) verdict = v.verify(bundle, now) # → verdict.valid is True — or verdict.reason
make diff); the CLI agrees on canonical encoding. A disagreement would be a finding.Gate a route
The middleware turns a verdict into an HTTP decision: invalid agents receive 403 plus an x-ainra-reason header, fail-closed.
import { ainraGate, Verifier } from "@ainra/middleware"; app.use("/agent", ainraGate(verifier));
Prove the request, not just the agent
A valid passport says an agent exists. It says nothing about this request, and a header on its own can be copied and replayed. So a running copy signs each request with its own short-lived key (RFC 9421), and the gate binds the passport to one method, one host and one path, inside five minutes.
- Send the passport once.
POST /.well-known/ainra-presentationwith the bundle. The gate checks it in full and answers201with a digest,sha-256=:…:. It keeps only bundles that verify. - Then sign each request. It carries the digest in
x-ainra-passport, a fresh proof of possession inx-ainra-pop, and thesignature-input/signaturepair, which covers the method, host, path, body digest and that header. That comes to about 11 KB of headers, well under common server limits. The whole passport in one header would not fit. - The gate says why when it refuses.
presentation_unsigned·presentation_sig_invalid(moved, altered or wrong key) ·presentation_stale·presentation_replayed· and428 presentation_unknownif it doesn't hold the bundle yet, meaning "send it, then retry".
const store = createPresentationStore(); app.post(PRIME_PATH, express.json({ limit: "256kb" }), ainraPrime(verifier, { store })); app.use("/agent", ainraGate(verifier, { store, requireSignature: true, seenNonce }));
At the edge. @ainra/edge is the same gate for Workers, Deno and Node's fetch. It's a Request → decision function running ainra-core itself, compiled to WebAssembly. It trusts only a directory signed by both ceremony roots, and it applies its own freshness policy, not the presenter's. It lives in the repository (packages/edge) and isn't on npm yet.
const gate = await createAinraEdgeGate({ directory, roots, audience: "https://shop.example" }); const g = await gate(request); return g.allow ? fetch(request) : g.response;
Beside a signature agent. If an operator already signs its agents' requests as a signature agent (the Web Bot Auth profile of RFC 9421, keys in a directory at its origin), keep that signature. The running copy adds its own beside it, and each verifier reads only its own label. That profile defines no revocation: a withdrawn key keeps verifying until a verifier fetches the directory again. AINRA revokes the passport itself, and a gate refuses it once its status snapshot is fresh, within the gate's freshness class (five minutes by default). How to run both.
As a WIMSE workload. The IETF's agent-identity drafts build on WIMSE workload identity: a short-lived Workload Identity Token, and requests signed with RFC 9421. A running copy can speak that too. Its token is signed by its passport's key, and the passport's name is its trust domain. A service that speaks only WIMSE accepts it. An AINRA-aware service also checks the passport, so it refuses a revoked one within its freshness class. WIMSE itself has no revocation: a token stays valid until it expires. How it maps.
How it's checked: the request profile is stated once in ainra-core, and three implementations (Rust, TypeScript, Python) must agree on its conformance vectors. An independent open-source signature-agent verifier checks the vectors that carry both signatures. make identity-e2e, make edge-e2e and make signature-agent-e2e run the whole journey against a live registrar.
Verifying a running copy
An agent has one passport. Each running copy of it — a container, a worker — carries an instance credential instead of the lineage’s key: minted outside the container by the passport’s control key, narrowed to fewer capabilities, valid for at most an hour, addressed to one audience, and bound to a key only that copy holds. Before this existed, whoever read a container held the lineage’s key and a presentation that worked anywhere for a year.
Integrating changes one thing: tell the verifier who you are. The audience is never read from the presentation, and an empty audience refuses every instance credential — a service that has not said who it is cannot be the intended recipient of anything. Four refusal reasons belong to this layer and never collapse into expired; a revoked passport still reports revoked, because the lineage failed rather than the copy. Runnable end to end: node examples/instance-deployment.mjs.
bash kits/witness/be-a-witness.sh) and needs no accreditation.The CLI lifecycle
The whole lifecycle, locally, no server — a persistent registrar in a directory you own. This is the Rust ainra: in a checkout, cargo build --release -p ainra-cli-rs puts it at ./target/release/ainra, and the releases page has the Linux binary. The zip above is the Node reference CLI, and its commands differ (node bin/ainra.js demo runs its whole lifecycle).
$ ainra init ./reg registrar-07 $ ainra issue ./reg --operator acme --lineage invoicing --version 1.0.0 --tier L2 --cap read:data $ ainra verify ./reg ainra:registrar-07:acme:invoicing@1.0.0 VALID $ ainra revoke ./reg ainra:registrar-07:acme:invoicing@1.0.0 $ ainra verify ./reg ainra:registrar-07:acme:invoicing@1.0.0 INVALID (revoked)
Renewal is first-class: ainra renew reissues with logged continuity (prev_leaf) — identity is eternal, credentials are bounded.
For agents
An agent onboards itself from the machine-readable map, with no human in the loop:
/llms.txt— the capability map (what exists, what to fetch, honest status)./skills.md— deterministic onboarding steps, executable exactly as written (CI replays them)./.well-known/skills/index.json— installable skill index:npx skills add …
Prove your own implementation
AINRA certifies no one. The corpus and the runner are published; you point the runner at your implementation over a documented stdin/stdout contract, sign your own result, and anyone re-runs it to check. We don't certify implementations — we make certification unnecessary.
$ make conformance # the 3 in-repo impls, clean, same corpus hash $ node tools/conformance/run.mjs --impl ./my-verifier.sh $ node tools/conformance/attest.mjs # sign your result with YOUR key
The doctrine and roles: docs/conformance/PROGRAMME.md · the wire contract: tools/conformance/CONTRACT.md. A deliberately broken implementation is caught with named divergences — a conformance tool that cannot fail is theatre.
Verify a release
Releases are signed with an offline SSH key and — the stronger check — reproducible: rebuild the corpus byte-for-byte from the tag, no key needed.
$ ssh-keygen -Y verify -f allowed_signers -I release@ainra.org \
-n file -s SHA256SUMS.sig < SHA256SUMS
Good "file" signature
$ sha256sum -c SHA256SUMS
$ make repro # byte-exact rebuild — trust the bytes, not usThe four-step guide with real pasted output lives in RELEASE-VERIFY.md.
Soon, your AI will act for you.
Some already act alone: intrusion campaigns run, shutdowns evaded — all publicly reported. Every response presupposes what they lack: an identity that cannot be shed.
Anything can claim to be your agent.
Nobody can tell a real one from a fake.
A passport it can prove.
Who it is, what it may do — signed. Checked in milliseconds; a revocation is published in under a minute.
Yours, not ours.
You set the limits, you pull the switch — we just make them provable.
The questions nobody can answer about an agent today
- Who created this agent?/Q1
- Who controls it now?/Q2
- What is it allowed to do?/Q3
- Has it been verified — or revoked?/Q4
- Is it pretending to be another?/Q5
- Can it legally act for a company?/Q6
- Can I safely delegate to it?/Q7
Tomorrow’s checks look like today’s — KYC for people, KYB for companies, KYA for agents: every acting AI carrying a scannable ID with a machine-readable zone.
Web4: the web where software acts.
Each era of the web added one verb. The newest one is why agents need passports.
Pages you could read.
Posts, profiles, comments. Anyone could publish.
Keys and wallets. What you held was yours.
Agents act for you while you are elsewhere. They talk to other agents, sign, buy and trade.
An act needs an actor. Before a shop, an API or another agent lets yours in, it needs four answers: who it is, who stands behind it, what it may do, and whether it is still trusted. An AINRA passport carries all four, and anyone can check them offline.
AINRA is the identity layer for this web: one shared root, many registrars that issue, and anyone who checks, offline. No token, no coin, and nobody owns the word: what we mean by Web4, where the word stops, and the three tests of a Web4-ready service.
The wider argument: “A national security emergency.”
Wyatt Tessari L’Allié of AI Governance and Safety Canada, on agent loss of control. Their argument stops at the alarm; ours starts there: every response needs identity, and identity needs a neutral root.
Charter & the four rules
The whole standard is four sentences made mechanical:
- Birthno identity without a verified, accountable entity behind it. Ever./R1
- Lifeanyone can verify any passport, offline; verification never reports to anyone./R2
- Deathonly the issuer, the principal, or due process can revoke; every revocation is public, appealable, and honored by every verifier within its freshness window — under a minute at the strict setting./R3
- Neutralitythe root records facts. Never money, personal data, reputation, or judgment./R4
They distill six charter prohibitions, amendable only by supermajority in every member constituency after twelve months of public comment:
- issues no passports/P1
- computes no scores/P2
- processes no payments/P3
- holds no personal data/P4
- never gates L0 existence/P5
- features no registrar, ever/P6
Root keys are threshold-held (5-of-9) across five-plus jurisdictions and rotated in public ceremonies; independent witnesses cosign every log checkpoint; the whole root is forkable from public data — the right to leave is what keeps it worth staying with.
Why the root must be one
The problem. Agent IDs are multiplying, each an island — an agent verified in one scheme is a stranger in every other, so trust does not transfer.
The proposal. AINRA is that connective root for agent identity. Existing and future issuers stay independent — their technology, their customers, their business — and accredit into one rulebook: publish issuance to a transparency log, publish revocation that fails closed, chain to the root's keys. From that moment one verification path covers all of them, and an agent's standing earned under one issuer is legible under every other.
Why neutral and non-profit is load-bearing, not branding. No issuer joins a competitor's root — that is why none of the islands can unite the others. Only a body that issues nothing, scores nothing, sells nothing, and competes with no one can anchor rivals; the charter enforces this in code, and the whole design is forkable so the ecosystem can leave if the root ever goes wrong. Uniting the issuers is the entire mission: one root, many issuers, every check local.
The shape of it: one root, three rings. Independent registrars issue, agents carry passports, verifiers decide — three rings, one neutral centre.
Keys, rules, revocation, logs. Everything chains up to it; every check stays local and fast.
Separate organizations issuing under identical published rules.
Each carries a passport chained to the root; its running copies get short-lived keys.
Anyone deciding whether to trust an agent — the check runs on their own machine, and each picks its own bar.
AccreditAnchorRevokeLog
The root does four jobs and nothing else. It returns facts, never scores; every check runs on the verifier’s own machine, and the decision stays theirs.
The plan
Issuers, attestors, verifiers, resolution & data providers, witnesses, and public-interest members each form a constituency in the assembly, which elects the board under charter constraints. Custodians and witnesses stand structurally apart from both. A member-governed federation, non-profit.
Genesis, in order:
- Ceremony rehearsed — DONE · FROST 5-of-9 across nine isolated processes, reproducible transcript (
make ceremony-rehearsal-multi). - Recorded public ceremony — PENDING · sealed hardware on camera, air-gapped share generation, scripted T−30d → T+14d with a public abort playbook.
- Independent verifiers — RECRUITING · three or more strangers verify fresh, un-precomputable challenges on their own machines and sign what they saw.
- The soak — PENDING · fourteen days, three regions, signed reports; the founding declaration refuses to render without the evidence.
Economics: capped per-lineage-year fees at cents scale, flat accreditation, grants. Verification free, forever; at scale the cap falls toward archival cost.
The road: Prove (now — the implementations agree, a stranger's clone passes every gate) → Anchor (charter ratified, first public ceremony, live registrars) → Endure (pre-decided responses to pressure) → Disappear — which means become unnecessary, not vanish: a relay race, not a solo marathon, ending in verification as boring as the clock, plus a managed-migration clause (if a legitimately adopted successor emerges, the root's final duty is an orderly migration into it).
FAQ
Is AINRA a company? No — an international, member-governed, non-profit federation. It never competes with members, holds no equity, and is charter-bound out of issuing, scoring, payments, and personal data.
Why should anyone trust you? You shouldn't have to. The spec is public, the code runs in sixty seconds, keys will be split across jurisdictions, every action lands in witness-cosigned logs — and the standard is forkable, so if we go wrong, the ecosystem leaves with everything. Verify, don't trust applies to us first.
Nobody's on it yet — why join first? The alternative is pairwise trust-wiring at N² cost, forever. Verification is useful on day one with zero counterparties, and the founding table writes the rules everyone else inherits. The honest counter — LOGS SEALED: 0 — is the point: the first seats are authorship, not sponsorship.
What does it cost? Verifying: nothing, ever. Issuing: capped cents-scale per lineage-year through independent registrars.
The Standard has its own page
The complete public specification, v5.1. Implementable by anyone — no license, fee, or permission. Read the Standard →
Canonical file: AINRA_I_The_Standard.md.