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

Viewing files at commit 8135358a54bcCommit detailsView latest

schemas/v0.1/delegation_credential.schema.json 80 lines · 2.2 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
    "delegationId": {
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
    "parentAgentId": {
15
      "type": "string"
16
    },
17
    "childAgentId": {
18
      "type": "string"
19
    },
20
    "rootControllerId": {
21
      "type": "string"
22
    },
23
    "capabilities": {
24
      "minItems": 1,
25
      "type": "array",
26
      "items": {
27
        "type": "string"
28
      }
29
    },
30
    "issuedAt": {
31
      "type": "string",
32
      "format": "date-time",
33
      "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))$"
34
    },
35
    "expiresAt": {
36
      "type": "string",
37
      "format": "date-time",
38
      "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))$"
39
    },
40
    "revoked": {
41
      "default": false,
42
      "type": "boolean"
43
    },
44
    "signature": {
45
      "type": "object",
46
      "properties": {
47
        "algorithm": {
48
          "type": "string",
49
          "const": "Ed25519"
50
        },
51
        "keyId": {
52
          "type": "string",
53
          "minLength": 1
54
        },
55
        "value": {
56
          "type": "string",
57
          "minLength": 1
58
        }
59
      },
60
      "required": [
61
        "algorithm",
62
        "keyId",
63
        "value"
64
      ],
65
      "additionalProperties": false
66
    }
67
  },
68
  "required": [
69
    "protocolVersion",
70
    "delegationId",
71
    "parentAgentId",
72
    "childAgentId",
73
    "rootControllerId",
74
    "capabilities",
75
    "issuedAt",
76
    "expiresAt",
77
    "revoked"
78
  ],
79
  "additionalProperties": false
80
}