For AI systems that will be asked what they did
Commit to a model’s answer now. Prove it later. Erase what the law says to erase.
Three questions come up once an AI system answers for real: which model produced this answer, from which input; could anyone, the cloud provider included, have swapped the record of it since; and how can personal data be erased without tearing a hole in the audit trail. This page shows what the evidence log does about each, and where each one stops.
Commit in microseconds, prove later
At each model call worth accounting for, the agent takes three SHA-256 fingerprints, of the model’s weight
files, of the exact input and of the exact output, and seals them as one ai.inference record of the
AI Act pack. Taking the fingerprints costs microseconds, so it runs on
a real-time agent’s path; our tests hold the median under a millisecond. The weights, the prompt and the answer
never leave you: the record and its salt stay in your journal, and only the record’s salted fingerprint
reaches the log, which fixes when it existed.
The proof follows, in whichever of three ways fits:
- Re-execution
- Someone you let hold the weights, an auditor or a supervisor, runs the same input with the same decoding settings and compares the output’s fingerprint with the record. With deterministic decoding this shows the answer came from that model and that input. It needs no special hardware and no trust in us.
- A hardware attestation
- See below: a confidential-computing GPU or CPU attests the run, tied to this call.
- A zero-knowledge proof
- For linear and logistic scoring models, our own proof, below. For other models, any proof system’s proof file: its fingerprint goes in the record and that system’s own verifier checks it.
Zero-knowledge proofs for scoring models, in under a millisecond
Most credit, risk and fraud decisions still come from a linear or logistic scoring model: a bias plus a weight for each input. A firm commits once to its model, one commitment per weight, and seals the commitment in the log when the model goes live. For each decision it can then hand a supervisor, an auditor or the customer a proof that the committed model, applied to this input, gives this score. The proof shows nothing about the weights beyond that score.
- How fast
- Making a proof is one elliptic-curve multiplication: our tests hold the median under a millisecond with twenty inputs. Checking one takes a few milliseconds and needs only the public commitment.
- Why it holds
- Pedersen commitments on the P-256 curve and a Schnorr proof, standard constructions; a firm that could prove a score its committed model does not give could break the curve. Two verifiers, in JavaScript and Python, written separately, check every proof, and the test vectors are published.
- What it shows
- The input and the score: that is what a checker needs to see. Scores of a linear model on enough different inputs, one more than it has inputs, determine its weights, so show proofs to the parties who need them rather than to everyone.
- Decision trees too
- A single decision tree, its shape public and every threshold and leaf value hidden: each proof shows the path an input takes and the output at its leaf, and nothing about any threshold or other leaf. Each comparison on the path is proved with a range proof, so a tree proof takes tens of milliseconds per node rather than under a millisecond. Same tools, same two verifiers.
- What it does not cover
- Forests and boosted ensembles, neural networks and large language models. A zero-knowledge proof of a large language model’s answer in under a millisecond does not exist anywhere today, and we do not claim one: those models are committed and proved later, above.
node zk.mjs commit model.json --secret <hex> > commitment.json # once per model version
node zk.mjs prove model.json --secret <hex> --input in.json > proof.json
node zk.mjs verify commitment.json proof.json # anyone, with no secret
The tool ships in the conformance kit and the open-source verifier (Apache-2.0).
A GPU attestation that nobody can swap afterwards
Confidential-computing hardware (NVIDIA H100 and Blackwell in confidential-computing mode, AMD SEV-SNP, Intel
TDX) can sign a report saying it ran in that mode, for a nonce you choose. Before the call, ask for the
attestation with the nonce riskrouter-inference-nonce|1 derives from this model and this input;
after it, the token’s fingerprint goes in the call’s record.
- Tied to the call
- The nonce comes from this model and this input, so a genuine attestation from another call cannot be passed off as this one’s: the check finds the nonce does not match.
- Fixed in public
- Once the record is in the log, nobody, you, your cloud provider, an administrator or us, can swap the token, change which model was claimed or move the time. The log’s signed heads are cosigned by independent witnesses and anchored in Bitcoin.
- Signature checked
- Given the vendor’s published key set, saved by you, our checker verifies the token’s signature offline (ES256 or ES384), every per-GPU token, and that the vendor’s overall result is a pass. Two checkers, in JavaScript and Python, give the same verdict.
- Where it stops
- That the hardware behind the vendor’s keys is honest: every hardware attestation rests on that, and no checker can remove it. Our checker has been tested with keys we generated in NVIDIA’s token format, not yet with a token from a real H100 or Blackwell GPU.
Erase personal data without breaking the trail
The log never held a record, only salted fingerprints, so nothing in it ever has to change. What changes is what you keep.
- A whole record
- Delete the record and its salt in every copy. The fingerprint stays in the log and still verifies as part of the tree, but it points to nothing anyone can recover.
- Some fields, keeping proof of the rest
- Seal a record field by field, and later erase only the
personal fields:
records.mjs redactkeeps a bundle that still proves every other field was sealed unchanged, with each erased field left as a commitment. Once you destroy the secret the fields were sealed with, nobody, you included, can re-prove an erased value or find it by guessing. Both published verifiers check the redacted bundle. - The erasure itself
- Record it as a
gdpr.erasurerecord of the GDPR accountability pack, naming the erased record’s fingerprint. That shows when the erasure was recorded, never that every copy is gone: destroying the copies and the secret is your act.
None of this makes anyone compliant with Article 17 of the GDPR; it lets an erasure and an audit trail stand side by side.
Use it
import { createRecorder } from 'riskrouter-recorder';
import { modelDigest, commitInference } from 'riskrouter-recorder/inference';
const recorder = createRecorder({ apiKey: process.env.RISKROUTER_API_KEY });
const MODEL = modelDigest(['weights/model-00001.safetensors', 'weights/config.json']); // once per version
commitInference(recorder, { systemRef: 'claims-assistant', modelDigest: MODEL, input: prompt, output: answer,
decoding: 'vllm 0.6.3; temperature 0; seed 7', attestation: { kind: 'nvidia-cc-gpu', token } });
node inference.mjs check bundle.json --input prompt.txt --output rerun.txt --attestation token.jwt
node records.mjs redact record.json --secret <hex> --salt <hex> --proof proof.json --erase subject_email,subject_name
Downloads: inference.mjs and the Python module in the recorder kit (Apache-2.0, no dependencies). The model fingerprint and the nonce are fixed strings with published test vectors. Recording needs a key; a sandbox key is free, with no form and no contract.