Documentation

Evidence and offline verification

Your ledger can be handed to someone else as one file. They can check all of it on their own machine, with no access to your workspace and no network connection.

Export

An export is called an evidence pack. It holds every ledger entry in order and the signed head over them.

From the command line:

countersign export -o ledger.cbor
wrote ledger.cbor (48213 bytes). Verify it anywhere: countersign verify ledger.cbor --pin 9f2c...

Without -o the file is countersign-pack.cbor. The file is readable only by your user.

In the console: open Evidence and choose Export evidence pack.

Over the API: GET /v1/export returns the pack as application/cbor. A pack over 3 MB comes in parts: see the API reference.

A pack is the ledger as it stood when the export began. Its signed head says how many entries it holds and when. Entries recorded while a long pack is still coming down are not in it. Export again to have them.

A pack contains everything the ledger contains, including every command, file path and URL that was recorded. Treat it accordingly.

The engine key

A verifier needs to know which engine the ledger should have come from. That is the engine key: the public half of the key your workspace's engine signs with. Give it to the verifier through a channel other than the pack itself, such as a contract or a message. Recording a key this way is called pinning.

  • countersign export prints it in the verify command it suggests.
  • countersign status prints it as decision_pub.
  • The console shows it on the Evidence page under "Engine key to pin".

countersign verify

countersign verify ledger.cbor --pin 9f2c...

verify needs only the file. It does not contact the engine and needs no workspace on the machine.

PASS  ada@laptop (tn_4be1...)
  88 events, gapless and chained, root 51d0...
  every signature checked, every decision recomputed from the recorded policy
  allowed 41 · denied 3 · escalated 1 · refused 0 · approvals 1 · outcomes 38 · mandates 1 · revocations 0 · policy versions 2
  signer: software
  engine key matches the pin

On failure it prints FAIL: with the reason and exits with status 1. When one entry is at fault, the reason gives its number.

What it checks

  • The entries are numbered with no gaps and each one carries the hash of the one before.
  • Every owner signature: on each passport, each amendment, each policy version, each rollout, each approval, and each revocation that carries one.
  • Every agent signature: on each ask and each outcome report.
  • Every engine signature: on each decision and on the ledger head.
  • Every passport's life: nothing was decided under a passport after it was revoked or after it expired.
  • Every decision: the recorded policy is run again for each ask, and the result must equal the recorded decision. A decision that does not follow from the policy in force at the time fails.
  • The signed head commits to exactly these entries.

Without --pin

  NOT PINNED: engine key 9f2c... was taken from the pack itself. Pass --pin to tie this to the engine you expected.

The pack is then shown to be consistent with itself. Nothing ties it to the engine you expected. Someone could build a complete, consistent ledger under a key of their own. Always pin when the result matters.

Passports bound to the Agent Name Service

If the ledger holds passports bound to an ANS identity, verify lists them. Add --ans-roots ca-bundle.pem to check each certificate against the ANS authority's certificates as well. See Agent Name Service support.

The browser verifier

The same verifier is compiled to WebAssembly and runs in the browser. Nothing is uploaded.

On the console's Evidence page:

  • Verify my ledger exports your ledger and verifies it against the engine key held in the browser.
  • Verify a pack file takes a file from your disk. A file checked this way is not pinned, and the result says so: "Internally consistent. No engine key was pinned for this file."

On a receipt on the Activity page, Verify this receipt checks that one entry.

The browser verifier does not check ANS certificate chains.

A long ledger

Checking is done in memory, so a longer ledger takes more memory and more time. Measured on one of our machines, on entries of about 650 bytes:

Entriescountersign verifyThe browser verifier
100,0004.5 seconds, 0.3 GBabout half a minute, 0.4 GB
1,000,00046 seconds, 2.6 GB5.5 minutes, 3.7 GB

The million-entry figure for the browser verifier is the same verifier run outside a browser. In a browser the page does not respond while it runs, and a tab gives it 4 GB at most. Check a ledger of more than a few hundred thousand entries with countersign verify.

One pack holds up to 16,777,216 entries. A command-line tool older than build 2026.11.29.1 stops at 131,072: see Updating.

How long a pack stays readable

A pack is evidence you keep, so it has to stay checkable after the build that wrote it is gone. This is what holds today and how it is held.

  • A newer verifier reads an older pack. A pack names its format. Every build from 2026.11.27.3 on writes countersign.pack.v2, and every later build reads it: countersign verify, the browser verifier and the console's Evidence page, which are the same code.
  • That is tested on every build, against packs earlier builds wrote. Packs written by builds 2026.11.27.4, 2026.11.27.5 and 2026.11.29.1 are kept in the source as they were written. Between them they hold every kind of entry those builds could write. Each new build has to verify all of them before it is released, and a change that makes one fail is not shipped.
  • A pack names the build that wrote it, from build 2026.11.29.2. countersign verify prints it. The name sits outside everything that is signed, so it proves nothing: it is there so that someone holding a pack years later knows which program made it. A command-line tool older than 2026.11.29.2 that downloads a pack is sent it without the name, because it would refuse a field it does not know.
  • An older verifier may refuse a newer pack. When a build adds a new kind of entry, a verifier from before it refuses the whole pack. It does not skip what it does not understand, because a verifier that skips entries is not checking the record. The message says the pack may be newer than the verifier. Update the verifier and check again.
  • A format this build cannot read is not reported as tampering. The verifier says which format the pack is in and which builds read it, and that nothing in the file was checked.
  • One format is no longer read. countersign.pack.v1 was written by builds before 2026.11.27.3, before the service had customers. No later build reads it. See Updating.

If a later format ever replaces countersign.pack.v2, later builds will go on reading v2 packs, by the same test. If a format ever has to be retired, the last build that reads it will first be published at an address that names the build, with its checksum on this site, and What's new will say so before it happens.

What this does not cover: a verifier is a program, and you need a machine that can run it. The format a pack is written in, byte by byte, is in the source and is not yet published as a page of its own, so today checking a pack means running our verifier or reading our source.

One receipt or the whole ledger

These are two different checks.

One receiptThe whole ledger
What you needThe receipt and the engine keyThe pack and the engine key
ShowsThe entry is in the signed ledger at that positionEverything in "What it checks" above
Re-runs the policyNoYes

A single receipt shows what was asked and what answer was recorded. It does not show that the answer follows from the policy. That needs the whole ledger.

You can publish one receipt as a link that anyone can open.

countersign share 42

42 is the receipt number from the start of a line in countersign log. share shows exactly what will become public, then asks.

Publishing receipt #42 makes this readable by anyone with the link:

  workspace   ada@laptop
  when        20 Nov 2026 14:02 GMT
  tool        Bash
  app         claude
  command     git push origin main
  cwd         /Users/ada/app
  kind        shell
  mode        monitor
  program     git

Nothing in a signed receipt can be hidden afterwards. You can take the link down, but not recall copies.
Publish? [y/N]

After you confirm, it prints the link and the command that takes it down.

What becomes public

Everything in the entry: the workspace name, the time, the tool, the target, and every fact the hook recorded, including the command and the working directory. A receipt is signed as a whole. Nothing in it can be removed or hidden later.

Two safeguards apply:

  • Only an agent action can be published. Passports, policy versions and approvals cannot.
  • A receipt whose recorded details look like they hold a credential is refused. This is a pattern check. It can miss a secret in a form it does not know. Read the preview before you confirm.

Where the receipt goes

  • A workspace on your own machine has no public address. share uploads the receipt to the hosted service at https://app.trycountersign.ai and the link points there. This is the one case in which data leaves a local setup, and only for the receipts you publish. --to URL publishes to a different engine.
  • A hosted workspace publishes an entry of its own ledger.

What the page shows

The page at /r/<id> fetches the receipt, verifies it in the visitor's browser, and shows the action from the verified bytes. If the receipt does not verify, the page says so and shows nothing else.

The page states who kept the ledger:

  • For a hosted workspace, the hosted engine made and signed the decision.
  • For a workspace on your own machine, the ledger is kept by you and signed with your own software key. The receipt shows the record has not been changed since it was written. It is your own record. No outside party witnessed it.

In both cases the visitor is checking against the key the page names. To be sure that key is yours, they should compare it with a key you publish somewhere else.

List and take down

countersign share --list          # what this machine has published
countersign share --revoke ID     # take one down

A link that has been taken down no longer shows the receipt. Copies that someone already saved are out of reach.

For a receipt uploaded from your own machine, the take-down token is kept in ~/.countersign/shares.json. It is the only way to take that receipt down. Keep the file.

In the console of a hosted workspace, open the receipt on the Activity page and use Publish as a public link and Take the link down.

What the evidence establishes

QuestionAnswer
Who authorised the agent?Shown, by the owner's signature on the passport.
Did the agent ask for exactly this?Shown, by the agent key's signature on each ask.
What was decided, and under which policy?Shown, by the engine's signature and a recomputation anyone can run.
Was any entry changed, dropped or reordered?Shown, by the hash chain and the signed head.
Did the action really happen as reported?Not shown. An outcome is the agent's own report.
Did the engine run in tamper-resistant hardware?Not shown. Decisions are signed by a software key.
Was the whole history rolled back to an earlier state?Detectable only by someone who kept a later head or receipt. Ledger heads are not published anywhere public.
Is the time on an entry correct?Not shown. Times are the engine's clock.
Did anything happen that was never asked for?Not shown by the ledger. See Fleet rollout and Coverage.

Keeping your own copies helps with the rollback case. An export or a receipt you saved earlier holds a signed head. A ledger that was later cut back cannot contain that head's entries.