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

Viewing files at commit 89b58109a0e6Commit detailsView latest

schemas/v0.1/risk_decision.schema.json 75 lines · 1.3 KB · json
1
{
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
  "type": "object",
4
  "properties": {
5
    "decision": {
6
      "type": "string",
7
      "enum": [
8
        "ALLOW",
9
        "CHALLENGE",
10
        "DENY"
11
      ]
12
    },
13
    "confidence": {
14
      "type": "number",
15
      "minimum": 0,
16
      "maximum": 1
17
    },
18
    "taskCategory": {
19
      "type": "string"
20
    },
21
    "sampleSize": {
22
      "type": "integer",
23
      "minimum": 0,
24
      "maximum": 9007199254740991
25
    },
26
    "dimensions": {
27
      "type": "object",
28
      "propertyNames": {
29
        "type": "string"
30
      },
31
      "additionalProperties": {
32
        "type": "number"
33
      }
34
    },
35
    "reasons": {
36
      "type": "array",
37
      "items": {
38
        "type": "string"
39
      }
40
    },
41
    "warnings": {
42
      "type": "array",
43
      "items": {
44
        "type": "string"
45
      }
46
    },
47
    "dataFreshness": {
48
      "type": "object",
49
      "propertyNames": {
50
        "type": "string"
51
      },
52
      "additionalProperties": {
53
        "type": "string"
54
      }
55
    },
56
    "requiredChallenges": {
57
      "type": "array",
58
      "items": {
59
        "type": "string"
60
      }
61
    }
62
  },
63
  "required": [
64
    "decision",
65
    "confidence",
66
    "taskCategory",
67
    "sampleSize",
68
    "dimensions",
69
    "reasons",
70
    "warnings",
71
    "dataFreshness",
72
    "requiredChallenges"
73
  ],
74
  "additionalProperties": false
75
}