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

Viewing files at commit 95b0e11125d2Commit detailsView latest

schemas/v0.1/shield_outcome.schema.json 72 lines · 1.9 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
    "outcomeId": {
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
    "caseId": {
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
    "agentId": {
20
      "type": "string",
21
      "minLength": 1
22
    },
23
    "result": {
24
      "type": "string",
25
      "enum": [
26
        "successful",
27
        "prevented_harm",
28
        "escalated",
29
        "false_alarm",
30
        "unsuccessful",
31
        "unknown"
32
      ]
33
    },
34
    "acceptedAdvice": {
35
      "type": "boolean"
36
    },
37
    "actionTaken": {
38
      "type": "string",
39
      "minLength": 1,
40
      "maxLength": 2000
41
    },
42
    "observedImpact": {
43
      "type": "string",
44
      "minLength": 1,
45
      "maxLength": 2000
46
    },
47
    "reportedBy": {
48
      "type": "string",
49
      "enum": [
50
        "owner",
51
        "protected_agent"
52
      ]
53
    },
54
    "createdAt": {
55
      "type": "string",
56
      "format": "date-time",
57
      "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))$"
58
    }
59
  },
60
  "required": [
61
    "protocolVersion",
62
    "outcomeId",
63
    "caseId",
64
    "agentId",
65
    "result",
66
    "acceptedAdvice",
67
    "actionTaken",
68
    "reportedBy",
69
    "createdAt"
70
  ],
71
  "additionalProperties": false
72
}