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 / 28-input-ledger-continues.json
| 1 | { |
| 2 | "case": "28-input-ledger-continues", |
| 3 | "description": "The pipeline records every rendered result as an InputRecord (parent_id is the request_id) and the next turn's tool_requests see it: the exposure floor falls from user_supplied to workspace_untrusted to external_untrusted as memory and web results enter the ledger. Inputs are never removed.", |
| 4 | "limits": { |
| 5 | "max_argument_bytes": 65536 |
| 6 | }, |
| 7 | "trace_id": "trace-28", |
| 8 | "steps": [ |
| 9 | { |
| 10 | "input": { |
| 11 | "input_id": "in-28-user", |
| 12 | "content_kind": "user_request", |
| 13 | "trust": "user_supplied", |
| 14 | "source": { |
| 15 | "kind": "operator", |
| 16 | "id": "drake" |
| 17 | }, |
| 18 | "origin": "user:prompt", |
| 19 | "content_digest": "sha256:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", |
| 20 | "trace_id": "trace-28", |
| 21 | "parent_id": null, |
| 22 | "derived_from": [] |
| 23 | } |
| 24 | }, |
| 25 | { |
| 26 | "turn": 0, |
| 27 | "dialect": "openai", |
| 28 | "model": "mock-model", |
| 29 | "input": { |
| 30 | "role": "assistant", |
| 31 | "content": null, |
| 32 | "tool_calls": [ |
| 33 | { |
| 34 | "id": "call_28a", |
| 35 | "type": "function", |
| 36 | "function": { |
| 37 | "name": "recall_memory", |
| 38 | "arguments": "{\"query\": \"tests\"}" |
| 39 | } |
| 40 | } |
| 41 | ] |
| 42 | } |
| 43 | }, |
| 44 | { |
| 45 | "turn": 1, |
| 46 | "dialect": "openai", |
| 47 | "model": "mock-model", |
| 48 | "continues": true, |
| 49 | "input": { |
| 50 | "role": "assistant", |
| 51 | "content": null, |
| 52 | "tool_calls": [ |
| 53 | { |
| 54 | "id": "call_28b", |
| 55 | "type": "function", |
| 56 | "function": { |
| 57 | "name": "web_fetch", |
| 58 | "arguments": "{\"url\": \"https://example.com/page\"}" |
| 59 | } |
| 60 | } |
| 61 | ] |
| 62 | } |
| 63 | }, |
| 64 | { |
| 65 | "turn": 2, |
| 66 | "dialect": "openai", |
| 67 | "model": "mock-model", |
| 68 | "continues": true, |
| 69 | "input": { |
| 70 | "role": "assistant", |
| 71 | "content": null, |
| 72 | "tool_calls": [ |
| 73 | { |
| 74 | "id": "call_28c", |
| 75 | "type": "function", |
| 76 | "function": { |
| 77 | "name": "list_dir", |
| 78 | "arguments": "{\"path\": \"/tmp\"}" |
| 79 | } |
| 80 | } |
| 81 | ] |
| 82 | } |
| 83 | } |
| 84 | ], |
| 85 | "expected": { |
| 86 | "observed": [ |
| 87 | { |
| 88 | "request_id": "call_28a", |
| 89 | "stage": "SUCCEEDED", |
| 90 | "decision": "authorized", |
| 91 | "status": "ok", |
| 92 | "error_code": null, |
| 93 | "decide_invoked": true, |
| 94 | "execute_invoked": true, |
| 95 | "result_digest": null |
| 96 | }, |
| 97 | { |
| 98 | "request_id": "call_28b", |
| 99 | "stage": "SUCCEEDED", |
| 100 | "decision": "authorized", |
| 101 | "status": "ok", |
| 102 | "error_code": null, |
| 103 | "decide_invoked": true, |
| 104 | "execute_invoked": true, |
| 105 | "result_digest": null |
| 106 | }, |
| 107 | { |
| 108 | "request_id": "call_28c", |
| 109 | "stage": "SUCCEEDED", |
| 110 | "decision": "authorized", |
| 111 | "status": "ok", |
| 112 | "error_code": null, |
| 113 | "decide_invoked": true, |
| 114 | "execute_invoked": true, |
| 115 | "result_digest": null |
| 116 | } |
| 117 | ], |
| 118 | "turns": [ |
| 119 | { |
| 120 | "turn": 0, |
| 121 | "outcome": "tool_request", |
| 122 | "intents": 1, |
| 123 | "rejected": 0, |
| 124 | "text": "" |
| 125 | }, |
| 126 | { |
| 127 | "turn": 1, |
| 128 | "outcome": "tool_request", |
| 129 | "intents": 1, |
| 130 | "rejected": 0, |
| 131 | "text": "" |
| 132 | }, |
| 133 | { |
| 134 | "turn": 2, |
| 135 | "outcome": "tool_request", |
| 136 | "intents": 1, |
| 137 | "rejected": 0, |
| 138 | "text": "" |
| 139 | } |
| 140 | ], |
| 141 | "runtime": { |
| 142 | "decide_calls": 3, |
| 143 | "execute_calls": 3 |
| 144 | }, |
| 145 | "inputs": [ |
| 146 | { |
| 147 | "input_id": "in-28-user", |
| 148 | "content_kind": "user_request", |
| 149 | "trust": "user_supplied", |
| 150 | "source": { |
| 151 | "kind": "operator", |
| 152 | "id": "drake" |
| 153 | }, |
| 154 | "origin": "user:prompt", |
| 155 | "content_digest": "sha256:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", |
| 156 | "trace_id": "trace-28", |
| 157 | "parent_id": null, |
| 158 | "derived_from": [] |
| 159 | }, |
| 160 | { |
| 161 | "input_id": "in-auto-0", |
| 162 | "content_kind": "memory", |
| 163 | "trust": "workspace_untrusted", |
| 164 | "source": { |
| 165 | "kind": "runtime", |
| 166 | "id": "mock" |
| 167 | }, |
| 168 | "origin": "runtime:mock", |
| 169 | "trace_id": "trace-28", |
| 170 | "parent_id": "call_28a", |
| 171 | "derived_from": [], |
| 172 | "content_digest": "sha256:a095be98e2fcb65b663206008baae917b76dc4d058e970147acc4a83a5d2aedc" |
| 173 | }, |
| 174 | { |
| 175 | "input_id": "in-auto-1", |
| 176 | "content_kind": "web_content", |
| 177 | "trust": "external_untrusted", |
| 178 | "source": { |
| 179 | "kind": "runtime", |
| 180 | "id": "mock" |
| 181 | }, |
| 182 | "origin": "runtime:mock", |
| 183 | "trace_id": "trace-28", |
| 184 | "parent_id": "call_28b", |
| 185 | "derived_from": [], |
| 186 | "content_digest": "sha256:b47a780a310060ded4fe2f28ef1e492c38d6aeda9642a553c7655b38e5185f49" |
| 187 | }, |
| 188 | { |
| 189 | "input_id": "in-auto-2", |
| 190 | "content_kind": "tool_result", |
| 191 | "trust": "unknown", |
| 192 | "source": { |
| 193 | "kind": "runtime", |
| 194 | "id": "mock" |
| 195 | }, |
| 196 | "origin": "runtime:mock", |
| 197 | "trace_id": "trace-28", |
| 198 | "parent_id": "call_28c", |
| 199 | "derived_from": [], |
| 200 | "content_digest": "sha256:f3c9007bb6e656c560f57d1a752ca2fdda1f1829aca02dd2247eea370fa8f540" |
| 201 | } |
| 202 | ], |
| 203 | "exposure": [ |
| 204 | { |
| 205 | "request_id": "call_28a", |
| 206 | "inputs": [ |
| 207 | "in-28-user" |
| 208 | ], |
| 209 | "floor": "user_supplied" |
| 210 | }, |
| 211 | { |
| 212 | "request_id": "call_28b", |
| 213 | "inputs": [ |
| 214 | "in-28-user", |
| 215 | "in-auto-0" |
| 216 | ], |
| 217 | "floor": "workspace_untrusted" |
| 218 | }, |
| 219 | { |
| 220 | "request_id": "call_28c", |
| 221 | "inputs": [ |
| 222 | "in-28-user", |
| 223 | "in-auto-0", |
| 224 | "in-auto-1" |
| 225 | ], |
| 226 | "floor": "external_untrusted" |
| 227 | } |
| 228 | ] |
| 229 | } |
| 230 | } |