Palimpsests / Verify without reading

Key-free verification · PALA-1

Verify an AI audit log without reading it

Palimpsests writes its audit log in PALA-1, a format that separates the right to verify a log from the right to read it. Anyone can check that no record was altered, removed or reordered — with no decryption key, and without opening a single record body — because the chain hash covers only each record’s 156-byte header.

Updated

How it works

Every record's header carries a SHA-256 digest of its body, and names the hash of the record before it. Verification walks the headers — one hash per record — and checks each body against the digest bound into its header. Bodies are never decrypted, so the key that protects their content is never needed, and never handed over.

Three questions, answered separately

QuestionFrom the file aloneNeeds
Was any record altered, removed or reordered?yes or no, with the first bad record namednothing
Is this the whole chain, or was the end cut off?only with an anchorthe latest head, kept outside the file
Did this history exist before a certain time?only with a witnessa signed statement from someone else

A question that was not checked is reported as not checked — never as passed.

Try it

pip install palimpsests
palimpsests demo                                # writes and verifies a small audited run
palimpsests pala verify palimpsests-demo.pala   # the auditor's check — no key needed

Exit codes: 0 verified · 1 violation — the check was made and did not hold · 2 partial — intact, but no anchor was supplied, so a cut-off end would not have been detected · 3 unreadable.

Limits, stated

Tamper-evident means a change is detectable, not impossible. An attacker who holds both the encryption key and write access to wherever the anchor is kept can forge the chain and its anchor together. Catching that needs a commitment outside the host — a hardware token or an external transparency service; see anchors without a network. How each of these pieces fits into a tamper-evident audit log is explained in a separate note.

Questions

What does tamper-evident mean for an audit log?

It means a change to the log is detectable by someone who did not make it, not that a change is impossible. In a PALA-1 log every record names the hash of the record before it, so an altered, removed or reordered record breaks the chain at a point the verifier names.

Can an auditor verify the log without the decryption key?

Yes. Verification walks the record headers and checks each body against the digest in its header. Bodies are never decrypted, so the key that protects their content is never needed and never handed over.

What can the file alone not prove?

Two things. That nothing was cut off the end needs an anchor: the latest chain head, kept outside the file. That the history existed before a certain time needs a witness: a signed statement from someone else. A question that was not checked is reported as not checked, never as passed.

Does verification need a network connection?

No. A PALA-1 log is verified offline, on any machine, from the published specification. Nothing is sent anywhere.

Read more