Every version records when it was true and when it was saved. A write can require that what it read hasn’t changed.
Engine guarantees and failure semantics
InvariantDB exposes enforceable data and transaction contracts. Their scope depends on the configured graph, policy, feature and operation. A protected write may commit, be held for approval or be refused; a query may return a governed result or an explicit failure.
A decision keeps links to the evidence it used and the credential that made it.
Reconstruct retained graph state on either clock and replay recorded agent context.
Conditional writes, fenced leases, and supported tracked reads checked at commit.
Graph, label, relationship-type, individual-node and property permissions across supported reads, searches and exports.
Held writes and approval requirements, configured per graph.
Find recorded downstream dependencies, detect stale derived state and evaluate hypothetical changes in isolation.
Values sealed per person; destroy the key and they can’t be read.
Acknowledged writes survive a crash. Consumers resume from where they stopped.
Changes based on facts that still hold
Every node and relationship version stores a valid time and a recorded time. The recorded time is set by the server and can’t be backdated. A write can carry conditions, checked under the graph’s write lock right before it commits: if the record changed since you read it, nothing is written.
A backdated correction that would overwrite later-dated values is refused, with the versions it would have changed named.
Reconstruct what was known, why, and who acted
Link a decision to the beliefs, documents and records it used. Supported authenticated write paths record the credential that made the write, which the request cannot set; consult release and route coverage. Each property keeps the actor, source and reason the writer gave.
Decisions can be typed — with declared fields and evidence requirements — so a decision that doesn’t fit is refused rather than stored half-formed.
Reproduce the context of a decision
Ask any query as of a past valid time, a past recorded time, or both. Training and backtest rows can be built as of each entity’s own time, so they never see facts recorded later. An agent run is recorded step by step and can be read back as of any step, with the memory as it stood then.
Write receipts are available on the hosted service, turned on per graph: a signed receipt for each commit that you can check offline.
Coordinate workers through constraints the engine enforces
Conditions guard a write. A lease gives one agent a key for a time it chooses, with a fencing token that grows for each new holder. Supported tracked read sessions refuse protected writes if covered reads have changed. Tracked read validation applies to supported read-session shapes. Future-dated single-label reads are covered by the reported fix; transaction-integrated tracking and relationship-read tracking require separate version verification. Use explicit revision conditions where tracking coverage is unavailable.
Supported writes may carry an idempotency key. Use the documented retry envelope and mutation scope.
Govern what people and agents can read and write
An access policy allows or denies read and write at graph, label, relationship-type, individual-node and property scopes. Supported reads, counts and searches enforce configured record visibility within their documented scope. Field rules hide single properties and can require a stated purpose.
email is readable by support, billing or compliance, and only when the caller states one of the two purposes. Search filters first: records a caller can’t read are left out before ranking, and covered field-access events go into their own hash chain (db.verifyAclChain).
Protected changes take effect only when authorized
Held writes and approval requirements, configured per graph. Turn on a per-graph policy and a protected change is held until a second person approves or rejects it, with separation of duties — it takes effect only when it is authorized.
Know what needs another look when evidence changes
Records keep links to what they were derived from. When a source changes, the impact query walks those links backwards and returns every record that rests on it — direct or derived — with how far away it is.
Encryption and cryptographic erasure
Declare which properties hold personal data. Each value is sealed under a key for its subject. Destroy the key and the values can’t be read, now or at any past time cut. The audit chain still verifies, and a signed erasure receipt can be checked without the server.
It deletes nothing. Values written before the property was declared, undeclared properties and backups taken earlier are not covered. Cryptographic erasure, in full →
Preserve workflow state across interruptions
A write is acknowledged only after it’s synced to the write-ahead log, and acknowledged writes survive a crash. The change feed returns committed changes in commit order from a position you keep, or one the server keeps for you, so a consumer can resume from its recorded checkpoint within the documented feed contract. Deduplicate and reconcile external effects separately.
A refusal is an answer
When a guarantee doesn’t hold, the database answers with a code, writes nothing, and says whether a retry can help.
| Situation | Answer |
|---|---|
| The record changed since you read it | 409 CONDITION_FAILED |
| Something your session read has changed | 409 READ_SET_CHANGED |
| Your lease expired or passed to another agent | write refused, nothing written |
| A backdated write would erase later values | WRITE_WOULD_REPLACE_LATER_VERSIONS |
| A past read would be incomplete | 400 TEMPORAL_READ_LIMIT |
Retrieval, simulation and cryptographic evidence
Engine contracts and runtime controls.
Server-enforced authority, held approvals, stale-approval refusal, kill switch, break-glass, delegated credentials and per-operation budgets support bounded execution. Optional trust stamps are disabled by default. The Python and Node SDK harness adds tool policy, trust-tier fencing and a scoped run lifecycle. These client-side controls do not replace server enforcement.
Technical references
For the complete enterprise evaluation context, see the Trust Center.