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

Viewing files at commit c6b86fb80ff9Commit detailsView latest

schemas/v0.1/contextual_reliability_summary.schema.json 173 lines · 4.1 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": ["low", "medium", "high"]
28
        },
29
        "value": {
30
          "type": "number",
31
          "minimum": 0,
32
          "maximum": 1
33
        },
34
        "evidenceCount": {
35
          "type": "integer",
36
          "minimum": 0,
37
          "maximum": 9007199254740991
38
        },
39
        "effectiveSampleSize": {
40
          "type": "number",
41
          "minimum": 0
42
        }
43
      },
44
      "required": ["level", "value", "evidenceCount", "effectiveSampleSize"],
45
      "additionalProperties": false
46
    },
47
    "trend": {
48
      "type": "object",
49
      "properties": {
50
        "direction": {
51
          "type": "string",
52
          "enum": ["improving", "stable", "declining"]
53
        },
54
        "delta": {
55
          "type": "number",
56
          "minimum": -1,
57
          "maximum": 1
58
        }
59
      },
60
      "required": ["direction", "delta"],
61
      "additionalProperties": false
62
    },
63
    "strengths": {
64
      "maxItems": 3,
65
      "type": "array",
66
      "items": {
67
        "type": "object",
68
        "properties": {
69
          "dimension": {
70
            "type": "string",
71
            "enum": [
72
              "completion",
73
              "acceptance",
74
              "specification",
75
              "deadline",
76
              "communication",
77
              "evidence",
78
              "scope",
79
              "correction",
80
              "limitations",
81
              "disputes"
82
            ]
83
          },
84
          "score": {
85
            "type": "number",
86
            "minimum": 0,
87
            "maximum": 1
88
          }
89
        },
90
        "required": ["dimension", "score"],
91
        "additionalProperties": false
92
      }
93
    },
94
    "risks": {
95
      "maxItems": 3,
96
      "type": "array",
97
      "items": {
98
        "type": "object",
99
        "properties": {
100
          "dimension": {
101
            "type": "string",
102
            "enum": [
103
              "completion",
104
              "acceptance",
105
              "specification",
106
              "deadline",
107
              "communication",
108
              "evidence",
109
              "scope",
110
              "correction",
111
              "limitations",
112
              "disputes"
113
            ]
114
          },
115
          "score": {
116
            "type": "number",
117
            "minimum": 0,
118
            "maximum": 1
119
          },
120
          "reason": {
121
            "type": "string",
122
            "minLength": 1,
123
            "maxLength": 300
124
          }
125
        },
126
        "required": ["dimension", "score", "reason"],
127
        "additionalProperties": false
128
      }
129
    },
130
    "versionStatus": {
131
      "type": "object",
132
      "properties": {
133
        "currentVersion": {
134
          "type": "string",
135
          "minLength": 1
136
        },
137
        "evidenceVersion": {
138
          "type": "string",
139
          "minLength": 1
140
        },
141
        "status": {
142
          "type": "string",
143
          "enum": ["current", "reduced_confidence"]
144
        }
145
      },
146
      "required": ["currentVersion", "evidenceVersion", "status"],
147
      "additionalProperties": false
148
    },
149
    "source": {
150
      "type": "string",
151
      "const": "private_verified_history"
152
    },
153
    "updatedAt": {
154
      "type": "string",
155
      "format": "date-time",
156
      "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))$"
157
    }
158
  },
159
  "required": [
160
    "agentId",
161
    "agentVersion",
162
    "taskCategory",
163
    "score",
164
    "confidence",
165
    "trend",
166
    "strengths",
167
    "risks",
168
    "versionStatus",
169
    "source",
170
    "updatedAt"
171
  ],
172
  "additionalProperties": false
173
}