Skip to the page

Ship and scale

Chapter 11 of 11

One schema in practice

Compiling data, identity and side effects together removes whole classes of bugs. Start locally in one command, then explore the guides and reference for your stack.

When a backend is built out of separate services for sign-in, APIs, queues, search, and agent tools, no single timeline or permission boundary exists. Each service maintains a partial log and a partial copy of your rules.

Try it

Because every caller in Napalm runs through one compiled engine, one command reads a full day of activity from the change log.

Your terminal
napalm changes notes --since 1d --json
{"items":[{"commitTime":"2026-11-16T17:14:02Z","caller":{"kind":"session","id":"8f2c1e64","via":"http"},"types":[{"name":"default::Note","inserted":1}]},
{"commitTime":"2026-11-16T17:18:40Z","caller":{"kind":"session","id":"8f2c1e64","via":"mcp"},"types":[{"name":"default::Note","updated":1}]},
{"commitTime":"2026-11-16T17:22:15Z","caller":{"kind":"key","id":"0b6f1f5e","via":"schedule"},"types":[{"name":"default::Note","updated":2}]}]}
Browser edits (http), assistant tool calls (mcp) and scheduled jobs (schedule) share one ordered log without exposing note values.

Six pillars and six guarantees#

Six guarantees held from Ada’s first note through multi-shard failover.

PillarGuaranteeChapter
One typed graphGuaranteeRows, files, search indexes, jobs and grants live in one schema under shared access rules and snapshotsChapterSearch and models
Caller-boundGuaranteeAccess rules walk the graph from verified identity across reads, writes, file links, actions and expiring grantsChapterRules, queries and files
CompiledGuaranteeStatic checks block breaking pushes, compile policies into one SQL statement per request and generate typed clients and MCP toolsChapterAgents and copilots
Commit-atomicGuaranteeLive screens, webhooks, delayed jobs, wallet debits and causal replicas advance on one commit timelineChapterActions, jobs and webhooks
Distributed from linksGuaranteeRequired ownership links place and move customer graphs across shards behind one unchanging addressChapterOrganizations and billing
Checked and fault-testedGuaranteeSchema push checks, reach counts, dry-run previews and public fault campaigns verify every promiseChapterScale and the chaos lab

Cross-layer guarantees#

Keeping data, identity and commit order in one engine connects features that normally require custom glue across separate services. Deleting an AgentGrant in Agents and copilots removes restricted notes from an agent’s open live query in the same commit. Queueing a delayed job in Actions, jobs and webhooks commits or rolls back alongside the note write.

Revocation drops live rows

Deleting an AgentGrant evicts restricted notes from an agent’s open /subscribe stream on that exact commit.

Jobs commit with writes

ext::napalm::Job rows commit or roll back inside the user statement and never fire on rolled-back data.

Per-customer root rewind

restore-root rewinds one Organization and descendant rows while co-located customers keep serving.

Setting allows_training to false on an organization in Search and models excludes every note across that customer’s workspaces from your next Parquet export without pipeline changes. When one customer makes a bad bulk edit in Scale and the chaos lab, point-in-time root restore rewinds that organization alone while every other customer keeps working.

Guides by use case#

Build your own project locally in one command, then follow Your first app for the five setup steps or start at the quickstart to install the CLI and sign in.

Terminal
napalm new notes-app notes
Create your own copy of the starter notes app in seconds.

From there, pick the step-by-step guide that matches your stack.

Learn and reference#

Alongside the guides, Learn explains each subsystem in depth, Testing verifies policies and releases against isolated branches, and Reference covers every schema extension, HTTP route, generated SDK method, CLI flag and limit.

SurfaceCovers
Schema & extensionsCoversNapalm schema declarations, access policy clauses, files, vector indexes, jobs, agent grants and roots
Testing & verificationCoversBranch test harnesses, caller-matrix policy checks, dry-run previews and pull-request CI gates
Project APICoversProject endpoints for queries, live streams, files, search and /ask
Control APICoversControl endpoints for projects, schemas, branches, clusters and orgs
SDKsCoversTyped client libraries written by napalm generate across eight languages
CLI referenceCoversEvery command, flag and exit code in napalm

Coding agents can also read the docs directly as files. openapi.yaml describes every HTTP route, and llms-full.txt holds the complete documentation as plain text. Known boundaries and deliberate trade-offs live under Known limits.

Run napalm new and ship from one schema.

Type a word or two to search every docs page.