Skip to main content

Cordum Docs

Documentation for Cordum — the safety-first agent orchestration platform.

All API calls require X-API-Key and X-Tenant-ID headers (set CORDUM_API_KEY and CORDUM_TENANT_ID in your shell before running the scripts).


Quick Start

Fastest path to a working local stack:

# from the repo root
export CORDUM_API_KEY="$(openssl rand -hex 32)"
export CORDUM_TENANT_ID=default
./tools/scripts/quickstart.sh

Docker Compose loads .env automatically; the helper scripts read environment variables from your shell.


Getting Started

DocDescription
install.mdInstall options and prerequisites
getting_started.mdQuickstart walkthrough
quickstart.mdHello-world tutorial
DOCKER.mdDocker Compose setup — service inventory, networking, health checks, env vars, volumes, troubleshooting
helm.mdKubernetes Helm install guide
LOCAL_E2E.mdLocal end-to-end test walkthrough
cordumctl.mdCLI reference (cordumctl up, cordumctl pack, etc.)
faq.mdCommon questions and answers

User Guides

DocDescription
dashboard-guide.mdDashboard feature guide — all pages, workflows, keyboard shortcuts
cordumctl.mdCLI reference and command catalog
cli-reference.mdFull cordumctl command reference — flags, examples, env vars
demo-guardrails.mdGuardrails demo walkthrough with GIF recording
demo-mock-bank.mdMock bank governance demo walkthrough

Tutorials

DocDescription
tutorials/langchain-guard.mdLangChain + Cordum safety guard tutorial
demo-guardrails.mdApproval + remediation demo
demo-mock-bank.mdMock bank governance demo

Operator Guides

DocDescription
configuration.mdConfig files and environment variables overview
configuration-reference.mdComplete config schema reference — system.yaml fields, overlay system, env vars master table
output-policy.mdOutput safety scanning operator guide — rules, scanners, quarantine runbook
production.mdProduction readiness guide — checklist, DR procedures, incident runbooks, scaling guide, monitoring alerts, security hardening
guides/production-deployment.mdProduction deployment guide — Docker Compose, K8s, Helm with TLS
guides/tls-setup.mdTLS setup guide — architecture, cert generation, env vars, troubleshooting
production-gate.mdProduction gate script and verification
DOCKER.mdDocker Compose deployment — volumes, networking, health checks, env vars, multi-platform, troubleshooting
helm.mdKubernetes Helm deployment
k8s-deployment.mdDetailed Kubernetes deployment guide — base manifests, production overlay, TLS, clustering, monitoring, scaling, backups
troubleshooting.mdTroubleshooting guide — common issues, error diagnosis, debug commands
SCHEDULER_POOL_SPEC.mdPool routing specification

Architecture

DocDescription
system_overview.mdArchitecture, data flow, and service topology
safety-kernel.mdSafety kernel deep reference — input policy, MCP filters, overlays, cache, signatures, remediations, gRPC/TLS
scheduler-internals.mdScheduler engine internals — state machine, output policy, reconciler, saga, routing, circuit breaker
workflow-step-types.mdWorkflow step type reference — job, fan-out, condition, delay, approval, switch, parallel, loop, transform, storage, sub-workflow
output-policy.mdOutput policy architecture — two-phase scanning, quarantine flow
AGENT_PROTOCOL.mdCAP bus protocol and pointer semantics
CORE.mdCore libraries technical reference
adr/Architecture Decision Records (ADRs)
adr/001-safety-before-dispatch.mdADR: Policy-before-dispatch guarantee, <5ms p99
adr/002-context-pointers.mdADR: Context pointers vs inline payloads on bus
adr/003-redis-nats-split.mdADR: Redis as state store + NATS as message bus
adr/004-inline-vs-dispatch-steps.mdADR: Workflow inline vs dispatch step types
adr/005-output-policy-architecture.mdADR: Two-phase output policy architecture
adr/006-circuit-breaker-safety.mdADR: Circuit breaker on Safety Kernel client
adr/007-dashboard-state-management.mdADR: Zustand + React Query state management
adr/008-spa-auth-localstorage.mdADR: SPA auth token storage in localStorage
adr/009-control-plane-boundary-hardening.mdADR: Canonical topic registrations, worker credentials, and worker snapshots

API Reference

DocDescription
api-reference.mdComprehensive REST endpoint reference — gateway routes, schemas, auth, errors, examples
api.mdREST/gRPC overview
grpc-services.mdgRPC service reference — CordumApi, ContextEngine, OutputPolicyService, SafetyKernel, health
mcp-server.mdMCP server modes (stdio + HTTP/SSE) and Claude integration setup
mcp-tools-reference.mdMCP tool catalog — schemas, error codes, JSON-RPC examples
mcp-resources-reference.mdMCP resource catalog — URI templates, pagination, response examples
websocket-streaming.mdWebSocket streaming protocol — global/per-job streams, auth, events, reconnection, client examples
make openapiGenerate OpenAPI specs from protobufs in docs/api/openapi/

Packs

DocDescription
pack.mdPack format, development workflow, testing, marketplace publishing, worker registration, policy fragments
cmd/cordumctlCLI with cordumctl pack subcommands
cordum-packsOfficial pack bundles + catalog at https://packs.cordum.io

Examples

ExampleDescription
examples/hello-packMinimal pack bundle
examples/hello-worker-goGo worker consuming job.hello-pack.echo
examples/python-workerPython worker example
examples/node-workerNode.js worker example
examples/demo-guardrailsApproval + remediation demo pack

Development

DocDescription
sdk-reference.mdSDK reference — gateway client, worker runtime, heartbeats, blob store, testing patterns
CORE.mdCore libraries reference (safety, workflow, scheduler, bus, store)
backend_capabilities.mdFeature coverage matrix
backend_feature_matrix.mdFeature/test matrix
dashboard/README.mdDashboard developer runbook
repo_split.mdRepo boundaries (core vs enterprise vs tools)
enterprise.mdEnterprise overview and repo links
make coverageCoverage reports (core target >= 80%)

Scripts

ScriptDescription
tools/scripts/quickstart.shOne-command local stack + smoke test
tools/scripts/e2e_install_workflow.shInstall + approval workflow E2E test
tools/scripts/demo_guardrails_run.shGuardrails demo runner
tools/scripts/demo_mock_bank.shMock bank demo runner
tools/scripts/platform_smoke.shPlatform smoke test
tools/scripts/install.shInstaller script for local or hosted one-liner
cordumctl upOne-command local stack launcher

Roadmap

See ../ROADMAP.md for the full feature roadmap — completed milestones, active epics, and planned work.

Changelog

See ../CHANGELOG.md for a detailed log of all changes by version — follows Keep a Changelog format.


Internal engineering notes and planning docs live in a private tooling repo to keep the core repo public-facing.