DaletGuard supports civilians affected by armed conflict through Families Beyond War. All sides, no political affiliation. About our humanitarian work

Scan Provenance and Replay Verification

Scan provenance answers the question that an auditor asks months after a decision: can you produce this same score again? DaletScope stamps each scan with digests of the exact rules, the detection data and the technology catalogue that made it. It stores the observations beside the result, so a command can later score them all again with no network access. That command compares each rule outcome with the stored ledger and reports one of four replay outcomes back to you. Every scan is stamped with digests and an engine version, replay runs offline, and each outcome carries one fixed meaning.

Illustration of folder, eye, receipt for scan provenance
Key takeaway

Scan provenance in DaletScope means each scan carries digests of the rules, data and catalogue that made it. The verify-scan command re-scores stored observations offline and reports one of four outcomes. A reproducible score is not the same as a correct one.

Why does a score need scan provenance at a later date?

A merchant score is a claim about one moment. Also, scan provenance is how you test that claim later. Next, the site changes, the rules change and the detection tables change.

Six months on, a reviewer opens the case and sees a number. Nothing on record says which rules produced it.

The gap hurts in three places. Indeed, an auditor cannot test the method, and a merchant who disputes a decline gets no reproducible answer. Your own model owner also cannot tell whether a recent rule edit moved old scores.

What breaks when chain of custody is only typed by hand?

Hand-written version labels fail quietly. Thus, someone edits a rule and forgets to bump the label. Also, the record then claims a version that no longer matches its bytes.

A false label is worse than a missing one, because people believe it. Scan provenance does not rely on labels.

Scan provenance avoids that failure by using digests of the actual bytes that were loaded. Next, a digest cannot be forgotten, because it is computed and not typed. Hence, if a field cannot be collected, DaletScope stores null and does not guess.

A diagram of 3 connected steps, each with a small drawing: Replay outcomes, Provenance columns, Legal.

How does scan provenance work, from stamp to the report?

Scan provenance rests on one design choice. Scoring is a pure function of the ruleset and the stored observations. In fact, the scan row keeps those observations in its audit data beside the result.

So the score can be computed again without touching the network or the live site. Also, scan provenance replay is the test of that choice.

  1. Stamp: the provenance columns record the engine version, the ruleset digest, the dataset digest and the catalogue digest.
  2. Store: the observations stay in the scan row, next to the result and the rule ledger.
  3. Replay: the verify-scan command scores the stored observations again with the current rules.
  4. Compare: the command compares the full rule ledger and not only the total.
  5. Report: the command prints one of four replay outcomes and exits with a matching code.

What does the path from stamp to outcome look like?

The diagram shows the same five stages in order. Indeed, the note beneath it carries the key rule: a mismatch means identical inputs gave a different result. Scan provenance is the whole picture in one line. Next, each stage of scan provenance replay leaves a record.

Five boxes from digest stamping through storage and replay to comparison with one of four outcomes
A scan is stamped, stored, scored again without network access and compared rule by rule.

Replay runs the method of today. Also, it does not rebuild the historical method from old files. The honest answer is a comparison of what the current method says now and what moved since the scan.

What does scan provenance record and check for each scan?

Scan provenance replay has four working parts. They are the columns, the drawer, the command and the retention controls.

Which of the columns does each scan carry with it?

Every scan row carries eight provenance columns. They are the engine version, ruleset version, ruleset digest, dataset digest, catalogue version, catalogue digest, model name and prompt digest. In fact, the last two stay empty when no model ran and no prompt was sent.

That is the core of scan provenance. The provenance columns are the heart of scan provenance.

The ruleset digest is a sha256 of the scoring rules file. Thus, the dataset digest hashes every YAML detection data file, including the path bytes. A renamed or moved file therefore changes the digest even when its content stays the same.

The catalogue digest covers the five technology catalogue source files. Also, the provenance columns are filled at scan time and never by hand. Next, scan provenance replay uses these digests as its first check.

How can we see the inputs with no terminal at all?

The scan header offers a How this was produced action that opens a drawer. It shows four groups: scoring rules, detection data, software and machine inference. Hence, the last group reports how many model questions were asked and how many were answered.

Scan provenance is open to non-technical staff in this way. In fact, the drawer lists all of the provenance columns in four groups. Each replay outcomes line in the drawer matches the command.

A field that was never recorded reads Not recorded. Also, that wording matters, because it separates no model ran from this row predates the column. Empty provenance columns are shown the same way.

What does a replay compare when we run it on one?

Scan provenance replay runs through one command. Indeed, an operator or auditor runs it with a scan id and a tenant id. Next, the tenant is required because scans sit behind row-level security. Adding the show-rules option lists every rule whose outcome differs on replay.

The command compares the matched flag and the applied points of each rule. Also, two different sets of rule outcomes can add up to the same total. A total-only check would call that a match and hide the compensating error that an audit looks for. Next, scan provenance replay compares them rule by rule.

DaletScope Activity: Scan provenance screen

What do the four replay outcomes tell you to do?

  • Verified, exit code 0: the same inputs gave the same result, so nothing needs doing.
  • Drifted, exit code 0: the rules, data or catalogue changed since the scan, so read the differing rules.
  • Mismatch, exit code 2: identical inputs gave a different result, so stop and investigate.
  • Unverifiable, exit code 3: provenance or stored observations are missing, so treat the score as unproven.

Drifted is not an error. Every scan becomes drifted once someone edits the rules. In fact, a command that failed on drift would stay red and be ignored.

The replayed score is shown as what the method of today says. Indeed, it is never presented as a correction of the original. Each of the replay outcomes has a clear meaning in a review.

How do we tell drift from a true mismatch, then?

Drift is judged by three digests: ruleset, dataset and catalogue. Thus, if any one of them differs, the inputs changed and the status is drifted. Also, a changed engine version is reported apart as a code change. A routine deploy then does not look like a data change.

The prompt digest appears in the drift list but does not cause drifted. Scan provenance keeps both cases apart. Next, drifted is one of the replay outcomes that never needs a fix.

Replay never calls a model, because the answers of the model are already inside the stored observations. A mismatch needs identical input digests and a different ledger. Hence, means some unrecorded input, such as a clock or an ordering effect, leaked into the score. In fact, scan provenance replay therefore stays free of any model.

Why does each scan get a first review date at all?

For scan provenance to work years later, scans must stay. They are stored as permanent evidence under the class permanent_evidence_no_auto_delete. There is no age-based purge.

Each scan gets an earliest review date 25 calendar years after it was observed. Also, a leap day maps to the last day of the short month.

Illustration for Scan Provenance and Replay Verification

What part of a scan does the digest cover, then?

Each scan also carries an integrity sha256 under the schema daletscope-evidence-integrity/v1. It is computed over a fixed projection of the scan and leaves out the mutable retention and hold metadata. Indeed, the Evidence retention tab shows whether the stored digest still verifies.

Legal matters are not part of that projection, and legal matters stay editable only through new events. Scan provenance includes this check on the stored record.

The code states its own limit. Next, the digest is a consistency check over an accepted projection. Also, it does not prove that the source was true or when it was collected. Treat it as a tamper check on the record and not as a statement about the merchant.

Users with the compliance or admin capability can create legal matters. Next, each of the legal matters records the jurisdiction, authority, action family, discovery date, custodian and reason. None of it can be edited afterward. In fact, a hold event ties a scan to one of the legal matters.

Placing and releasing a hold are append-only events. Each event carries a sequence number and a hash of the event before it. Placing a hold lifts the review date to at least 15 years after the discovery date of the matter.

The tab shows the hold state as none, held or released. Indeed, legal matters and hold events together form the hold trail. Thus, legal matters therefore leave a trail that no one can quietly edit.

What does the snapshot of the method add to it?

Each scan also stores a snapshot of the methodology registry in its audit data. The registry holds 8 methods and 13 sources, with purpose, procedure, limits and validation status for each method. The field measured_error_rate is explicitly null.

The registry says what the system does, and it says that no method has a measured error rate. Scan provenance therefore includes the limits of the method.

What happens when a score is reopened a year or so later?

A reviewer at a payment company must explain an onboarding score for Harbor Lantern, a merchant scanned last spring. Also, she opens the drawer and sees three digests. An operator then runs verify-scan with the show-rules option.

The command reports drifted, because the team edited two rules since the scan. Next, it lists those two rules with the point change on each. Hence, she writes both into the case file and leaves the original ledger untouched. That is one of the replay outcomes that you should expect often.

Provenance replay: Scan provenance record, Retention and legal and Happens

What can scan provenance and replay never prove for a file?

Scan provenance shows that stored observations and a ruleset produce a score. In fact, it does not show that the observations were complete. Also, a one-URL scan stores one fetched page plus domain checks. If a key policy page was never fetched, replay reproduces a score built without it.

Replay also does not show that the rules are sound. The open gap is plain: no measured error rate and no labeled, representative corpus. Tests prove internal correctness only, and this page makes no claim that any court would accept the method.

Replay needs stored observations, which a failed scan lacks. Indeed, a row written before the provenance columns existed has no digests. Both cases return the outcome unverifiable. Next, replay also runs against the rules file that the operator names.

Run it on the deployment you mean to audit. The scan security controls page explains the tenant and identity checks that still apply. Also, none of the replay outcomes says that the score is right.

DaletScope provenance and replay screen

Why do auditors value scan provenance in their daily work?

  • Provenance columns with digests that are computed and never typed.
  • Scan provenance that an auditor can test without help from engineers.
  • Stored observations that can be scored again with no network.
  • A rule-by-rule comparison and not a total-only check.
  • Four replay outcomes that separate expected change from a defect.
  • Permanent retention with a review date and an integrity digest.
  • Legal holds recorded as append-only events.
  • A null where a field could not be collected, and never a guess.

How do you replay one of your own scans today?

Scan a merchant you know, then ask an operator to run verify-scan on it. You should see the outcome verified. Next, change one rule in a test copy and run it again.

The drifted result and its list of differing rules show the value of scan provenance. It is a precise account of what moved.

What do auditors ask before they rely on this record?

What does the verify-scan command do?

It re-scores the stored observations of one scan with no network access. It then compares the full rule ledger with the stored one and reports verified, drifted, mismatch or unverifiable. Exit codes are 0, 0, 2 and 3.

What is the difference between drifted and mismatch?

Drifted means the rules, data or catalogue changed since the scan, which is expected over time. Mismatch means identical inputs gave a different result, which points to a defect that needs investigation.

Which fields does DaletScope stamp on each scan?

Eight columns hold the engine version, ruleset version, ruleset digest, dataset digest, catalogue version, catalogue digest, model name and prompt digest. The last two stay empty when no model ran.

Does replay prove the score is correct?

No, replay proves only that stored observations and the ruleset give the same score. It does not show that the observations were complete or that the rules are sound. No measured error rate exists.

How long does DaletScope keep a scan?

Scans are kept as permanent evidence under a no-auto-delete retention class. Each one carries an earliest review date 25 calendar years after it was observed. No job purges scans by age.

Can a legal hold be placed on a scan?

Yes, a user with the compliance or admin capability can create a legal matter and tie a scan to it. Placing and releasing a hold are append-only events, and a hold lifts the review date.

See how DaletScope fits the providers your team uses today

Book a short meeting for a walkthrough with your own providers in mind, or join an in-person class to learn the method first.