DecisionsData (sggs-data) · pinned from sggs-data
ADR-0003: Every dataset carries its own proofs — ledger, fingerprints, quality contract
Page actions
- View as Markdown (opens in a new tab)
- Ask ChatGPT (opens in a new tab)
- Ask Claude (opens in a new tab)
ChatGPT and Claude are third-party services. The link gives them this page's public address and a short instruction. This site records nothing.
Preview: the published page may be older or missing.
https://docs.gurbanisoul.com/data/adr/0003-integrity-proofs/ · a pinned copy of Algorythmos-AI/sggs-data at c36e317
Status: accepted (2026-09-24)
Context
The corpus is sacred scripture, extracted verbatim from the source edition. A rebuild, a tool upgrade or an editor must never change a character unnoticed, and “the same data” must be provable across SQLite versions and machines.
Decision
Four independent proofs gate every change (all required CI checks):
- Reconcile attestation — the corpus equals the source PDF character for character; the PDF’s sha256 is recorded and a different edition is refused without explicit review.
- Editorial ledger (
audit/editorial-ledger.jsonl,pipeline/ledger_check.py) — the only sanctioned text transforms, each itemised and reviewed; any scripture change without a ledger entry fails. - Fingerprints (
pipeline/sggs_integrity.py,audit/dataset-fingerprint.json) — content, not bytes: scripture and T0 hashes, every table (build stamps blanked), every FTS index; stable across SQLite versions. - Data-quality contract (
pipeline/data_quality.py,audit/data-quality-baseline.json) — shape, thecomp_idgap set (ids are never reused), the heading set, script separation, references, and the rows under scholarly review tracked by their exact Gurmukhi.
Consequences
A rebuild is either provably identical or its differences are named, reviewed and recorded. Baselines are re-recorded only in reviewed PRs. Consumers (the platform, the app) pin a commit and a sha256 and never need to re-prove the text.
Sri Guru Granth Sahib Ji — Knowledge Base wiki. Generated from commit c3d9360. Updated 27 October 2026. This copy may be out of date; the page is at https://docs.gurbanisoul.com/data/adr/0003-integrity-proofs/