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

Viewing files at commit 5eea80c71925Commit detailsView latest

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