ConfigHub · Durable config for coding agents
Docs / docs/signed-records.md Source on GitHub →

Signed records: check that nobody changed them

This page is for a team that relies on the Claude plugin's record of what its agents changed: in a review, an audit or an incident. The record is a file. Anyone who can write to its folder, including an agent told to tidy up, can change a value or a reason afterwards, and nothing would show it. Signing lets anyone check that the record is still as it was written.

The Claude plugin signs each entry of the record as it writes it: each thing it notes, such as a value changed or a command run. Each signature is linked to the one before, and has a line in the folder's list of signatures, signatures.jsonl, beside the folder's sessions (one session is one Claude Code conversation; a turn is one request in it and the agent's work on it). If an entry is changed, added or taken out after it was signed, or a session is removed or cut back, a check names it.

Nothing is asked of you or the agent. CUB_MINI_SIGN=0 turns it off.

Checking the record

Run:

bin/confighub mini changes --verify

You will see something like:

The records of /work/shop:
  ok   session 255c6769: 1 turn signed, unchanged since (key e6ce0a1eb16e)
  ok   .cub-mini/changes/255c6769-eb67-4f4f-bdfd-a57103ecd696.record: signed, unchanged since (key e6ce0a1eb16e)

A record changed after it was signed is marked NOT, with the session, the file and the turn. The command then fails, so a CI job can stop on it. For example, for an entry written in after the record was signed, and for a session removed:

NOT  session s1: 1 entry after the last signature was never signed: the first is entry 8 of entries.jsonl, turn 2 (a change to k8s/api.yaml: Deployment/api/spec.replicas 6 to 20); written in after the record was signed, or left by a hook stopped before it could sign
NOT  session s1: removed: the folder's list of signatures has 7 signatures of it, the last at 11 November 12:01, and its record is gone

Two cases are marked -- and do not fail the check. An entry from the last minute that is not signed yet is an unfinished write; after a minute it is marked NOT. A session with no signatures at all, made with CUB_MINI_SIGN=0 or written in as a file, is marked -- too.

cub agent changes, /confighub:why and the review show only entries a signature covers. cub agent changes says what it leaves out, in a line that starts Not shown:.

In the pull-request review. The review comment opens with one line: Records in the repository: 1 signed and unchanged. If a record in the repository was changed after it was signed, the review names it there, in bold.

Checking with standard tools

The signatures use open formats, so you can check them without the Claude plugin:

To check a record with Sigstore's cosign:

  1. Keep the record in the repository with CUB_MINI_RECORD_IN_REPO=1. Each .cub-mini/changes/SESSION.record then has its signature beside it, SESSION.record.intoto.json, committed with it.
  2. Write out this machine's public key, and check the record against it:
    bin/confighub mini changes --signing-key > key.pem
    cosign verify-blob-attestation --key key.pem --type https://confighub.com/agent-changes/record/v1 \
      --signature .cub-mini/changes/SESSION.record.intoto.json --insecure-ignore-tlog .cub-mini/changes/SESSION.record

On a record that hasn't changed, cosign prints Verified OK.

--insecure-ignore-tlog is there because the signature is not in Sigstore's public log. See "Not yet", below.

With a hub: a copy to compare against

ConfigHub is a hub: a place where your configuration is kept, with every change, who made it and why (ConfigHub docs). A hub is a ConfigHub server. The local hub is ConfigHub, small, for one machine (install the local hub). With the local hub, CUB_MINI_KEEP_IN_HUB=1 keeps changes in the hub.

Each change kept in the hub then has an attestation beside its revisions in ConfigHub. An attestation is a statement that ConfigHub stores; this one is of type AgentRecord. It holds:

ConfigHub records the attestation with its own time, and never changes it. --verify does not read it. A record rewritten and signed again by whoever holds the key shows only when you compare it with the attestations the hub kept, and that comparison is done by hand today.

Signing with the agent's own identity

On a laptop, the machine's key is enough: one person, one machine. An agent that runs unattended on a cluster is different. Several agents may share a node, and the platform team, not the agent, decides which of them may act. For that case, the record can be signed with the agent's own workload identity instead of the machine's key.

Priya's story. Priya runs the platform team for a GPU training cluster. Every night an agent, nightly-tuner, adjusts the batch workers. The cluster gives each workload an identity with SPIRE, and Priya points the Claude plugin at the agent's.

  1. Which agent made this change? One night the agent raises the workers from 4 to 6. In the morning Marco, who is on call, runs --verify. It names the agent, and checks that the cluster's own authority issued its identity:
    ok   session night-1: 1 turn signed, unchanged since, by spiffe://example.org/ns/agents/sa/nightly-tuner
  2. Priya withdraws the agent. The agent's changes start to look wrong, so Priya removes its SPIRE registration. SPIRE stops renewing its certificate, and the certificate expires. The agent, still running, makes one more change, from 6 to 8. That change is recorded, with the request behind it, but it is not signed, and the check says why and fails:
    ok   session night-1: 1 turn signed, unchanged since, by spiffe://example.org/ns/agents/sa/nightly-tuner
    NOT  session night-2: not signed since 27 October 10:41: the workload identity expired at 2026-10-27T10:38:26Z

    The first night's turn still passes: a certificate is checked as of the time it signed, not as of today. The Claude plugin never falls back to the machine's key, because a record signed by the machine would hide that the agent had lost its identity.

  3. Someone edits the record. Marco changes the first night's 6 to a 5 in the file. The check names the turn that no longer matches, and fails.

The words. A workload identity is a short-lived certificate that a cluster gives a program. It names the program, not the machine it runs on. SPIFFE is the open standard for these identities, and SPIRE is its most widely used implementation. An identity is a URI such as spiffe://example.org/ns/agents/sa/nightly-tuner. The certificate that carries it is called an SVID, and it usually lives for an hour or less. SPIRE renews it for as long as the platform team allows. The trust bundle is the set of certificates of the authority that issues the identities; you check an identity against it.

What you do. Run spiffe-helper beside the agent, so that SPIRE's files are written to a folder the agent's container can read, and set these in the agent's environment:

SettingWhat it is
CUB_MINI_SIGNING_CERTThe agent's certificate (its X.509 SVID), in PEM
CUB_MINI_SIGNING_KEYIts private key, in PEM
CUB_MINI_TRUST_BUNDLEThe trust bundle, in PEM. Set it wherever you run --verify

Each entry is then signed with the identity's key, and the signature carries the certificate, so anyone with the trust bundle can check the record.

What it does not do.

It works with SPIRE 1.15.5 and spiffe-helper 0.10.1.

What it proves, and what it does not