The open-source foundation for portable execution receipts.
sar-sdk is the public TypeScript implementation of SAR, available on GitHub and npm. It has been validated against the published fixtures and shared in the SAR proposal discussion. xMandate Control Plane builds policy, issuance, and verification services above it.
sar-sdk
An independent TypeScript SAR implementation, available on GitHub and npm. Sign, verify, and integrate cryptographic execution receipts in any runtime.
- Published on npm — install and use today
- Portable cryptographic receipts
- Deterministic receipt identity (SHA-256)
- Validated against published SAR fixtures
- Offline verification — no callback required
- Node.js 20+, Cloudflare Workers, Deno, Vercel Edge
The Receipt Primitive
What is SAR?
A Settlement Attestation Receipt records what happened, under what policy context, with what verdict, and signed by whom.
SAR is to execution what a signed receipt is to a transaction — portable, tamper-evident, and independently verifiable.
The 6 core fields are JCS-canonicalized (RFC 8785), hashed to a deterministic receipt_id via SHA-256, and signed with Ed25519. Extension fields are excluded from the signed core.
Developer Flow
From constraints to verified proof.
Define what is allowed, sign a receipt when it happens, verify it independently downstream.
Implementation Surface
Guard as a live trust surface.
xMandate Guard is one concrete trust surface that enforces execution policy and emits receipts. It demonstrates how policy rules become actionable governance signals through the receipt primitive.
Any trust surface — browser, API gateway, agent runtime, CI pipeline — can emit receipts through the same primitive.
From Primitive to Platform
Start with the primitive. Scale with the control plane.
The OSS foundation handles receipt signing and verification. Trust surfaces enforce policy at execution boundaries. The control plane centralizes governance above both.
Resources
Technical entry points.
SAR SDK
TypeScript SDK for signing and verifying execution receipts.
github.com
npm Package
Published on npm. Install with npm install sar-sdk.
npmjs.com
Guard Documentation
Deployment, usage, BOM and ADR enforcement.
docs.xmandate.ai
GitHub Organization
All xMandate open-source projects.
github.com/xmandate-ai
Start with receipts. Build toward governed execution.
sar-sdk is open-source, published on npm, edge-compatible, and available today.