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 / 29-input-derived-from.json
| 1 | { |
| 2 | "case": "29-input-derived-from", |
| 3 | "description": "derived_from on nested content is kept as registered. A summary derived from a registered input leaves the floor at user_supplied. An input derived from an id the ledger does not hold cannot be traced, so it counts as external_untrusted whatever trust the host gave it (fail closed).", |
| 4 | "limits": { |
| 5 | "max_argument_bytes": 65536 |
| 6 | }, |
| 7 | "trace_id": "trace-29", |
| 8 | "steps": [ |
| 9 | { |
| 10 | "input": { |
| 11 | "input_id": "in-29-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-29", |
| 21 | "parent_id": null, |
| 22 | "derived_from": [] |
| 23 | } |
| 24 | }, |
| 25 | { |
| 26 | "input": { |
| 27 | "input_id": "in-29-summary", |
| 28 | "content_kind": "document", |
| 29 | "trust": "user_supplied", |
| 30 | "source": { |
| 31 | "kind": "operator", |
| 32 | "id": "drake" |
| 33 | }, |
| 34 | "origin": "file:summary.md", |
| 35 | "content_digest": "sha256:bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb", |
| 36 | "trace_id": "trace-29", |
| 37 | "parent_id": null, |
| 38 | "derived_from": [ |
| 39 | "in-29-user" |
| 40 | ] |
| 41 | } |
| 42 | }, |
| 43 | { |
| 44 | "turn": 0, |
| 45 | "dialect": "openai", |
| 46 | "model": "mock-model", |
| 47 | "input": { |
| 48 | "role": "assistant", |
| 49 | "content": null, |
| 50 | "tool_calls": [ |
| 51 | { |
| 52 | "id": "call_29a", |
| 53 | "type": "function", |
| 54 | "function": { |
| 55 | "name": "append_note", |
| 56 | "arguments": "{\"path\": \"/tmp/notes.md\", \"text\": \"hello\"}" |
| 57 | } |
| 58 | } |
| 59 | ] |
| 60 | } |
| 61 | }, |
| 62 | { |
| 63 | "input": { |
| 64 | "input_id": "in-29-orphan", |
| 65 | "content_kind": "skill", |
| 66 | "trust": "trusted_runtime", |
| 67 | "source": { |
| 68 | "kind": "runtime", |
| 69 | "id": "host" |
| 70 | }, |
| 71 | "origin": "runtime:host", |
| 72 | "content_digest": "sha256:cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", |
| 73 | "trace_id": "trace-29", |
| 74 | "parent_id": null, |
| 75 | "derived_from": [ |
| 76 | "in-29-missing" |
| 77 | ] |
| 78 | } |
| 79 | }, |
| 80 | { |
| 81 | "turn": 1, |
| 82 | "dialect": "openai", |
| 83 | "model": "mock-model", |
| 84 | "continues": true, |
| 85 | "input": { |
| 86 | "role": "assistant", |
| 87 | "content": null, |
| 88 | "tool_calls": [ |
| 89 | { |
| 90 | "id": "call_29b", |
| 91 | "type": "function", |
| 92 | "function": { |
| 93 | "name": "list_dir", |
| 94 | "arguments": "{\"path\": \"/tmp\"}" |
| 95 | } |
| 96 | } |
| 97 | ] |
| 98 | } |
| 99 | } |
| 100 | ], |
| 101 | "expected": { |
| 102 | "observed": [ |
| 103 | { |
| 104 | "request_id": "call_29a", |
| 105 | "stage": "SUCCEEDED", |
| 106 | "decision": "authorized", |
| 107 | "status": "ok", |
| 108 | "error_code": null, |
| 109 | "decide_invoked": true, |
| 110 | "execute_invoked": true, |
| 111 | "result_digest": null |
| 112 | }, |
| 113 | { |
| 114 | "request_id": "call_29b", |
| 115 | "stage": "SUCCEEDED", |
| 116 | "decision": "authorized", |
| 117 | "status": "ok", |
| 118 | "error_code": null, |
| 119 | "decide_invoked": true, |
| 120 | "execute_invoked": true, |
| 121 | "result_digest": null |
| 122 | } |
| 123 | ], |
| 124 | "turns": [ |
| 125 | { |
| 126 | "turn": 0, |
| 127 | "outcome": "tool_request", |
| 128 | "intents": 1, |
| 129 | "rejected": 0, |
| 130 | "text": "" |
| 131 | }, |
| 132 | { |
| 133 | "turn": 1, |
| 134 | "outcome": "tool_request", |
| 135 | "intents": 1, |
| 136 | "rejected": 0, |
| 137 | "text": "" |
| 138 | } |
| 139 | ], |
| 140 | "runtime": { |
| 141 | "decide_calls": 2, |
| 142 | "execute_calls": 2 |
| 143 | }, |
| 144 | "inputs": [ |
| 145 | { |
| 146 | "input_id": "in-29-user", |
| 147 | "content_kind": "user_request", |
| 148 | "trust": "user_supplied", |
| 149 | "source": { |
| 150 | "kind": "operator", |
| 151 | "id": "drake" |
| 152 | }, |
| 153 | "origin": "user:prompt", |
| 154 | "content_digest": "sha256:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", |
| 155 | "trace_id": "trace-29", |
| 156 | "parent_id": null, |
| 157 | "derived_from": [] |
| 158 | }, |
| 159 | { |
| 160 | "input_id": "in-29-summary", |
| 161 | "content_kind": "document", |
| 162 | "trust": "user_supplied", |
| 163 | "source": { |
| 164 | "kind": "operator", |
| 165 | "id": "drake" |
| 166 | }, |
| 167 | "origin": "file:summary.md", |
| 168 | "content_digest": "sha256:bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb", |
| 169 | "trace_id": "trace-29", |
| 170 | "parent_id": null, |
| 171 | "derived_from": [ |
| 172 | "in-29-user" |
| 173 | ] |
| 174 | }, |
| 175 | { |
| 176 | "input_id": "in-auto-0", |
| 177 | "content_kind": "workspace_content", |
| 178 | "trust": "trusted_runtime", |
| 179 | "source": { |
| 180 | "kind": "runtime", |
| 181 | "id": "mock" |
| 182 | }, |
| 183 | "origin": "runtime:mock", |
| 184 | "trace_id": "trace-29", |
| 185 | "parent_id": "call_29a", |
| 186 | "derived_from": [], |
| 187 | "content_digest": "sha256:57eede4dba9330a0aa51027b0780dd01b7fe516f32f7c98d99171db9e7dacafc" |
| 188 | }, |
| 189 | { |
| 190 | "input_id": "in-29-orphan", |
| 191 | "content_kind": "skill", |
| 192 | "trust": "trusted_runtime", |
| 193 | "source": { |
| 194 | "kind": "runtime", |
| 195 | "id": "host" |
| 196 | }, |
| 197 | "origin": "runtime:host", |
| 198 | "content_digest": "sha256:cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", |
| 199 | "trace_id": "trace-29", |
| 200 | "parent_id": null, |
| 201 | "derived_from": [ |
| 202 | "in-29-missing" |
| 203 | ] |
| 204 | }, |
| 205 | { |
| 206 | "input_id": "in-auto-1", |
| 207 | "content_kind": "tool_result", |
| 208 | "trust": "unknown", |
| 209 | "source": { |
| 210 | "kind": "runtime", |
| 211 | "id": "mock" |
| 212 | }, |
| 213 | "origin": "runtime:mock", |
| 214 | "content_digest": "sha256:583fa4b8bc4fc388ec6c552c756ca0047f6fe190a7cf095880cd7ab26eb18862", |
| 215 | "trace_id": "trace-29", |
| 216 | "parent_id": "call_29b", |
| 217 | "derived_from": [] |
| 218 | } |
| 219 | ], |
| 220 | "exposure": [ |
| 221 | { |
| 222 | "request_id": "call_29a", |
| 223 | "inputs": [ |
| 224 | "in-29-user", |
| 225 | "in-29-summary" |
| 226 | ], |
| 227 | "floor": "user_supplied" |
| 228 | }, |
| 229 | { |
| 230 | "request_id": "call_29b", |
| 231 | "inputs": [ |
| 232 | "in-29-user", |
| 233 | "in-29-summary", |
| 234 | "in-auto-0", |
| 235 | "in-29-orphan" |
| 236 | ], |
| 237 | "floor": "external_untrusted" |
| 238 | } |
| 239 | ] |
| 240 | } |
| 241 | } |