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

Viewing files at commit 66ff6831b5d2Commit detailsView latest

schemas/v0.1/learning_eligibility_decision.schema.json 123 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": ["local_only", "network_aggregate"]
74
    },
75
    "structuredDataOnly": {
76
      "type": "boolean",
77
      "const": true
78
    },
79
    "decidedAt": {
80
      "type": "string",
81
      "format": "date-time",
82
      "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))$"
83
    },
84
    "platformAttestation": {
85
      "type": "object",
86
      "properties": {
87
        "algorithm": {
88
          "type": "string",
89
          "const": "Ed25519"
90
        },
91
        "keyId": {
92
          "type": "string",
93
          "minLength": 1
94
        },
95
        "value": {
96
          "type": "string",
97
          "minLength": 1
98
        },
99
        "digest": {
100
          "type": "string",
101
          "pattern": "^[a-zA-Z0-9_-]{43}$"
102
        }
103
      },
104
      "required": ["algorithm", "keyId", "value", "digest"],
105
      "additionalProperties": false
106
    }
107
  },
108
  "required": [
109
    "decisionId",
110
    "interactionId",
111
    "eligible",
112
    "reasons",
113
    "sampleWeight",
114
    "reportIds",
115
    "feedbackIds",
116
    "evidenceReferences",
117
    "manipulationSignals",
118
    "contributionMode",
119
    "structuredDataOnly",
120
    "decidedAt"
121
  ],
122
  "additionalProperties": false
123
}