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

Viewing files at commit 922a6b480fb8Commit detailsView latest

schemas/v0.1/learning_eligibility_decision.schema.json 131 lines · 3.4 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
    "manipulationSignals": {
62
      "default": [],
63
      "maxItems": 20,
64
      "type": "array",
65
      "items": {
66
        "type": "string",
67
        "minLength": 1,
68
        "maxLength": 128
69
      }
70
    },
71
    "contributionMode": {
72
      "type": "string",
73
      "enum": [
74
        "local_only",
75
        "network_aggregate"
76
      ]
77
    },
78
    "structuredDataOnly": {
79
      "type": "boolean",
80
      "const": true
81
    },
82
    "decidedAt": {
83
      "type": "string",
84
      "format": "date-time",
85
      "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))$"
86
    },
87
    "platformAttestation": {
88
      "type": "object",
89
      "properties": {
90
        "algorithm": {
91
          "type": "string",
92
          "const": "Ed25519"
93
        },
94
        "keyId": {
95
          "type": "string",
96
          "minLength": 1
97
        },
98
        "value": {
99
          "type": "string",
100
          "minLength": 1
101
        },
102
        "digest": {
103
          "type": "string",
104
          "pattern": "^[a-zA-Z0-9_-]{43}$"
105
        }
106
      },
107
      "required": [
108
        "algorithm",
109
        "keyId",
110
        "value",
111
        "digest"
112
      ],
113
      "additionalProperties": false
114
    }
115
  },
116
  "required": [
117
    "decisionId",
118
    "interactionId",
119
    "eligible",
120
    "reasons",
121
    "sampleWeight",
122
    "reportIds",
123
    "feedbackIds",
124
    "evidenceReferences",
125
    "manipulationSignals",
126
    "contributionMode",
127
    "structuredDataOnly",
128
    "decidedAt"
129
  ],
130
  "additionalProperties": false
131
}