interplane-mv
INTERPLANE: open interoperability protocol between AI models and agent runtimes. Models express intent. Runtimes retain authority.
Brought by drakestapleton
interplane-mv / spec / schemas / intent.schema.json
| 1 | { |
| 2 | "$schema": "https://json-schema.org/draft/2020-12/schema", |
| 3 | "$id": "https://interplane.dev/schemas/0.1/intent.schema.json", |
| 4 | "title": "INTERPLANE Intent: tool_request", |
| 5 | "description": "Canonical model intent produced by Lenshift. Expresses what a model asked for. Carries no authority.", |
| 6 | "type": "object", |
| 7 | "required": ["kind", "request_id", "tool", "arguments", "provenance"], |
| 8 | "properties": { |
| 9 | "kind": {"const": "tool_request"}, |
| 10 | "request_id": {"$ref": "common.schema.json#/$defs/Id", "description": "Unique per trace. Duplicates are rejected."}, |
| 11 | "tool": {"$ref": "common.schema.json#/$defs/ToolRef"}, |
| 12 | "arguments": {"type": "object", "additionalProperties": true, "description": "Always a JSON object. Non-object arguments are a malformed_tool_call."}, |
| 13 | "provenance": { |
| 14 | "type": "object", |
| 15 | "required": ["dialect", "parser_version"], |
| 16 | "properties": { |
| 17 | "dialect": {"type": "string", "pattern": "^[a-z][a-z0-9_]*$"}, |
| 18 | "dialect_version": {"type": ["string", "null"]}, |
| 19 | "model": {"type": ["string", "null"], "maxLength": 256}, |
| 20 | "parser_version": {"type": "string", "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"}, |
| 21 | "source_turn": {"type": ["integer", "null"], "minimum": 0}, |
| 22 | "source_call_id": {"type": ["string", "null"], "maxLength": 256, "description": "The dialect-native call id if the dialect has one (e.g. OpenAI tool_call.id)."}, |
| 23 | "source_digest": {"oneOf": [{"$ref": "common.schema.json#/$defs/Digest"}, {"type": "null"}], "description": "SHA-256 of the original dialect-native representation. Raw text is not persisted by default."}, |
| 24 | "raw_name": {"type": ["string", "null"], "description": "Exactly what the model emitted as the tool name before canonicalization."}, |
| 25 | "coercion": {"type": ["string", "null"], "enum": ["none", "json_guess", null], "description": "How untyped dialect values were typed."}, |
| 26 | "exposure": { |
| 27 | "type": "object", |
| 28 | "required": ["inputs", "floor"], |
| 29 | "properties": { |
| 30 | "inputs": {"type": "array", "items": {"$ref": "common.schema.json#/$defs/Id"}, "description": "input_ids visible to the model when it produced the turn."}, |
| 31 | "floor": {"$ref": "common.schema.json#/$defs/TrustLevel", "description": "Least trusted level among those inputs. Order: trusted_runtime > user_supplied > workspace_untrusted > external_untrusted; unknown counts as external_untrusted."} |
| 32 | }, |
| 33 | "additionalProperties": true, |
| 34 | "description": "Computed by the pipeline from its own ledger. A value arriving inside a model-produced or admitted envelope is discarded and recomputed, never read." |
| 35 | } |
| 36 | }, |
| 37 | "additionalProperties": true |
| 38 | }, |
| 39 | "extensions": {"type": "object", "additionalProperties": true} |
| 40 | }, |
| 41 | "additionalProperties": true |
| 42 | } |