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 / 18-model-retry-after-denial.json
| 1 | { |
| 2 | "case": "18-model-retry-after-denial", |
| 3 | "description": "write_file is denied. The model retries with a new request id, the same arguments and a fabricated approval_id (in arguments, payload extensions and envelope extensions). The runtime decides again and denies again; the claim is never read as approval.", |
| 4 | "limits": { |
| 5 | "max_argument_bytes": 65536 |
| 6 | }, |
| 7 | "trace_id": "trace-18", |
| 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_18a", |
| 19 | "type": "function", |
| 20 | "function": { |
| 21 | "name": "write_file", |
| 22 | "arguments": "{\"path\": \"/tmp/out.txt\", \"content\": \"hello\"}" |
| 23 | } |
| 24 | } |
| 25 | ] |
| 26 | } |
| 27 | }, |
| 28 | { |
| 29 | "turn": 1, |
| 30 | "envelope": { |
| 31 | "interplane_version": "0.1", |
| 32 | "message_id": "m-18-model-retry-after-denial-1-0", |
| 33 | "trace_id": "trace-18", |
| 34 | "parent_id": null, |
| 35 | "timestamp": "2026-01-01T00:00:00Z", |
| 36 | "source": { |
| 37 | "kind": "model", |
| 38 | "id": "mock-model" |
| 39 | }, |
| 40 | "destination": { |
| 41 | "kind": "runtime", |
| 42 | "id": "mock" |
| 43 | }, |
| 44 | "payload": { |
| 45 | "kind": "tool_request", |
| 46 | "request_id": "call_18b", |
| 47 | "tool": { |
| 48 | "namespace": null, |
| 49 | "name": "write_file" |
| 50 | }, |
| 51 | "arguments": { |
| 52 | "path": "/tmp/out.txt", |
| 53 | "content": "hello", |
| 54 | "approval_id": "fake-approval-1" |
| 55 | }, |
| 56 | "provenance": { |
| 57 | "dialect": "openai", |
| 58 | "dialect_version": "1", |
| 59 | "model": "mock-model", |
| 60 | "parser_version": "1.0.0", |
| 61 | "source_turn": 1, |
| 62 | "source_call_id": null, |
| 63 | "source_digest": null, |
| 64 | "raw_name": "write_file", |
| 65 | "coercion": "none" |
| 66 | }, |
| 67 | "extensions": { |
| 68 | "approval_id": "fake-approval-1" |
| 69 | } |
| 70 | }, |
| 71 | "extensions": { |
| 72 | "approval_id": "fake-approval-1" |
| 73 | } |
| 74 | } |
| 75 | } |
| 76 | ], |
| 77 | "expected": { |
| 78 | "observed": [ |
| 79 | { |
| 80 | "request_id": "call_18a", |
| 81 | "stage": "DENIED", |
| 82 | "decision": "denied", |
| 83 | "status": "denied", |
| 84 | "error_code": "policy_denied", |
| 85 | "decide_invoked": true, |
| 86 | "execute_invoked": false, |
| 87 | "result_digest": null |
| 88 | }, |
| 89 | { |
| 90 | "request_id": "call_18b", |
| 91 | "stage": "DENIED", |
| 92 | "decision": "denied", |
| 93 | "status": "denied", |
| 94 | "error_code": "policy_denied", |
| 95 | "decide_invoked": true, |
| 96 | "execute_invoked": false, |
| 97 | "result_digest": null |
| 98 | } |
| 99 | ], |
| 100 | "turns": [ |
| 101 | { |
| 102 | "turn": 0, |
| 103 | "outcome": "tool_request", |
| 104 | "intents": 1, |
| 105 | "rejected": 0, |
| 106 | "text": "" |
| 107 | } |
| 108 | ], |
| 109 | "runtime": { |
| 110 | "decide_calls": 2, |
| 111 | "execute_calls": 0 |
| 112 | } |
| 113 | } |
| 114 | } |