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 / envelope.schema.json
| 1 | { |
| 2 | "$schema": "https://json-schema.org/draft/2020-12/schema", |
| 3 | "$id": "https://interplane.dev/schemas/0.1/envelope.schema.json", |
| 4 | "title": "INTERPLANE Envelope (Vectorveil v0.1)", |
| 5 | "description": "The transport-neutral wrapper for every INTERPLANE message. A valid envelope means the message is structurally understandable. It never means the action is authorized.", |
| 6 | "type": "object", |
| 7 | "required": [ |
| 8 | "interplane_version", |
| 9 | "message_id", |
| 10 | "trace_id", |
| 11 | "timestamp", |
| 12 | "source", |
| 13 | "destination", |
| 14 | "payload" |
| 15 | ], |
| 16 | "properties": { |
| 17 | "interplane_version": { |
| 18 | "$ref": "common.schema.json#/$defs/ProtocolVersion" |
| 19 | }, |
| 20 | "message_id": { |
| 21 | "$ref": "common.schema.json#/$defs/Id", |
| 22 | "description": "Unique per message within a trace. A repeated message_id is a replay." |
| 23 | }, |
| 24 | "trace_id": { |
| 25 | "$ref": "common.schema.json#/$defs/Id", |
| 26 | "description": "Correlates every message of one model/runtime exchange." |
| 27 | }, |
| 28 | "parent_id": { |
| 29 | "oneOf": [ |
| 30 | { |
| 31 | "$ref": "common.schema.json#/$defs/Id" |
| 32 | }, |
| 33 | { |
| 34 | "type": "null" |
| 35 | } |
| 36 | ], |
| 37 | "default": null |
| 38 | }, |
| 39 | "timestamp": { |
| 40 | "$ref": "common.schema.json#/$defs/Timestamp" |
| 41 | }, |
| 42 | "source": { |
| 43 | "$ref": "common.schema.json#/$defs/Party" |
| 44 | }, |
| 45 | "destination": { |
| 46 | "$ref": "common.schema.json#/$defs/Party" |
| 47 | }, |
| 48 | "payload": { |
| 49 | "type": "object", |
| 50 | "required": [ |
| 51 | "kind" |
| 52 | ], |
| 53 | "properties": { |
| 54 | "kind": { |
| 55 | "type": "string", |
| 56 | "enum": [ |
| 57 | "tool_request", |
| 58 | "capability_request", |
| 59 | "decision", |
| 60 | "result", |
| 61 | "event", |
| 62 | "catalog", |
| 63 | "selection", |
| 64 | "probe_report" |
| 65 | ] |
| 66 | } |
| 67 | }, |
| 68 | "oneOf": [ |
| 69 | { |
| 70 | "$ref": "intent.schema.json" |
| 71 | }, |
| 72 | { |
| 73 | "$ref": "capability.schema.json" |
| 74 | }, |
| 75 | { |
| 76 | "$ref": "decision.schema.json" |
| 77 | }, |
| 78 | { |
| 79 | "$ref": "result.schema.json" |
| 80 | }, |
| 81 | { |
| 82 | "$ref": "event.schema.json" |
| 83 | }, |
| 84 | { |
| 85 | "$ref": "catalog.schema.json" |
| 86 | }, |
| 87 | { |
| 88 | "$ref": "selection.schema.json" |
| 89 | }, |
| 90 | { |
| 91 | "$ref": "probe.schema.json" |
| 92 | } |
| 93 | ] |
| 94 | }, |
| 95 | "digest": { |
| 96 | "oneOf": [ |
| 97 | { |
| 98 | "$ref": "common.schema.json#/$defs/Digest" |
| 99 | }, |
| 100 | { |
| 101 | "type": "null" |
| 102 | } |
| 103 | ], |
| 104 | "description": "Optional SHA-256 of the canonical (RFC 8785) payload bytes." |
| 105 | }, |
| 106 | "signature": { |
| 107 | "type": [ |
| 108 | "object", |
| 109 | "null" |
| 110 | ], |
| 111 | "description": "Reserved for a future signing extension. A signature proves origin, never authorization.", |
| 112 | "additionalProperties": true |
| 113 | }, |
| 114 | "extensions": { |
| 115 | "type": "object", |
| 116 | "additionalProperties": true |
| 117 | } |
| 118 | }, |
| 119 | "additionalProperties": true |
| 120 | } |