The record
The fields of a signed record, how it is signed, and how records chain.
A record is a JSON object that describes one action. This is a tool call as an MCP server signs it, with long values shortened:
{
"spec_version": "atrib/1.0",
"content_id": "sha256:3f8a…9b1d",
"creator_key": "q7Zk…Lw0",
"chain_root": "sha256:064b…c2a7",
"event_type": "https://atrib.dev/v1/types/tool_call",
"context_id": "7f71199d4e8c40a2b1f3d5e6a7c8b9d0",
"timestamp": 1796569200000,
"signature": "Mx3v…9QA"
}Fields every record carries
| Field | What it holds |
|---|---|
spec_version | Always atrib/1.0. A verifier rejects any other value. |
creator_key | The signer's Ed25519 public key, base64url without padding (43 characters). |
event_type | An absolute URI naming the kind of action. |
context_id | 32 lowercase hex characters that group records into one session or run. |
timestamp | Unix milliseconds, as the signer declares it. |
chain_root | The hash of the record before this one in the context. See The chain. |
signature | Ed25519 over the record without this field, base64url (86 characters). Transactions carry a signers array instead. |
Tool calls and transactions also carry content_id, which names who served the
action: "sha256:" + hex(SHA-256(server_url + ":" + tool_name)). It identifies
the server and tool, not the response.
Event types
atrib defines six event types. Anyone can mint their own as a URI in a namespace they control, and a verifier checks it the same way.
event_type ends in | Meaning |
|---|---|
tool_call | An agent called a tool. |
transaction | A payment or checkout completed. Needs two signers: agent and counterparty. |
observation | Something the agent noted, with no required referent. |
annotation | A note on an earlier record, named in annotates. |
revision | A claim that replaces an earlier one, named in revises. |
directory_anchor | A key directory's commitment to its current state. |
Optional fields
Optional fields are left out when unused, never set to null, because their
presence changes the signed bytes.
informed_by: hashes of earlier records the signer says informed this one.annotatesandrevises: the target of an annotation or a revision.provenance_token: on the first record of a session, a 16-byte link to the record it continues from.tool_name,args_hash,result_hash, and their salts: what the signer chooses to disclose about the call. The hashes commit to the arguments and result without revealing them.timestamp_granularity:s,min,hordwhen the time is coarsened.session_token: a 16-byte token that marks records in different contexts as one logical session, for work that crosses trace boundaries.
A few more, such as delegation_cert_hash and checkpoint, are listed with
their rules in the spec.
Signing
The signer serializes the record without signature using JCS (RFC 8785),
which sorts keys and removes whitespace, then signs those bytes with Ed25519
(RFC 8032). The signature goes back on the record.
The record's hash is different from what was signed. It is SHA-256 over the
JCS form of the complete record, signature included. That hash is what the log
commits to, what the next record's chain_root points at, and what other
records cite in informed_by.
The chain
The first record in a context has no parent, so its chain_root is the hash of
the context itself:
chain_root = "sha256:" + hex(SHA-256(context_id))Every later record's chain_root is "sha256:" + hex(record_hash) of the
record before it. Anyone who has the records can walk the chain and see a gap
or a fork.
What the log stores
The log receives the signed record so it can check the signature and the fields,
then stores only a 90-byte entry: a version byte, the record hash, the creator
key, the context id, the timestamp and one byte for the event type. The hosted
log at log.atrib.dev also passes the signed record, which by default holds
hashes and not contents, to graph.atrib.dev to build the graph. Arguments,
results and notes stay with the signer.
The full field list, with every rule, is in spec §1.2.