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.
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.
How a value connects to its source
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.
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.
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/verifyAttribution 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.
- One row per value the property has held, oldest first.
validTois null for the current value. principalis the credential the server recorded (for exampleapikey:<key id>).actor,source,reason,requestIdandconfidenceare what the writer sent.- Values written without provenance have null attribution columns;
principalis 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 MCPcypher_querytool. db.propertyProvenancetakes a node or a relationship.
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.
SPRINKLER-CREDIT-12pct matched: 12% off the filed rate.AT RECORDED.Decision to each belief, rule, document and episode with db.linkDerivedFrom.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.
- One row per revision.
supersededAtis null for the current one. evidencelists sources reached overDERIVED_FROM, and is empty unless you passhops(1–3).- Each version's active evidence links are counted, and a dropped link keeps who dropped it, when, and why.
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 happened | What the check reports |
|---|---|
| A past record edited | audit/verify → {"status":"broken", ...}; offline verifier: history chain FAIL |
| A record removed, or two swapped | history chain FAIL: broken link or records out of order |
| History rewritten and re-signed before your anchor | anchor N FAIL |
| Who-wrote-what rewritten before your anchor | anchor 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.linkDerivedFromskips 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.