interplane.Get Omega
Read in your language

interplane-mv

INTERPLANE: open interoperability protocol between AI models and agent runtimes. Models express intent. Runtimes retain authority.

Brought by drakestapleton

branch main Branches Tags History

interplane-mv / spec / schemas / decision.schema.json

40 lines · 2537 bytes Raw Blame History
1{
2 "$schema": "https://json-schema.org/draft/2020-12/schema",
3 "$id": "https://interplane.dev/schemas/0.1/decision.schema.json",
4 "title": "INTERPLANE Decision (Crossveil)",
5 "description": "The runtime's explicit authority decision about one capability request. Only a runtime produces this. A receiver that sees a decision value it does not know MUST treat it as denied.",
6 "type": "object",
7 "required": ["kind", "request_id", "decision", "authority"],
8 "properties": {
9 "kind": {"const": "decision"},
10 "request_id": {"$ref": "common.schema.json#/$defs/Id"},
11 "decision": {"type": "string", "enum": ["authorized", "denied", "requires_approval", "not_found", "invalid"]},
12 "capability": {"type": ["string", "null"], "maxLength": 256},
13 "authority": {
14 "type": "object",
15 "required": ["runtime", "policy_engine"],
16 "properties": {
17 "runtime": {"type": "string", "minLength": 1, "maxLength": 256},
18 "policy_engine": {"type": "string", "minLength": 1, "maxLength": 256, "description": "Name of the runtime component that decided (e.g. odysseus.tool_capabilities, aien.safety_engine)."},
19 "decision_id": {"type": ["string", "null"], "maxLength": 256, "description": "Runtime-local id of the decision record, if any."}
20 },
21 "additionalProperties": true
22 },
23 "reason": {"type": ["string", "null"], "maxLength": 4096, "description": "Human-readable, redacted. Must not leak policy internals or secrets."},
24 "constraints": {"type": "array", "items": {"type": "string"}, "description": "Restrictions attached to an authorization (e.g. AIEN AllowRestricted). Informational to the model; binding on the runtime."},
25 "approval": {
26 "type": ["object", "null"],
27 "description": "Present only with requires_approval. The approval_id is minted by the runtime and only the runtime can honour it.",
28 "required": ["approval_id"],
29 "properties": {
30 "approval_id": {"type": "string", "minLength": 1, "maxLength": 256},
31 "scope": {"type": ["string", "null"], "maxLength": 128},
32 "expires_at": {"oneOf": [{"$ref": "common.schema.json#/$defs/Timestamp"}, {"type": "null"}]}
33 },
34 "additionalProperties": true
35 },
36 "runtime_state": {"oneOf": [{"$ref": "common.schema.json#/$defs/RuntimeExtension"}, {"type": "null"}], "description": "Runtime-native decision detail (e.g. odysseus.tool_gate, aien.doctrine_decision)."},
37 "extensions": {"type": "object", "additionalProperties": true}
38 },
39 "additionalProperties": true
40}