Add metadata to sessions logs to track approval of sandboxing

This commit is contained in:
Joe Gershenson
2026-03-02 15:52:23 -08:00
parent e10df4ba10
commit 949ec1d929
31 changed files with 1105 additions and 28 deletions

View File

@@ -5,6 +5,61 @@
"description": "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.",
"type": "string"
},
"ApprovalSummary": {
"properties": {
"abort_count": {
"format": "uint16",
"minimum": 0.0,
"type": "integer"
},
"approved_count": {
"format": "uint16",
"minimum": 0.0,
"type": "integer"
},
"approved_for_session_count": {
"format": "uint16",
"minimum": 0.0,
"type": "integer"
},
"approved_with_amendment_count": {
"format": "uint16",
"minimum": 0.0,
"type": "integer"
},
"approved_with_network_policy_allow_count": {
"format": "uint16",
"minimum": 0.0,
"type": "integer"
},
"denied_count": {
"format": "uint16",
"minimum": 0.0,
"type": "integer"
},
"denied_with_network_policy_deny_count": {
"format": "uint16",
"minimum": 0.0,
"type": "integer"
},
"request_count": {
"format": "uint16",
"minimum": 0.0,
"type": "integer"
}
},
"required": [
"abort_count",
"approved_count",
"approved_for_session_count",
"approved_with_amendment_count",
"approved_with_network_policy_allow_count",
"denied_count",
"denied_with_network_policy_deny_count",
"request_count"
],
"type": "object"
},
"AppsListParams": {
"description": "EXPERIMENTAL - list available apps/connectors.",
"properties": {
@@ -932,6 +987,21 @@
],
"type": "string"
},
"PrimitiveMetadata": {
"properties": {
"approval_summary": {
"anyOf": [
{
"$ref": "#/definitions/ApprovalSummary"
},
{
"type": "null"
}
]
}
},
"type": "object"
},
"ProductSurface": {
"enum": [
"chatgpt",
@@ -1215,6 +1285,16 @@
],
"writeOnly": true
},
"primitive_metadata": {
"anyOf": [
{
"$ref": "#/definitions/PrimitiveMetadata"
},
{
"type": "null"
}
]
},
"status": {
"$ref": "#/definitions/LocalShellStatus"
},
@@ -1252,6 +1332,16 @@
"name": {
"type": "string"
},
"primitive_metadata": {
"anyOf": [
{
"$ref": "#/definitions/PrimitiveMetadata"
},
{
"type": "null"
}
]
},
"type": {
"enum": [
"function_call"
@@ -1311,6 +1401,16 @@
"name": {
"type": "string"
},
"primitive_metadata": {
"anyOf": [
{
"$ref": "#/definitions/PrimitiveMetadata"
},
{
"type": "null"
}
]
},
"status": {
"type": [
"string",