Signed audit checkpoints
Since 0.26.0. Earlier releases have anchors (below), not checkpoints.
A checkpoint states how many events the audit log held and a Merkle root over them, signed with a key of its own, ~/.moat/audit.key.ed25519. Anyone you give the public key can check an export against it, without the audit key and without your machine.
When you need it
Try it
openmoat audit checkpointSigns one now; prints it, its file and the public key. openmoat doctor shows the public key and checks the newest checkpoint.
Change it
Nothing to turn on: the guard writes one every 1000 events and openmoat audit anchor writes one beside each anchor. openmoat audit checkpoint --new-key starts a new key and keeps the old one.
What it does not stop
Events after the newest checkpoint are covered by the chain only. Like the audit key, the signing key is a file that code running as you outside any sandbox can read; a checkpoint already copied elsewhere still shows a later rewrite. All its limits
Protects against someone who can write the audit log deleting or rewriting events and handing over a log that still looks whole, and a reviewer having to trust your machine to check it.
What it does
Section titled “What it does”Each event already carries a MAC made with the audit key, and an anchor records the log’s head outside it, checkable on this machine only. A signed checkpoint can be checked anywhere: it fails when an event it covers was edited, deleted or rewritten, or the log was cut below it.
The checkpoint is in the format transparency logs use (C2SP tlog-checkpoint in a signed-note), so you can keep it where others can see it: give the file and the public key to a reviewer, commit it with your anchors, or have a transparency-dev witness cosign it. OpenMoat sends nothing anywhere.
Example
Section titled “Example”openmoat audit checkpoint # signs one; prints it, its file and the public keyopenmoat doctor # shows the public key and checks the newest checkpointopenmoat audit export > audit.jsonl # the whole log, no filter# on any machine, with the public key `doctor` shows:openmoat audit verify audit.jsonl --checkpoint ~/.moat/checkpoints/000000001000-3f2a9c1e.txt \ --pubkey 'openmoat.dev/audit/3f2a…+…+…'openmoat audit verify --checkpoint checks the signature, then that the export (or, with no file, this machine’s log) still holds the events the checkpoint covers, unchanged. It exits 64 when they do not verify.
What you were shown, and what ran
Section titled “What you were shown, and what ran”When an agent’s call is held for review, its row records the exact text the agent’s prompt showed you (shown: in openmoat show). Where the agent reports a call after it ran (Claude Code), a ran-after-review row beside it says whether what ran is what you were shown:
| Rule | Means |
|---|---|
review-ran-as-shown |
the action that ran is the one held for your review |
review-ran-changed |
something else ran; the row records what |
Both rows are chained, keyed and covered by checkpoints. A changed input is recorded, not blocked: the call has already run.
Commands
Section titled “Commands”| Command | What it does |
|---|---|
openmoat audit checkpoint [--new-key] [--format json] |
sign a checkpoint of the log now; makes the signing key when missing (terminal only) |
openmoat audit verify [<file>] --checkpoint <file> --pubkey <key or file> |
check a signed checkpoint without the audit key |
openmoat audit anchor --git <repo> · --file <path> |
record the log’s head outside it; writes a checkpoint beside it |
After an upgrade
Section titled “After an upgrade”openmoat init, or the first openmoat audit checkpoint, makes the signing key. Logs from earlier releases keep verifying as before. Checkpoints are kept in ~/.moat/checkpoints/.
Limits
Section titled “Limits”- Only events up to the checkpoint are covered by it; later ones by the chain only, until the next checkpoint.
- The key is a file. Code running as you outside any sandbox can read it. A checkpoint already copied elsewhere still shows a later rewrite.
- Witnessing is your step. A witness needs a consistency proof from the size it saw last; OpenMoat submits nothing.
ran-after-reviewrows exist only where the agent reports the call after it ran, with its call id (Claude Code). Elsewhere theshown:reason records what was shown, but nothing records what ran.