evidence-verifier validates PolicyGate evidence packs offline
The script checks signatures and record chaining, so auditors need no access to PolicyGate.
An audit gets fragile at the handoff: the evidence pack leaves the organization running PolicyGate and lands with someone who has no access to that system. The evidence-verifier repository from policygate-ai covers that step with verify-evidence.py, a script that validates the pack offline, from its files alone. The project surfaced on Hacker News on November 29.
PolicyGate is self-hosted and stores every policy decision on AI calls as a signed, hash-chained record. The script confirms each record's signature, an unbroken chain with no reordering, the files named in the signed manifest and, when anchors are present, RFC 3161 timestamps from an outside authority.
The sample pack mixes allowed gpt-4o-mini calls and denials, all covered by two FreeTSA timestamps. In a tampered copy of the pack, the third record, a denial, was rewritten as allowed; the script flags that record and exits with code 1.
Without pinning the key through --expect-kid, a pack forged with a fresh key of its own still comes back OK. For a real audit, the README gives:
$ python3 verify-evidence.py --input sample/example-bank.zip \
--expect-kid 0rTFPXvZBXeF6fNuK8MDDc-mN6_PAAaVT60mzCGEDEk --tsa-roots tsa-roots.json \
--require-anchors --anchored-since 2026-11-07T16:07:00Z
The script needs Python 3.11 or newer and ships under the Apache License 2.0. Whoever holds the private signing key can still sign a different chain; section 10 of SPEC.md spells out what a successful run establishes. The auditor still has to decide which separate channel delivers the key id and the date anchoring began.