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

Viewing files at commit e9e4992bde95Commit detailsView latest

schemas/v0.1/contextual_reliability_summary.schema.json 203 lines · 4.4 KB · json
1
{
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
  "type": "object",
4
  "properties": {
5
    "agentId": {
6
      "type": "string",
7
      "minLength": 1
8
    },
9
    "agentVersion": {
10
      "type": "string",
11
      "minLength": 1
12
    },
13
    "taskCategory": {
14
      "type": "string",
15
      "minLength": 1
16
    },
17
    "score": {
18
      "type": "number",
19
      "minimum": 0,
20
      "maximum": 1
21
    },
22
    "confidence": {
23
      "type": "object",
24
      "properties": {
25
        "level": {
26
          "type": "string",
27
          "enum": [
28
            "low",
29
            "medium",
30
            "high"
31
          ]
32
        },
33
        "value": {
34
          "type": "number",
35
          "minimum": 0,
36
          "maximum": 1
37
        },
38
        "evidenceCount": {
39
          "type": "integer",
40
          "minimum": 0,
41
          "maximum": 9007199254740991
42
        },
43
        "effectiveSampleSize": {
44
          "type": "number",
45
          "minimum": 0
46
        }
47
      },
48
      "required": [
49
        "level",
50
        "value",
51
        "evidenceCount",
52
        "effectiveSampleSize"
53
      ],
54
      "additionalProperties": false
55
    },
56
    "trend": {
57
      "type": "object",
58
      "properties": {
59
        "direction": {
60
          "type": "string",
61
          "enum": [
62
            "improving",
63
            "stable",
64
            "declining"
65
          ]
66
        },
67
        "delta": {
68
          "type": "number",
69
          "minimum": -1,
70
          "maximum": 1
71
        }
72
      },
73
      "required": [
74
        "direction",
75
        "delta"
76
      ],
77
      "additionalProperties": false
78
    },
79
    "strengths": {
80
      "maxItems": 3,
81
      "type": "array",
82
      "items": {
83
        "type": "object",
84
        "properties": {
85
          "dimension": {
86
            "type": "string",
87
            "enum": [
88
              "completion",
89
              "acceptance",
90
              "specification",
91
              "deadline",
92
              "communication",
93
              "evidence",
94
              "scope",
95
              "correction",
96
              "limitations",
97
              "disputes"
98
            ]
99
          },
100
          "score": {
101
            "type": "number",
102
            "minimum": 0,
103
            "maximum": 1
104
          }
105
        },
106
        "required": [
107
          "dimension",
108
          "score"
109
        ],
110
        "additionalProperties": false
111
      }
112
    },
113
    "risks": {
114
      "maxItems": 3,
115
      "type": "array",
116
      "items": {
117
        "type": "object",
118
        "properties": {
119
          "dimension": {
120
            "type": "string",
121
            "enum": [
122
              "completion",
123
              "acceptance",
124
              "specification",
125
              "deadline",
126
              "communication",
127
              "evidence",
128
              "scope",
129
              "correction",
130
              "limitations",
131
              "disputes"
132
            ]
133
          },
134
          "score": {
135
            "type": "number",
136
            "minimum": 0,
137
            "maximum": 1
138
          },
139
          "reason": {
140
            "type": "string",
141
            "minLength": 1,
142
            "maxLength": 300
143
          }
144
        },
145
        "required": [
146
          "dimension",
147
          "score",
148
          "reason"
149
        ],
150
        "additionalProperties": false
151
      }
152
    },
153
    "versionStatus": {
154
      "type": "object",
155
      "properties": {
156
        "currentVersion": {
157
          "type": "string",
158
          "minLength": 1
159
        },
160
        "evidenceVersion": {
161
          "type": "string",
162
          "minLength": 1
163
        },
164
        "status": {
165
          "type": "string",
166
          "enum": [
167
            "current",
168
            "reduced_confidence"
169
          ]
170
        }
171
      },
172
      "required": [
173
        "currentVersion",
174
        "evidenceVersion",
175
        "status"
176
      ],
177
      "additionalProperties": false
178
    },
179
    "source": {
180
      "type": "string",
181
      "const": "private_verified_history"
182
    },
183
    "updatedAt": {
184
      "type": "string",
185
      "format": "date-time",
186
      "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))$"
187
    }
188
  },
189
  "required": [
190
    "agentId",
191
    "agentVersion",
192
    "taskCategory",
193
    "score",
194
    "confidence",
195
    "trend",
196
    "strengths",
197
    "risks",
198
    "versionStatus",
199
    "source",
200
    "updatedAt"
201
  ],
202
  "additionalProperties": false
203
}