{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://agent-receipts.dev/schemas/receipt-v1.schema.json", "title": "agent-receipts/v1 receipt", "type": "object", "required": [ "schema", "id", "vault_id", "sequence", "issued_at", "action", "payload_hash", "prev_receipt_hash", "key_id", "public_key", "signature" ], "properties": { "schema": { "const": "agent-receipts/v1" }, "id": { "type": "string", "pattern": "^rcpt_[a-z0-9]+$" }, "vault_id": { "type": "string", "pattern": "^vlt_[a-z0-9]+$" }, "sequence": { "type": "integer", "minimum": 1 }, "issued_at": { "type": "string", "format": "date-time" }, "action": { "type": "object", "required": ["type", "summary"], "properties": { "type": { "type": "string", "minLength": 1 }, "summary": { "type": "string", "minLength": 1 }, "actor": { "type": "string" }, "principal": { "type": "string" }, "context": { "type": "object", "additionalProperties": { "type": "string" } } }, "additionalProperties": false }, "payload_hash": { "oneOf": [{ "type": "null" }, { "type": "string", "pattern": "^sha256:[0-9a-f]{64}$" }] }, "prev_receipt_hash": { "oneOf": [{ "type": "null" }, { "type": "string", "pattern": "^sha256:[0-9a-f]{64}$" }] }, "key_id": { "type": "string", "pattern": "^key_[0-9a-f]{16}$" }, "public_key": { "type": "string", "description": "Base64 SPKI DER encoding of the issuer's Ed25519 public key" }, "signature": { "type": "string", "description": "Base64 Ed25519 signature over the JCS-canonical JSON of all fields except this one" } }, "additionalProperties": false }