addedInput schema / $schema
Added value: +"http://json-schema.org/draft-07/schema#"
addedInput schema / additionalProperties
Added value: +false
addedInput schema / properties / policy
Added value: +{
+ "additionalProperties": false,
+ "description": "Auto-approval policy. Calls at or below autoApproveUpTo are allowed without asking; everything else waits for the coordinator. The server lowers the policy to its own ceiling (default MEDIUM) and says so in the result. Calls that touch protected paths are never auto-approved, whatever the policy says.",
+ "properties": {
+ "autoApproveUpTo": {
+ "anyOf": [
+ {
+ "maximum": 3,
+ "minimum": 0,
+ "type": "integer"
+ },
+ {
+ "maxLength": 16,
+ "type": "string"
+ }
+ ],
+ "description": "Risk level (0=LOW, 1=MEDIUM, 2=HIGH, 3=CRITICAL) up to which calls are auto-approved. Default 0 (LOW)."
+ },
+ "classifiers": {
+ "enum": [
+ "on",
+ "off"
+ ],
+ "type": "string"
+ },
+ "overrides": {
+ "description": "At most 50, checked in order; the first match decides. Glob patterns: `*` matches any run of characters (in `command` it stops at shell metacharacters).",
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "action": {
+ "description": "allow: auto-approve (up to maxRiskLevel; never a protected path, and outside the workspace only with a matching path). escalate: always ask. deny: refuse without asking.",
+ "maxLength": 16,
+ "type": "string"
+ },
+ "match": {
+ "additionalProperties": {},
+ "description": "Every field given must match. `tool` is pi's tool name (bash, read, write, edit, grep, find, ls), `kind` the canonical kind (shell, read, list, search, write, edit), `command` a shell command, `path` an absolute or workspace-relative path.",
+ "properties": {
+ "command": {
+ "maxLength": 500,
+ "type": "string"
+ },
+ "kind": {
+ "maxLength": 32,
+ "type": "string"
+ },
+ "path": {
+ "maxLength": 4096,
+ "type": "string"
+ },
+ "tool": {
+ "maxLength": 200,
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "maxRiskLevel": {
+ "anyOf": [
+ {
+ "maximum": 3,
+ "minimum": 0,
+ "type": "integer"
+ },
+ {
+ "maxLength": 16,
+ "type": "string"
+ }
+ ],
+ "description": "For allow: only up to this level. Default 1 (MEDIUM); limited by the server's ceiling."
+ }
+ },
+ "type": "object"
+ },
+ "maxItems": 50,
+ "type": "array"
+ }
+ },
+ "type": "object"
+}
removedInput schema / properties / riskPolicy
Removed value: -{
- "description": "The new risk policy to apply.",
- "properties": {
- "autoApproveUpTo": {
- "description": "Risk level threshold for silent auto-approval (0=LOW, 1=MEDIUM, 2=HIGH, 3=CRITICAL).",
- "type": "number"
- },
- "notifyUpTo": {
- "description": "Risk level threshold for auto-approval with notification.",
- "type": "number"
- },
- "overrides": {
- "description": "Custom overrides.",
- "items": {
- "properties": {
- "action": {
- "enum": [
- "allow",
- "block"
- ],
- "type": "string"
- },
- "maxRiskLevel": {
- "description": "Only apply this override if the classified risk is at or below this level (0=LOW, 1=MEDIUM, 2=HIGH, 3=CRITICAL).",
- "type": "number"
- },
- "pathPattern": {
- "description": "Optional glob pattern to match against the target file path.",
- "type": "string"
- },
- "pattern": {
- "description": "Glob pattern to match against command string or tool name.",
- "type": "string"
- }
- },
- "required": [
- "pattern",
- "action"
- ],
- "type": "object"
- },
- "type": "array"
- }
- },
- "required": [
- "autoApproveUpTo",
- "notifyUpTo"
- ],
- "type": "object"
-}
removedInput schema / properties / sessionId
Removed value: -{
- "description": "The target session ID.",
- "type": "string"
-}
addedInput schema / properties / workerId
Added value: +{
+ "description": "The worker (id or name).",
+ "pattern": "^(w_[a-z0-9]{8}|[A-Za-z0-9_-]{1,64})$",
+ "type": "string"
+}
changedInput schema / required
Previous value: -[
- "sessionId",
- "riskPolicy"
-]New value: +[
+ "workerId",
+ "policy"
+]
changedOutput schema / (root)
Previous value: -nullNew value: +{
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "additionalProperties": false,
+ "properties": {
+ "clamped": {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "effectivePolicy": {
+ "additionalProperties": false,
+ "properties": {
+ "autoApproveUpTo": {
+ "description": "LOW, MEDIUM, HIGH or CRITICAL.",
+ "type": "string"
+ },
+ "classifiers": {
+ "type": "string"
+ },
+ "overrides": {
+ "items": {
+ "additionalProperties": {},
+ "propertyNames": {
+ "type": "string"
+ },
+ "type": "object"
+ },
+ "type": "array"
+ }
+ },
+ "required": [
+ "autoApproveUpTo",
+ "overrides"
+ ],
+ "type": "object"
+ },
+ "notes": {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ }
+ },
+ "required": [
+ "effectivePolicy",
+ "clamped",
+ "notes"
+ ],
+ "type": "object"
+}