Schema-checked ontology graph
Store domain objects as versioned JSON Schema entities with x-ref edges, GIN-indexed Saved Views, and hash-chained entity event logs.
Objects, links, actions, workflows and policies on Postgres, served as a typed REST API and an MCP server your agents can use, with an audit log you can verify offline.
Spins up a live sandbox with I-9, E-Verify, Checkr, CA/NY rules, real signing, and Ed25519 verification — no sign-in required. Or explore Policy Studio.
Describe your operations once: objects, links, actions and workflows.
ontology.run compiles it live into a typed API, MCP tools and a console.
People, services and agents act through the same guarded actions, in one transaction.
Every change is hash-chained and signed, so anyone can check it offline.
One live model of your operations, shared by your team, your systems and your agents.
Every package depends in one direction, enforced by lint rules. Core knows nothing about HR, healthcare, or finance — your schemas, policies, and connectors define the domain.
Store domain objects as versioned JSON Schema entities with x-ref edges, GIN-indexed Saved Views, and hash-chained entity event logs.
Run guarded multi-entity actions in one Postgres transaction and compile your tenant ontology JIT into typed /domain/* REST and /domain/openapi.json.
Orchestrate action, branch, wait, and wait_for_event steps over SKIP LOCKED workers with step logs, timeouts, and rerun policies.
Author ontology packs in JSON or Forma Lisp DSL, evaluate policies with RFC 0003 reuse and chunked rollouts, and sign multi-party forms into lazy PDFs.
Plug in external APIs as typed Effect Layers with tenant AEAD credentials, Postgres RLS, Ed25519 hash chains, and offline verification.
JIT /domain/* REST, dynamic /domain/mcp, Effect RPC, and platform APIs share one CurrentActor middleware, one Postgres RLS tenant boundary, and one effect/Schema source of truth.
Compiled live from your tenant ontology with strict Effect Schema validation, RFC 7807 Problem Details, Idempotency-Key replay, and OpenAPI 3.1.
// Every object type, link, saved view, and action gets a typed /domain/* route
POST /domain/actions/onboard_vendor
Authorization: Bearer dw_live_...
{
"legal_name": "Acme Logistics",
"country": "US",
"tier": "critical"
}
// Live spec for this tenant's ontology: GET /domain/openapi.json46 typed platform procedures derived directly from @dw/api schemas. Zero-codegen for Effect callers (RpcClient.make) and auto-generated zero-Effect SDK via pnpm sdk:generate.
import { createRpcClient } from "@dw/sdk"
// Auto-generated from DwRpc via OpenRpc.fromRpcGroup() — CI-checked for drift
const rpc = createRpcClient({ baseUrl: "https://api.example.com", apiKey })
const activeCases = await rpc.cases.list({ status: "active" })
const rollout = await rpc.rollouts.create({
policy_set_key: "vendor-onboarding",
target_version: "2.0.0",
chunk_size: 200,
})Keep core domain-agnostic: plug in Checkr, DocuSign, or internal APIs as composable Effect Layers with schema-validated actions and HMAC webhook verification.
import { defineConnector, registerConnector } from "@dw/orchestrator"
export const CheckrConnector = defineConnector({
key: "checkr",
name: "Checkr",
credentials: Schema.Struct({ api_key: Schema.String }),
actions: {
createReport: { input: CreateReportInput, output: CheckrReport },
},
})
export const CheckrLive = registerConnector(CheckrConnector, {
actions: {
createReport: ({ input, credentials }) => /* Basic auth POST /v1/reports */,
},
})Each tenant's ontology is served at /domain/mcp: one MCP tool for every object type, action, saved view and workflow, kept in step as the ontology changes. Agents get the same guarded actions, scopes and row-level security as your team, and every change lands in the audit log.
00000000)Read /s/00000000…/llms.txt// Connect Claude Code, Cursor, or any MCP client to /domain/mcp
{
"mcpServers": {
"ontology-run": {
"url": "http://127.0.0.1:3100/domain/mcp",
"headers": { "Authorization": "Bearer dw_agent_key" }
}
}
}
// Tools are generated JIT from your ontology (objects, actions, views, workflows).
// Every agent call is scope-checked, RLS-isolated, and hash-chained.Package entity schemas, transactional actions, durable workflows, document templates, policy sets, saved views, and connectors into a portable JSON or Forma Lisp pack — apply or export with one API call.
Onboard clinicians across 50 states with 1-click Case Compliance Passports for hospital audits.
Zero-spreadsheet vendor compliance where entity risk changes automatically open renewal reviews.
Reproducible via pnpm bench against real Postgres 17 — GIN JSONB indexing, keyset pagination, LISTEN/NOTIFY live feeds, lazy PDFs, and durable chunked rollouts.
Filtered keyset page across 10k+ indexed entities on Postgres 17
1,000 incoming x-ref edges via entity_links B-tree index
Durable pause/resume/cancel cursor over SKIP LOCKED workers
12.5× faster than cold render; zero wasted PDFs for in-flight cases
Boots on embedded PGlite locally with zero setup, then scales to managed Postgres 17, S3/R2, OIDC, and Fly.io or Render with a single config file.
pnpm install && pnpm demopnpm demo:servepnpm bench