TETHESIS
AGENTS

Agents that leave a record

An agent's events, beliefs and decisions are graph records, each with a valid time and a recorded time. Ask what it knew when it acted. Coordinate several agents with leases and conditions the database checks. Give each agent its own key — and stop them all with one call.

Read the quickstartDeveloper documentationclient.memory · MCP · leases
// What did the agent know at 15:47 on 13 April 2026? MATCH (e:Event) AT RECORDED '2026-04-13T15:47:00Z' RETURN e;
WHY BUILD ON IT

State, coordination and accountability the database enforces

Persistent

State lives in the graph, not in the agent process, so it outlives context windows and restarts.

Replayable

Every version is kept. Read memory as it stood at any recorded time, and replay a run as of any step.

Attributed

Supported authenticated write paths record the credential, and a write can add the acting agent and a reason.

Coordinated

Fenced leases, conditional writes, and supported tracked reads checked at commit. A covered stale-holder write is refused.

Shared workspace

Tasks, claims, notes and verdicts several agents read and write — owner-only where it matters.

Scoped keys

Mint a delegated key per run or task; its rights are the intersection with its parent's, checked on every request.

Safe retries

Supported mutations accept idempotency keys; follow the documented retry envelope and mutation scope.

CONNECT

Through the SDK, or any MCP client

The SDK's memory surface is client.memory — retain, recall, reflect, forget, restore, erase.

// npm install https://sdk.invariantdb.com/node/invariantdb-0.10.1.tgz const r = await c.memory.reflect("my_graph", { query: "where does Ana work", subject: "Ana" }); await c.memory.retain("my_graph", null, { belief: { claim: "Ana is likely to renew", confidence: 0.7, evidence: r.attributes[0].evidence }, });

retain saves a belief when belief is given and a memory otherwise; reflect calls no model and writes nothing.

Agents that speak MCP use the same graph without the SDK:

remember recall (atValid | atRecorded) record_episode replay_episodes save_document get_document endpoint: https://invariantdb.com/graphs/{graph}/mcp
ACCESS & COORDINATION

One key per agent; rules the engine checks

  • Give each agent its own graph and a key whose graphs list names only that graph — a key reaches only the graphs it names.
  • A key is minted with an explicit graphs list; an empty list is refused.
  • Give a key an expiry when you create it; change or revoke it later.
  • Each graph accepts a limited number of concurrent queries; extra requests get a 503 with a retry delay.
Coordination the database enforces. Leases carry fencing tokens, explicit revision conditions and supported tracked reads are checked at commit, and covered late writes are refused — so several agents coordinate through rules the engine checks, not through hope.
CLIENT RUNTIME / PYTHON & NODE

One governed run. One scoped identity.

The SDK harness applies engine guarantees by default, from the start of an agent run through credential revocation.

Delegate key→Trace + budget→Read / propose / act→Close trace + revoke
CONTROLCONTRACT
Run lifecycleThe Python and Node SDK harness creates a delegated run credential, starts the agent trace, applies its operation budget and revokes the credential on completion.
Tool policyClassify tools as read, propose or act. Reject unknown arguments and command-like parameters under the configured policy; strip model-supplied consent arguments. Tool availability depends on prior reads.
Information-flow controlsFence model-visible context by trust tier, strip hidden fields and gate tools by the lowest tier of content seen. These are runtime controls, not a guarantee against every prompt-injection technique.
Delegation chainCaller → agent → task → read/propose credentials. Each child is no wider than its parent; credentials remain outside model-visible context.
Server enforcementConfigured authority rules, held approvals and stale-approval refusal; kill switch and break-glass controls; per-operation budgets; read-only and limited MCP connections.
Attribution and evidenceRecord agent traces, write and answer receipts, provenance and memory episodes. Optional trust stamps record person/agent attribution and credential; trust stamps are off by default.

The full harness is described for Python and Node; .NET and Go provide typed calls for the underlying contracts. Availability and defaults depend on installed version and configuration. See runtime architecture and SDK documentation.

Give your agents a record they can stand behind