Demonstrates the PEAC evidence carrier contract with A2A (Agent-to-Agent Protocol) task state transitions. A gateway agent issues one receipt per state change and attaches it to the A2A TaskStatus metadata.
pnpm install
pnpm demo- Declares PEAC support in an Agent Card extension
- Issues a receipt at each state transition (submitted, working, completed)
- Attaches receipts to A2A TaskStatus metadata via the carrier contract
- Extracts receipts from metadata on the consumer side
- Verifies each receipt offline
Consumer Gateway Agent
| | |
|--- task ------->| |
| |-- receipt #1 --> (submitted)
| | |
| |-- receipt #2 --> (working)
| | |
| |-- receipt #3 --> (completed)
|<-- receipts ----| |
| | |
(verify chain)
Each receipt records the state transition as an observable fact. Receipts are attached to A2A TaskStatus.metadata under the PEAC extension URI.
The agent-card.json file declares PEAC support:
{
"uri": "https://www.peacprotocol.org/ext/traceability/v1",
"required": false,
"params": {
"supported_kinds": ["commerce", "attestation"],
"carrier_formats": ["embed"]
}
}