mirror of
https://github.com/openai/codex.git
synced 2026-11-19 22:30:42 +00:00
feat: add Guardian denial semantics
Co-authored-by: Codex noreply@openai.com
This commit is contained in:
co-authored by
Codex noreply@openai.com
parent
a2a9e767f7
commit
3bd85a2bd6
@@ -1520,6 +1520,16 @@
|
||||
"GuardianApprovalReview": {
|
||||
"description": "[UNSTABLE] Temporary approval auto-review payload used by `item/autoApprovalReview/*` notifications. This shape is expected to change soon.",
|
||||
"properties": {
|
||||
"denialKind": {
|
||||
"anyOf": [
|
||||
{
|
||||
"$ref": "#/definitions/GuardianDenialKind"
|
||||
},
|
||||
{
|
||||
"type": "null"
|
||||
}
|
||||
]
|
||||
},
|
||||
"rationale": {
|
||||
"type": [
|
||||
"string",
|
||||
@@ -1769,6 +1779,14 @@
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
"GuardianDenialKind": {
|
||||
"description": "[UNSTABLE] Whether a denied action can be explicitly approved for one retry.",
|
||||
"enum": [
|
||||
"soft",
|
||||
"denial"
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
"GuardianRiskLevel": {
|
||||
"description": "[UNSTABLE] Risk level assigned by approval auto-review.",
|
||||
"enum": [
|
||||
|
||||
Reference in New Issue
Block a user