-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgate_result.schema.json
More file actions
25 lines (25 loc) · 920 Bytes
/
Copy pathgate_result.schema.json
File metadata and controls
25 lines (25 loc) · 920 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://github.com/Aliipou/authgate-kernel/spec/gate_result.schema.json",
"title": "GateResult",
"description": "Result returned by CallGate.execute(). Immutable. permitted=false means the tool body never ran.",
"type": "object",
"required": ["permitted", "tool_name"],
"properties": {
"permitted": {
"type": "boolean",
"description": "True iff the capability gate approved the action AND the tool executed successfully."
},
"output": {
"description": "Tool output. Only present when permitted=true. Type depends on the tool."
},
"denied_reason": {
"type": ["string", "null"],
"description": "Human-readable denial reason. Present and non-null when permitted=false."
},
"tool_name": {
"type": "string",
"description": "Name of the tool that was invoked."
}
}
}