BoundedAuthorityProtocol. Conformance. Corpus
(Bounded Authority Protocol v0.1.0)
Copy Markdown
View Source
Pure loader and integrity verifier for the portable conformance corpus.
load/1 takes %{path => binary} (no I/O), decodes every .json file through
BoundedAuthorityProtocol.V1.Json.decode/2 at Bounds.maximum(), and verifies every
corpus-integrity property named by the conformance contract:
- per-file SHA-256 (
.jsonand.raw) against the index, - exact file-set equality both directions,
- per-file and total case counts,
- corpus-wide case-id uniqueness,
- applicability totality (every surface exactly 28, every class leaf exactly 16, required cells
nonempty,
n_acells empty), and - tamper verbatim-vs-derived byte equality and
.rawhash binding.
.raw sidecars are hash-verified and carried as opaque binaries; they are never parsed.
Every failure returns the fixed value-free {:error, :invalid}. The loaded corpus carries
decoded cases, sidecar bytes, and the index for the runner and report.