Provenance · Audit ledger

Cryptographic audit ledger

After each price run, if the data changed since the last entry, a new entry is appended to a SHA-256 hash-chained log. Each dated entry hashes the data as it stood that day: the price-history log, every product and software file and, since 2026-09-08, every change and snapshot file. It also links to the previous entry's head, so altering a past entry, or the data it committed to, breaks every entry after it. Removing the newest entry breaks no link, so the chain alone cannot show it; one entry has been removed that way — entry 17, on 2026-07-25, minutes after it was written — and the corrections log records it. Since 2026-10-22, history is not rewritten silently. Each removal of material we may not publish, or of a claim we got wrong, is logged in /corrections/ with its date and reason. Before that day not every change was logged when it was made; the log now describes those we have found. Note a head, and you can check later that no entry up to it has since been altered or removed.

Chain length
207
Tracking since
June 2026
Last entry
2026-12-05
Integrity
✓ verified

Current head

The head digest commits to all history before it. Quote it to pin the dataset's exact state on 2026-12-05.

8ba9e2d2df9fb06c6327191103e4fc53771e78443a7d46bb29788bacd2e279a2

Verify it yourself

  1. Download the chain: /data/ledger.jsonl (one JSON entry per line: d, n, filesHash, prevHash, headHash).
  2. For each entry, recompute headHash = SHA256(prevHash + ":" + filesHash + ":" + d + ":" + n) and confirm it matches, and that each prevHash equals the previous entry's headHash (the first is GENESIS).
  3. To check the data itself, recompute filesHash: SHA-256 every .json file under data/products, data/sections, data/catalog, data/changes and data/snapshots, plus data/price-history.jsonl, join as path:sha lines sorted, and SHA-256 the result. The first four stores are flat; data/snapshots nests one level (data/snapshots/<scope>/<date>.json), so the walk descends into subdirectories. Paths are relative to the repository root, as written here. The build script is scripts/build-ledger.mjs.
  4. The public /data/price-history.jsonl leaves out observations whose source terms do not permit redistribution (what and why), so it does not hash to the file this digest was computed over.
  5. The change wire's evidence — the dated captures a move was diffed from, and the change records themselves — joined the digest when the wire started publishing. Adding a store cannot alter an entry already written: each entry keeps the filesHash it was computed with, so the chain above still verifies end to end, and the new inputs take effect from the first entry appended after the change.