What is Decision Provenance?
Every execution LexQ records is sealed with its provenance at write time: the decision outcome, a deterministic per-rule reason, the input facts it saw, the fingerprint of the exact rule snapshot that ran, and a three-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 sealed when the decision happened.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 the sealed lineage.
- 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:
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.
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. - Write-then-reveal — the audit row is committed before the value is 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.

