Examples.

Production-ready patterns you can fork, adapt, and ship with scoped keys, idempotency, streaming, evidence linkage, and observability built in.

EXAMPLE_01

Decision Workflows

Multi-stage gates, approvals, evidence attachment, and OKR linkage for budget reviews, compliance holds, and vendor onboarding.

CREATE
GATE
APPROVE
EXECUTE
EXAMPLE_02

Memory Retrieval

Semantic + graph-based search with relevance scoring and versioned context.

/v1/memory/query
EXAMPLE_03

Context Layering

Role-based views: executive summary > drill-down > raw signals with preserved lineage.

Executive
Detailed
Raw
EXAMPLE_04

Governed Agents

Scoped tool execution, full traces, replay/debug, rollback, and human-in-the-loop gates for automated remediation.

TOOL_CALL
POLICY_CHECK
HUMAN_APPROVAL
EXECUTE
Illustrative Example

Decision Creation
with Gate.

An enterprise decision with policy enforcement, scoped credentials, idempotent key, evidence linkage, and a full audit trail in a single API call.

// method POST /v1/decisions
// policy finance-approval-v2
// gate_status review: await_cfo_approval
// idempotency budget-realloc-2026-07-15
01
02
03
04
05
06
07
08
09
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import { Zirvox } from "@zirvox/sdk";

const z = new Zirvox({ apiKey: process.env.ZIRVOX_API_KEY });

const decision = await z.decisions.create({
  title: "Q3 Budget Reallocation",
  policy: "finance-approval-v2",
  context: "Reallocate $1.2M from marketing to engineering",
  inputs: ["finance:budget_current", "hr:headcount_forecast"],
  idempotencyKey: "budget-realloc-2026-07-15",
});

console.log(decision.id, decision.gate);
// dec_fin_789xyz | review:await_cfo_approval
from zirvox import Zirvox
import os

z = Zirvox(api_key=os.getenv("ZIRVOX_API_KEY"))

decision = z.decisions.create(
  title="Q3 Budget Reallocation",
  policy="finance-approval-v2",
  context="Reallocate $1.2M from marketing to engineering",
  inputs=["finance:budget_current", "hr:headcount_forecast"],
  idempotency_key="budget-realloc-2026-07-15",
)

print(decision.id, decision.gate)
# dec_fin_789xyz | review:await_cfo_approval
POST https://api.zirvox.com/v1/decisions
Authorization: Bearer $ZIRVOX_API_KEY
Content-Type: application/json
Idempotency-Key: budget-realloc-2026-07-15

{
  "title": "Q3 Budget Reallocation",
  "policy": "finance-approval-v2",
  "context": "Reallocate $1.2M from marketing to engineering",
  "inputs": ["finance:budget_current", "hr:headcount_forecast"]
}

// 200 OK
{
  "id": "dec_fin_789xyz",
  "status": "created",
  "gate": "review",
  "nextAction": "await_cfo_approval",
  "auditTrail": "zirvox:trace/abc123"
}

Available Now.

A growing library of production examples and reference architectures.

GitHub Repos
Forkable setups with complete integrations
Docker Starters
Docker-compose setups for local testing
IaC Modules
Terraform / Pulumi modules for production
Policy Templates
Compliance, finance, and security templates
Explore Examples