Expand description
Signed, reproducible artifact (#238).
Wraps an AbReport into a portable, tamper-evident attestation. Two guarantees:
- Reproducibility —
determinism_digestis a SHA-256 over the evidence only (task ids, context + answer digests, scores, model fingerprint, stats config, verdict). Timestamps and the build version are excluded, so the same inputs yield the same digest on any machine. - Integrity + origin — an Ed25519 signature over the canonical bytes (signature fields
cleared) proves the artifact was produced by a specific key and not altered since. This
mirrors the established
savings_ledger::signed_batchpattern exactly.
Structs§
- AbVerify
Result - Outcome of verifying a
SignedAbReportV1. - Signed
AbReport V1 - A signed A/B quality attestation.
Functions§
- default_
artifact_ path - Default artifact location:
<data_dir>/eval/ab-report-v1_<utc-stamp>.json. - determinism_
digest - Computes the machine-independent run digest (records sorted by id for a canonical order).
- load_
artifact - Loads + parses an artifact, rejecting unrelated JSON by
kind. - write_
artifact - Pretty-prints the artifact to
out(creating parent dirs). Returns the written path.