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 / approval / 17-provider-fails-after-approval.json
| 1 | { |
| 2 | "case": "approval-A17-provider-fails-after-approval", |
| 3 | "description": "Protocol case A15 (bench/PROTOCOL-0.3.md 3.3): the approved effect fails at the provider after the approval was spent. The failure is reported (FAILED, execution_error), the request is terminal, and presenting the same approval again is refused with no second execute.", |
| 4 | "limits": { |
| 5 | "max_argument_bytes": 65536 |
| 6 | }, |
| 7 | "mock_fault": { |
| 8 | "execute_raises": [ |
| 9 | "delete_file" |
| 10 | ] |
| 11 | }, |
| 12 | "trace_id": "trace-a17", |
| 13 | "steps": [ |
| 14 | { |
| 15 | "turn": 0, |
| 16 | "envelope": { |
| 17 | "interplane_version": "0.1", |
| 18 | "message_id": "m-approval-A17-provider-fails-after-approval-0", |
| 19 | "trace_id": "trace-a17", |
| 20 | "parent_id": null, |
| 21 | "timestamp": "2026-01-01T00:00:00Z", |
| 22 | "source": { |
| 23 | "kind": "model", |
| 24 | "id": "mock-model" |
| 25 | }, |
| 26 | "destination": { |
| 27 | "kind": "runtime", |
| 28 | "id": "mock" |
| 29 | }, |
| 30 | "payload": { |
| 31 | "kind": "tool_request", |
| 32 | "request_id": "call_a17", |
| 33 | "tool": { |
| 34 | "namespace": null, |
| 35 | "name": "delete_file" |
| 36 | }, |
| 37 | "arguments": { |
| 38 | "path": "/tmp/sub/old.txt" |
| 39 | }, |
| 40 | "provenance": { |
| 41 | "dialect": "openai", |
| 42 | "dialect_version": "1", |
| 43 | "model": "mock-model", |
| 44 | "parser_version": "1.0.0", |
| 45 | "source_turn": 0, |
| 46 | "source_call_id": null, |
| 47 | "source_digest": null, |
| 48 | "raw_name": "delete_file", |
| 49 | "coercion": "none" |
| 50 | } |
| 51 | } |
| 52 | } |
| 53 | }, |
| 54 | { |
| 55 | "approve": { |
| 56 | "request_id": "call_a17", |
| 57 | "approval_id": "mock-approval-call_a17" |
| 58 | } |
| 59 | }, |
| 60 | { |
| 61 | "approve": { |
| 62 | "request_id": "call_a17", |
| 63 | "approval_id": "mock-approval-call_a17" |
| 64 | } |
| 65 | } |
| 66 | ], |
| 67 | "expected": { |
| 68 | "observed": [ |
| 69 | { |
| 70 | "request_id": "call_a17", |
| 71 | "stage": "REQUIRES_APPROVAL", |
| 72 | "decision": "requires_approval", |
| 73 | "status": "requires_approval", |
| 74 | "error_code": "approval_required", |
| 75 | "decide_invoked": true, |
| 76 | "execute_invoked": false, |
| 77 | "result_digest": null |
| 78 | }, |
| 79 | { |
| 80 | "request_id": "call_a17", |
| 81 | "stage": "FAILED", |
| 82 | "decision": "authorized", |
| 83 | "status": "error", |
| 84 | "error_code": "execution_error", |
| 85 | "decide_invoked": false, |
| 86 | "execute_invoked": true, |
| 87 | "result_digest": null |
| 88 | } |
| 89 | ], |
| 90 | "turns": [], |
| 91 | "runtime": { |
| 92 | "decide_calls": 1, |
| 93 | "execute_calls": 1 |
| 94 | }, |
| 95 | "continuations": [ |
| 96 | { |
| 97 | "step": 1, |
| 98 | "kind": "approve", |
| 99 | "request_id": "call_a17", |
| 100 | "outcome": "resolved", |
| 101 | "stage": "FAILED", |
| 102 | "reason": null, |
| 103 | "message": "runtime authority raised an error" |
| 104 | }, |
| 105 | { |
| 106 | "step": 2, |
| 107 | "kind": "approve", |
| 108 | "request_id": "call_a17", |
| 109 | "outcome": "refused", |
| 110 | "stage": "FAILED", |
| 111 | "reason": "no_pending_approval", |
| 112 | "message": null |
| 113 | } |
| 114 | ] |
| 115 | }, |
| 116 | "protocol_case": "A15" |
| 117 | } |