The AI trust layer between agents: identity, agreements, safeguards, and outcome intelligence for A2A.

Viewing files at commit 296bb55574a2Commit detailsView latest

schemas/v0.1/receipt.schema.json 134 lines · 3.5 KB · json
1
{
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
  "type": "object",
4
  "properties": {
5
    "receiptId": {
6
      "type": "string",
7
      "format": "uuid",
8
      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
9
    },
10
    "interactionId": {
11
      "type": "string",
12
      "format": "uuid",
13
      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
14
    },
15
    "participants": {
16
      "type": "array",
17
      "items": {
18
        "type": "string"
19
      }
20
    },
21
    "agentVersions": {
22
      "type": "object",
23
      "propertyNames": {
24
        "type": "string"
25
      },
26
      "additionalProperties": {
27
        "type": "string"
28
      }
29
    },
30
    "contractHash": {
31
      "type": "string"
32
    },
33
    "startedAt": {
34
      "type": "string",
35
      "format": "date-time",
36
      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
37
    },
38
    "completedAt": {
39
      "type": "string",
40
      "format": "date-time",
41
      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
42
    },
43
    "outcome": {
44
      "type": "string",
45
      "enum": ["success", "partial", "failure", "cancelled"]
46
    },
47
    "commitmentsFulfilled": {
48
      "type": "array",
49
      "items": {
50
        "type": "string"
51
      }
52
    },
53
    "commitmentsMissed": {
54
      "type": "array",
55
      "items": {
56
        "type": "string"
57
      }
58
    },
59
    "evidenceHashes": {
60
      "type": "array",
61
      "items": {
62
        "type": "string"
63
      }
64
    },
65
    "policyWarnings": {
66
      "type": "array",
67
      "items": {
68
        "type": "string"
69
      }
70
    },
71
    "policyViolations": {
72
      "type": "array",
73
      "items": {
74
        "type": "string"
75
      }
76
    },
77
    "disputeStatus": {
78
      "type": "string",
79
      "enum": ["none", "open", "resolved"]
80
    },
81
    "delegationChainHash": {
82
      "type": "string"
83
    },
84
    "unilateral": {
85
      "type": "boolean"
86
    },
87
    "signatures": {
88
      "default": {},
89
      "type": "object",
90
      "propertyNames": {
91
        "type": "string"
92
      },
93
      "additionalProperties": {
94
        "type": "object",
95
        "properties": {
96
          "algorithm": {
97
            "type": "string",
98
            "const": "Ed25519"
99
          },
100
          "keyId": {
101
            "type": "string",
102
            "minLength": 1
103
          },
104
          "value": {
105
            "type": "string",
106
            "minLength": 1
107
          }
108
        },
109
        "required": ["algorithm", "keyId", "value"],
110
        "additionalProperties": false
111
      }
112
    }
113
  },
114
  "required": [
115
    "receiptId",
116
    "interactionId",
117
    "participants",
118
    "agentVersions",
119
    "contractHash",
120
    "startedAt",
121
    "completedAt",
122
    "outcome",
123
    "commitmentsFulfilled",
124
    "commitmentsMissed",
125
    "evidenceHashes",
126
    "policyWarnings",
127
    "policyViolations",
128
    "disputeStatus",
129
    "delegationChainHash",
130
    "unilateral",
131
    "signatures"
132
  ],
133
  "additionalProperties": false
134
}