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

Viewing files at commit 160755529234Commit detailsView latest

schemas/v0.1/behavioural_profile_delta.schema.json 91 lines · 2.4 KB · json
1
{
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
  "type": "object",
4
  "properties": {
5
    "deltaId": {
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
    "agentVersion": {
20
      "type": "string",
21
      "minLength": 1
22
    },
23
    "taskCategory": {
24
      "type": "string",
25
      "minLength": 1
26
    },
27
    "sampleWeight": {
28
      "type": "number",
29
      "minimum": 0,
30
      "maximum": 1
31
    },
32
    "dimensionDeltas": {
33
      "type": "object",
34
      "propertyNames": {
35
        "type": "string",
36
        "minLength": 1,
37
        "maxLength": 128
38
      },
39
      "additionalProperties": {
40
        "type": "number",
41
        "minimum": -1,
42
        "maximum": 1
43
      }
44
    },
45
    "explanation": {
46
      "type": "string",
47
      "minLength": 1,
48
      "maxLength": 2000
49
    },
50
    "appliedAt": {
51
      "type": "string",
52
      "format": "date-time",
53
      "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))$"
54
    },
55
    "platformAttestation": {
56
      "type": "object",
57
      "properties": {
58
        "algorithm": {
59
          "type": "string",
60
          "const": "Ed25519"
61
        },
62
        "keyId": {
63
          "type": "string",
64
          "minLength": 1
65
        },
66
        "value": {
67
          "type": "string",
68
          "minLength": 1
69
        },
70
        "digest": {
71
          "type": "string",
72
          "pattern": "^[a-zA-Z0-9_-]{43}$"
73
        }
74
      },
75
      "required": ["algorithm", "keyId", "value", "digest"],
76
      "additionalProperties": false
77
    }
78
  },
79
  "required": [
80
    "deltaId",
81
    "interactionId",
82
    "agentId",
83
    "agentVersion",
84
    "taskCategory",
85
    "sampleWeight",
86
    "dimensionDeltas",
87
    "explanation",
88
    "appliedAt"
89
  ],
90
  "additionalProperties": false
91
}