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

Viewing files at commit d596f9595c49Commit detailsView latest

schemas/v0.1/live_session_event.schema.json 113 lines · 3.0 KB · json
1
{
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
  "type": "object",
4
  "properties": {
5
    "eventId": {
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
    "agentId": {
16
      "type": "string",
17
      "minLength": 1
18
    },
19
    "sequence": {
20
      "type": "integer",
21
      "minimum": 0,
22
      "maximum": 9007199254740991
23
    },
24
    "type": {
25
      "type": "string",
26
      "enum": [
27
        "session_started",
28
        "message_sent",
29
        "claim",
30
        "evidence",
31
        "correction",
32
        "constraint",
33
        "task_result",
34
        "session_completed",
35
        "session_failed"
36
      ]
37
    },
38
    "occurredAt": {
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
    "messageHash": {
44
      "type": "string",
45
      "pattern": "^[a-zA-Z0-9_-]{43}$"
46
    },
47
    "evidenceReferences": {
48
      "default": [],
49
      "type": "array",
50
      "items": {
51
        "type": "string"
52
      }
53
    },
54
    "outcome": {
55
      "type": "string",
56
      "enum": ["success", "failure", "partial"]
57
    },
58
    "details": {
59
      "default": {
60
        "labels": [],
61
        "metrics": {},
62
        "flags": {}
63
      },
64
      "type": "object",
65
      "properties": {
66
        "labels": {
67
          "default": [],
68
          "maxItems": 32,
69
          "type": "array",
70
          "items": {
71
            "type": "string",
72
            "pattern": "^[a-zA-Z0-9][a-zA-Z0-9_.:-]{0,63}$"
73
          }
74
        },
75
        "metrics": {
76
          "default": {},
77
          "type": "object",
78
          "propertyNames": {
79
            "type": "string",
80
            "pattern": "^[a-zA-Z0-9][a-zA-Z0-9_.:-]{0,63}$"
81
          },
82
          "additionalProperties": {
83
            "type": "number"
84
          }
85
        },
86
        "flags": {
87
          "default": {},
88
          "type": "object",
89
          "propertyNames": {
90
            "type": "string",
91
            "pattern": "^[a-zA-Z0-9][a-zA-Z0-9_.:-]{0,63}$"
92
          },
93
          "additionalProperties": {
94
            "type": "boolean"
95
          }
96
        }
97
      },
98
      "required": ["labels", "metrics", "flags"],
99
      "additionalProperties": false
100
    }
101
  },
102
  "required": [
103
    "eventId",
104
    "interactionId",
105
    "agentId",
106
    "sequence",
107
    "type",
108
    "occurredAt",
109
    "evidenceReferences",
110
    "details"
111
  ],
112
  "additionalProperties": false
113
}