Implementer Quickstart
A one-page reading order for someone building an AITP peer agent. The
authoritative source is the RFC set; this page just sequences them with
context so you don't end up reading them backwards. For SDKs, an
independent verifier, and other implementation-side material, see
docs/ecosystem.md.
To see a working handshake before reading anything, run the three commands at the top of the README against the hosted interop peer.
Two signing profiles
AITP v0.3 signs artifacts under two profiles (RFC-AITP-0001 §5.4):
- Compact JWS (RFC-AITP-0001 §5.4.5)
for the portable trust artifacts — the TCT, the grant voucher and the
delegation token. The signature covers the exact transmitted bytes;
there is no canonicalization step. The header is exactly
alg+typ,typis pinned per artifact, andalgis derived from the signer's AID, never read from the token. - JCS embedded signature (RFC-AITP-0001 §5.4.1) for everything exchanged only between full AITP stacks — envelopes, Manifests, revocation snapshots, session trust bundles and handshake payloads.
If you are porting an earlier implementation, the TCT field-by-field migration table is RFC-AITP-0005 §2.1.
Migrating from the v0.2 line
aitp/0.3 changes two things relative to the v0.2 line, and both break
wire compatibility:
- The envelope signing input. The envelope signature is computed
over
"aitp-envelope-v2" || 0x00 || JCS(envelope without signature)(RFC-AITP-0001 §5.4), soversion,message_typeandextensionsare signed. The old pipe-composed input is retired. - The literal. Every
versionfield andverclaim isaitp/0.3.
The cutover is strict: an aitp/0.3 peer rejects a v0.2 line
artifact with that artifact's unknown-version code — UNKNOWN_VERSION
for an envelope (fixture env-011) or a JWS artifact,
MANIFEST_VERSION_UNKNOWN, REVOCATION_SNAPSHOT_INVALID (rev-010) or
BUNDLE_VERSION_MISMATCH (bundle-008) — with no dual-accept window. Everything else — the JWS profile, AIDs, Manifests, TCTs,
delegation, revocation and error codes — is unchanged. See
VERSIONING.md for the full notes.
Read in this order
-
docs/architecture.md— orient first. The problem, the shape, the flows, where state lives, and the big invariant. -
RFC-AITP-0001 Core — primitives. The signed envelope, replay protection (
message_iddedup + timestamp window), the two signing profiles above, base64url rules, error codes, and the AID grammar (§5.3): the algorithm-taggedaid:pubkey:ed25519:…/aid:pubkey:p256:…forms, plus the legacy untaggedaid:pubkey:<43-char>Ed25519 form from v0.1, which implementations MUST still parse. Implement the envelope first. -
RFC-AITP-0002 Identity — proofs. OIDC (the JWT carries
aud, anonceequal to the handshakepop_nonce, andcnf.jkt— §2.2) and pinned-key (with the five-field handshake-bound proof input — §3.1). The verifying party is always another peer, never a third party. -
RFC-AITP-0003 Manifest — discovery. The signed self-description served at
/.well-known/aitp-manifest. Verify in the order listed in §5; the bootstrap order matters. -
RFC-AITP-0004 Mutual Handshake — the protocol's hot path. Four messages, two round trips. §5 defines the verification sequence; §4 defines the TCT-issuance and grant-intersection rules. The round-2 commit payloads (§3.3, §3.4) carry the TCT and, optionally, its companion
grant_voucher. -
RFC-AITP-0005 TCT — the output artifact: a compact JWS (
typaitp-tct+jwt) signed by the issuing peer, audience-bound, capability-scoped, with a top-levelcnf.jktclaim for downstream PoP (§3). Verified locally using only the issuing peer's Manifest key, your own AID, and the current time, in the order of §7.2. §8 defines the grant voucher (typaitp-grant+jwt), minted alongside the TCT so the subject can later delegate. -
RFC-AITP-0006 Delegation — single-hop. The delegation token embeds the grant voucher; verify
scope ⊆ voucher.grants(§4 step 6). Multi-hop is RFC-AITP-0011 (opt-in, see below); a core implementation MUST reject a delegation token carrying achainclaim withDELEGATION_MULTIHOP_NOT_SUPPORTED(§4, "Multi-hop guard"). -
RFC-AITP-0007 Key Resolution — operational. Manifest-first for peer keys; cache → pinned → well-known for issuer keys. Read §3 carefully:
key_resolution.fail_modeandrevocation_policy.modeare different fields with different semantics. -
RFC-AITP-0008 Revocation — operational. Per-issuing-peer JTI deny lists. Each agent revokes only what it issued; consumers consult the issuer's deny list. Revoking a TCT also kills its voucher and every delegation derived from it (§1.1).
-
RFC-AITP-0009 Security — review what you've learned. The threat model is the integration test for whether you understood the protocol.
Status and opt-in RFCs
Per the RFC index, RFCs 0001–0009 are in Review
and RFCs 0010, 0011 and 0014 are Draft (see
governance/RFC-PROCESS.md for the
lifecycle). RFC-AITP-0010 (Session Trust Bundle), RFC-AITP-0011
(Multi-hop Delegation), RFC-AITP-0013 (TCT Renewal Extension) and
RFC-AITP-0014 (A2A Agent Card Security Scheme) are opt-in: Draft
normative text, outside v0.3 core conformance. RFC-AITP-0012
(Extensions) is Reserved: its contents are non-normative for
aitp/0.3. Core
conformance does not require implementing 0010–0014, but the
RFC-AITP-0012 §5–§6 constraints (ignore
unknown keys inside extensions/ext; make no trust decision from
zk/tee/sd_grant) and the chain-claim rejection above still apply.
Implementation gotcha: always decode before hashing
Every PoP signing input hashes the decoded raw bytes of the nonce or
challenge, never the base64url string:
hash_input = sha256(base64url_decode(nonce_or_challenge)). The rule,
and the four code paths it covers (Manifest PoP, handshake PoP,
downstream TCT PoP, pinned-key identity proof), is
RFC-AITP-0001 §5.4.2.
Hashing the ASCII form is internally consistent but fails
cross-implementation verification; run kat-manifest-pop-001 in
schemas/conformance/known-answer/jcs-sha256.json
through all four paths.
Companions
docs/integration-guide.md— consuming a peer-issued TCT: the RFC-AITP-0005 §7.2 verification order, error codes, PoP, and links to maintained verifier code.docs/ecosystem.md— which sibling repository owns SDK usage, the independent verifier, deployment, and tooling.docs/operational-guidance.md— non-normative patterns for renewal, rotation, cache TTLs, and rate limiting.docs/threat-model.md— distilled threat surface.docs/GLOSSARY.md— terminology quick reference.
Conformance
What a conformant v0.3 implementation MUST do is RFC-AITP-0001 §10. In short, verify against:
schemas/json/— canonical JSON Schemas.schemas/conformance/— pass/fail behavioral fixtures. The core surface isenv-*,man-*,mh-*,id-*,tct-*,vch-*,del-*andrev-*. Thedel-mh-*andbundle-*fixtures belong to the opt-in RFCs: a core implementation rejectsdel-mh-*tokens withDELEGATION_MULTIHOP_NOT_SUPPORTEDand reports thebundle-*operations asSKIP, notFAIL(RFC-AITP-0001 §10 item 9).schemas/conformance/known-answer/— the mandatory known-answer tests: the JCS signing-input vectors (kat-manifest-001,kat-revocation-001), the PoP vectorkat-manifest-pop-001, and thesigned-examples/set — compact-JWS TCT, grant voucher and delegation, plus the JCS Manifest and revocation snapshot, verified as committed (RFC-AITP-0001 §10 item 8). The multi-hop and session-bundle vectors are required only if you opt into RFC-AITP-0011 / RFC-AITP-0010.
How an implementation is wired to the suite is documented by the implementations themselves: see aitp-rs conformance and the aitp-verifier-py conformance coverage. Whatever the runner, its output is a conformance report in one format, and badges are computed from it per claim: see Conformance reports and badges.
make validate checks this repository itself (schemas, fixtures,
known-answer values and documentation coherence); it runs locally and in
CI. Adding a fixture? Read the contract in
schemas/conformance/README.md.
The documentation-coherence stages are described in the header of
scripts/check-doc-coherence.sh.
Implementations wanted
AITP needs an implementation written by someone other than its author.
Why. AITP 1.0 needs at least two implementations that pass the core
conformance tier and interoperate end-to-end, and at least one of them
must be by an author with no commit access to aitp-rs
(VERSIONING.md § v1.0 criteria,
criterion 3). That criterion is unmet. Every implementation listed in
docs/ecosystem.md (Rust, Python, TypeScript and Go) is
by the same author. They share no code, but two programs by one person
can share one misreading of the RFCs. Only an implementation by a
different author can find the places where the text is ambiguous.
What passing means. Your runner emits a conformance report, and the
AITP v0.3 claim passes when every required_for_core fixture has the
outcome pass. A skipped core fixture blocks the claim. The report
format, the claim rules and the badge are defined in
Conformance reports and badges. A report is
trusted because anyone can reproduce it from the spec commit, the fixture
digest and a public CI run.
Languages with no implementation yet. Java, C#, Swift, and any other language not listed above. A Rust, Python, TypeScript or Go implementation by a different author counts just as much: the criterion is about who wrote it, not which language it is in.
A good first implementation
You don't need a full agent stack. Start with a verification core: the part that takes an artifact and returns success or a specific error code.
- Read the core RFCs in the order above, and reproduce the known-answer vectors first. They pin the exact bytes every signature covers, so they catch canonicalization and encoding mistakes before any fixture does.
- Implement the core operations. The core fixtures drive the
operations marked "Required for core" in
schemas/conformance/ADAPTER.md§ Fixture operations. Most areverify_*operations. The rest are the few proof-of-possession and handshake steps the core fixtures exercise. - Write an adapter.
ADAPTER.md(adapter-protocol: 1) describes the NDJSON protocol between a conformance runner and your implementation: the messages, the operations, SKIP semantics and how claims are gated. You do not need to read another implementation's source to write one. - Run the core tier. The
fixture summary gives
the count of each tier. Only the
coretier gates theAITP v0.3claim; run it with no draft features enabled. Theextensionanddrafttiers are optional. - Publish the report from a public CI run, and open an issue or a
Discussion with the link so the implementation can be listed in
docs/ecosystem.md.
Questions about the text are welcome on Discussions while you build. A place where two careful readers disagree is exactly what this effort is meant to find.