Prove it / Verify and export
Verify and export
A routine for whoever answers for Caroline's decisions: check the chain, keep a copy where the installation cannot reach it, and hand an auditor something they can check without trusting you.
The routine
| When | Do | Why |
|---|---|---|
| every day | export yesterday as NDJSON into your SIEM or write-once storage | a copy the installation's operator cannot rewrite |
| every week | caroline ledger verify | catches an edit, gap or reorder in what is retained |
| for an audit | the full export, checked offline | the auditor checks the chain on their own machine |
Every day: one day to your SIEM
caroline ledger export $(date -u -v-1d +%F) # macOS; on Linux: date -u -d yesterday +%F
The day's file, byte for byte as the ledger holds it: one JSON record per line, the shape a SIEM ingests. In a scheduled job, sign in with --passphrase-stdin from your secret store. The same file by API:
A day with nothing in it answers 404.
Every week: verify
caroline ledger verify
Recomputes the whole retained chain. A problem is named by file and line; the exit code is not 0. Verifying never pauses decisions.
For an audit: the full export
Decisions › Export › The whole record, with its proof, or:
caroline ledger export --all
caroline-ledger-<installation>-<time>/
ledger/ every retained day, cut at one instant
MANIFEST.json first and last record, each file's size, lines and SHA-256
README.txt what a record holds, what a check shows and does not
verify.py checks it all again, offline
The auditor runs it with nothing but Python 3:
python3 verify.py
It prints OK, or each problem at its file and line. The export itself is recorded in the ledger: who took it, how many records, the head, and the zip's SHA-256. The next export shows who took this one.
What a passing check means
A passing verify means the retained records agree with each other and with the head Caroline holds. Someone who can write the ledger's disk could rewrite the chain from their edit onwards, and that would verify. Your daily copies are what catch it: compare any day's export with the copy you took then.
Keep exports safe
Records hold subject and resource ids, unmasked, so an export is personal data in most installations. Store it where only the people who answer for decisions can read it. caroline writes it readable by you alone and never overwrites a file unless you say --force.
A view, not the record
The CSV from the Decisions page is a filtered view for a reader. Hand it over as a summary; the record, with its proof, is the export above.