What is Decision Provenance?
Every execution LexQ records carries its provenance, written at the moment it runs: the decision outcome, a deterministic per-rule reason, the input facts it saw, the fingerprint of the exact rule snapshot that ran, and a 3-layer responsibility chain — who authored the version, who published it, who deployed it. Nothing is reconstructed after the fact; what you read is what was recorded when the decision happened. The one exception is personal information the law requires you to delete, and that deletion is itself recorded.Execution History vs Provenance — Execution History tells you what happened across executions: lists, statistics, latencies. Decision Provenance answers, for one decision: why did it come out this way, on which inputs, under whose rules?
When to Use
- Audit response — an auditor asks why customer X received decision Y on date Z. Pull the trace and hand over its lineage as recorded at execution time.
- Customer dispute — see exactly which rule fired on which (masked) inputs, then verify the fix with Decision Replay.
- Monthly access-log inspection — the reveal audit ledger records who saw which PII and when, collectable by API for your SIEM.
Getting a Decision’s Lineage
Console
Open Decision Provenance from an execution’s detail in Execution History — the lineage view shows the decision, per-rule reasons, masked inputs, and the responsibility chain.CLI
API
Response
Abridged — PII facts arrive masked, andmaskedKeys names them:
When a Layer Is Empty
A layer can benull, and lineage.unavailableReason says why. It is null when all three layers are present. LexQ never fills an empty layer later from the deployment history.
The console shows the same reason under Responsibility Lineage.
PII Masking and Reveal
Facts marked as PII in Fact Definitions are masked as•••••• on every read surface — provenance, execution history detail, and any export. maskedKeys always tells you what was masked, so the shape of a decision stays fully analyzable without exposing the values.
For a record with masked facts, the input fingerprint (requestFactsHash) in provenance and execution history detail is shown only to Admin and User roles. Other roles and API keys get null.
Revealing a masked value is a separate, deliberate act:
- Console-only, for Admin and User roles. API keys are rejected with
403— an agent or integration can never pull PII plaintext. - Audited — if the reveal cannot be recorded, the value is not shown. A reveal that is not audited cannot happen.
- Revealing a fact that is not marked as PII fails with
AN-027.
The Reveal Audit Ledger
Every reveal lands in an append-only ledger: who revealed which fact of which trace, and when. Values are never stored — the ledger is metadata only.Console
Open PII Reveal Audits in the sidebar and filter by trace, operator, fact key, or period.CLI
API
Response
Next Steps
Decision Replay
Re-evaluate a past decision against a candidate version and diff the outcome.
Fact Definitions
Mark facts as PII to enable masking and audited reveal.

