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

Viewing files at commit 5b7999fcbb0cCommit detailsView latest

schemas/v0.1/interaction_conclusion.schema.json 143 lines · 3.9 KB · json
1
{
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
  "type": "object",
4
  "properties": {
5
    "conclusionId": {
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
    "contractHash": {
16
      "type": "string",
17
      "minLength": 1
18
    },
19
    "outcome": {
20
      "type": "string",
21
      "enum": ["success", "partial", "failure", "cancelled"]
22
    },
23
    "consensus": {
24
      "type": "string",
25
      "enum": [
26
        "bilateral_agreement",
27
        "bilateral_partial_agreement",
28
        "conflicting",
29
        "unilateral",
30
        "insufficient"
31
      ]
32
    },
33
    "summary": {
34
      "type": "string",
35
      "minLength": 1,
36
      "maxLength": 2000
37
    },
38
    "criteria": {
39
      "maxItems": 100,
40
      "type": "array",
41
      "items": {
42
        "type": "object",
43
        "properties": {
44
          "criterion": {
45
            "type": "string",
46
            "minLength": 1,
47
            "maxLength": 1000
48
          },
49
          "status": {
50
            "type": "string",
51
            "enum": ["met", "partially_met", "missed", "unknown"]
52
          },
53
          "explanation": {
54
            "type": "string",
55
            "maxLength": 1000
56
          },
57
          "evidenceReferences": {
58
            "default": [],
59
            "maxItems": 50,
60
            "type": "array",
61
            "items": {
62
              "type": "string",
63
              "minLength": 1,
64
              "maxLength": 2048
65
            }
66
          }
67
        },
68
        "required": ["criterion", "status", "evidenceReferences"],
69
        "additionalProperties": false
70
      }
71
    },
72
    "reportIds": {
73
      "maxItems": 2,
74
      "type": "array",
75
      "items": {
76
        "type": "string",
77
        "format": "uuid",
78
        "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)$"
79
      }
80
    },
81
    "feedbackIds": {
82
      "maxItems": 2,
83
      "type": "array",
84
      "items": {
85
        "type": "string",
86
        "format": "uuid",
87
        "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)$"
88
      }
89
    },
90
    "averageRatings": {
91
      "default": {},
92
      "type": "object",
93
      "propertyNames": {
94
        "type": "string",
95
        "enum": [
96
          "overall_satisfaction",
97
          "outcome_satisfaction",
98
          "communication",
99
          "timeliness",
100
          "scope_adherence",
101
          "evidence_quality",
102
          "correction_handling",
103
          "reliability"
104
        ]
105
      },
106
      "additionalProperties": {
107
        "type": "number",
108
        "minimum": 0,
109
        "maximum": 1
110
      }
111
    },
112
    "evidenceReferences": {
113
      "default": [],
114
      "maxItems": 100,
115
      "type": "array",
116
      "items": {
117
        "type": "string",
118
        "minLength": 1,
119
        "maxLength": 2048
120
      }
121
    },
122
    "generatedAt": {
123
      "type": "string",
124
      "format": "date-time",
125
      "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))$"
126
    }
127
  },
128
  "required": [
129
    "conclusionId",
130
    "interactionId",
131
    "contractHash",
132
    "outcome",
133
    "consensus",
134
    "summary",
135
    "criteria",
136
    "reportIds",
137
    "feedbackIds",
138
    "averageRatings",
139
    "evidenceReferences",
140
    "generatedAt"
141
  ],
142
  "additionalProperties": false
143
}