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 / conformance / fixtures / approval / 11-retry-new-request-id.json

158 lines · 4196 bytes Raw Blame History
1{
2 "case": "approval-A11-retry-new-request-id",
3 "description": "After requires_approval the model retries with a new request_id: it is decided afresh and gets its own approval_id. The old approval_id does not transfer to it.",
4 "limits": {
5 "max_argument_bytes": 65536
6 },
7 "trace_id": "trace-a11",
8 "steps": [
9 {
10 "turn": 0,
11 "envelope": {
12 "interplane_version": "0.1",
13 "message_id": "m-approval-A11-retry-new-request-id-0",
14 "trace_id": "trace-a11",
15 "parent_id": null,
16 "timestamp": "2026-01-01T00:00:00Z",
17 "source": {
18 "kind": "model",
19 "id": "mock-model"
20 },
21 "destination": {
22 "kind": "runtime",
23 "id": "mock"
24 },
25 "payload": {
26 "kind": "tool_request",
27 "request_id": "call_a11a",
28 "tool": {
29 "namespace": null,
30 "name": "delete_file"
31 },
32 "arguments": {
33 "path": "/tmp/old.txt"
34 },
35 "provenance": {
36 "dialect": "openai",
37 "dialect_version": "1",
38 "model": "mock-model",
39 "parser_version": "1.0.0",
40 "source_turn": 0,
41 "source_call_id": null,
42 "source_digest": null,
43 "raw_name": "delete_file",
44 "coercion": "none"
45 }
46 }
47 }
48 },
49 {
50 "turn": 0,
51 "envelope": {
52 "interplane_version": "0.1",
53 "message_id": "m-approval-A11-retry-new-request-id-1",
54 "trace_id": "trace-a11",
55 "parent_id": null,
56 "timestamp": "2026-01-01T00:00:00Z",
57 "source": {
58 "kind": "model",
59 "id": "mock-model"
60 },
61 "destination": {
62 "kind": "runtime",
63 "id": "mock"
64 },
65 "payload": {
66 "kind": "tool_request",
67 "request_id": "call_a11b",
68 "tool": {
69 "namespace": null,
70 "name": "delete_file"
71 },
72 "arguments": {
73 "path": "/tmp/old.txt"
74 },
75 "provenance": {
76 "dialect": "openai",
77 "dialect_version": "1",
78 "model": "mock-model",
79 "parser_version": "1.0.0",
80 "source_turn": 0,
81 "source_call_id": null,
82 "source_digest": null,
83 "raw_name": "delete_file",
84 "coercion": "none"
85 }
86 }
87 }
88 },
89 {
90 "approve": {
91 "request_id": "call_a11b",
92 "approval_id": "mock-approval-call_a11a"
93 }
94 }
95 ],
96 "expected": {
97 "observed": [
98 {
99 "request_id": "call_a11a",
100 "stage": "REQUIRES_APPROVAL",
101 "decision": "requires_approval",
102 "status": "requires_approval",
103 "error_code": "approval_required",
104 "decide_invoked": true,
105 "execute_invoked": false,
106 "result_digest": null
107 },
108 {
109 "request_id": "call_a11b",
110 "stage": "REQUIRES_APPROVAL",
111 "decision": "requires_approval",
112 "status": "requires_approval",
113 "error_code": "approval_required",
114 "decide_invoked": true,
115 "execute_invoked": false,
116 "result_digest": null
117 },
118 {
119 "request_id": "call_a11b",
120 "stage": "DENIED",
121 "decision": "denied",
122 "status": "denied",
123 "error_code": "policy_denied",
124 "decide_invoked": false,
125 "execute_invoked": false,
126 "result_digest": null
127 }
128 ],
129 "turns": [],
130 "runtime": {
131 "decide_calls": 2,
132 "execute_calls": 0
133 },
134 "result_checks": [
135 {
136 "request_id": "call_a11a",
137 "path": "decision.approval.approval_id",
138 "equals": "mock-approval-call_a11a"
139 },
140 {
141 "request_id": "call_a11b",
142 "path": "decision.approval.approval_id",
143 "equals": "mock-approval-call_a11b"
144 }
145 ],
146 "continuations": [
147 {
148 "step": 2,
149 "kind": "approve",
150 "request_id": "call_a11b",
151 "outcome": "resolved",
152 "stage": "DENIED",
153 "reason": null,
154 "message": "approval refused: approval_id does not match"
155 }
156 ]
157 }
158}