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

@@ -1,6 +1,61 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"definitions": {
"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"
},
"ContentItem": {
"oneOf": [
{
@@ -256,6 +311,21 @@
}
]
},
"PrimitiveMetadata": {
"properties": {
"approval_summary": {
"anyOf": [
{
"$ref": "#/definitions/ApprovalSummary"
},
{
"type": "null"
}
]
}
},
"type": "object"
},
"ReasoningItemContent": {
"oneOf": [
{
@@ -440,6 +510,16 @@
],
"writeOnly": true
},
"primitive_metadata": {
"anyOf": [
{
"$ref": "#/definitions/PrimitiveMetadata"
},
{
"type": "null"
}
]
},
"status": {
"$ref": "#/definitions/LocalShellStatus"
},
@@ -477,6 +557,16 @@
"name": {
"type": "string"
},
"primitive_metadata": {
"anyOf": [
{
"$ref": "#/definitions/PrimitiveMetadata"
},
{
"type": "null"
}
]
},
"type": {
"enum": [
"function_call"
@@ -536,6 +626,16 @@
"name": {
"type": "string"
},
"primitive_metadata": {
"anyOf": [
{
"$ref": "#/definitions/PrimitiveMetadata"
},
{
"type": "null"
}
]
},
"status": {
"type": [
"string",