attest_record
Seals a data record with its source reference, extract hashes, and retrieval timestamp into a signed Ed25519 provenance capsule for later verification.
Instructions
Wrap one record in a signed provenance capsule: the payload, its source reference, the hashes of the source extracts it rests on, and the retrieval timestamp, sealed and signed with the configured Ed25519 key. The capsule is the version 2 unified envelope unless version 1 is asked for: it carries a record type (FACT, OBLIGATION, SOURCE, or EXPERIENCE) and a link to the author previous capsule. When a chain is configured, the capsule is also appended to the chain and carries its chain link, and the author link is read from the chain. Needs a signing key (the PROVENANCE_SIGNING_KEY environment variable).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"source": "<source>"
},
"name": "attest_record"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| record | No | The record to attest, as a JSON object. It is sealed into the capsule as given. | |
| source | Yes | ||
| extract | No | The source extract the record came from, exactly as captured. It is hashed into the capsule and never stored. | |
| payload | No | The payload to attest, under the envelope name. Same argument as record; either name works. | |
| version | No | The envelope version to seal. Defaults to 2, the unified envelope. | |
| extracts | No | For a version 2 capsule resting on more than one source extract: every extract, exactly as captured. Each is hashed into the capsule and never stored. When given, it replaces extract. | |
| chain_path | No | Optional. Path to the chain file. Falls back to the PROVENANCE_CHAIN environment variable. | |
| record_type | No | The record type for a version 2 capsule. Defaults to FACT. | |
| retrieved_at | No | Optional. When the record was retrieved from its source, in UTC, for example 2026-12-01T06:00:00Z. Defaults to now. | |
| author_previous | No | For an unchained version 2 capsule: the capsule id of the author previous capsule, when this is not the author first. On a chain the link is read from the chain itself. |