CharterAgreementProtocol. Conformance. Report
(Charter Agreement Protocol v0.1.0)
Copy Markdown
View Source
CAP never authorizes.
Canonical, corpus-identity-bound conformance report. Agreement requires the complete projected result of every case to match its certified expectation.
Summary
Functions
Summarize complete case agreement.
Return the raw SHA-256 identity of exact canonical index bytes.
Encode the complete report as canonical JSON bytes.
Types
@type t() :: %CharterAgreementProtocol.Conformance.Report{ agreed: non_neg_integer(), agreement: boolean(), disagreed: non_neg_integer(), exit_status: 0 | 1, total: non_neg_integer() }
Functions
@spec build(CharterAgreementProtocol.Conformance.Corpus.t(), [map()]) :: t()
Summarize complete case agreement.
Return the raw SHA-256 identity of exact canonical index bytes.
@spec to_bytes(CharterAgreementProtocol.Conformance.Corpus.t(), [map()]) :: {:ok, binary()}
Encode the complete report as canonical JSON bytes.