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 / 27-absent-null-unrecognized-trust.json

199 lines · 5290 bytes Raw Blame History
1{
2 "case": "27-absent-null-unrecognized-trust",
3 "description": "Three executed results whose trust label the pipeline cannot take as given (harness-side mock_provenance): read_file with trust absent and the adapter claiming trusted true; list_dir with trust null and trusted true; append_note (normally trusted_runtime) relabelled with the unrecognized trust \"sorta_trusted\". Absent and null become unknown with trusted null; the unrecognized string becomes external_untrusted with trusted false; the adapter-supplied trusted flag is never read. Checked as emitted and after a JCS round trip. The user request is registered first so the turn floor is user_supplied and the mock policy (0.3 cut E1) authorizes the append_note.",
4 "limits": {
5 "max_argument_bytes": 65536
6 },
7 "trace_id": "trace-27",
8 "mock_provenance": {
9 "read_file": {
10 "trusted": true
11 },
12 "list_dir": {
13 "trust": null,
14 "trusted": true
15 },
16 "append_note": {
17 "trust": "sorta_trusted"
18 }
19 },
20 "steps": [
21 {
22 "input": {
23 "input_id": "in-27-user",
24 "content_kind": "user_request",
25 "trust": "user_supplied",
26 "source": {
27 "kind": "operator",
28 "id": "drake"
29 },
30 "origin": "runtime:user-turn-1",
31 "content_digest": "sha256:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
32 "trace_id": "trace-27",
33 "parent_id": null,
34 "derived_from": []
35 }
36 },
37 {
38 "turn": 0,
39 "dialect": "openai",
40 "model": "mock-model",
41 "input": {
42 "role": "assistant",
43 "content": null,
44 "tool_calls": [
45 {
46 "id": "call_27a",
47 "type": "function",
48 "function": {
49 "name": "read_file",
50 "arguments": "{\"path\":\"/tmp/a.txt\"}"
51 }
52 },
53 {
54 "id": "call_27b",
55 "type": "function",
56 "function": {
57 "name": "list_dir",
58 "arguments": "{\"path\":\"/tmp\"}"
59 }
60 },
61 {
62 "id": "call_27c",
63 "type": "function",
64 "function": {
65 "name": "append_note",
66 "arguments": "{\"path\":\"/tmp/notes.md\",\"text\":\"hello\"}"
67 }
68 }
69 ]
70 }
71 }
72 ],
73 "expected": {
74 "observed": [
75 {
76 "request_id": "call_27a",
77 "stage": "SUCCEEDED",
78 "decision": "authorized",
79 "status": "ok",
80 "error_code": null,
81 "decide_invoked": true,
82 "execute_invoked": true,
83 "result_digest": null
84 },
85 {
86 "request_id": "call_27b",
87 "stage": "SUCCEEDED",
88 "decision": "authorized",
89 "status": "ok",
90 "error_code": null,
91 "decide_invoked": true,
92 "execute_invoked": true,
93 "result_digest": null
94 },
95 {
96 "request_id": "call_27c",
97 "stage": "SUCCEEDED",
98 "decision": "authorized",
99 "status": "ok",
100 "error_code": null,
101 "decide_invoked": true,
102 "execute_invoked": true,
103 "result_digest": null
104 }
105 ],
106 "turns": [
107 {
108 "turn": 0,
109 "outcome": "tool_request",
110 "intents": 3,
111 "rejected": 0,
112 "text": ""
113 }
114 ],
115 "runtime": {
116 "decide_calls": 3,
117 "execute_calls": 3
118 },
119 "result_checks": [
120 {
121 "request_id": "call_27a",
122 "path": "provenance.trust",
123 "equals": "unknown"
124 },
125 {
126 "request_id": "call_27a",
127 "path": "provenance.trust",
128 "equals": "unknown",
129 "round_trip": true
130 },
131 {
132 "request_id": "call_27a",
133 "path": "provenance.trusted",
134 "equals": null
135 },
136 {
137 "request_id": "call_27a",
138 "path": "provenance.trusted",
139 "equals": null,
140 "round_trip": true
141 },
142 {
143 "request_id": "call_27b",
144 "path": "provenance.trust",
145 "equals": "unknown"
146 },
147 {
148 "request_id": "call_27b",
149 "path": "provenance.trust",
150 "equals": "unknown",
151 "round_trip": true
152 },
153 {
154 "request_id": "call_27b",
155 "path": "provenance.trusted",
156 "equals": null
157 },
158 {
159 "request_id": "call_27b",
160 "path": "provenance.trusted",
161 "equals": null,
162 "round_trip": true
163 },
164 {
165 "request_id": "call_27c",
166 "path": "provenance.trust",
167 "equals": "external_untrusted"
168 },
169 {
170 "request_id": "call_27c",
171 "path": "provenance.trust",
172 "equals": "external_untrusted",
173 "round_trip": true
174 },
175 {
176 "request_id": "call_27c",
177 "path": "provenance.trusted",
178 "equals": false
179 },
180 {
181 "request_id": "call_27c",
182 "path": "provenance.trusted",
183 "equals": false,
184 "round_trip": true
185 },
186 {
187 "request_id": "call_27c",
188 "path": "provenance.content_kind",
189 "equals": "workspace_content"
190 },
191 {
192 "request_id": "call_27c",
193 "path": "provenance.content_kind",
194 "equals": "workspace_content",
195 "round_trip": true
196 }
197 ]
198 }
199}