Evidence

What a pack contains, and what it proves.

A pack is a view over the append-only ledger, rebuilt at read time, wrapped in an attestation over the sequence range it covers.

Attestation

Every export carries the same attestation block. It names the exact sequence range, the terminal hash, whether the range is contiguous, and which external anchors cover it.

attestation
"attestation": {
  "client": "Northwind Supply",
  "client_slug": "northwind",
  "first_seq": 1,
  "last_seq": 1842,
  "record_count": 1842,
  "terminal_hash": "9f2c4d1e...",
  "contiguous": true,
  "gaps": [],
  "algorithm": "sha-256 hash chain, sorted-key canonical JSON",
  "anchors": [{ "merkle_root": "4c1a9b6e...", "record_count": 512, "first_seq": 1331, "last_seq": 1842 }],
  "generated_at": "2026-11-23T09:14:02Z"
}
Gaps are reported, not hidden. If records are missing from the range, contiguous is false and gaps names where the sequence resumes. An export that cannot be checked is worse than no export.

Delivery

GET /api/v1/evidence/{token}
JSON export, public, ETag, expires with the link.
GET /api/v1/evidence/{token}/pdf
Server-rendered PDF: attestation, policy, identities, oversight, anchors, records.
/share/{token}
Human-readable pack page with print-to-PDF.
Scheduled
A rolling weekly pack per client, optional, generated by the maintenance sweep.

Higher-assurance signing

With signing_mode: hmac_sha256, every decision response carries an x-aprve-signature header computed over a fixed canonical string. The body also reports the algorithm and key prefix, so a caller can tell immediately whether a response was signed.

canonical string
aprve.v1
dec_7f3a91c4b2
1842
9f2c4d1e8b77a41e6c0d3a9b5e8f2d4c7a1b6e9d0c3f5a8b2e7d4c1a9b6e3f2d

signature = hex(HMAC-SHA256(client_secret, the four lines above))
verification, caller side
// The caller already holds the secret, so verification needs nothing from Aprve.
import { createHmac, timingSafeEqual } from "node:crypto";

export function verifyAprveResponse(secret, body, receivedSignature) {
  const input = ["aprve.v1", body.decision_id, String(body.record.seq), body.record.hash].join("\n");
  const expected = createHmac("sha256", secret).update(input).digest("hex");
  const a = Buffer.from(expected, "hex");
  const b = Buffer.from(receivedSignature, "hex");
  return a.length === b.length && timingSafeEqual(a, b);
}

The secret is issued once and shown once from the client page in the console; rotate it there and the previous one stops verifying immediately. The path to a stronger mode is Ed25519 with a published JWKS endpoint, then keys held in an HSM. The canonical string stays the same, which is why it is versioned.

Anchoring

Anchoring sends a Merkle root and a sequence range to an endpoint you configure. Records never leave. It runs on a sweep, never on the decision path, so an unreachable anchor service delays nothing and denies nothing. Records are marked not_required until an endpoint exists rather than sitting in a pending state forever.

A decision you can verify right now
permanent demo decisionALLOW
action
refund.create · $180
rule
Refunds up to 250 USD
record
seq 1
sha-256
078506dc86…8a5948
statement
anchored
receipt
moment-j5xx23u1
dec_demo_permanent

Cite: Aprve decision dec_demo_permanent, seq 1, sha-256 078506dc868d5413af74db8267801c4bf602dea47d0446ef97ca517d5e8a5948