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

Viewing files at commit 6df07fcdd05cCommit detailsView latest

schemas/v0.1/feedback_request.schema.json 100 lines · 2.8 KB · json
1
{
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
  "type": "object",
4
  "properties": {
5
    "requestId": {
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
    "reviewerAgentId": {
16
      "type": "string",
17
      "minLength": 1
18
    },
19
    "subjectAgentId": {
20
      "type": "string",
21
      "minLength": 1
22
    },
23
    "status": {
24
      "type": "string",
25
      "enum": [
26
        "pending",
27
        "submitted",
28
        "expired",
29
        "waived"
30
      ]
31
    },
32
    "requestedDimensions": {
33
      "minItems": 1,
34
      "type": "array",
35
      "items": {
36
        "type": "string",
37
        "enum": [
38
          "overall_satisfaction",
39
          "outcome_satisfaction",
40
          "communication",
41
          "timeliness",
42
          "scope_adherence",
43
          "evidence_quality",
44
          "correction_handling",
45
          "limitation_disclosure",
46
          "reliability"
47
        ]
48
      }
49
    },
50
    "requestedAt": {
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
    "dueAt": {
56
      "type": "string",
57
      "format": "date-time",
58
      "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))$"
59
    },
60
    "platformAttestation": {
61
      "type": "object",
62
      "properties": {
63
        "algorithm": {
64
          "type": "string",
65
          "const": "Ed25519"
66
        },
67
        "keyId": {
68
          "type": "string",
69
          "minLength": 1
70
        },
71
        "value": {
72
          "type": "string",
73
          "minLength": 1
74
        },
75
        "digest": {
76
          "type": "string",
77
          "pattern": "^[a-zA-Z0-9_-]{43}$"
78
        }
79
      },
80
      "required": [
81
        "algorithm",
82
        "keyId",
83
        "value",
84
        "digest"
85
      ],
86
      "additionalProperties": false
87
    }
88
  },
89
  "required": [
90
    "requestId",
91
    "interactionId",
92
    "reviewerAgentId",
93
    "subjectAgentId",
94
    "status",
95
    "requestedDimensions",
96
    "requestedAt",
97
    "dueAt"
98
  ],
99
  "additionalProperties": false
100
}