Skip to Content
The capsule

The capsule: a record of one action that anyone can check

An Agent Action Capsule is a small JSON record of one agent action and how it came out, including refusals and timeouts. It holds digests of what went in and what came out, never the content, and its id is a hash of its own bytes.

The problem

A log line can change after it was written, and nobody downstream can tell. Sharing the line to make a point means sharing what’s in it. A reader needs a record whose edits show, which they can check without seeing private content.

How the specification answers it

  • Content by digest. The capsule carries request_digest and response_digest, SHA-256 over the canonical (JCS, RFC 8785) form. The bodies stay with the producer. Whoever holds a body can rehash it and compare.
  • An id anyone can recompute. capsule_id is SHA-256 over the canonical capsule with capsule_id removed. A verifier recomputes it and never trusts the carried value.
  • Signing is separate. A producer may sign the 32-byte id in a COSE_Sign1 Producer Envelope. Adding or replacing a signature never changes the id. A valid signature shows which key signed, not who holds the key.
  • No label without evidence. A capsule that says confirmed must carry the response digest. A verifier re-derives the assurance level from what’s in the bytes and reports overclaims.

The capsule is a SCITT Signed Statement profile, so it travels through any SCITT Transparency Service (RFC 9943) and its receipts (RFC 9942).

On a real run

An independent verifier, written by another organisation from the draft text alone (revision -05) before it read any expected value, using only the Python standard library, was run against the published capsule vectors (agent-action-capsule v0.6.0). It recomputed the same capsule_id on 94 of 94 cases and gave the expected result on 91 of 94. Two of the differences were cases where a vector contradicts a rule the text states. That is the point of a second implementation: it found them.

Source: Assault-Consulting/Palimpsests, run record ↗. Vectors: agent-action-capsule/vectors ↗.

request body completion body stay with the producer request_digest response_digest SHA-256 over JCS Capsule effect.type status request_digest response_digest operator, time capsule_id Verifier ✓ idrecomputed ✓ signatureif present ✓ digests capsule_id = SHA-256( JCS( capsule without capsule_id ) ) A producer may sign capsule_id in a COSE_Sign1 envelope. The signature is not part of the id.
The bodies stay local. Their digests go into the capsule, the capsule’s id is a hash of the capsule, and a verifier recomputes all of it from the bytes.

What it does not show

That the action happened in the world as described, that every action was recorded, or who holds the signing key. A capsule shows this action was recorded in this form. The next stories cover the rest: who else recorded it, and whether the history around it was kept intact.

Read the draft

draft-mih-scitt-agent-action-capsule  · selective disclosure  · verify a capsule yourself · explore one field by field