permissions: expose reviewer override grant API

This commit is contained in:
Michael Bolin
2026-06-11 11:50:00 -04:00
parent b4445f2758
commit 332641acef
10 changed files with 125 additions and 20 deletions
@@ -58,6 +58,15 @@
},
"type": "object"
},
"ApprovalsReviewer": {
"description": "Configures who approval requests are routed to for review. Examples include sandbox escapes, blocked network access, MCP approval prompts, and ARC escalations. Defaults to `user`. `auto_review` uses a carefully prompted subagent to gather relevant context and apply a risk-based decision framework before approving or denying the request. The legacy value `guardian_subagent` is accepted for compatibility.",
"enum": [
"user",
"auto_review",
"guardian_subagent"
],
"type": "string"
},
"FileSystemAccessMode": {
"enum": [
"read",
@@ -288,6 +297,17 @@
}
},
"properties": {
"approvalsReviewer": {
"anyOf": [
{
"$ref": "#/definitions/ApprovalsReviewer"
},
{
"type": "null"
}
],
"description": "Override who reviews later approval prompts for the rest of the current turn."
},
"permissions": {
"$ref": "#/definitions/GrantedPermissionProfile"
},
@@ -3875,6 +3875,17 @@
"PermissionsRequestApprovalResponse": {
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"approvalsReviewer": {
"anyOf": [
{
"$ref": "#/definitions/v2/ApprovalsReviewer"
},
{
"type": "null"
}
],
"description": "Override who reviews later approval prompts for the rest of the current turn."
},
"permissions": {
"$ref": "#/definitions/GrantedPermissionProfile"
},