A request through a Magpie group or fallback names the group, so 0.1.1's onRequest found no provider rule and sent old reasoning, ciphertext and item IDs to members whose filter was on. onProvider now filters each provider try with the tried provider's rule (`magpie:<ctx.provider.id>`, through aliases). A direct provider/model request filtered in onRequest is marked in ctx.state.historyFiltered and its tries pass it on. A try with no rule, a rule off, another protocol, the compact path or history that can't move is returned unchanged (onProvider can't reject). cases.json gains 10 synthetic provider-try cases in the shared scripts/middleware.mjs format (no real data). Run at the reviewed head c50f542 (on mote): - `HOME=$(mktemp -d) bun test`: 3776 pass, 8 skip, 0 fail. - `bun scripts/check.mjs`: exit 0. - PR's tests against the 0.1.1 middleware: 8 fail (the group/fallback cases and the export check), 34 pass. - Probes in magpie's own engine (moejs, origin/main 3bce283df, internal/middleware Run.Request + Run.Tried, not committed): a group with a filtered, an unfiltered, a rule-off member, a retry on the filtered one and a member with another include rule: each try filtered by its own rule, the retry byte-identical to the first, unfiltered tries byte-identical to the request. A direct request: filtered once in onRequest, its try, a retry and a fallback to another provider sent what onRequest left. ctx.state doesn't reach the next request. Red on 0.1.1 (group), red with the historyFiltered guard removed (fallback re-filtered) and red with onProvider setting the flag (retry unfiltered). - PROVENANCE: the shipped files' sha256 match unisong/magpie-codex-history-filter at 43e0b5c, which is on its main. Not tried: a real Magpie with real providers; a group whose members speak different protocols.
2408 lines
54 KiB
JSON
2408 lines
54 KiB
JSON
[
|
|
{
|
|
"name": "default configuration passes history unchanged",
|
|
"ctx": {
|
|
"protocol": "responses",
|
|
"path": "/v1/responses"
|
|
},
|
|
"options": {},
|
|
"request": {
|
|
"model": "demo/gpt-6-astra",
|
|
"reasoning": {
|
|
"effort": "high"
|
|
},
|
|
"include": [
|
|
"reasoning.encrypted_content",
|
|
"message.output_text.logprobs"
|
|
],
|
|
"input": [
|
|
{
|
|
"type": "reasoning",
|
|
"id": "rs_old",
|
|
"encrypted_content": "foreign"
|
|
},
|
|
{
|
|
"type": "message",
|
|
"id": "msg_old",
|
|
"role": "assistant",
|
|
"content": [
|
|
{
|
|
"type": "output_text",
|
|
"text": "Keep answer."
|
|
},
|
|
{
|
|
"type": "encrypted_content",
|
|
"data": "foreign"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "function_call",
|
|
"id": "fc_old",
|
|
"call_id": "pair",
|
|
"name": "lookup",
|
|
"arguments": "{\"id\":\"business\"}"
|
|
},
|
|
{
|
|
"type": "function_call_output",
|
|
"id": "out_old",
|
|
"call_id": "pair",
|
|
"output": "keep result"
|
|
},
|
|
{
|
|
"type": "message",
|
|
"role": "user",
|
|
"content": [
|
|
{
|
|
"type": "input_file",
|
|
"file_id": "file_keep"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"name": "unknown provider passes through",
|
|
"ctx": {
|
|
"protocol": "responses",
|
|
"path": "/v1/responses"
|
|
},
|
|
"options": {
|
|
"providers": {
|
|
"magpie:demo": {
|
|
"historyFilter": true,
|
|
"preserveEncryptedInclude": true
|
|
}
|
|
}
|
|
},
|
|
"request": {
|
|
"model": "backup/gpt-6-astra",
|
|
"reasoning": {
|
|
"effort": "high"
|
|
},
|
|
"include": [
|
|
"reasoning.encrypted_content",
|
|
"message.output_text.logprobs"
|
|
],
|
|
"input": [
|
|
{
|
|
"type": "reasoning",
|
|
"id": "rs_old",
|
|
"encrypted_content": "foreign"
|
|
},
|
|
{
|
|
"type": "message",
|
|
"id": "msg_old",
|
|
"role": "assistant",
|
|
"content": [
|
|
{
|
|
"type": "output_text",
|
|
"text": "Keep answer."
|
|
},
|
|
{
|
|
"type": "encrypted_content",
|
|
"data": "foreign"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "function_call",
|
|
"id": "fc_old",
|
|
"call_id": "pair",
|
|
"name": "lookup",
|
|
"arguments": "{\"id\":\"business\"}"
|
|
},
|
|
{
|
|
"type": "function_call_output",
|
|
"id": "out_old",
|
|
"call_id": "pair",
|
|
"output": "keep result"
|
|
},
|
|
{
|
|
"type": "message",
|
|
"role": "user",
|
|
"content": [
|
|
{
|
|
"type": "input_file",
|
|
"file_id": "file_keep"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"name": "disabled provider passes through",
|
|
"ctx": {
|
|
"protocol": "responses",
|
|
"path": "/v1/responses"
|
|
},
|
|
"options": {
|
|
"providers": {
|
|
"magpie:demo": {
|
|
"historyFilter": false
|
|
}
|
|
}
|
|
},
|
|
"request": {
|
|
"model": "demo/gpt-6-astra",
|
|
"reasoning": {
|
|
"effort": "high"
|
|
},
|
|
"include": [
|
|
"reasoning.encrypted_content",
|
|
"message.output_text.logprobs"
|
|
],
|
|
"input": [
|
|
{
|
|
"type": "reasoning",
|
|
"id": "rs_old",
|
|
"encrypted_content": "foreign"
|
|
},
|
|
{
|
|
"type": "message",
|
|
"id": "msg_old",
|
|
"role": "assistant",
|
|
"content": [
|
|
{
|
|
"type": "output_text",
|
|
"text": "Keep answer."
|
|
},
|
|
{
|
|
"type": "encrypted_content",
|
|
"data": "foreign"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "function_call",
|
|
"id": "fc_old",
|
|
"call_id": "pair",
|
|
"name": "lookup",
|
|
"arguments": "{\"id\":\"business\"}"
|
|
},
|
|
{
|
|
"type": "function_call_output",
|
|
"id": "out_old",
|
|
"call_id": "pair",
|
|
"output": "keep result"
|
|
},
|
|
{
|
|
"type": "message",
|
|
"role": "user",
|
|
"content": [
|
|
{
|
|
"type": "input_file",
|
|
"file_id": "file_keep"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"name": "non-Responses protocol passes through",
|
|
"ctx": {
|
|
"protocol": "anthropic"
|
|
},
|
|
"options": {
|
|
"providers": {
|
|
"magpie:demo": {
|
|
"historyFilter": true,
|
|
"preserveEncryptedInclude": true
|
|
}
|
|
}
|
|
},
|
|
"request": {
|
|
"model": "demo/gpt-6-astra",
|
|
"reasoning": {
|
|
"effort": "high"
|
|
},
|
|
"include": [
|
|
"reasoning.encrypted_content",
|
|
"message.output_text.logprobs"
|
|
],
|
|
"input": [
|
|
{
|
|
"type": "reasoning",
|
|
"id": "rs_old",
|
|
"encrypted_content": "foreign"
|
|
},
|
|
{
|
|
"type": "message",
|
|
"id": "msg_old",
|
|
"role": "assistant",
|
|
"content": [
|
|
{
|
|
"type": "output_text",
|
|
"text": "Keep answer."
|
|
},
|
|
{
|
|
"type": "encrypted_content",
|
|
"data": "foreign"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "function_call",
|
|
"id": "fc_old",
|
|
"call_id": "pair",
|
|
"name": "lookup",
|
|
"arguments": "{\"id\":\"business\"}"
|
|
},
|
|
{
|
|
"type": "function_call_output",
|
|
"id": "out_old",
|
|
"call_id": "pair",
|
|
"output": "keep result"
|
|
},
|
|
{
|
|
"type": "message",
|
|
"role": "user",
|
|
"content": [
|
|
{
|
|
"type": "input_file",
|
|
"file_id": "file_keep"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"name": "bare model cannot accidentally match provider rule",
|
|
"ctx": {
|
|
"protocol": "responses",
|
|
"path": "/v1/responses"
|
|
},
|
|
"options": {
|
|
"providers": {
|
|
"magpie:demo": {
|
|
"historyFilter": true,
|
|
"preserveEncryptedInclude": true
|
|
}
|
|
}
|
|
},
|
|
"request": {
|
|
"model": "demo",
|
|
"reasoning": {
|
|
"effort": "high"
|
|
},
|
|
"include": [
|
|
"reasoning.encrypted_content",
|
|
"message.output_text.logprobs"
|
|
],
|
|
"input": [
|
|
{
|
|
"type": "reasoning",
|
|
"id": "rs_old",
|
|
"encrypted_content": "foreign"
|
|
},
|
|
{
|
|
"type": "message",
|
|
"id": "msg_old",
|
|
"role": "assistant",
|
|
"content": [
|
|
{
|
|
"type": "output_text",
|
|
"text": "Keep answer."
|
|
},
|
|
{
|
|
"type": "encrypted_content",
|
|
"data": "foreign"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "function_call",
|
|
"id": "fc_old",
|
|
"call_id": "pair",
|
|
"name": "lookup",
|
|
"arguments": "{\"id\":\"business\"}"
|
|
},
|
|
{
|
|
"type": "function_call_output",
|
|
"id": "out_old",
|
|
"call_id": "pair",
|
|
"output": "keep result"
|
|
},
|
|
{
|
|
"type": "message",
|
|
"role": "user",
|
|
"content": [
|
|
{
|
|
"type": "input_file",
|
|
"file_id": "file_keep"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"name": "portable history removes ciphertext and IDs but keeps text and call pairs",
|
|
"ctx": {
|
|
"protocol": "responses",
|
|
"path": "/v1/responses"
|
|
},
|
|
"options": {
|
|
"providers": {
|
|
"magpie:demo": {
|
|
"historyFilter": true,
|
|
"preserveEncryptedInclude": true
|
|
}
|
|
}
|
|
},
|
|
"request": {
|
|
"model": "demo/gpt-6-astra",
|
|
"reasoning": {
|
|
"effort": "high"
|
|
},
|
|
"include": [
|
|
"reasoning.encrypted_content",
|
|
"message.output_text.logprobs"
|
|
],
|
|
"input": [
|
|
{
|
|
"type": "reasoning",
|
|
"id": "rs_old",
|
|
"encrypted_content": "foreign"
|
|
},
|
|
{
|
|
"type": "message",
|
|
"id": "msg_old",
|
|
"role": "assistant",
|
|
"content": [
|
|
{
|
|
"type": "output_text",
|
|
"text": "Keep answer."
|
|
},
|
|
{
|
|
"type": "encrypted_content",
|
|
"data": "foreign"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "function_call",
|
|
"id": "fc_old",
|
|
"call_id": "pair",
|
|
"name": "lookup",
|
|
"arguments": "{\"id\":\"business\"}"
|
|
},
|
|
{
|
|
"type": "function_call_output",
|
|
"id": "out_old",
|
|
"call_id": "pair",
|
|
"output": "keep result"
|
|
},
|
|
{
|
|
"type": "message",
|
|
"role": "user",
|
|
"content": [
|
|
{
|
|
"type": "input_file",
|
|
"file_id": "file_keep"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"expect_request": {
|
|
"model": "demo/gpt-6-astra",
|
|
"reasoning": {
|
|
"effort": "high"
|
|
},
|
|
"include": [
|
|
"reasoning.encrypted_content",
|
|
"message.output_text.logprobs"
|
|
],
|
|
"input": [
|
|
{
|
|
"type": "message",
|
|
"role": "assistant",
|
|
"content": [
|
|
{
|
|
"type": "output_text",
|
|
"text": "Keep answer."
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "function_call",
|
|
"call_id": "pair",
|
|
"name": "lookup",
|
|
"arguments": "{\"id\":\"business\"}"
|
|
},
|
|
{
|
|
"type": "function_call_output",
|
|
"call_id": "pair",
|
|
"output": "keep result"
|
|
},
|
|
{
|
|
"type": "message",
|
|
"role": "user",
|
|
"content": [
|
|
{
|
|
"type": "input_file",
|
|
"file_id": "file_keep"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"store": false
|
|
}
|
|
},
|
|
{
|
|
"name": "filtering twice is idempotent",
|
|
"ctx": {
|
|
"protocol": "responses",
|
|
"path": "/v1/responses"
|
|
},
|
|
"options": {
|
|
"providers": {
|
|
"magpie:demo": {
|
|
"historyFilter": true,
|
|
"preserveEncryptedInclude": true
|
|
}
|
|
}
|
|
},
|
|
"request": {
|
|
"model": "demo/gpt-6-astra",
|
|
"reasoning": {
|
|
"effort": "high"
|
|
},
|
|
"include": [
|
|
"reasoning.encrypted_content",
|
|
"message.output_text.logprobs"
|
|
],
|
|
"input": [
|
|
{
|
|
"type": "message",
|
|
"role": "assistant",
|
|
"content": [
|
|
{
|
|
"type": "output_text",
|
|
"text": "Keep answer."
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "function_call",
|
|
"call_id": "pair",
|
|
"name": "lookup",
|
|
"arguments": "{\"id\":\"business\"}"
|
|
},
|
|
{
|
|
"type": "function_call_output",
|
|
"call_id": "pair",
|
|
"output": "keep result"
|
|
},
|
|
{
|
|
"type": "message",
|
|
"role": "user",
|
|
"content": [
|
|
{
|
|
"type": "input_file",
|
|
"file_id": "file_keep"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"store": false
|
|
},
|
|
"expect_request": {
|
|
"model": "demo/gpt-6-astra",
|
|
"reasoning": {
|
|
"effort": "high"
|
|
},
|
|
"include": [
|
|
"reasoning.encrypted_content",
|
|
"message.output_text.logprobs"
|
|
],
|
|
"input": [
|
|
{
|
|
"type": "message",
|
|
"role": "assistant",
|
|
"content": [
|
|
{
|
|
"type": "output_text",
|
|
"text": "Keep answer."
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "function_call",
|
|
"call_id": "pair",
|
|
"name": "lookup",
|
|
"arguments": "{\"id\":\"business\"}"
|
|
},
|
|
{
|
|
"type": "function_call_output",
|
|
"call_id": "pair",
|
|
"output": "keep result"
|
|
},
|
|
{
|
|
"type": "message",
|
|
"role": "user",
|
|
"content": [
|
|
{
|
|
"type": "input_file",
|
|
"file_id": "file_keep"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"store": false
|
|
}
|
|
},
|
|
{
|
|
"name": "include compatibility can be turned off",
|
|
"ctx": {
|
|
"protocol": "responses",
|
|
"path": "/v1/responses"
|
|
},
|
|
"options": {
|
|
"providers": {
|
|
"magpie:demo": {
|
|
"historyFilter": true,
|
|
"preserveEncryptedInclude": false
|
|
}
|
|
}
|
|
},
|
|
"request": {
|
|
"model": "demo/gpt-6-astra",
|
|
"reasoning": {
|
|
"effort": "high"
|
|
},
|
|
"include": [
|
|
"reasoning.encrypted_content",
|
|
"message.output_text.logprobs"
|
|
],
|
|
"input": [
|
|
{
|
|
"type": "reasoning",
|
|
"id": "rs_old",
|
|
"encrypted_content": "foreign"
|
|
},
|
|
{
|
|
"type": "message",
|
|
"id": "msg_old",
|
|
"role": "assistant",
|
|
"content": [
|
|
{
|
|
"type": "output_text",
|
|
"text": "Keep answer."
|
|
},
|
|
{
|
|
"type": "encrypted_content",
|
|
"data": "foreign"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "function_call",
|
|
"id": "fc_old",
|
|
"call_id": "pair",
|
|
"name": "lookup",
|
|
"arguments": "{\"id\":\"business\"}"
|
|
},
|
|
{
|
|
"type": "function_call_output",
|
|
"id": "out_old",
|
|
"call_id": "pair",
|
|
"output": "keep result"
|
|
},
|
|
{
|
|
"type": "message",
|
|
"role": "user",
|
|
"content": [
|
|
{
|
|
"type": "input_file",
|
|
"file_id": "file_keep"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"expect_request": {
|
|
"model": "demo/gpt-6-astra",
|
|
"reasoning": {
|
|
"effort": "high"
|
|
},
|
|
"include": [
|
|
"message.output_text.logprobs"
|
|
],
|
|
"input": [
|
|
{
|
|
"type": "message",
|
|
"role": "assistant",
|
|
"content": [
|
|
{
|
|
"type": "output_text",
|
|
"text": "Keep answer."
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "function_call",
|
|
"call_id": "pair",
|
|
"name": "lookup",
|
|
"arguments": "{\"id\":\"business\"}"
|
|
},
|
|
{
|
|
"type": "function_call_output",
|
|
"call_id": "pair",
|
|
"output": "keep result"
|
|
},
|
|
{
|
|
"type": "message",
|
|
"role": "user",
|
|
"content": [
|
|
{
|
|
"type": "input_file",
|
|
"file_id": "file_keep"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"store": false
|
|
}
|
|
},
|
|
{
|
|
"name": "old prefix aliases only select rule and preserve the model",
|
|
"ctx": {
|
|
"protocol": "responses",
|
|
"path": "/v1/responses"
|
|
},
|
|
"options": {
|
|
"providers": {
|
|
"magpie:demo": {
|
|
"historyFilter": true,
|
|
"preserveEncryptedInclude": true
|
|
}
|
|
},
|
|
"aliases": {
|
|
"old-demo": "demo"
|
|
}
|
|
},
|
|
"request": {
|
|
"model": "old-demo/gpt-6-astra",
|
|
"reasoning": {
|
|
"effort": "high"
|
|
},
|
|
"include": [
|
|
"reasoning.encrypted_content",
|
|
"message.output_text.logprobs"
|
|
],
|
|
"input": [
|
|
{
|
|
"type": "reasoning",
|
|
"id": "rs_old",
|
|
"encrypted_content": "foreign"
|
|
},
|
|
{
|
|
"type": "message",
|
|
"id": "msg_old",
|
|
"role": "assistant",
|
|
"content": [
|
|
{
|
|
"type": "output_text",
|
|
"text": "Keep answer."
|
|
},
|
|
{
|
|
"type": "encrypted_content",
|
|
"data": "foreign"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "function_call",
|
|
"id": "fc_old",
|
|
"call_id": "pair",
|
|
"name": "lookup",
|
|
"arguments": "{\"id\":\"business\"}"
|
|
},
|
|
{
|
|
"type": "function_call_output",
|
|
"id": "out_old",
|
|
"call_id": "pair",
|
|
"output": "keep result"
|
|
},
|
|
{
|
|
"type": "message",
|
|
"role": "user",
|
|
"content": [
|
|
{
|
|
"type": "input_file",
|
|
"file_id": "file_keep"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"expect_request": {
|
|
"model": "old-demo/gpt-6-astra",
|
|
"reasoning": {
|
|
"effort": "high"
|
|
},
|
|
"include": [
|
|
"reasoning.encrypted_content",
|
|
"message.output_text.logprobs"
|
|
],
|
|
"input": [
|
|
{
|
|
"type": "message",
|
|
"role": "assistant",
|
|
"content": [
|
|
{
|
|
"type": "output_text",
|
|
"text": "Keep answer."
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "function_call",
|
|
"call_id": "pair",
|
|
"name": "lookup",
|
|
"arguments": "{\"id\":\"business\"}"
|
|
},
|
|
{
|
|
"type": "function_call_output",
|
|
"call_id": "pair",
|
|
"output": "keep result"
|
|
},
|
|
{
|
|
"type": "message",
|
|
"role": "user",
|
|
"content": [
|
|
{
|
|
"type": "input_file",
|
|
"file_id": "file_keep"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"store": false
|
|
}
|
|
},
|
|
{
|
|
"name": "second configured supplier uses its own include preference",
|
|
"ctx": {
|
|
"protocol": "responses",
|
|
"path": "/v1/responses"
|
|
},
|
|
"options": {
|
|
"providers": {
|
|
"magpie:demo": {
|
|
"historyFilter": true,
|
|
"preserveEncryptedInclude": true
|
|
},
|
|
"magpie:backup": {
|
|
"historyFilter": true,
|
|
"preserveEncryptedInclude": false
|
|
}
|
|
}
|
|
},
|
|
"request": {
|
|
"model": "backup/gpt-6-astra",
|
|
"reasoning": {
|
|
"effort": "high"
|
|
},
|
|
"include": [
|
|
"reasoning.encrypted_content",
|
|
"message.output_text.logprobs"
|
|
],
|
|
"input": [
|
|
{
|
|
"type": "reasoning",
|
|
"id": "rs_old",
|
|
"encrypted_content": "foreign"
|
|
},
|
|
{
|
|
"type": "message",
|
|
"id": "msg_old",
|
|
"role": "assistant",
|
|
"content": [
|
|
{
|
|
"type": "output_text",
|
|
"text": "Keep answer."
|
|
},
|
|
{
|
|
"type": "encrypted_content",
|
|
"data": "foreign"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "function_call",
|
|
"id": "fc_old",
|
|
"call_id": "pair",
|
|
"name": "lookup",
|
|
"arguments": "{\"id\":\"business\"}"
|
|
},
|
|
{
|
|
"type": "function_call_output",
|
|
"id": "out_old",
|
|
"call_id": "pair",
|
|
"output": "keep result"
|
|
},
|
|
{
|
|
"type": "message",
|
|
"role": "user",
|
|
"content": [
|
|
{
|
|
"type": "input_file",
|
|
"file_id": "file_keep"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"expect_request": {
|
|
"model": "backup/gpt-6-astra",
|
|
"reasoning": {
|
|
"effort": "high"
|
|
},
|
|
"include": [
|
|
"message.output_text.logprobs"
|
|
],
|
|
"input": [
|
|
{
|
|
"type": "message",
|
|
"role": "assistant",
|
|
"content": [
|
|
{
|
|
"type": "output_text",
|
|
"text": "Keep answer."
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "function_call",
|
|
"call_id": "pair",
|
|
"name": "lookup",
|
|
"arguments": "{\"id\":\"business\"}"
|
|
},
|
|
{
|
|
"type": "function_call_output",
|
|
"call_id": "pair",
|
|
"output": "keep result"
|
|
},
|
|
{
|
|
"type": "message",
|
|
"role": "user",
|
|
"content": [
|
|
{
|
|
"type": "input_file",
|
|
"file_id": "file_keep"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"store": false
|
|
}
|
|
},
|
|
{
|
|
"name": "tool search histories keep schemas and call IDs",
|
|
"ctx": {
|
|
"protocol": "responses",
|
|
"path": "/v1/responses"
|
|
},
|
|
"options": {
|
|
"providers": {
|
|
"magpie:demo": {
|
|
"historyFilter": true,
|
|
"preserveEncryptedInclude": true
|
|
}
|
|
}
|
|
},
|
|
"request": {
|
|
"model": "demo/gpt-6-astra",
|
|
"input": [
|
|
{
|
|
"type": "tool_search_call",
|
|
"id": "tsc_old",
|
|
"call_id": "search_pair",
|
|
"execution": "client",
|
|
"arguments": {
|
|
"query": "lookup"
|
|
},
|
|
"status": "completed"
|
|
},
|
|
{
|
|
"type": "tool_search_output",
|
|
"id": "tso_old",
|
|
"call_id": "search_pair",
|
|
"execution": "client",
|
|
"tools": [
|
|
{
|
|
"type": "function",
|
|
"name": "lookup",
|
|
"parameters": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "additional_tools",
|
|
"id": "tools_old",
|
|
"role": "developer",
|
|
"tools": []
|
|
}
|
|
]
|
|
},
|
|
"expect_request": {
|
|
"model": "demo/gpt-6-astra",
|
|
"store": false,
|
|
"input": [
|
|
{
|
|
"type": "tool_search_call",
|
|
"call_id": "search_pair",
|
|
"execution": "client",
|
|
"arguments": {
|
|
"query": "lookup"
|
|
},
|
|
"status": "completed"
|
|
},
|
|
{
|
|
"type": "tool_search_output",
|
|
"call_id": "search_pair",
|
|
"execution": "client",
|
|
"tools": [
|
|
{
|
|
"type": "function",
|
|
"name": "lookup",
|
|
"parameters": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "additional_tools",
|
|
"role": "developer",
|
|
"tools": []
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"name": "custom tools and role-only messages retain content",
|
|
"ctx": {
|
|
"protocol": "responses",
|
|
"path": "/v1/responses"
|
|
},
|
|
"options": {
|
|
"providers": {
|
|
"magpie:demo": {
|
|
"historyFilter": true,
|
|
"preserveEncryptedInclude": true
|
|
}
|
|
}
|
|
},
|
|
"request": {
|
|
"model": "demo/gpt-6-astra",
|
|
"input": [
|
|
{
|
|
"type": "custom_tool_call",
|
|
"id": "ctc_old",
|
|
"call_id": "custom",
|
|
"name": "patch",
|
|
"input": "keep patch"
|
|
},
|
|
{
|
|
"type": "custom_tool_call_output",
|
|
"id": "ctco_old",
|
|
"call_id": "custom",
|
|
"output": "done"
|
|
},
|
|
{
|
|
"role": "user",
|
|
"id": "msg_old",
|
|
"content": "Continue"
|
|
}
|
|
]
|
|
},
|
|
"expect_request": {
|
|
"model": "demo/gpt-6-astra",
|
|
"store": false,
|
|
"input": [
|
|
{
|
|
"type": "custom_tool_call",
|
|
"call_id": "custom",
|
|
"name": "patch",
|
|
"input": "keep patch"
|
|
},
|
|
{
|
|
"type": "custom_tool_call_output",
|
|
"call_id": "custom",
|
|
"output": "done"
|
|
},
|
|
{
|
|
"role": "user",
|
|
"content": "Continue"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"name": "unknown server tool resource IDs are not guessed away",
|
|
"ctx": {
|
|
"protocol": "responses",
|
|
"path": "/v1/responses"
|
|
},
|
|
"options": {
|
|
"providers": {
|
|
"magpie:demo": {
|
|
"historyFilter": true,
|
|
"preserveEncryptedInclude": true
|
|
}
|
|
}
|
|
},
|
|
"request": {
|
|
"model": "demo/gpt-6-astra",
|
|
"input": [
|
|
{
|
|
"type": "file_search_call",
|
|
"id": "fs_keep",
|
|
"status": "completed",
|
|
"queries": [
|
|
"example"
|
|
],
|
|
"results": [
|
|
{
|
|
"id": "resource_keep",
|
|
"text": "Recorded file result"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"expect_request": {
|
|
"model": "demo/gpt-6-astra",
|
|
"store": false,
|
|
"input": [
|
|
{
|
|
"type": "file_search_call",
|
|
"id": "fs_keep",
|
|
"status": "completed",
|
|
"queries": [
|
|
"example"
|
|
],
|
|
"results": [
|
|
{
|
|
"id": "resource_keep",
|
|
"text": "Recorded file result"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"name": "plain string input is retained",
|
|
"ctx": {
|
|
"protocol": "responses",
|
|
"path": "/v1/responses"
|
|
},
|
|
"options": {
|
|
"providers": {
|
|
"magpie:demo": {
|
|
"historyFilter": true,
|
|
"preserveEncryptedInclude": true
|
|
}
|
|
}
|
|
},
|
|
"request": {
|
|
"model": "demo/gpt-6-astra",
|
|
"input": "Hello"
|
|
},
|
|
"expect_request": {
|
|
"model": "demo/gpt-6-astra",
|
|
"input": "Hello",
|
|
"store": false
|
|
}
|
|
},
|
|
{
|
|
"name": "reject previous response reference",
|
|
"ctx": {
|
|
"protocol": "responses",
|
|
"path": "/v1/responses"
|
|
},
|
|
"options": {
|
|
"providers": {
|
|
"magpie:demo": {
|
|
"historyFilter": true,
|
|
"preserveEncryptedInclude": true
|
|
}
|
|
}
|
|
},
|
|
"request": {
|
|
"model": "demo/gpt-6-astra",
|
|
"input": "Hello",
|
|
"previous_response_id": "resp_old"
|
|
},
|
|
"reject": {
|
|
"status": 400,
|
|
"message": "Codex history filter: Complete message/tool history"
|
|
}
|
|
},
|
|
{
|
|
"name": "reject conversation reference",
|
|
"ctx": {
|
|
"protocol": "responses",
|
|
"path": "/v1/responses"
|
|
},
|
|
"options": {
|
|
"providers": {
|
|
"magpie:demo": {
|
|
"historyFilter": true,
|
|
"preserveEncryptedInclude": true
|
|
}
|
|
}
|
|
},
|
|
"request": {
|
|
"model": "demo/gpt-6-astra",
|
|
"input": "Hello",
|
|
"conversation": "conv_old"
|
|
},
|
|
"reject": {
|
|
"status": 400,
|
|
"message": "Codex history filter: Complete message/tool history"
|
|
}
|
|
},
|
|
{
|
|
"name": "reject item reference",
|
|
"ctx": {
|
|
"protocol": "responses",
|
|
"path": "/v1/responses"
|
|
},
|
|
"options": {
|
|
"providers": {
|
|
"magpie:demo": {
|
|
"historyFilter": true,
|
|
"preserveEncryptedInclude": true
|
|
}
|
|
}
|
|
},
|
|
"request": {
|
|
"model": "demo/gpt-6-astra",
|
|
"input": [
|
|
{
|
|
"type": "item_reference",
|
|
"id": "item_old"
|
|
}
|
|
]
|
|
},
|
|
"reject": {
|
|
"status": 400,
|
|
"message": "Codex history filter: Encrypted compaction/context references"
|
|
}
|
|
},
|
|
{
|
|
"name": "reject encrypted compaction history",
|
|
"ctx": {
|
|
"protocol": "responses",
|
|
"path": "/v1/responses"
|
|
},
|
|
"options": {
|
|
"providers": {
|
|
"magpie:demo": {
|
|
"historyFilter": true,
|
|
"preserveEncryptedInclude": true
|
|
}
|
|
}
|
|
},
|
|
"request": {
|
|
"model": "demo/gpt-6-astra",
|
|
"input": [
|
|
{
|
|
"type": "compaction",
|
|
"encrypted_content": "sealed"
|
|
}
|
|
]
|
|
},
|
|
"reject": {
|
|
"status": 400,
|
|
"message": "Codex history filter: Encrypted compaction/context references"
|
|
}
|
|
},
|
|
{
|
|
"name": "reject automatic compaction",
|
|
"ctx": {
|
|
"protocol": "responses",
|
|
"path": "/v1/responses"
|
|
},
|
|
"options": {
|
|
"providers": {
|
|
"magpie:demo": {
|
|
"historyFilter": true,
|
|
"preserveEncryptedInclude": true
|
|
}
|
|
}
|
|
},
|
|
"request": {
|
|
"model": "demo/gpt-6-astra",
|
|
"input": "Hello",
|
|
"context_management": [
|
|
{
|
|
"type": "compaction"
|
|
}
|
|
]
|
|
},
|
|
"reject": {
|
|
"status": 400,
|
|
"message": "Codex history filter: Encrypted compaction is disabled"
|
|
}
|
|
},
|
|
{
|
|
"name": "reject invalid include",
|
|
"ctx": {
|
|
"protocol": "responses",
|
|
"path": "/v1/responses"
|
|
},
|
|
"options": {
|
|
"providers": {
|
|
"magpie:demo": {
|
|
"historyFilter": true,
|
|
"preserveEncryptedInclude": true
|
|
}
|
|
}
|
|
},
|
|
"request": {
|
|
"model": "demo/gpt-6-astra",
|
|
"input": "Hello",
|
|
"include": "reasoning.encrypted_content"
|
|
},
|
|
"reject": {
|
|
"status": 400,
|
|
"message": "Codex history filter: include must be an array"
|
|
}
|
|
},
|
|
{
|
|
"name": "reject invalid input",
|
|
"ctx": {
|
|
"protocol": "responses",
|
|
"path": "/v1/responses"
|
|
},
|
|
"options": {
|
|
"providers": {
|
|
"magpie:demo": {
|
|
"historyFilter": true,
|
|
"preserveEncryptedInclude": true
|
|
}
|
|
}
|
|
},
|
|
"request": {
|
|
"model": "demo/gpt-6-astra",
|
|
"input": {
|
|
"type": "message"
|
|
}
|
|
},
|
|
"reject": {
|
|
"status": 400,
|
|
"message": "Codex history filter: input must be a string or an array"
|
|
}
|
|
},
|
|
{
|
|
"name": "reject compact endpoint",
|
|
"ctx": {
|
|
"protocol": "responses",
|
|
"path": "/v1/responses/compact"
|
|
},
|
|
"options": {
|
|
"providers": {
|
|
"magpie:demo": {
|
|
"historyFilter": true,
|
|
"preserveEncryptedInclude": true
|
|
}
|
|
}
|
|
},
|
|
"request": {
|
|
"model": "demo/gpt-6-astra",
|
|
"input": "Hello"
|
|
},
|
|
"reject": {
|
|
"status": 409,
|
|
"message": "Codex history filter: encrypted compaction"
|
|
}
|
|
},
|
|
{
|
|
"name": "historical native search becomes text after reasoning filtering",
|
|
"ctx": {
|
|
"protocol": "responses",
|
|
"path": "/v1/responses"
|
|
},
|
|
"options": {
|
|
"providers": {
|
|
"magpie:demo": {
|
|
"historyFilter": true,
|
|
"preserveEncryptedInclude": true
|
|
}
|
|
}
|
|
},
|
|
"request": {
|
|
"model": "demo/gpt-6-astra",
|
|
"include": [
|
|
"reasoning.encrypted_content"
|
|
],
|
|
"reasoning": {
|
|
"effort": "xhigh"
|
|
},
|
|
"input": [
|
|
{
|
|
"type": "reasoning",
|
|
"id": "rs_foreign",
|
|
"summary": [],
|
|
"encrypted_content": "FOREIGN_CIPHERTEXT"
|
|
},
|
|
{
|
|
"type": "web_search_call",
|
|
"id": "ws_foreign",
|
|
"status": "completed",
|
|
"action": {
|
|
"type": "search",
|
|
"query": "example",
|
|
"sources": [
|
|
{
|
|
"type": "url",
|
|
"url": "https://example.invalid/rules"
|
|
}
|
|
]
|
|
},
|
|
"internal_chat_message_metadata_passthrough": {
|
|
"turn_id": "PRIVATE_TURN"
|
|
}
|
|
},
|
|
{
|
|
"type": "message",
|
|
"role": "assistant",
|
|
"content": "Recorded conclusion with citation https://example.invalid/rules"
|
|
},
|
|
{
|
|
"type": "function_call",
|
|
"id": "fc_old",
|
|
"call_id": "pair_keep",
|
|
"name": "read_file",
|
|
"arguments": "{\"id\":\"BUSINESS_ID\"}"
|
|
},
|
|
{
|
|
"type": "function_call_output",
|
|
"id": "fco_old",
|
|
"call_id": "pair_keep",
|
|
"output": "FILE_TEXT_KEEP"
|
|
}
|
|
]
|
|
},
|
|
"expect_request": {
|
|
"model": "demo/gpt-6-astra",
|
|
"include": [
|
|
"reasoning.encrypted_content"
|
|
],
|
|
"reasoning": {
|
|
"effort": "xhigh"
|
|
},
|
|
"input": [
|
|
{
|
|
"type": "message",
|
|
"role": "assistant",
|
|
"content": "[Historical web search activity; recorded data only, not a new tool call. Search results are not reconstructed.]\n{\"status\":\"completed\",\"action\":{\"type\":\"search\",\"query\":\"example\",\"sources\":[{\"type\":\"url\",\"url\":\"https://example.invalid/rules\"}]}}"
|
|
},
|
|
{
|
|
"type": "message",
|
|
"role": "assistant",
|
|
"content": "Recorded conclusion with citation https://example.invalid/rules"
|
|
},
|
|
{
|
|
"type": "function_call",
|
|
"call_id": "pair_keep",
|
|
"name": "read_file",
|
|
"arguments": "{\"id\":\"BUSINESS_ID\"}"
|
|
},
|
|
{
|
|
"type": "function_call_output",
|
|
"call_id": "pair_keep",
|
|
"output": "FILE_TEXT_KEEP"
|
|
}
|
|
],
|
|
"store": false
|
|
}
|
|
},
|
|
{
|
|
"name": "group try filters with the tried provider's rule",
|
|
"ctx": {
|
|
"protocol": "responses",
|
|
"path": "/v1/responses"
|
|
},
|
|
"options": {
|
|
"providers": {
|
|
"magpie:demo": {
|
|
"historyFilter": true,
|
|
"preserveEncryptedInclude": true
|
|
}
|
|
}
|
|
},
|
|
"request": {
|
|
"model": "group/sol-dedicated",
|
|
"reasoning": {
|
|
"effort": "high"
|
|
},
|
|
"include": [
|
|
"reasoning.encrypted_content",
|
|
"message.output_text.logprobs"
|
|
],
|
|
"input": [
|
|
{
|
|
"type": "reasoning",
|
|
"id": "rs_old",
|
|
"encrypted_content": "foreign"
|
|
},
|
|
{
|
|
"type": "message",
|
|
"id": "msg_old",
|
|
"role": "assistant",
|
|
"content": [
|
|
{
|
|
"type": "output_text",
|
|
"text": "Keep answer."
|
|
},
|
|
{
|
|
"type": "encrypted_content",
|
|
"data": "foreign"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "function_call",
|
|
"id": "fc_old",
|
|
"call_id": "pair",
|
|
"name": "lookup",
|
|
"arguments": "{\"id\":\"business\"}"
|
|
},
|
|
{
|
|
"type": "function_call_output",
|
|
"id": "out_old",
|
|
"call_id": "pair",
|
|
"output": "keep result"
|
|
},
|
|
{
|
|
"type": "message",
|
|
"role": "user",
|
|
"content": [
|
|
{
|
|
"type": "input_file",
|
|
"file_id": "file_keep"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"provider": {
|
|
"id": "demo",
|
|
"name": "demo",
|
|
"model": "gpt-6-astra"
|
|
},
|
|
"expect_request": {
|
|
"model": "group/sol-dedicated",
|
|
"reasoning": {
|
|
"effort": "high"
|
|
},
|
|
"include": [
|
|
"reasoning.encrypted_content",
|
|
"message.output_text.logprobs"
|
|
],
|
|
"input": [
|
|
{
|
|
"type": "message",
|
|
"role": "assistant",
|
|
"content": [
|
|
{
|
|
"type": "output_text",
|
|
"text": "Keep answer."
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "function_call",
|
|
"call_id": "pair",
|
|
"name": "lookup",
|
|
"arguments": "{\"id\":\"business\"}"
|
|
},
|
|
{
|
|
"type": "function_call_output",
|
|
"call_id": "pair",
|
|
"output": "keep result"
|
|
},
|
|
{
|
|
"type": "message",
|
|
"role": "user",
|
|
"content": [
|
|
{
|
|
"type": "input_file",
|
|
"file_id": "file_keep"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"store": false
|
|
}
|
|
},
|
|
{
|
|
"name": "fallback try uses that provider's own include preference",
|
|
"ctx": {
|
|
"protocol": "responses",
|
|
"path": "/v1/responses"
|
|
},
|
|
"options": {
|
|
"providers": {
|
|
"magpie:demo": {
|
|
"historyFilter": true,
|
|
"preserveEncryptedInclude": true
|
|
},
|
|
"magpie:backup": {
|
|
"historyFilter": true,
|
|
"preserveEncryptedInclude": false
|
|
}
|
|
}
|
|
},
|
|
"request": {
|
|
"model": "group/sol-dedicated",
|
|
"reasoning": {
|
|
"effort": "high"
|
|
},
|
|
"include": [
|
|
"reasoning.encrypted_content",
|
|
"message.output_text.logprobs"
|
|
],
|
|
"input": [
|
|
{
|
|
"type": "reasoning",
|
|
"id": "rs_old",
|
|
"encrypted_content": "foreign"
|
|
},
|
|
{
|
|
"type": "message",
|
|
"id": "msg_old",
|
|
"role": "assistant",
|
|
"content": [
|
|
{
|
|
"type": "output_text",
|
|
"text": "Keep answer."
|
|
},
|
|
{
|
|
"type": "encrypted_content",
|
|
"data": "foreign"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "function_call",
|
|
"id": "fc_old",
|
|
"call_id": "pair",
|
|
"name": "lookup",
|
|
"arguments": "{\"id\":\"business\"}"
|
|
},
|
|
{
|
|
"type": "function_call_output",
|
|
"id": "out_old",
|
|
"call_id": "pair",
|
|
"output": "keep result"
|
|
},
|
|
{
|
|
"type": "message",
|
|
"role": "user",
|
|
"content": [
|
|
{
|
|
"type": "input_file",
|
|
"file_id": "file_keep"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"provider": {
|
|
"id": "backup",
|
|
"name": "backup",
|
|
"model": "gpt-6-astra"
|
|
},
|
|
"expect_request": {
|
|
"model": "group/sol-dedicated",
|
|
"reasoning": {
|
|
"effort": "high"
|
|
},
|
|
"include": [
|
|
"message.output_text.logprobs"
|
|
],
|
|
"input": [
|
|
{
|
|
"type": "message",
|
|
"role": "assistant",
|
|
"content": [
|
|
{
|
|
"type": "output_text",
|
|
"text": "Keep answer."
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "function_call",
|
|
"call_id": "pair",
|
|
"name": "lookup",
|
|
"arguments": "{\"id\":\"business\"}"
|
|
},
|
|
{
|
|
"type": "function_call_output",
|
|
"call_id": "pair",
|
|
"output": "keep result"
|
|
},
|
|
{
|
|
"type": "message",
|
|
"role": "user",
|
|
"content": [
|
|
{
|
|
"type": "input_file",
|
|
"file_id": "file_keep"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"store": false
|
|
}
|
|
},
|
|
{
|
|
"name": "group search history becomes text on a filtered provider try",
|
|
"ctx": {
|
|
"protocol": "responses",
|
|
"path": "/v1/responses"
|
|
},
|
|
"options": {
|
|
"providers": {
|
|
"magpie:demo": {
|
|
"historyFilter": true,
|
|
"preserveEncryptedInclude": true
|
|
}
|
|
}
|
|
},
|
|
"request": {
|
|
"model": "group/sol-dedicated",
|
|
"include": [
|
|
"reasoning.encrypted_content"
|
|
],
|
|
"reasoning": {
|
|
"effort": "xhigh"
|
|
},
|
|
"input": [
|
|
{
|
|
"type": "reasoning",
|
|
"id": "rs_foreign",
|
|
"summary": [],
|
|
"encrypted_content": "FOREIGN_CIPHERTEXT"
|
|
},
|
|
{
|
|
"type": "web_search_call",
|
|
"id": "ws_foreign",
|
|
"status": "completed",
|
|
"action": {
|
|
"type": "search",
|
|
"query": "example",
|
|
"sources": [
|
|
{
|
|
"type": "url",
|
|
"url": "https://example.invalid/rules"
|
|
}
|
|
]
|
|
},
|
|
"internal_chat_message_metadata_passthrough": {
|
|
"turn_id": "PRIVATE_TURN"
|
|
}
|
|
},
|
|
{
|
|
"type": "message",
|
|
"role": "assistant",
|
|
"content": "Recorded conclusion with citation https://example.invalid/rules"
|
|
},
|
|
{
|
|
"type": "function_call",
|
|
"id": "fc_old",
|
|
"call_id": "pair_keep",
|
|
"name": "read_file",
|
|
"arguments": "{\"id\":\"BUSINESS_ID\"}"
|
|
},
|
|
{
|
|
"type": "function_call_output",
|
|
"id": "fco_old",
|
|
"call_id": "pair_keep",
|
|
"output": "FILE_TEXT_KEEP"
|
|
}
|
|
]
|
|
},
|
|
"provider": {
|
|
"id": "demo",
|
|
"name": "demo",
|
|
"model": "gpt-6-astra"
|
|
},
|
|
"expect_request": {
|
|
"model": "group/sol-dedicated",
|
|
"include": [
|
|
"reasoning.encrypted_content"
|
|
],
|
|
"reasoning": {
|
|
"effort": "xhigh"
|
|
},
|
|
"input": [
|
|
{
|
|
"type": "message",
|
|
"role": "assistant",
|
|
"content": "[Historical web search activity; recorded data only, not a new tool call. Search results are not reconstructed.]\n{\"status\":\"completed\",\"action\":{\"type\":\"search\",\"query\":\"example\",\"sources\":[{\"type\":\"url\",\"url\":\"https://example.invalid/rules\"}]}}"
|
|
},
|
|
{
|
|
"type": "message",
|
|
"role": "assistant",
|
|
"content": "Recorded conclusion with citation https://example.invalid/rules"
|
|
},
|
|
{
|
|
"type": "function_call",
|
|
"call_id": "pair_keep",
|
|
"name": "read_file",
|
|
"arguments": "{\"id\":\"BUSINESS_ID\"}"
|
|
},
|
|
{
|
|
"type": "function_call_output",
|
|
"call_id": "pair_keep",
|
|
"output": "FILE_TEXT_KEEP"
|
|
}
|
|
],
|
|
"store": false
|
|
}
|
|
},
|
|
{
|
|
"name": "group try alias selects the renamed provider's rule",
|
|
"ctx": {
|
|
"protocol": "responses",
|
|
"path": "/v1/responses"
|
|
},
|
|
"options": {
|
|
"providers": {
|
|
"magpie:demo": {
|
|
"historyFilter": true,
|
|
"preserveEncryptedInclude": true
|
|
}
|
|
},
|
|
"aliases": {
|
|
"old-demo": "demo"
|
|
}
|
|
},
|
|
"request": {
|
|
"model": "group/sol-dedicated",
|
|
"reasoning": {
|
|
"effort": "high"
|
|
},
|
|
"include": [
|
|
"reasoning.encrypted_content",
|
|
"message.output_text.logprobs"
|
|
],
|
|
"input": [
|
|
{
|
|
"type": "reasoning",
|
|
"id": "rs_old",
|
|
"encrypted_content": "foreign"
|
|
},
|
|
{
|
|
"type": "message",
|
|
"id": "msg_old",
|
|
"role": "assistant",
|
|
"content": [
|
|
{
|
|
"type": "output_text",
|
|
"text": "Keep answer."
|
|
},
|
|
{
|
|
"type": "encrypted_content",
|
|
"data": "foreign"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "function_call",
|
|
"id": "fc_old",
|
|
"call_id": "pair",
|
|
"name": "lookup",
|
|
"arguments": "{\"id\":\"business\"}"
|
|
},
|
|
{
|
|
"type": "function_call_output",
|
|
"id": "out_old",
|
|
"call_id": "pair",
|
|
"output": "keep result"
|
|
},
|
|
{
|
|
"type": "message",
|
|
"role": "user",
|
|
"content": [
|
|
{
|
|
"type": "input_file",
|
|
"file_id": "file_keep"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"provider": {
|
|
"id": "old-demo",
|
|
"name": "old-demo",
|
|
"model": "gpt-6-astra"
|
|
},
|
|
"expect_request": {
|
|
"model": "group/sol-dedicated",
|
|
"reasoning": {
|
|
"effort": "high"
|
|
},
|
|
"include": [
|
|
"reasoning.encrypted_content",
|
|
"message.output_text.logprobs"
|
|
],
|
|
"input": [
|
|
{
|
|
"type": "message",
|
|
"role": "assistant",
|
|
"content": [
|
|
{
|
|
"type": "output_text",
|
|
"text": "Keep answer."
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "function_call",
|
|
"call_id": "pair",
|
|
"name": "lookup",
|
|
"arguments": "{\"id\":\"business\"}"
|
|
},
|
|
{
|
|
"type": "function_call_output",
|
|
"call_id": "pair",
|
|
"output": "keep result"
|
|
},
|
|
{
|
|
"type": "message",
|
|
"role": "user",
|
|
"content": [
|
|
{
|
|
"type": "input_file",
|
|
"file_id": "file_keep"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"store": false
|
|
}
|
|
},
|
|
{
|
|
"name": "direct request is filtered once and its provider try keeps it",
|
|
"ctx": {
|
|
"protocol": "responses",
|
|
"path": "/v1/responses"
|
|
},
|
|
"options": {
|
|
"providers": {
|
|
"magpie:demo": {
|
|
"historyFilter": true,
|
|
"preserveEncryptedInclude": true
|
|
}
|
|
}
|
|
},
|
|
"request": {
|
|
"model": "demo/gpt-6-astra",
|
|
"reasoning": {
|
|
"effort": "high"
|
|
},
|
|
"include": [
|
|
"reasoning.encrypted_content",
|
|
"message.output_text.logprobs"
|
|
],
|
|
"input": [
|
|
{
|
|
"type": "reasoning",
|
|
"id": "rs_old",
|
|
"encrypted_content": "foreign"
|
|
},
|
|
{
|
|
"type": "message",
|
|
"id": "msg_old",
|
|
"role": "assistant",
|
|
"content": [
|
|
{
|
|
"type": "output_text",
|
|
"text": "Keep answer."
|
|
},
|
|
{
|
|
"type": "encrypted_content",
|
|
"data": "foreign"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "function_call",
|
|
"id": "fc_old",
|
|
"call_id": "pair",
|
|
"name": "lookup",
|
|
"arguments": "{\"id\":\"business\"}"
|
|
},
|
|
{
|
|
"type": "function_call_output",
|
|
"id": "out_old",
|
|
"call_id": "pair",
|
|
"output": "keep result"
|
|
},
|
|
{
|
|
"type": "message",
|
|
"role": "user",
|
|
"content": [
|
|
{
|
|
"type": "input_file",
|
|
"file_id": "file_keep"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"provider": {
|
|
"id": "demo",
|
|
"name": "demo",
|
|
"model": "gpt-6-astra"
|
|
},
|
|
"expect_request": {
|
|
"model": "demo/gpt-6-astra",
|
|
"reasoning": {
|
|
"effort": "high"
|
|
},
|
|
"include": [
|
|
"reasoning.encrypted_content",
|
|
"message.output_text.logprobs"
|
|
],
|
|
"input": [
|
|
{
|
|
"type": "message",
|
|
"role": "assistant",
|
|
"content": [
|
|
{
|
|
"type": "output_text",
|
|
"text": "Keep answer."
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "function_call",
|
|
"call_id": "pair",
|
|
"name": "lookup",
|
|
"arguments": "{\"id\":\"business\"}"
|
|
},
|
|
{
|
|
"type": "function_call_output",
|
|
"call_id": "pair",
|
|
"output": "keep result"
|
|
},
|
|
{
|
|
"type": "message",
|
|
"role": "user",
|
|
"content": [
|
|
{
|
|
"type": "input_file",
|
|
"file_id": "file_keep"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"store": false
|
|
}
|
|
},
|
|
{
|
|
"name": "group try on a provider without a rule passes unchanged",
|
|
"ctx": {
|
|
"protocol": "responses",
|
|
"path": "/v1/responses"
|
|
},
|
|
"options": {
|
|
"providers": {
|
|
"magpie:demo": {
|
|
"historyFilter": true,
|
|
"preserveEncryptedInclude": true
|
|
}
|
|
}
|
|
},
|
|
"request": {
|
|
"model": "group/sol-dedicated",
|
|
"reasoning": {
|
|
"effort": "high"
|
|
},
|
|
"include": [
|
|
"reasoning.encrypted_content",
|
|
"message.output_text.logprobs"
|
|
],
|
|
"input": [
|
|
{
|
|
"type": "reasoning",
|
|
"id": "rs_old",
|
|
"encrypted_content": "foreign"
|
|
},
|
|
{
|
|
"type": "message",
|
|
"id": "msg_old",
|
|
"role": "assistant",
|
|
"content": [
|
|
{
|
|
"type": "output_text",
|
|
"text": "Keep answer."
|
|
},
|
|
{
|
|
"type": "encrypted_content",
|
|
"data": "foreign"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "function_call",
|
|
"id": "fc_old",
|
|
"call_id": "pair",
|
|
"name": "lookup",
|
|
"arguments": "{\"id\":\"business\"}"
|
|
},
|
|
{
|
|
"type": "function_call_output",
|
|
"id": "out_old",
|
|
"call_id": "pair",
|
|
"output": "keep result"
|
|
},
|
|
{
|
|
"type": "message",
|
|
"role": "user",
|
|
"content": [
|
|
{
|
|
"type": "input_file",
|
|
"file_id": "file_keep"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"provider": {
|
|
"id": "other",
|
|
"name": "other",
|
|
"model": "gpt-6-astra"
|
|
}
|
|
},
|
|
{
|
|
"name": "group try on a disabled provider passes unchanged",
|
|
"ctx": {
|
|
"protocol": "responses",
|
|
"path": "/v1/responses"
|
|
},
|
|
"options": {
|
|
"providers": {
|
|
"magpie:demo": {
|
|
"historyFilter": false,
|
|
"preserveEncryptedInclude": true
|
|
}
|
|
}
|
|
},
|
|
"request": {
|
|
"model": "group/sol-dedicated",
|
|
"reasoning": {
|
|
"effort": "high"
|
|
},
|
|
"include": [
|
|
"reasoning.encrypted_content",
|
|
"message.output_text.logprobs"
|
|
],
|
|
"input": [
|
|
{
|
|
"type": "reasoning",
|
|
"id": "rs_old",
|
|
"encrypted_content": "foreign"
|
|
},
|
|
{
|
|
"type": "message",
|
|
"id": "msg_old",
|
|
"role": "assistant",
|
|
"content": [
|
|
{
|
|
"type": "output_text",
|
|
"text": "Keep answer."
|
|
},
|
|
{
|
|
"type": "encrypted_content",
|
|
"data": "foreign"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "function_call",
|
|
"id": "fc_old",
|
|
"call_id": "pair",
|
|
"name": "lookup",
|
|
"arguments": "{\"id\":\"business\"}"
|
|
},
|
|
{
|
|
"type": "function_call_output",
|
|
"id": "out_old",
|
|
"call_id": "pair",
|
|
"output": "keep result"
|
|
},
|
|
{
|
|
"type": "message",
|
|
"role": "user",
|
|
"content": [
|
|
{
|
|
"type": "input_file",
|
|
"file_id": "file_keep"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"provider": {
|
|
"id": "demo",
|
|
"name": "demo",
|
|
"model": "gpt-6-astra"
|
|
}
|
|
},
|
|
{
|
|
"name": "group try on another protocol passes unchanged",
|
|
"ctx": {
|
|
"protocol": "anthropic"
|
|
},
|
|
"options": {
|
|
"providers": {
|
|
"magpie:demo": {
|
|
"historyFilter": true,
|
|
"preserveEncryptedInclude": true
|
|
}
|
|
}
|
|
},
|
|
"request": {
|
|
"model": "group/sol-dedicated",
|
|
"reasoning": {
|
|
"effort": "high"
|
|
},
|
|
"include": [
|
|
"reasoning.encrypted_content",
|
|
"message.output_text.logprobs"
|
|
],
|
|
"input": [
|
|
{
|
|
"type": "reasoning",
|
|
"id": "rs_old",
|
|
"encrypted_content": "foreign"
|
|
},
|
|
{
|
|
"type": "message",
|
|
"id": "msg_old",
|
|
"role": "assistant",
|
|
"content": [
|
|
{
|
|
"type": "output_text",
|
|
"text": "Keep answer."
|
|
},
|
|
{
|
|
"type": "encrypted_content",
|
|
"data": "foreign"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "function_call",
|
|
"id": "fc_old",
|
|
"call_id": "pair",
|
|
"name": "lookup",
|
|
"arguments": "{\"id\":\"business\"}"
|
|
},
|
|
{
|
|
"type": "function_call_output",
|
|
"id": "out_old",
|
|
"call_id": "pair",
|
|
"output": "keep result"
|
|
},
|
|
{
|
|
"type": "message",
|
|
"role": "user",
|
|
"content": [
|
|
{
|
|
"type": "input_file",
|
|
"file_id": "file_keep"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"provider": {
|
|
"id": "demo",
|
|
"name": "demo",
|
|
"model": "gpt-6-astra"
|
|
}
|
|
},
|
|
{
|
|
"name": "group try leaves history it cannot move as sent",
|
|
"ctx": {
|
|
"protocol": "responses",
|
|
"path": "/v1/responses"
|
|
},
|
|
"options": {
|
|
"providers": {
|
|
"magpie:demo": {
|
|
"historyFilter": true,
|
|
"preserveEncryptedInclude": true
|
|
}
|
|
}
|
|
},
|
|
"request": {
|
|
"model": "group/sol-dedicated",
|
|
"reasoning": {
|
|
"effort": "high"
|
|
},
|
|
"include": [
|
|
"reasoning.encrypted_content",
|
|
"message.output_text.logprobs"
|
|
],
|
|
"input": [
|
|
{
|
|
"type": "reasoning",
|
|
"id": "rs_old",
|
|
"encrypted_content": "foreign"
|
|
},
|
|
{
|
|
"type": "message",
|
|
"id": "msg_old",
|
|
"role": "assistant",
|
|
"content": [
|
|
{
|
|
"type": "output_text",
|
|
"text": "Keep answer."
|
|
},
|
|
{
|
|
"type": "encrypted_content",
|
|
"data": "foreign"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "function_call",
|
|
"id": "fc_old",
|
|
"call_id": "pair",
|
|
"name": "lookup",
|
|
"arguments": "{\"id\":\"business\"}"
|
|
},
|
|
{
|
|
"type": "function_call_output",
|
|
"id": "out_old",
|
|
"call_id": "pair",
|
|
"output": "keep result"
|
|
},
|
|
{
|
|
"type": "message",
|
|
"role": "user",
|
|
"content": [
|
|
{
|
|
"type": "input_file",
|
|
"file_id": "file_keep"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"previous_response_id": "resp_old"
|
|
},
|
|
"provider": {
|
|
"id": "demo",
|
|
"name": "demo",
|
|
"model": "gpt-6-astra"
|
|
}
|
|
},
|
|
{
|
|
"name": "group try on the compact endpoint passes unchanged",
|
|
"ctx": {
|
|
"protocol": "responses",
|
|
"path": "/v1/responses/compact"
|
|
},
|
|
"options": {
|
|
"providers": {
|
|
"magpie:demo": {
|
|
"historyFilter": true,
|
|
"preserveEncryptedInclude": true
|
|
}
|
|
}
|
|
},
|
|
"request": {
|
|
"model": "group/sol-dedicated",
|
|
"reasoning": {
|
|
"effort": "high"
|
|
},
|
|
"include": [
|
|
"reasoning.encrypted_content",
|
|
"message.output_text.logprobs"
|
|
],
|
|
"input": [
|
|
{
|
|
"type": "reasoning",
|
|
"id": "rs_old",
|
|
"encrypted_content": "foreign"
|
|
},
|
|
{
|
|
"type": "message",
|
|
"id": "msg_old",
|
|
"role": "assistant",
|
|
"content": [
|
|
{
|
|
"type": "output_text",
|
|
"text": "Keep answer."
|
|
},
|
|
{
|
|
"type": "encrypted_content",
|
|
"data": "foreign"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "function_call",
|
|
"id": "fc_old",
|
|
"call_id": "pair",
|
|
"name": "lookup",
|
|
"arguments": "{\"id\":\"business\"}"
|
|
},
|
|
{
|
|
"type": "function_call_output",
|
|
"id": "out_old",
|
|
"call_id": "pair",
|
|
"output": "keep result"
|
|
},
|
|
{
|
|
"type": "message",
|
|
"role": "user",
|
|
"content": [
|
|
{
|
|
"type": "input_file",
|
|
"file_id": "file_keep"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"provider": {
|
|
"id": "demo",
|
|
"name": "demo",
|
|
"model": "gpt-6-astra"
|
|
}
|
|
}
|
|
]
|