TETHESIS
PROVENANCE

Where every value came from

Link each decision to the evidence it used. Record who changed each property, and why. Then check — without trusting the server — that none of it was rewritten.

Read the quickstartCypher referencedb.derivedFrom · db.propertyProvenance

The sources of one decision (illustrative). Two episodes support belief-99, and belief-99 supports a decision. Each edge is a DERIVED_FROM relationship written by the application, pointing from the derived record to its source. Hover a node to see when it was recorded.

The links are written by your application. The engine stores them, keeps every version, and reads them back as of any time.

THE THREE RECORDS

How a value connects to its source

1 · Derivation links

Derivations are stored as edges.

Your application links a record to its sources with DERIVED_FROM relationships. db.linkDerivedFrom writes them for any node; db.recordBelief writes them from a belief to its evidence. db.derivedFrom walks them back from any record, up to eight hops by default.

(:Belief)-[:DERIVED_FROM]->(:Episode)
2 · Write attribution

A write records who made it.

Send a provenance object with a Cypher write — actor, source, reason, request id, confidence — and each property value it writes keeps that attribution. For supported authenticated write paths, the server adds the credential that made the request; the client cannot set or change it.

db.propertyProvenance(node | rel, prop)
3 · Two hash chains

History and attribution, each chained.

Every committed write batch is in a hash-chained history log. Who wrote each batch is in a separate provenance log with its own chain. Each is verified on its own.

/audit/verify · /provenance/verify
RECORD WHO MADE A CHANGE

Attribution on supported writes

Attach a provenance object to a Cypher write to stamp attribution on each property value it writes. The server records which credential made the request.

curl -sS -X POST "https://invariantdb.com/graphs/$GRAPH/cypher" \ -H "Authorization: Bearer $KEY" -H "Content-Type: application/json" \ --data '{ "query": "MATCH (p:Person {name: $name}) SET p.role = $role", "parameters": {"name": "Alice", "role": "staff engineer"}, "provenance": {"actor": "hr-sync", "source": "hris", "reason": "promotion", "requestId": "req-0001", "confidence": 1.0} }'
// Read the attribution back — one row per value the property has held. MATCH (p:Person {name: "Alice"}) CALL db.propertyProvenance(p, "role") YIELD value, validFrom, validTo, actor, source, reason, confidence, principal RETURN value, actor, source, reason, principal;
  • One row per value the property has held, oldest first. validTo is null for the current value.
  • principal is the credential the server recorded (for example apikey:<key id>). actor, source, reason, requestId and confidence are what the writer sent.
  • Values written without provenance have null attribution columns; principal is still recorded.
  • A confidence outside 0.0–1.0 is refused (HTTP 400, INVALID_PROVENANCE_CONFIDENCE) and nothing is written.
  • The same fields can go in X-Provenance-* headers; if sent both ways, the body wins. Accepted on the Cypher routes and the MCP cypher_query tool.
  • db.propertyProvenance takes a node or a relationship.
ANATOMY OF AN APPROVAL

Tracing a decision to its inputs

Illustrative example. An underwriter bound a $4.2M commercial property policy. Six months later a regulator asks why. The application had recorded each step and linked the decision to every one.

CASE FILE · pol-2026-03-9847
A $4.2M commercial property policy, bound.
BIND · recorded 14:32:18Z
1
14:14:33Z · viewed
Loss-run history opened.
Seven-year history. Two small water claims, both closed. No fire, no liability, no fraud flags. The application recorded the document view as an episode.
loss-run-2019-2026.pdfepisode-482
2
14:18:51Z · rules
Sprinkler credit rule fired.
Engineer report filed the week before — NFPA-13 wet system, monitored 24/7. Rule SPRINKLER-CREDIT-12pct matched: 12% off the filed rate.
engineer-report.pdfrule SPRINKLER-CREDIT-12pctbelief-114
3
14:22:09Z · docs
Catastrophe score pulled.
Wildfire score 24/100 from the catastrophe model. Flood zone X, earthquake zone 3 — within appetite for the territory. The API call was recorded as an episode with its response body, so it can be retrieved later.
CAT model responseepisode-501
4
14:26:42Z · known
Reinsurance treaty checked.
$4.2M is under the $5M single-risk cession threshold, so it cedes entirely through the per-risk treaty — no facultative placement needed. The treaty version at that moment is fetchable with AT RECORDED.
treaty-2026-property-quota.jsonrule TREATY-AUTOCEDE-LE-5M
5
14:32:18Z · decided
Bound and quote sent.
Premium $48,720/yr at filed rates with the 12% sprinkler credit, effective 2026-04-01. The application linked the Decision to each belief, rule, document and episode with db.linkDerivedFrom.
// Every input linked to the decision, with depth. CALL db.derivedFrom('decision-2026-03-05', 4) YIELD sourceStrId, depth, kind RETURN sourceStrId, depth, kind; // The loss history exactly as the system held it when the underwriter looked. MATCH (r:Risk {id: "CP-2026-9847"})-[:HAS_HISTORY]->(c:Claim) AT RECORDED "2026-03-05T14:14:33Z" RETURN c.date, c.amount, c.peril, c.status;
BELIEF REVISIONS

Revise a belief without losing the earlier one

An agent records a belief with its evidence. When the facts change it revises the belief. The revision is a new belief that points back to the one it replaces with a REVISES edge, so the earlier claim and its evidence stay readable.

// Revisions of belief-99, with evidence one hop away. CALL db.beliefLineage("belief-99", 1) YIELD beliefId, claim, confidence, createdAt, supersededAt, depth, evidence RETURN claim, confidence, createdAt, supersededAt, depth ORDER BY createdAt;
  • One row per revision. supersededAt is null for the current one.
  • evidence lists sources reached over DERIVED_FROM, and is empty unless you pass hops (1–3).
  • Each version's active evidence links are counted, and a dropped link keeps who dropped it, when, and why.
VERIFY THE RECORD

Check it without trusting the server

A hash chain shows a record was changed by anyone who could not recompute the chain. To cover someone with full control of the server, keep signed anchors outside it and check exports with the free-standing verifier.

What happenedWhat the check reports
A past record editedaudit/verify → {"status":"broken", ...}; offline verifier: history chain FAIL
A record removed, or two swappedhistory chain FAIL: broken link or records out of order
History rewritten and re-signed before your anchoranchor N FAIL
Who-wrote-what rewritten before your anchoranchor N FAIL: the anchored provenance head is missing
Nothing changed{"status":"clean","records":N} / RESULT: VERIFIED

Field-access events have a third chain of their own: CALL db.verifyAclChain() YIELD status, entries, brokenAtEventId, reason.

  • The links are application-written. The engine does not infer what a decision used — it stores what you link (db.linkDerivedFrom skips a source id it cannot find).
  • A chain alone does not stop someone with root from rewriting and re-chaining. Anchors kept outside the server do; records after your newest anchor rest on the server's signature only.
  • The history log and the provenance log are separate chains — check both.

Trace your first decision

Review evidence and independent verification in the Trust Center.