changedOutput schema / (root)
Previous value: -nullNew value: +{
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "additionalProperties": true,
+ "description": "Router response. The remaining keys are depth-dependent and come from the shared context handler: memories, rules, skills, subtree_memory_index, discovery_signal, semantic_candidates, and next_required_action are the ones clients rely on, and which of them appear depends on the classified intent.",
+ "properties": {
+ "error": {
+ "additionalProperties": true,
+ "description": "Present only when ok is false.",
+ "properties": {
+ "code": {
+ "description": "Stable machine-readable failure code, for example insufficient_scope, workspace_id_required, rate_limited, not_found, or upstream_error. Branch on this, not on message text.",
+ "type": "string"
+ },
+ "detail": {
+ "description": "Optional structured context for the failure, for example { missing_scopes: [...] } on insufficient_scope."
+ },
+ "message": {
+ "description": "Human-readable explanation of the failure.",
+ "type": "string"
+ }
+ },
+ "required": [
+ "code",
+ "message"
+ ],
+ "type": "object"
+ },
+ "local_runtime": {
+ "additionalProperties": true,
+ "description": "Present on tools that carry the local-runtime upgrade reminder.",
+ "properties": {
+ "cta": {
+ "description": "Upgrade line to surface to the user when local Pathrule (Studio or CLI) would serve them better than Remote MCP.",
+ "type": "string"
+ }
+ },
+ "required": [
+ "cta"
+ ],
+ "type": "object"
+ },
+ "ok": {
+ "description": "true when the call succeeded. false when it did not, in which case `error` carries the reason and the success fields are absent.",
+ "type": "boolean"
+ },
+ "protocol": {
+ "description": "Full protocol text. Sent only when the client did not already hold this protocol_version."
+ },
+ "protocol_unchanged": {
+ "const": true,
+ "description": "Present when known_protocol_version matched, meaning `protocol` was omitted on purpose.",
+ "type": "boolean"
+ },
+ "protocol_version": {
+ "description": "Version of the Pathrule agent protocol this response was built against. Cache it and pass it back as known_protocol_version.",
+ "type": "string"
+ },
+ "workspace_id": {
+ "description": "Workspace the context was resolved in.",
+ "type": "string"
+ }
+ },
+ "required": [
+ "ok"
+ ],
+ "type": "object"
+}