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

Viewing files at commit d24aacea3d6aCommit detailsView latest

schemas/v0.1/learning_eligibility_decision.schema.json 112 lines · 3.1 KB · json
1
{
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
  "type": "object",
4
  "properties": {
5
    "decisionId": {
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
    "eligible": {
16
      "type": "boolean"
17
    },
18
    "reasons": {
19
      "minItems": 1,
20
      "maxItems": 50,
21
      "type": "array",
22
      "items": {
23
        "type": "string",
24
        "minLength": 1,
25
        "maxLength": 500
26
      }
27
    },
28
    "sampleWeight": {
29
      "type": "number",
30
      "minimum": 0,
31
      "maximum": 1
32
    },
33
    "reportIds": {
34
      "maxItems": 2,
35
      "type": "array",
36
      "items": {
37
        "type": "string",
38
        "format": "uuid",
39
        "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)$"
40
      }
41
    },
42
    "feedbackIds": {
43
      "maxItems": 2,
44
      "type": "array",
45
      "items": {
46
        "type": "string",
47
        "format": "uuid",
48
        "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)$"
49
      }
50
    },
51
    "evidenceReferences": {
52
      "default": [],
53
      "maxItems": 100,
54
      "type": "array",
55
      "items": {
56
        "type": "string",
57
        "minLength": 1,
58
        "maxLength": 2048
59
      }
60
    },
61
    "contributionMode": {
62
      "type": "string",
63
      "enum": ["local_only", "network_aggregate"]
64
    },
65
    "structuredDataOnly": {
66
      "type": "boolean",
67
      "const": true
68
    },
69
    "decidedAt": {
70
      "type": "string",
71
      "format": "date-time",
72
      "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))$"
73
    },
74
    "platformAttestation": {
75
      "type": "object",
76
      "properties": {
77
        "algorithm": {
78
          "type": "string",
79
          "const": "Ed25519"
80
        },
81
        "keyId": {
82
          "type": "string",
83
          "minLength": 1
84
        },
85
        "value": {
86
          "type": "string",
87
          "minLength": 1
88
        },
89
        "digest": {
90
          "type": "string",
91
          "pattern": "^[a-zA-Z0-9_-]{43}$"
92
        }
93
      },
94
      "required": ["algorithm", "keyId", "value", "digest"],
95
      "additionalProperties": false
96
    }
97
  },
98
  "required": [
99
    "decisionId",
100
    "interactionId",
101
    "eligible",
102
    "reasons",
103
    "sampleWeight",
104
    "reportIds",
105
    "feedbackIds",
106
    "evidenceReferences",
107
    "contributionMode",
108
    "structuredDataOnly",
109
    "decidedAt"
110
  ],
111
  "additionalProperties": false
112
}