Aroha
Get started
All documentation

DocsReference

Backwards Compatibility Policy

This document defines the stability guarantees for the Aroha Protocol and SDK.

Stability Tiers

Every npm package published in release npm-v2026.10.19 (2026-10-19) is listed below, at the version published then. Packages are versioned independently. @aroha-sdk/orchestrator, @aroha-sdk/settlement, @aroha-sdk/commerce and @aroha-sdk/reputation are no longer developed in this repository; they stay on npm at the versions shown. @aroha-sdk/store-postgres and @aroha-sdk/store-redis (0.1.0) are in packages/ but not yet published.

Stable (semver-protected)

These packages follow Semantic Versioning. Breaking changes require a major version bump and should go through the deprecation process below.

PackageVersionNotes
@aroha-sdk/core2.0.0Identity, crypto, envelopes, transport
@aroha-sdk/credentials2.0.0Mandates, human credentials, RBAC
@aroha-sdk/registry2.0.0Registry clients and discovery
@aroha-sdk/run2.0.0/v1/run server and client
@aroha-sdk/cli1.3.0aroha CLI
create-aroha-agent1.3.0npx create-aroha-agent scaffolder
@aroha-sdk/mcp-bridge3.0.0See the 2.0.0 migration note below

What "stable" means:

  • Public TypeScript APIs (exported interfaces, function signatures) will not change in an incompatible way within a major version
  • The did:aroha: DID format is stable
  • The Aroha envelope schema (ArohaEnvelope, ArohaMessage) is stable
  • Mandate token format (ArohaSpendingMandateBody) is versioned — @aroha-sdk/credentials 2.0.0 verifies legacy v1 tokens, but the v2 tokens it issues cannot be verified by 1.x releases (see Mandate Token Stability)
  • arohaProtocolVersion: "1.0" will be accepted by all future 1.x servers

Beta (usable; API may still change in a minor release)

PackageVersionNotes
@aroha-sdk/orchestrator1.4.0Saga engine, agent selector, negotiator
@aroha-sdk/settlement2.0.0Settlement hooks are called by SagaEngine but spending limits are not enforced at the transport layer. Includes null, API-key, quota, escrow, Stripe and Postgres backends in one package; the escrow backend depends on contracts that are not deployed.
@aroha-sdk/audit1.4.1Tamper-evident audit log; schema not finalised
@aroha-sdk/policy1.3.1Declarative request policy
@aroha-sdk/mcp-guard0.2.1Policy wrapper for MCP servers
@aroha-sdk/hermes-bridge1.2.5Exposes Aroha agents as MCP stdio servers
@aroha-sdk/langchain-bridge2.0.0LangChain ↔ Aroha
@aroha-sdk/micro2.0.0Express-style one-file agent API

Experimental / labs (no stability guarantees)

These may change shape or be removed in any release. Do not use them for production financial flows.

PackageVersionNotes
@aroha-sdk/a2a-bridge2.0.0A2A 1.0 mapping, JSON-RPC client, mandate carriage (2.0.0 changes the wire shapes; see its README)
@aroha-sdk/bbs0.2.0BBS signatures — selective-disclosure primitives
@aroha-sdk/cache1.2.2Semantic request cache
@aroha-sdk/chaos1.2.2Fault injection for testing — development only
@aroha-sdk/commerce1.2.3B2B/B2C/C2B patterns — API may consolidate with core
@aroha-sdk/composio-bridge1.2.3Composio bridge
@aroha-sdk/delegation0.3.0Multi-hop delegation, mandate-chain verification
@aroha-sdk/evals1.2.3Evaluation harness (aroha-evals binary)
@aroha-sdk/gmail-mcp0.1.1Gmail MCP server
@aroha-sdk/mcp-server2.0.0MCP server: stdio and remote (Streamable HTTP + OAuth) connector
@aroha-sdk/openclaw-bridge2.0.0OpenClaw bridge
@aroha-sdk/preferences1.2.3Preference profile, filter, scoring
@aroha-sdk/reputation1.4.1Reputation engine — API not finalised
@aroha-sdk/resilience1.2.2Circuit breaker, bulkhead, retry
@aroha-sdk/telemetry1.2.3W3C Trace Context propagation
@aroha-sdk/trust0.1.1Caller-uniqueness / nullifier proofs — prototype
@aroha-sdk/trusted-mesh2.0.0Skips signature verification inside a trusted mesh — prototype
examples/books-mcp—Demo code, not an npm package (moved from packages/aroha-books-mcp)

There are no @aroha-sdk/escrow, @aroha-sdk/postgres or @aroha-sdk/stripe packages; those backends live inside @aroha-sdk/settlement.


Migration notes

@aroha-sdk/mcp-bridge 1.2.2 → 2.0.0

Released in commit b27e866 (fix(mcp-bridge)!, in the private development history; not in this repository's public history). This was a security fix and shipped without the deprecation period described below.

  • handlers is now required on WrapMcpOptions, keyed by MCP tool name. In 1.x, wrapMcp() never called the tool: it returned a placeholder { _note: "Handled by MCP tool: X" }. start() now throws if any tool has no handler.
  • resolvePublicKey is now required. Every inbound request is now checked by validateEnvelope() (signature, expiry, nonce replay). In 1.x no verification ran. Use registryPublicKeyResolver() for the common case.
  • New optional requireMandate. When true, each request must carry a valid spending mandate in body.credentialToken granted to the caller's DID; otherwise it is rejected with 403 before any tool runs.
  • The onMandate option and .register() method that 1.x documentation described never existed and are not part of 2.0.
  • Auto-generated keys are now real 32-byte Ed25519 seeds; in 1.x every signed reply from an auto-generated identity threw.

What is NOT guaranteed

Even within stable packages, the following are considered internal implementation details and may change:

  • Private class members (anything not in the exported TypeScript interfaces)
  • Internal error message strings (check err.code / err instanceof X, not err.message)
  • The shape of dist/ build artifacts beyond the declared exports map
  • Test utilities in */src/__tests__/ directories

Breaking Change Process

For stable packages, breaking changes follow this process:

  1. Deprecation: The old API is marked @deprecated with a JSDoc comment pointing to the replacement. A minor-version release ships with both old and new APIs.
  2. Notice period: At least 6 months between the deprecation release and the breaking major-version release.
  3. Migration guide: A MIGRATION.md is published alongside the major-version release with a step-by-step upgrade path.
  4. Changelog: Every breaking change is listed in CHANGELOG.md under a ### Breaking heading.

Protocol Versioning

The Aroha protocol itself is versioned separately from the SDK packages.

  • Protocol version is declared in the agent manifest: "arohaProtocolVersion": "1.0" (the message envelope carries no version field)
  • The SDK will accept envelopes from any 1.x protocol version
  • Protocol 2.0 would require a new major SDK version with a migration guide
  • The did:aroha: DID method identifier and key derivation scheme are protocol-level and considered permanently stable

Registry Stability

  • Agent DIDs registered with the Aroha HTTP Registry are intended to remain resolvable; there is no formal retention guarantee yet
  • The registry REST API (/v1/agents/*) is stable and versioned independently
  • There is no published uptime SLA for any hosted registry

Mandate Token Stability

Signed mandate tokens (ArohaSpendingMandateBody + Ed25519 signature) exist in two versions:

  • v1 (legacy) — issued by @aroha-sdk/credentials 1.x; signed over key-sorted JSON of the body.
  • v2 — issued by @aroha-sdk/credentials 2.0.0 and later; signed over the RFC 8785 (JCS) canonicalisation of { mandate, v: 2 }, and the token carries its signed ancestry (chain).

Compatibility across SDK versions:

  • v2 tokens cannot be verified by verifiers built on 1.x releases.
  • v1 tokens still verify in 2.x. A v1 token that is not a root carries no ancestry: it verifies with chainVerified: false, cannot be attenuated, and is rejected wherever a verified chain is required (verifyMandateChain, requireChain: true, the governed profile).
  • Within one token version, the same inputs produce the same signature (Ed25519 is deterministic).
  • A tampered token is rejected by verifyMandate() in every SDK version.

The v2 format is specified in Aroha 1.0 §6.5 (spending mandates) and §6.6 (task mandates).


Last updated: 2026-10-25

This page is the repository file COMPATIBILITY.md, copied November 16, 2026.