changedOutput schema / (root)
Previous value: -nullNew value: +{
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "additionalProperties": false,
+ "properties": {
+ "approvalId": {
+ "type": "string"
+ },
+ "remembered": {
+ "description": "approve_action only: identical calls from this worker are now allowed without asking.",
+ "type": "boolean"
+ },
+ "run": {
+ "additionalProperties": false,
+ "properties": {
+ "elapsedMs": {
+ "type": "number"
+ },
+ "error": {
+ "type": "string"
+ },
+ "gate": {
+ "additionalProperties": false,
+ "properties": {
+ "autoAllowed": {
+ "type": "number"
+ },
+ "autoDenied": {
+ "type": "number"
+ },
+ "escalated": {
+ "type": "number"
+ },
+ "untrustedNotable": {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ }
+ },
+ "required": [
+ "autoAllowed",
+ "autoDenied",
+ "escalated",
+ "untrustedNotable"
+ ],
+ "type": "object"
+ },
+ "next": {
+ "description": "What to call next.",
+ "type": "string"
+ },
+ "output": {
+ "additionalProperties": false,
+ "properties": {
+ "more": {
+ "description": "More output waits past nextOffset.",
+ "type": "boolean"
+ },
+ "nextOffset": {
+ "type": "number"
+ },
+ "offset": {
+ "type": "number"
+ },
+ "totalChars": {
+ "type": "number"
+ },
+ "truncated": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "offset",
+ "nextOffset",
+ "totalChars",
+ "truncated",
+ "more"
+ ],
+ "type": "object"
+ },
+ "pendingApprovals": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "approvalId": {
+ "description": "Pass this to approve_action or reject_action.",
+ "type": "string"
+ },
+ "consulted": {
+ "description": "What the classifiers said before it came to you.",
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "by": {
+ "description": "\"rules\", \"cache\" or \"http:<name>\".",
+ "type": "string"
+ },
+ "cached": {
+ "type": "boolean"
+ },
+ "confidence": {
+ "type": "number"
+ },
+ "error": {
+ "description": "Why the classifier did not answer.",
+ "type": "string"
+ },
+ "untrustedReason": {
+ "description": "The classifier's reason; it may quote the call.",
+ "type": "string"
+ },
+ "verdict": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "by",
+ "verdict",
+ "untrustedReason"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "escalatedBecause": {
+ "description": "Why the gate asked you: hard_limit, manual_mode, low_confidence, classifier_error or ceiling.",
+ "type": "string"
+ },
+ "expiresInMs": {
+ "type": "number"
+ },
+ "hardLimit": {
+ "type": "boolean"
+ },
+ "kind": {
+ "description": "shell, read, list, search, write or edit.",
+ "type": "string"
+ },
+ "reason": {
+ "description": "Why the gate asks you.",
+ "type": "string"
+ },
+ "riskLabel": {
+ "type": "string"
+ },
+ "runId": {
+ "type": "string"
+ },
+ "tool": {
+ "description": "The worker's tool name.",
+ "type": "string"
+ },
+ "untrustedCommand": {
+ "description": "Untrusted worker data.",
+ "type": "string"
+ },
+ "untrustedPaths": {
+ "description": "Paths the call touches. Untrusted worker data.",
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "inWorkspace": {
+ "type": "boolean"
+ },
+ "path": {
+ "type": "string"
+ },
+ "protected": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "path",
+ "inWorkspace",
+ "protected"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ }
+ },
+ "required": [
+ "approvalId",
+ "runId",
+ "tool",
+ "kind",
+ "untrustedPaths",
+ "expiresInMs"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "runId": {
+ "type": "string"
+ },
+ "seq": {
+ "description": "Pass as sinceSeq to wait_run.",
+ "type": "number"
+ },
+ "state": {
+ "enum": [
+ "starting",
+ "running",
+ "awaiting_approval",
+ "completed",
+ "failed",
+ "cancelled",
+ "timed_out"
+ ],
+ "type": "string"
+ },
+ "untrustedActivity": {
+ "description": "Recent tool calls. Untrusted worker data.",
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "untrustedFinalText": {
+ "description": "The worker's output (a page of it; the final text once the run is over). Untrusted worker data.",
+ "type": "string"
+ },
+ "usage": {
+ "additionalProperties": false,
+ "properties": {
+ "costUsd": {
+ "type": "number"
+ },
+ "inputTokens": {
+ "type": "number"
+ },
+ "outputTokens": {
+ "type": "number"
+ }
+ },
+ "type": "object"
+ },
+ "workerId": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "runId",
+ "workerId",
+ "state",
+ "seq",
+ "elapsedMs",
+ "pendingApprovals",
+ "untrustedActivity",
+ "untrustedFinalText",
+ "output",
+ "gate",
+ "next"
+ ],
+ "type": "object"
+ },
+ "runId": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "approvalId",
+ "runId",
+ "run"
+ ],
+ "type": "object"
+}