Core Features
Compliance Receipts
Generate cryptographically signed receipts for every AI action to prove compliance during audits.
Overview
Compliance receipts provide immutable, tamper-evident proof that governance policies were enforced for each AI action. Each receipt is cryptographically signed and can be verified independently.
Tamper-Evident
SHA-256 signatures prevent modification
Complete Audit Trail
Full context of every decision
Export Ready
JSON, PDF, or CSV formats
Generating Receipts
Receipts are a cloud artefact: Tork writes one when Tork itself makes the governance decision. Use @torknetwork/sdk (npm install @torknetwork/sdk), whose entry class is TorkClient — a different package from the on-device tork-governance family, which exports Tork.
There is no Python cloud SDK. From Python, call the REST API with a Bearer token:
Receipt Structure
A single receipt, as returned by GET /api/v1/receipts/{id}. Note what a receipt records and what it does not: metadata about the decision — never the prompt or completion text, and never detected PII values.
Verifying Receipts
A proof export carries everything a third party needs to check the hash chain and the anchor offline, without trusting Tork at the moment of verification. The exact algorithm is published at receipt verification.
Bulk Export
Export receipts for an audit period as JSON or CSV:
Receipts and the On-Device SDK
Supply an API key and the SDK additionally reports a metadata-only attestation of each decision — the action taken, PII type labels and counts, a risk classification, policy labels and a salted fingerprint. It never sends input text, output text or PII values. The decision itself is still made on-device and is never delayed or changed by reporting. Those attestations appear in your dashboard and are included in the daily on-chain anchor — each one recorded as a client attestation (capture_mode=edge, attested_by=client), a claim Tork recorded but did not execute and cannot independently verify. Requires tork-governance 0.24.0+ (PyPI) or 0.11.0+ (npm).
A decision reported by an on-device SDK is recorded as a client attestation (capture_mode=edge, attested_by=client): a claim Tork recorded but did not execute and cannot independently verify. A decision made by @torknetwork/sdk is recorded as capture_mode=cloud, attested_by=tork — Tork made that call itself. Both are equally immutable once anchored; they differ in what is immutable. A client attestation freezes your claim. A server-governed receipt freezes Tork's own decision.
Local governance is free and unlimited — decisions made on your own machine are never metered. Evidence is what is metered: attestations, receipts and anchoring.
Compliance Tip: Receipts are retained for 7 years by default. Configure retention in Admin Settings.