SDK packages
The Ratify Protocol ships reference SDKs in five languages. All five are byte-for-byte interoperable — they produce identical canonical JSON, identical hybrid signatures, and pass the same 79-fixture conformance suite.
Current published versions
Section titled “Current published versions”| Language | Registry | Package | Version | Install |
|---|---|---|---|---|
| Go | pkg.go.dev | github.com/identities-ai/ratify-protocol | v1.0.0-alpha.16 | go get github.com/identities-ai/[email protected] |
| TypeScript | npm | @identities-ai/ratify-protocol | 1.0.0-alpha.16 | npm install @identities-ai/[email protected] |
| Python | PyPI | ratify-protocol | 1.0.0a16 | pip install ratify-protocol==1.0.0a16 |
| Rust | crates.io | ratify-protocol | 1.0.0-alpha.16 | cargo add [email protected] |
| C/C++ | GitHub Releases | libratify_c.a / libratify_c.so | 1.0.0-alpha.16 | Download pre-built archive or build from source — see C/C++ SDK |
All five versions are released atomically — every tagged release of the protocol contains the same version of every SDK. A consumer using v1.0.0-alpha.16 in Go and v1.0.0-alpha.16 in Python is guaranteed to produce and verify byte-identical bundles.
What’s new in v1.0.0-alpha.16
Section titled “What’s new in v1.0.0-alpha.16”The resource-bound authority release. It is additive: existing signed objects remain byte-stable, and the conformance suite grows from 63 to 79 fixtures for the new constraint and bounds behavior.
Resource-bound authority (resource_path constraint, SPEC §5.7.2, §5.7.3). A
delegation can now name where a scope applies, not just what it permits. A
resource_path constraint binds authority to an opaque resource_id (compared by exact
byte equality, never dereferenced or normalized) and an optional path_prefix under
segment-boundary matching. Chain evaluation stays conjunctive, so effective authority can
narrow but never widen.
Resource-identifier profiles (SPEC §5.7.4). The shared recipes that make an opaque
resource_id interoperable, with a Git profile v1 and known-answer plus negative vectors.
Profiles are versioned outside the core spec and invisible to parties that do not adopt
them; byte-equality remains the only comparison.
Extension-constraint parameters (SPEC §5.7.1, §17.7). Parameterized extension constraints are now representable in signed certificates under a restricted, cross-language-deterministic value model. Type-only extension constraints serialize exactly as before, so existing signed certs stay byte-stable.
Input bounds (SPEC §5.1). MAX_PROOF_BUNDLE_BYTES (128 KiB, applied to the received
wire representation and enforced before parsing), MAX_JSON_NESTING_DEPTH, and
per-certificate scope and constraint count and length limits. Violations route to the
existing invalid status.
Deeper chains. MAX_DELEGATION_CHAIN_DEPTH rises from 3 to 8 for multi-hop agent
topologies. The ceiling is a wire-determinism and denial-of-service bound, not a
cryptographic limit; the new input bounds cap the work that depth alone does not.
Cross-SDK hashing correctness. bundle_hash in the Python and TypeScript SDKs now
canonicalizes delegation constraints by kind, so a resource_path-bound bundle produces
the same digest across every SDK. A constrained cross-SDK vector guards against regression.
What was new in v1.0.0-alpha.15
Section titled “What was new in v1.0.0-alpha.15”The integration-readiness release — no wire-format changes; all 63 fixtures are byte-identical to alpha.13.
Public wire codecs (TypeScript, Python). encodeProofBundle/decodeProofBundle
and friends for certs, bundles, and session tokens — strict decoding (duplicate keys,
out-of-domain integers, invalid UTF-8, and unknown fields are rejected), with
cross-SDK round-trip parity tests. No more hand-written transport glue.
Single-use challenges (SPEC §10, normative). A ChallengeStore in every SDK makes
verifier-issued challenges single-use: validated before signature work, atomically
consumed after the challenge signature verifies. A captured bundle no longer replays
inside the freshness window at an issuing verifier.
Streamed verification with options (SPEC §5.13). The session-token fast path now enforces a required scope, single-use challenges, and session/stream bindings through a dedicated options object in all five SDKs.
Operation and session context (SPEC §6.4.9) + Middleware Custody Profile (SPEC §15.2.1). Canonical, domain-separated constructions that bind a presentation to the verifier, workspace, agent, session, invocation, and the specific operation — and a named conformance profile for platforms whose middleware signs on behalf of hosted agents.
Vocabulary parity + honest performance docs. vocabulary()/scopeWildcards() in
every SDK, and a per-SDK benchmark matrix and wire-size table replace one-size-fits-all
latency claims.
What was new in v1.0.0-alpha.14
Section titled “What was new in v1.0.0-alpha.14”A metadata and tooling release — no wire-format changes; all 63 fixtures are byte-identical to alpha.13. The canonical project description (“delegated-authority proofs for human-agent and agent-agent interactions”) now ships in every registry’s metadata and README, the npm install pin is corrected (it had lagged at alpha.10 on the npm page), and both Rust crates are clippy-clean with lint gating in CI.
What was new in v1.0.0-alpha.13
Section titled “What was new in v1.0.0-alpha.13”Registry read binding (SPEC §13.1). The optional lookup contract behind
registry-mode key discovery: GET /v1/registry/principals/{human_id} returns the
principal’s current root key, the full key-rotation chain, and the optional anchor —
so any registry (the managed Verify service or a third party) is interchangeable.
TLS-mandatory, fail-closed resolver semantics, and explicit first-trust framing:
rotation proves continuity after first trust; it never creates it.
Reference resolver. cmd/ratify-verifier gains --registry <https-url> (registry
trust: operator + TLS) and --registry-pins + --registry-require-pinned
(pin-plus-registry: only first-trusted principals and their rotation successors).
What was new in v1.0.0-alpha.12
Section titled “What was new in v1.0.0-alpha.12”No-expiry sentinel. A DelegationCert whose expires_at equals
NO_EXPIRY_SENTINEL = 4070908799 (2099-12-31 23:59:59 UTC) means “no expiry (until
revoked)”. Display and policy code must branch on the sentinel; every SDK ships a helper
(IsNoExpiry() in Go, isNoExpiry() in TypeScript, is_no_expiry() in Python and Rust,
ratify_expires_at_is_no_expiry() in C). Verification is unchanged; revocation is the sole
termination mechanism for such certs.
presence:represent scope (sensitive). The canonical vocabulary grows to 54 scopes:
an agent may attend and interact as a direct representative of the principal. No
presence:* wildcard; does not imply identity:prove. See Scopes.
Verifier scope-vocabulary validation. A cert granting a scope that is not canonical,
not a wildcard, and not a custom: extension is now rejected with the new identity status
invalid_scope, before any effective-scope arithmetic.
Conformance suite grows to 63 canonical fixtures — four new fixtures pin the additions above; all pre-existing fixtures are byte-identical to the previous release.
What was new in v1.0.0-alpha.10
Section titled “What was new in v1.0.0-alpha.10”C/C++ SDK — full conformance-suite parity. All canonical fixture kinds now pass through the C
ABI: verify, scope, revocation, revocation_push, key_rotation, session_token,
transaction_receipt, and witness_entry. 13 new exported functions added to the C API
(ratify_*_sign_bytes_hex, ratify_verify_streamed_turn,
ratify_transaction_receipt_verify_full). Pre-built libraries for common targets now
published as GitHub Release assets — no Rust toolchain required to use the C SDK.
What was new in v1.0.0-alpha.9
Section titled “What was new in v1.0.0-alpha.9”SDK README overhaul — consistent structure and cross-language framing across all five
SDKs. npm Trusted Publisher (OIDC) configured; @identities-ai/ratify-protocol now
available directly from npm.
What was new in v1.0.0-alpha.8
Section titled “What was new in v1.0.0-alpha.8”C/C++ SDK — libratify_c.a (static) and libratify_c.so (shared) with a
cbindgen-generated ratify.h header (includes C++ extern "C" guards). Supports embedded
RTOS targets (FreeRTOS, Zephyr) via custom entropy.
Provider hooks (SPEC §17) — the verifier’s deterministic core is bracketed by pluggable hooks:
RevocationProvider/PolicyProvider/AuditProvider(§17.1–§17.3)VerificationReceipt(§17.5) — verifier-signed, hash-chained audit attestationPolicyVerdict(§17.6) — HMAC-bound cached policy decisionConstraintEvaluatorregistry (§17.7) — pluggable extension constraint evaluatorsAnchorResolver(§17.8) — identity-bound receipt anchoringIsRevokedclosure deprecated (§17.1RevocationProvideris the replacement; removal scheduled for v1.0.0-beta.1)
See Provider architecture for the full picture.
Verifying you’ve installed the real thing
Section titled “Verifying you’ve installed the real thing”Each registry exposes the source of every published version. To prove the package you installed matches the repo:
# Python — PyPI lets you download the wheel directlypip download ratify-protocol==1.0.0a16 --no-deps -d /tmp# Compare the wheel's sha256 against the GitHub Release's sha256
# Rust — crates.io publishes via the same git tagcargo install --version 1.0.0-alpha.16 --git https://github.com/identities-ai/ratify-protocol# Then run cargo test in the install dir → all 79 fixtures pass
# Go — the Go module proxy serves directly from the GitHub tag# pkg.go.dev shows the source view linked back to the GitHub repo
# C/C++ — build from source or download pre-built libraries from GitHub Releasesgit clone https://github.com/identities-ai/ratify-protocolcd ratify-protocol/sdks/ccargo build --release# → target/release/libratify_c.a + libratify_c.so + include/ratify.hThe conformance fixtures are the practical interop check: any SDK passing all 79 produces the same canonical bytes as every other SDK at that version.
Publishing process
Section titled “Publishing process”All five SDKs are published from a single CI pipeline triggered by a v* tag:
git tag v1.0.0-alpha.16 git push origin v1.0.0-alpha.16 │ ▼ ┌─────────────────────────────────────────────┐ │ .github/workflows/release.yml fires │ │ │ │ 1. gate-tests: │ │ - Go tests + race detector │ │ - Test vectors regenerate byte-ident. │ │ - Release-sync (versions aligned) │ │ - TS conformance (79 fixtures) │ │ - Python conformance (79 fixtures) │ │ - Rust conformance (79 fixtures) │ │ - C conformance (79 fixtures) │ │ - Tag ↔ SDK version coherence │ │ │ │ 2. If all pass: │ │ - publish-pypi (Trusted Publisher OIDC) │ │ - publish-crates (token) │ │ - publish-npm (token, when enabled) │ │ - publish-go (pkg.go.dev auto-warm) │ │ - github-release (notes + testvectors │ │ + pre-built C libraries) │ └─────────────────────────────────────────────┘Any conformance failure blocks the entire release. There is no “publish Python but skip the broken Rust” path — versions stay aligned by design.
See the protocol repo’s docs/RELEASES.md for the full release process and recovery procedures.
Pre-release versions
Section titled “Pre-release versions”During the alpha series, fixture bytes may change between versions. Each alpha release
documents the diff in the GitHub Release notes. Consumers pinning to alpha.6 and alpha.7
should expect a small migration.
After 1.0.0 stable ships, fixture bytes are frozen for the entire v1 lifetime. Minor and
patch releases add new optional fields and new scopes without changing existing byte
representations.
Where to next
Section titled “Where to next”- Per-language SDK quickstarts: Go · TypeScript · Python · Rust · C/C++
- Versioning — full semver scheme + the alpha → stable ladder
- Conformance suite — what the 79 fixtures check and how to add a new SDK