Skip to main content
This page currently tracks documentation changes we can verify directly, since we don’t yet have a confirmed, complete SDK release history to publish. If you need details on a specific past SDK release, ask in the developer Telegram — we’ll backfill verified entries here as we confirm them.

Documentation

2026-11-29

  • Confirmed against the testnet-v1.0.14 release (SDK 5.44.0) and the contract versions testnet serves from /api/contracts/current (tee:admin 3.4.5). Documented withContractVersion / forgetContractVersion in the SDK & API Reference, and the ContractVersionNotCurrent refusal and the reworded tee: contract 404 in Common Errors.
  • RpcError.reason / InvokeError.reason now work on testnet: the testnet-v1.0.14 node sends a stable reason code. See the SDK section below.

2026-11-27

  • Confirmed against the testnet-v1.0.13 release (SDK 5.43.0), and against the contract versions testnet serves from /api/contracts/current (tee:organisation 2.5.0, tee:org-data 4.3.0). Documented services (createService, listServices, caller_type: "service") and tenant.contracts.versions() in the SDK & API Reference, and kv-store scan / scan-keys and outbox status in Host API. Updated caller_type in Read your organization’s activity log.

2026-10-23

  • Confirmed against the testnet-v1.0.12 release (current SDK 5.32.0) and the contract versions testnet actually has registered — read directly from Terminal-3/contracts at the pinned rev (3305a95), not from testnet.json (which only pins the version one specific webhook targets, not what’s registered): tee:user 5.0.8, tee:authorisations 4.0.8, tee:org-data 4.1.4, tee:organisation 2.1.0, tee:session 3.10.0.
  • Marked the legacy grant / agent-auth names removed, in both the SDK and testnet’s registered contracts, in the SDK & API Reference and Member Delegation.
  • Updated Host API (sign-jws, outbox acks and header secret markers, tenant-tier contracts-call), Common Errors (404 / 401 / 503 status codes, outbound-HTTP limits), Read your organization’s activity log (origin, custom labels) and Outbound HTTP authenticated by user.

2026-09-21

  • Confirmed against the testnet-v1.0.11 release (current SDK 5.19.0): updated Member Delegation for the breaking grant-shape change below — the “What a grant can say” table and both code samples now show one function per grant row.

2026-09-18

  • Confirmed against the testnet-v1.0.10 release (current SDK 5.16.0): documented the full agent lifecycle — createAgent (now with an initialCredits option), fundAgent, deleteAgent, updateAgent, deregisterAgent — in the SDK section below, Register an Organization-owned Agent, and Register a Public Agent.
  • Added a copy-paste AI-coding-assistant prompt pair (Claude-flavored and OpenAI-flavored) for self-service agent credit funding — see Using AI Coding Assistants.
  • Added resolveTrustAnchor() and the new required rtmr1_allowlist field to Verify the trust anchor — RTMR1, not RTMR3, is now the meaningful rootfs-integrity measurement.
  • Documented the organisation usage-report / call-count methods (getOrgUsageReport, getOrgWorkflowExecutionsForWindow, getOrgActivityCountForWindow), getDelegation’s new grantee_kinds, countAgentsByContract/countAllAgentsByContract, and setDefaultQuotas/updateQuotas in the SDK & API Reference.
  • Marked the ap2 (ap2/mandate) host interface removed in Host API and the reference page — the interface and its linker world were deleted from the runtime in this release.
  • Updated Common Errors for the new JSON error envelope on all 4xx/5xx responses (not just contract-level bad_requests), the rewritten egress-denied message, and the agent-credit-transfer error table.

2026-09-08

  • Renamed “Agent Auth” to Member Delegation throughout — the underlying vocabulary shift (agent_auth→member_delegation, script→contract) is covered in the SDK section below — and moved the page from overview/ to get-started/ to match its nav group and URL slug.
  • Documented the audit-log CSV export methods (see the SDK section below) and added the Read your organization’s activity log and Running the code samples in this guide tip pages, plus Verify the trust anchor and a stateless invoke() guide on the Member Delegation page.
  • SDK & API Reference: added setEnvironment’s sandbox value, split tenant.contracts.execute() from client.executeAndDecode() (they’re on different objects), filled in tenant.maps’ delete/entrySet/entryGet/getStatus methods, and corrected the outbox/ap2 WIT host interfaces from “coming soon” to “Available” (both are live, CI-tested capabilities).
  • Fixed several stale references caught while re-verifying every page against the confirmed testnet-v1.0.9 release: a duplicated code sample in Quickstart, outdated host-interface version numbers in Write your first TEE contract, and a broken link left over from the Member Delegation page move.

2026-07-06

  • Added Quickstart — a single page to get an authenticated call working before touching contract code.
  • Filled in the previously-empty ADK Tour and Member Delegation pages.
  • Added this Changelog and the SDK & API Reference page.
  • Fixed a duplicate “Step 4” between the Invoke and Test walkthrough pages.
  • Expanded Common Errors with generic-HTTP-500 triage guidance and a table of common integration gotchas (tenant DID double-encoding, baseUrl handling).
  • Added a warning about contract version-shadowing on re-registration to Register your TEE contract.

SDK

Stable reason codes, tee:admin current-version gate: shipped with testnet-v1.0.14 (2026-11-27)

@terminal3/t3n-sdk moved from 5.43.0 to 5.44.0 in this release (@terminal3/t3n-client 0.8.0).
  • Errors carry a stable reason. A failed call now carries a short code beside the existing code: reason in a REST error body, error.data.reason over JSON-RPC. The SDK reads it into RpcError.reason and InvokeError.reason (5.42.0), which were undefined against the testnet-v1.0.13 node. Calls to your own z: contracts get a specific code such as contract_not_registered, map_access_denied or fuel_exhausted, and every 500 carries internal_fault. Branch on reason rather than on the message text: several messages on the z: contract path are now fixed sentences, and their old wording is gone. A contract can attach its own code by starting its error with T3N_ERROR[<code>]: , reported as reason: "contract:<code>".
  • A tee: contract version that is not registered still answers 404 not_found, now with reason: contract_not_registered and the text Contract <name>@<version> is not registered. (capitalised, with a full stop). Code matching the old lower-case text exactly needs updating.
  • tee:admin runs only at its current version when you call it from a session or invoke(). A call naming an older registered version is refused with 403 forbidden (-32003 over JSON-RPC) and the text ContractVersionNotCurrent (contract=…, requested=…, current=…), which the SDK throws as ContractVersionNotCurrentError (with contract, requested and current). withContractVersion(nodeUrl, contractId, call) runs call at the cached current version and retries once at a newer version on that refusal; forgetContractVersion(nodeUrl, contractId) drops one cached version. The SDK’s org usage-report and call-count reads already use it, so a long-lived client recovers after a new tee:admin registration.

Services, contract version history, kv-store changes: shipped with testnet-v1.0.13 (2026-11-26)

@terminal3/t3n-sdk moved from 5.32.0 to 5.43.0 in this release. npm may already have a newer version than the one testnet was released with.
  • Services. createService(orgDid, name, { initialCredits? }) (5.43.0) creates a backend identity owned by the organisation and returns { serviceDid, apiKey, keyId }. A service holds an API key and grants like an org-owned agent, but it has its own DID kind: listAgents leaves it out, OrgDataClient.listServices lists it, it never gets a public card, and its activity-log rows carry caller_type: "service". DidKind and ActivityCallerType gain "service". Needs tee:organisation ≥ 2.5.0 and, for listServices, tee:org-data ≥ 4.3.0. Testnet serves both.
  • tenant.contracts.versions(tail) (5.34.0) lists every registered version of one of your contracts, newest first, with its status, WASM digest, and who registered it and when.
  • kv-store.scan now returns a value kept in the node’s blob store as get returns it, in every map. Before this release scan could return an internal blob reference in place of such a value. The rows of one scan may total at most the node’s wasm.kv_scan_max_bytes (256 MiB by default); past that the call fails, so lower limit. kv-store.scan-keys (host:interfaces@2.5.0) returns only the keys of the same range. A contract built against @2.4.0 still links: the node links any @2.x import against its current package.
  • Outbox status answers on every node, from its committed state, not only on the leader.
  • invoke() takes an optional subjectToken, sent as X-T3N-Subject-Token (5.33.0).

Legacy grant / agent-auth names removed from the SDK (breaking) — shipped with testnet-v1.0.12 (2026-10-23)

@terminal3/t3n-sdk 5.22.0 (trinity#2196) removed the legacy names that were listed as deprecated below; only the delegation vocabulary remains. The SDK’s semver treats a breaking change as a minor bump, so treat the upgrade as breaking. The old-to-new tables are in the section further down. Confirmed live on testnet. The matching contract-side removal ships in tee:user 5.0.0, tee:authorisations 4.0.0 and tee:org-data 4.0.0. Testnet’s pinned contracts rev (3305a95 — the same rev testnet-v1.0.12 registers) is at tee:user 5.0.8, tee:authorisations 4.0.8 and tee:org-data 4.1.4, past every one of those gates. (testnet.json’s tee:user 3.8.2 entry is only the Veriff sign-in webhook’s own target version — a provider-config detail, not what’s registered on the node.) The legacy function names now return FunctionNotFound against testnet, and checkDelegation() only ever returns the collapsed member_delegation / org_delegation grant kinds there.

Other SDK additions — shipped with testnet-v1.0.12 (2026-10-23)

  • getProvenEmail() (5.21.0) returns the address an OIDC login proved, or null. EmailOtpCredentials.locale (5.29.0): ja selects the Japanese login email, anything else English. Optional origin on audit and activity entries (5.27.0).
  • The stateless client now lives in the @terminal3/t3n-client package (5.31.0); the SDK depends on it and re-exports everything under the same names, so existing imports are unchanged.

Node behaviour changes — node-side, live with the testnet-v1.0.12 node (testnet-v1.0.12, 2026-10-23)

  • An unregistered tee: contract version answers 404 not_found instead of 500 (trinity#2347). /api/invoke and /api/discover answer 401 instead of 400 when a credential is refused (#2364).
  • Contract HTTP calls are bounded (30 s, 10 MiB by default) and refuse hosts that resolve only to private, loopback or metadata addresses (#2364, #2360). A nested contracts-call has its outbound HTTP held to the original caller’s grant (#2352).
  • A write conflict forwarded to the leader is rejected and the call re-run, so contended writes can return 503 and a contract call may run more than once; make outbound requests idempotent (#2377, #2421).
  • Host API: sign-jws / jws-public-keys (#2360); outbox acks carry the upstream http-status and header values accept {{secret.<name>}} markers (#2348, #2367); contracts-call is linkable by tenant contracts behind a default-deny allowlist (#2287).
  • Activity log: a contract can label its entry with a top-level custom object in its response, and each contracts-call invoke writes its own row (#2340, #2432, #2442).

Delegation grants: one function per grant, unified scopes (breaking) — confirmed live on testnet (testnet-v1.0.11, 2026-09-18)

A member-delegation-update / OrgDataClient.setDelegation grant’s shape changed, and the node’s decoder rejects the old shape outright rather than accepting it silently:
  • functions: string[] → function: string. A grant now confers exactly one function. Authorising several functions on the same contract means several grant rows — the SDK’s new fanOutGrant(base, functions) helper builds that array for you from a shared base. The contract keeps at most one grant per (grantee, contract_id, function); a later write for the same triple replaces the earlier row.
  • scopes: string[] + read_scopes: string[] → one scopes: { path, access }[] list. access is a list of verbs ("read" | "write" | "delete") — only "read" is enforced today. Build a read-only list with the new readOnlyScopes(paths) helper. A grant written under the old shape may still echo its read_scopes value as legacy_read_scopes on a read; new writes never set it.
  • updateMemberDelegation’s read-merge-write key is now (grantee, contract_id, function), not (grantee, contract_id) — keying on the pair alone would let granting a second function on an already-granted contract silently drop the first function’s row.
  • The org delegation edge (OrgDataClient.setDelegation) moved to the same function + scopes shape; it still carries no version_req/allowed_hosts/window.
SDK version at this release: 5.19.0 (not the 5.17.0 some intermediate PR descriptions cite — two more minor bumps landed between that PR and the tagged release; always cite the tag’s own package.json). See Member Delegation for the updated grant examples.
client/mcp/t3n-mcp’s getDelegationInstructions still advises the retired shape as of testnet-v1.0.12 — a known gap on the MCP side, not fixed here. If you’re driving delegation through the MCP sidecar rather than the SDK directly, use the shape on this page, not what that tool currently prints.

Agent lifecycle: create with initial credits, fund, update, delete, deregister — confirmed live on testnet (testnet-v1.0.10, 2026-09-15)

The agent lifecycle is now complete end to end. All of the below dispatch through tee:organisation/contracts or tee:agent-registry/contracts and are gated by contract-version preflights that throw (not silently no-op) against an older node.
  • createAgent(orgDid, name, options?) mints an org-owned agent and, since 5.16.0, accepts options.initialCredits to pre-fund it in the same transaction, from the organisation’s own T3N balance. A freshly created agent otherwise starts with zero credit and its first metered call fails. Needs tee:organisation/contracts ≥ 0.7.0 for initialCredits; the call throws rather than creating an unfunded agent silently against an older contract.
  • fundAgent(agentDid, amount, options?) (new in 5.16.0) tops up an agent’s balance any time after creation — from the caller’s own balance by default, or from options.fromOrg’s balance (requires you to admin fromOrg, and the agent must actually be a member of it). Returns { seqNo }, the ledger transaction’s sequence number. See Common Errors for the full authorisation-refusal table — refusals are always identity-based first, balance-based second.
  • deleteAgent(orgDid, agentDid) (5.8.0) tears down an org-owned agent — sweeps every org-data row it holds and deletes its registry record in one transaction. Its API keys stop authenticating immediately: the delete removes the key’s principal (its DID-classification row), not each key individually. Needs tee:organisation/contracts ≥ 0.20.0.
  • updateAgent(orgDid, agentDid, { agentUri?, ownerDid? }) (5.8.0) is an admin-side edit of an agent’s registry record; at least one of agentUri / ownerDid is required. Needs tee:organisation/contracts ≥ 0.20.0.
  • deregisterAgent(agentDid?) (5.8.0) is how an agent removes its own registry footprint (registry record + any hosted cards). Omit agentDid to act on the caller’s own session. Needs tee:agent-registry/contracts ≥ 1.7.0.
CLI equivalents ship in the same t3n binary: t3n agent create --org <did> --name <name> [--initial-credits <n>], t3n agent fund --agent <did> --amount <n> [--note <text>] [--from-org <did>], t3n agent delete --org <did> <agent-did>, t3n agent update --org <did> <agent-did> [--uri <url>] [--owner <did>], t3n agent deregister [<agent-did>]. Known gap: no self-service way to fund an organisation’s own balance yet — see Common Errors (a fresh org’s --initial-credits failing is expected, not a bug).

Trust anchor: resolveTrustAnchor(), RTMR1, and SEV-SNP support — confirmed live on testnet (testnet-v1.0.10, 2026-09-15)

  • resolveTrustAnchor(env, opts?) is a new one-call convenience over fetchTrustedManifest — same verification, less boilerplate. Recommended default for constructing T3nClient’s trustAnchor.
  • TrustAnchor gained a required rtmr1_allowlist field — RTMR1, not RTMR3, is now the real integrity signal. Attestation is also now vendor-aware (TDX and AMD SEV-SNP), with new lower-level exports for the SEV-SNP side. See Verify the trust anchor for both.

Organisation usage & delegation — confirmed live on testnet (testnet-v1.0.10, 2026-09-15)

  • getOrgUsageReport(input), getOrgWorkflowExecutionsForWindow(orgDid, fromMs, toMs), and getOrgActivityCountForWindow(orgDid, fromMs, toMs) (via createUsageReportClientFromSession) replace an earlier, since-superseded set of call-count helpers shipped and renamed within this same release cycle (getOrgCallCount*, getOrgAgentCallCountForWindow — neither exists at testnet-v1.0.10; don’t reference them). getOrgWorkflowExecutionsForWindow counts protected-workflow executions (z:/y: client-contract calls, any outcome); getOrgActivityCountForWindow counts every call, any contract, any outcome. Both require org-admin and both throw (rather than silently truncating) when a window is wider than the node scans in one call.
  • getDelegation() replies now include grantee_kinds ("agent" | "human" | "org" per grantee). New countAgentsByContract(input) / countAllAgentsByContract(input) count delegated agents per contract for an org, single-page or drained to exhaustion. Needs org-data ≥ 2.11.0.
  • tenant.setDefaultQuotas(opts) / tenant.updateQuotas(opts) set an organisation’s default per-agent quotas and override them for a specific agent, respectively.

AP2 host interface removed — confirmed on testnet (testnet-v1.0.10, 2026-09-15)

The ap2 (ap2/mandate) WIT host interface — previously listed as “Available” on this site — was removed from the runtime entirely: the interface, its linker world, and the backing KV policy row are gone. A contract that still imports ap2/mandate will fail to instantiate. No replacement has shipped as of this release. See Host API.

Error responses: JSON envelope everywhere, clearer egress denials — confirmed live on testnet (testnet-v1.0.10, 2026-09-15)

Framework-level rejections (malformed query strings, undecodable path segments, oversized request bodies) that used to come back as raw text/plain are now re-encoded into the standard { error, code, request_id } JSON envelope, under the original HTTP status. Separately, the egress-denied error for a member_delegation scope mismatch now names both the rejected host(s) and the actual resolved allowlist, so a scheme/port mismatch is visible directly in the message instead of requiring a guess. See Common Errors.

Delegation vocabulary — the old names are removed (testnet-v1.0.12, SDK 5.22.0); deprecated through testnet-v1.0.11

Everything that used to be called a grant or agent auth on the request surface is now a delegation. The two edges are member_delegation (a member delegating their own authority) and org_delegation (an organisation granting authority over its contracts). Client methods Types Raw execute callers — if you build the wire payload yourself rather than going through a client method, the function names and the body both changed: camelCase keys (agentDid, scriptName, validFromSecs) are rejected outright rather than silently dropped, so a mistyped time-box can no longer be lost on the wire. Verdicts — checkDelegation() returns the node’s verdict as received. Grant kinds are member_delegation / org_delegation (was agent_auth / user_grant) and the deny codes are member_delegation_not_found / _expired / _not_yet_valid (was agent_auth_*).
Hackathon integrations have referenced @terminal3/t3n-sdk versions 3.5.2, 3.9.0, and 3.11.0 in the wild. We haven’t cross-checked these against an official release history yet, so we’re not listing per-version changes here until we can confirm them — a placeholder is worse than an honest gap.

Audit log CSV export — confirmed live on testnet (testnet-v1.0.9, 2026-08-27)

Three new T3nClient methods export your organisation’s activity audit log to CSV, built on the existing getActivityLog read:
  • client.startActivityLogExport(opts?) takes the same scope/filters as getActivityLog and starts a background export, returning an export_id. Only one export runs at a time per caller — starting a second while one is in flight is refused.
  • client.getActivityLogExportStatus(exportId) reports pending / ready / failed. Only your own export ids resolve — someone else’s reads as absent, not as a permissions error.
  • client.downloadActivityLogExport(exportId) fetches the finished CSV in one response. Stays fetchable until your next export replaces it.
  • client.exportActivityLog(opts?, poll?) is a convenience wrapper: starts the export, polls until ready (default 1s interval, 5 minute timeout, both configurable via poll), and returns the file. Use the three calls above directly when a UI needs to own its own polling — e.g. to survive a page reload.
The exported CSV’s columns are a fixed wire format: seq_no, timestamp_ms, caller_type, actor, on_behalf_of, org, contract, function, outcome. Notably absent: roles (doesn’t fit a fixed column) and the per-row hash from the JSON read.
getAuditEvents() and getActivityLog() themselves predate this export feature and were already real, public T3nClient methods — they just hadn’t been written up here yet. Both are now in the SDK & API Reference table alongside the export methods.