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

Viewing files at commit 92498f6892e8Commit detailsView latest

schemas/v0.1/assurance_prediction_snapshot.schema.json 121 lines · 3.4 KB · json
1
{
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
  "type": "object",
4
  "properties": {
5
    "protocolVersion": {
6
      "type": "string",
7
      "const": "0.1"
8
    },
9
    "predictionId": {
10
      "type": "string",
11
      "format": "uuid",
12
      "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)$"
13
    },
14
    "interactionId": {
15
      "type": "string",
16
      "format": "uuid",
17
      "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)$"
18
    },
19
    "contractHash": {
20
      "type": "string",
21
      "minLength": 1
22
    },
23
    "targetAgentId": {
24
      "type": "string",
25
      "minLength": 1
26
    },
27
    "targetAgentVersion": {
28
      "type": "string",
29
      "minLength": 1,
30
      "maxLength": 200
31
    },
32
    "taskCategory": {
33
      "type": "string",
34
      "minLength": 1,
35
      "maxLength": 100
36
    },
37
    "stage": {
38
      "type": "string",
39
      "enum": [
40
        "baseline",
41
        "after_probe",
42
        "after_safeguard",
43
        "final"
44
      ]
45
    },
46
    "successProbability": {
47
      "type": "number",
48
      "minimum": 0.05,
49
      "maximum": 0.95
50
    },
51
    "confidence": {
52
      "type": "number",
53
      "minimum": 0,
54
      "maximum": 1
55
    },
56
    "basis": {
57
      "type": "string",
58
      "enum": [
59
        "cold_start_hybrid",
60
        "historical_hybrid",
61
        "deterministic_fallback"
62
      ]
63
    },
64
    "sampleSize": {
65
      "type": "integer",
66
      "minimum": 0,
67
      "maximum": 9007199254740991
68
    },
69
    "topRiskCodes": {
70
      "maxItems": 5,
71
      "type": "array",
72
      "items": {
73
        "type": "string",
74
        "pattern": "^[a-z][a-z0-9_]{1,63}$"
75
      }
76
    },
77
    "featureVersion": {
78
      "type": "string",
79
      "minLength": 1,
80
      "maxLength": 100
81
    },
82
    "generationId": {
83
      "type": "string",
84
      "format": "uuid",
85
      "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)$"
86
    },
87
    "priorPredictionId": {
88
      "type": "string",
89
      "format": "uuid",
90
      "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)$"
91
    },
92
    "triggerResponseId": {
93
      "type": "string",
94
      "format": "uuid",
95
      "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)$"
96
    },
97
    "createdAt": {
98
      "type": "string",
99
      "format": "date-time",
100
      "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))$"
101
    }
102
  },
103
  "required": [
104
    "protocolVersion",
105
    "predictionId",
106
    "interactionId",
107
    "contractHash",
108
    "targetAgentId",
109
    "targetAgentVersion",
110
    "taskCategory",
111
    "stage",
112
    "successProbability",
113
    "confidence",
114
    "basis",
115
    "sampleSize",
116
    "topRiskCodes",
117
    "featureVersion",
118
    "createdAt"
119
  ],
120
  "additionalProperties": false
121
}