examples/01-hello-world in the monorepo: constructing the smallest valid BusinessTransaction and understanding each field before executing it.
1. Start the Runtime
From the root of theparmana monorepo:
packages/api/src/server.ts). Confirm it’s up:
2. Build a Business Transaction
ABusinessTransaction is the root object Parmana evaluates. At minimum it needs an authority, an authorization, an intent, a policy reference, and any runtime signals your policy will evaluate.
This is the shape used by the runtime example directly (
examples/01-hello-world). The REST API and SDK-facing BusinessTransaction model additionally nest metadata.businessTransactionId, correlationId, tenantId, sourceSystem, and submittedBy — see Concepts → Business Transaction for the full model.3. Execute it
ExecutionTrustRecord containing the transaction, the execution, and (once available) verifications and receipts.
4. Verify and replay
verify confirms the recorded execution matches the trust record hash. replay deterministically re-evaluates the same policy against the same recorded signals and confirms the outcome is reproducible.
Next steps
Concepts
Understand each artifact in the trust chain.
REST API
Full endpoint reference.
Examples
Ten runnable examples, from hello-world to a full vendor payment workflow.
Guides
Task-oriented walkthroughs.