interplane-mv
INTERPLANE: open interoperability protocol between AI models and agent runtimes. Models express intent. Runtimes retain authority.
Brought by drakestapleton
interplane-mv / conformance / fixtures / 06-explicit-approval.json
| 1 | { |
| 2 | "case": "06-explicit-approval", |
| 3 | "description": "delete_file requires approval. The result carries the runtime-minted approval_id and nothing executes.", |
| 4 | "limits": { |
| 5 | "max_argument_bytes": 65536 |
| 6 | }, |
| 7 | "trace_id": "trace-06", |
| 8 | "steps": [ |
| 9 | { |
| 10 | "turn": 0, |
| 11 | "dialect": "openai", |
| 12 | "model": "mock-model", |
| 13 | "input": { |
| 14 | "role": "assistant", |
| 15 | "content": null, |
| 16 | "tool_calls": [ |
| 17 | { |
| 18 | "id": "call_06a", |
| 19 | "type": "function", |
| 20 | "function": { |
| 21 | "name": "delete_file", |
| 22 | "arguments": "{\"path\": \"/tmp/old.txt\"}" |
| 23 | } |
| 24 | } |
| 25 | ] |
| 26 | } |
| 27 | } |
| 28 | ], |
| 29 | "expected": { |
| 30 | "observed": [ |
| 31 | { |
| 32 | "request_id": "call_06a", |
| 33 | "stage": "REQUIRES_APPROVAL", |
| 34 | "decision": "requires_approval", |
| 35 | "status": "requires_approval", |
| 36 | "error_code": "approval_required", |
| 37 | "decide_invoked": true, |
| 38 | "execute_invoked": false, |
| 39 | "result_digest": null |
| 40 | } |
| 41 | ], |
| 42 | "turns": [ |
| 43 | { |
| 44 | "turn": 0, |
| 45 | "outcome": "tool_request", |
| 46 | "intents": 1, |
| 47 | "rejected": 0, |
| 48 | "text": "" |
| 49 | } |
| 50 | ], |
| 51 | "runtime": { |
| 52 | "decide_calls": 1, |
| 53 | "execute_calls": 0 |
| 54 | }, |
| 55 | "result_checks": [ |
| 56 | { |
| 57 | "request_id": "call_06a", |
| 58 | "path": "decision.approval.approval_id", |
| 59 | "equals": "mock-approval-call_06a" |
| 60 | }, |
| 61 | { |
| 62 | "request_id": "call_06a", |
| 63 | "path": "decision.approval.scope", |
| 64 | "equals": "single_action" |
| 65 | } |
| 66 | ] |
| 67 | } |
| 68 | } |