pub fn attest(repo: &Path, command: &str) -> Result<Attestation>Expand description
Run command in repo, write the branch’s receipt to
repo/RECEIPTS_DIR/<branch_slug>.json, prune the receipts other
branches left behind (and the retired single-file attestation), and commit.
Returns the attestation.
Writes regardless of the command’s exit code — the record is the decision and what ran, and the honest result is part of the record.