Runtime Governance Guide
Reference guide for governed runtime calls, governance gates, compliance lifecycle, and runtime-platform interoperability.
Unified SDK (`createArelis`): recommended for most use cases. Provides `governedInvoke()` and `agents.run()` with built-in PII scanning, policy enforcement, risk scoring, and audit logging.
Platform API Client: use when you need `/api/v1/*` wrappers for existing platform resources (events, policies, risk, proofs, replay, exports).
Runtime Governance SDK: use when your service executes governed model/tool calls in-process and needs runtime policy gates, evaluation hooks, and compliance orchestration.
Code examples
Expand any example to see the full code in Python, TypeScript, or REST.
Use local runtime evaluation when invocation latency is critical and policy bundles are already distributed to the service.
Use platform endpoint evaluation when you need centrally managed policy versioning, cross-service consistency, and managed policy audit history.
Persist runtime `runId` as the primary join key across runtime outputs, synced events, proof artifacts, and replay jobs.
Store proof artifact IDs and replay IDs in run metadata so support and compliance teams can traverse both runtime and platform timelines deterministically.