Sacral conformance checker

Take-home build. One self-contained file: no network calls, no fonts, no analytics. The file you check is read on this device and never leaves it.

What it checks

Conformance to Sacral's audit-export format: six evidence classes (schema, chain, consent, facts, decision, summary), each reported PRESENT or ABSENT with the exact gap. Absence is reported, never assumed. An export from another system must first be mapped to this format by the party producing it - the mapping is their work, and this tool checks the file, not the system that produced it. A conformant result says the mapped file meets this format, nothing more.

Versioning: this build reads major version 1 of the format (any 1.x). Any other major fails closed. Policy: docs/audit-export-format-versioning.md in the repository.

How to read a result

Every class is reported PRESENT or ABSENT with the exact gap. Absence is reported, never assumed. An error fails closed - an error is never treated as a pass (an unsupported major is reported ABSENT at the schema class; an unreadable or invalid file means no check ran).

Sacral mode: ALL SIX CLASSES PRESENT means this file meets this format as mapped - nothing more. It does not say the recorded events happened, it does not authenticate the source or signer, and it is a mapping, not a conformity assessment of the system that produced the file. NOT CONFORMANT lists the exact gaps; it does not say why they are there or who changed what.

AAT mode: MANDATORY FIELDS PRESENT, CHAIN VERIFIES means the records carry the draft's Section 3.1 mandatory fields and the prev_hash chain recomputes per RFC 8785 canonical JSON. FINDINGS lists the specific problems when it does not. Two of Sacral's six classes are always ABSENT at the format level, because the draft defines no fact-attestation record type and no session-summary record type - that is a property of the draft, not of your file.

Batch runs: each file gets its own verdict; a failure in one file says nothing about the others. The print button prints the result you see. Everything runs on this device; the files you check never leave it.

Choose what to read


Select one or more files. Each file is read and checked on this device; nothing is sent anywhere.

No export at hand? Try these synthetic sample files - open one, save it, then drop it into the picker above:
Passing Sacral 1.x export (synthetic demo data; all six classes present)
Incomplete Sacral 1.x export (synthetic demo data; consent and decision classes absent - the gap-report example)
AAT draft sample session (synthetic demo data; switch to AAT mode above first)
These files are not hand-made: each one regenerates byte-for-byte from its builder script (build-conformance-fixtures.mjs, build-aat-sample.mjs), so what you download is exactly what the script produces.
A passing result still means only that the file meets the format - a mapping, not a conformity assessment.

Producing an export?

This checker reads major version 1 of the Sacral audit-export format (spec: docs/audit-export-format.md). Six classes are checked; every class reports PRESENT or ABSENT with the exact gap - absence is reported, never assumed.

1. schema - the top-level fields are present (schemaVersion, boundary, caseId, market, policy, status, generatedAt, events, tip, summary); this checker accepts schemaVersion major 1 and expects the boundary label "SYNTHETIC DEMO DATA ONLY".
2. chain - events are hash-chained from genesis: sequences run 1..n, each event's hash recomputes over its sequence, type, actor, details and previousHash, and the final chain tip matches the recorded tip.
3. consent - a consent.granted or consent.denied event, recorded before any facts or checks.
4. facts - a facts.captured or facts.blocked event.
5. decision - a bank.decision or decision.blocked event.
6. summary - the summary counts match the events present: auditEvents, checks, workflowExceptions (never less than the exceptions recorded in decision.blocked details), and writeback matching the presence of adapter.writeback.

A passing result still means only that the file meets the format - a mapping, not a conformity assessment.