Files
deepseek-harness/scripts/snapshots/python-sdk-single-exe/advanced/result.json
T
_KermanandTianyi Cui f4a32dbd0a refactor(llm): flatten tool results and validate native V4 sessions
Represent tool results as tool-role messages and migrate released wrappers
without losing outer own JSON fields, call identity, error state, or writer
field order. Refuse nested or wrapper-only information that has no lossless
current representation before successor publication.

Validate current event relationships directly instead of projecting V4 data
back into V3. Keep lifecycle, PTC, title/command, compaction, system-field and
retired-syntax checks on catalog restoration and ordinary JSONL opens. The
Worker JSON equality helper must inspect own keys so it cannot admit PTC
arguments that Node rejects.

Keep the source role change, required native admission and consumer fixture
updates in one complete review layer. Explain shared-type changes in the
persistence record and the native reader rationale in its existing note.
Use checked branded fixture identities and discriminant narrowing instead
of unknown double casts; fixture values and assertions remain intact.

This recomposes the original tool-role work by _Kerman with the independently
validated migration and admission repairs by Tianyi Cui. Frozen generations
and snapshot input version selection are retained.

Co-authored-by: Tianyi Cui <[email protected]>
2026-09-18 19:05:32 +08:00

4766 lines
121 KiB
JSON

{
"session_id": "{{parent}}",
"final_response": "ADVANCED_EXECUTABLE_OK",
"events": [
{
"type": "agent/inbox/spliced",
"seq": 4,
"time": 0,
"data": {
"target": "next-turn",
"start": 0,
"inserted": [
{
"content": [
{
"type": "text",
"text": "Run the advanced packaged-runtime snapshot scenario."
}
],
"source": {
"kind": "user"
},
"role": "user",
"id": "{{messageId}}"
}
]
}
},
{
"type": "turn/start",
"seq": 5,
"time": 0,
"data": {
"turn": 1
}
},
{
"type": "agent/inbox/spliced",
"seq": 6,
"time": 0,
"data": {
"target": "next-step",
"start": 0,
"removedCount": 1,
"inserted": []
}
},
{
"type": "agent/inbox/spliced",
"seq": 7,
"time": 0,
"data": {
"target": "next-turn",
"start": 0,
"removedCount": 1,
"inserted": []
}
},
{
"type": "step/start",
"seq": 8,
"time": 0,
"data": {
"turn": 1,
"step": 1
}
},
{
"type": "system/message",
"seq": 9,
"time": 0,
"data": {
"turn": 1,
"step": 1,
"message": {
"role": "system",
"content": [
{
"type": "text",
"text": "{{system}}"
}
],
"source": {
"kind": "plugin",
"plugin": "@deepseek-ai/dsh-system-prompt"
},
"id": "{{messageId}}"
}
},
"surfaceOp": "append"
},
{
"type": "user/message",
"seq": 10,
"time": 0,
"data": {
"id": "{{messageId}}",
"role": "user",
"content": [
{
"type": "text",
"text": "Serial agent creation completed."
}
],
"source": {
"kind": "plugin",
"plugin": "serial-created-fixture"
}
},
"surfaceOp": "append"
},
{
"type": "user/message",
"seq": 11,
"time": 0,
"data": {
"content": [
{
"type": "text",
"text": "Run the advanced packaged-runtime snapshot scenario."
}
],
"source": {
"kind": "user"
},
"role": "user",
"id": "{{messageId}}"
},
"surfaceOp": "append"
},
{
"type": "user/message",
"seq": 12,
"time": 0,
"data": {
"content": [
{
"type": "text",
"text": "Current runtime context. This snapshot supersedes earlier runtime-context snapshots.\n\nCurrent DSH file policy: danger-full-access. The DSH file sandbox does not restrict file modifications by available operations.\n\nApproval prompts are disabled in this session: actions that require approval are rejected automatically — do not request sandbox escalation (do not set `sandbox_permissions`)."
}
],
"source": {
"kind": "plugin",
"plugin": "@deepseek-ai/dsh-system-prompt",
"form": "snapshot",
"sections": [
{
"name": "sandbox:policy",
"text": "Current DSH file policy: danger-full-access. The DSH file sandbox does not restrict file modifications by available operations."
},
{
"name": "approval:policy",
"text": "Approval prompts are disabled in this session: actions that require approval are rejected automatically — do not request sandbox escalation (do not set `sandbox_permissions`)."
}
]
},
"role": "user",
"id": "{{messageId}}"
},
"surfaceOp": "append"
},
{
"type": "user/message",
"seq": 13,
"time": 0,
"data": {
"id": "{{messageId}}",
"role": "user",
"content": [
{
"type": "image",
"attachment": {
"attachmentId": "sha256:b1ff9c8ea3a780bad09b346c423d2d0e46815926879b18e841d928376a946640",
"mediaType": "image/png",
"width": 1,
"height": 1,
"bytes": 69
}
}
],
"source": {
"kind": "plugin",
"plugin": "python-snapshot-image-offload"
}
},
"surfaceOp": "append"
},
{
"type": "request/header",
"seq": 14,
"time": 0,
"data": {
"header": {
"config": {
"provider": "deepseek-official",
"model": "smoke-model",
"maxTokens": 256000,
"reasoningEffort": "high"
},
"adapterDefaults": {
"reasoningEffort": true,
"maxTokens": true
},
"tools": [
"cordis_inspect_list",
"cordis_inspect_query",
"job_kill",
"job_list",
"job_output",
"run_code",
"snapshot_double",
"subagent",
"workflow"
]
},
"reason": "initial"
}
},
{
"type": "request/context",
"seq": 15,
"time": 0,
"data": {
"provider": "deepseek-official",
"model": "smoke-model",
"contextWindow": 1000000
}
},
{
"type": "session/title",
"seq": 16,
"time": 0,
"data": {
"title": "Run the advanced packaged-runtime snapsh",
"messageSeqs": [
11
],
"source": {
"kind": "fallback"
}
}
},
{
"type": "assistant/attempt",
"seq": 17,
"time": 0,
"data": {
"turn": 1,
"step": 1,
"stream": [
{
"type": "chunk",
"time": 0,
"chunk": {
"type": "finish",
"reason": {
"kind": "error",
"failure": {
"code": "IMAGE_OFFLOAD_REQUIRED",
"message": "authored image budget failure",
"offloadImages": 1
}
}
}
}
]
}
},
{
"type": "image/offload",
"seq": 18,
"time": 0,
"data": {
"targets": [
{
"seq": 13,
"imageIndexes": [
0
]
}
]
}
},
{
"type": "request/header",
"seq": 19,
"time": 0,
"data": {
"header": {
"config": {
"provider": "deepseek-official",
"model": "smoke-model",
"maxTokens": 256000,
"reasoningEffort": "high"
},
"adapterDefaults": {
"reasoningEffort": true,
"maxTokens": true
},
"tools": [
"cordis_inspect_list",
"cordis_inspect_query",
"job_kill",
"job_list",
"job_output",
"run_code",
"snapshot_double",
"subagent",
"workflow"
]
},
"reason": "series"
}
},
{
"type": "session-log-deepseek/delivery-accepted",
"seq": 20,
"time": 0,
"data": {
"sessionId": "{{parent}}",
"sessionFormatVersion": 4,
"throughSeq": 19
}
},
{
"type": "assistant/message",
"seq": 21,
"time": 0,
"data": {
"turn": 1,
"step": 1,
"message": {
"role": "assistant",
"content": [
{
"type": "tool-call",
"id": "advanced-code",
"name": "run_code",
"arguments": "{\"code\": \"return await tools.snapshot_double({ value: 21 })\", \"description\": \"Call the configured Plugin tool\"}"
}
],
"source": {
"kind": "model",
"provider": "deepseek-official",
"model": "smoke-model",
"replayState": {
"response": {
"kind": "deepseek-messages",
"version": 1,
"model": "smoke-model"
},
"blocks": [
{
"type": "tool-call"
}
]
}
},
"id": "{{messageId}}"
},
"usage": {
"inputTokens": 3,
"outputTokens": 3,
"totalTokens": 6
},
"stream": [
{
"type": "chunk",
"time": 0,
"chunk": {
"type": "block-start",
"index": 0,
"blockType": "tool-call"
}
},
{
"type": "tool-call-chunks",
"time0": 0,
"index": 0,
"dt": [],
"id": "advanced-code",
"name": "run_code",
"args": [
""
]
},
{
"type": "tool-call-chunks",
"time0": 0,
"index": 0,
"dt": [],
"id": "advanced-code",
"args": [
"{\"code\": \"return await tools.snapshot_double({ value: 21 })\", \"description\": \"Call the configured Plugin tool\"}"
]
},
{
"type": "chunk",
"time": 0,
"chunk": {
"type": "block-end",
"index": 0,
"block": {
"type": "tool-call",
"id": "advanced-code",
"name": "run_code",
"arguments": "{\"code\": \"return await tools.snapshot_double({ value: 21 })\", \"description\": \"Call the configured Plugin tool\"}"
}
}
},
{
"type": "chunk",
"time": 0,
"chunk": {
"type": "usage",
"usage": {
"inputTokens": 3,
"outputTokens": 3,
"totalTokens": 6
}
}
},
{
"type": "chunk",
"time": 0,
"chunk": {
"type": "finish",
"reason": {
"kind": "tool-calls"
},
"replayState": {
"response": {
"kind": "deepseek-messages",
"version": 1,
"model": "smoke-model"
},
"blocks": [
{
"type": "tool-call"
}
]
}
}
}
]
},
"surfaceOp": "append"
},
{
"type": "tool/call",
"seq": 22,
"time": 0,
"data": {
"turn": 1,
"step": 1,
"callId": "advanced-code",
"name": "run_code",
"arguments": "{\"code\": \"return await tools.snapshot_double({ value: 21 })\", \"description\": \"Call the configured Plugin tool\"}"
}
},
{
"type": "tool/ptc-dispatch-start",
"seq": 23,
"time": 0,
"data": {
"rootCallId": "advanced-code",
"parentCallId": "advanced-code",
"subCallId": "advanced-code:ptc:1",
"name": "snapshot_double",
"arguments": {
"value": 21
}
}
},
{
"type": "tool/ptc-dispatch",
"seq": 24,
"time": 0,
"data": {
"rootCallId": "advanced-code",
"parentCallId": "advanced-code",
"subCallId": "advanced-code:ptc:1",
"name": "snapshot_double",
"arguments": {
"value": 21
},
"isError": false,
"content": [
{
"type": "text",
"text": "42"
}
]
}
},
{
"type": "tool/result",
"seq": 25,
"time": 0,
"data": {
"turn": 1,
"step": 1,
"message": {
"role": "tool",
"source": {
"kind": "tool",
"callId": "advanced-code"
},
"toolCallId": "advanced-code",
"content": [
{
"type": "text",
"text": "42"
}
],
"isError": false,
"id": "{{messageId}}"
}
},
"sourceEventSeqs": [
22
],
"surfaceOp": "append"
},
{
"type": "step/end",
"seq": 26,
"time": 0,
"data": {
"turn": 1,
"step": 1
}
},
{
"type": "step/start",
"seq": 27,
"time": 0,
"data": {
"turn": 1,
"step": 2
}
},
{
"type": "session-log-deepseek/delivery-accepted",
"seq": 28,
"time": 0,
"data": {
"sessionId": "{{parent}}",
"sessionFormatVersion": 4,
"throughSeq": 27
}
},
{
"type": "assistant/message",
"seq": 29,
"time": 0,
"data": {
"turn": 1,
"step": 2,
"message": {
"role": "assistant",
"content": [
{
"type": "tool-call",
"id": "advanced-denied-native",
"name": "snapshot_double",
"arguments": "{\"value\": -1}"
}
],
"source": {
"kind": "model",
"provider": "deepseek-official",
"model": "smoke-model",
"replayState": {
"response": {
"kind": "deepseek-messages",
"version": 1,
"model": "smoke-model"
},
"blocks": [
{
"type": "tool-call"
}
]
}
},
"id": "{{messageId}}"
},
"usage": {
"inputTokens": 3,
"outputTokens": 3,
"totalTokens": 6
},
"stream": [
{
"type": "chunk",
"time": 0,
"chunk": {
"type": "block-start",
"index": 0,
"blockType": "tool-call"
}
},
{
"type": "tool-call-chunks",
"time0": 0,
"index": 0,
"dt": [],
"id": "advanced-denied-native",
"name": "snapshot_double",
"args": [
""
]
},
{
"type": "tool-call-chunks",
"time0": 0,
"index": 0,
"dt": [],
"id": "advanced-denied-native",
"args": [
"{\"value\": -1}"
]
},
{
"type": "chunk",
"time": 0,
"chunk": {
"type": "block-end",
"index": 0,
"block": {
"type": "tool-call",
"id": "advanced-denied-native",
"name": "snapshot_double",
"arguments": "{\"value\": -1}"
}
}
},
{
"type": "chunk",
"time": 0,
"chunk": {
"type": "usage",
"usage": {
"inputTokens": 3,
"outputTokens": 3,
"totalTokens": 6
}
}
},
{
"type": "chunk",
"time": 0,
"chunk": {
"type": "finish",
"reason": {
"kind": "tool-calls"
},
"replayState": {
"response": {
"kind": "deepseek-messages",
"version": 1,
"model": "smoke-model"
},
"blocks": [
{
"type": "tool-call"
}
]
}
}
}
]
},
"surfaceOp": "append"
},
{
"type": "tool/call",
"seq": 30,
"time": 0,
"data": {
"turn": 1,
"step": 2,
"callId": "advanced-denied-native",
"name": "snapshot_double",
"arguments": "{\"value\": -1}"
}
},
{
"type": "tool/result",
"seq": 31,
"time": 0,
"data": {
"turn": 1,
"step": 2,
"message": {
"role": "tool",
"source": {
"kind": "tool",
"callId": "advanced-denied-native"
},
"toolCallId": "advanced-denied-native",
"content": [
{
"type": "text",
"text": "Error: Auto review rejected tool \"snapshot_double\"; its body was not executed"
}
],
"isError": true,
"id": "{{messageId}}"
},
"error": {
"name": "AutoReviewDeniedError",
"code": "AUTO_REVIEW_DENIED",
"reason": " transport raw\r\nreason "
}
},
"sourceEventSeqs": [
30
],
"surfaceOp": "append"
},
{
"type": "step/end",
"seq": 32,
"time": 0,
"data": {
"turn": 1,
"step": 2
}
},
{
"type": "step/start",
"seq": 33,
"time": 0,
"data": {
"turn": 1,
"step": 3
}
},
{
"type": "session-log-deepseek/delivery-accepted",
"seq": 34,
"time": 0,
"data": {
"sessionId": "{{parent}}",
"sessionFormatVersion": 4,
"throughSeq": 33
}
},
{
"type": "assistant/message",
"seq": 35,
"time": 0,
"data": {
"turn": 1,
"step": 3,
"message": {
"role": "assistant",
"content": [
{
"type": "tool-call",
"id": "advanced-denied-ptc",
"name": "run_code",
"arguments": "{\"code\": \"try { await tools.snapshot_double({ value: -1 }) } catch (error) { return error.message }\", \"description\": \"Catch a structured inner tool denial\"}"
}
],
"source": {
"kind": "model",
"provider": "deepseek-official",
"model": "smoke-model",
"replayState": {
"response": {
"kind": "deepseek-messages",
"version": 1,
"model": "smoke-model"
},
"blocks": [
{
"type": "tool-call"
}
]
}
},
"id": "{{messageId}}"
},
"usage": {
"inputTokens": 3,
"outputTokens": 3,
"totalTokens": 6
},
"stream": [
{
"type": "chunk",
"time": 0,
"chunk": {
"type": "block-start",
"index": 0,
"blockType": "tool-call"
}
},
{
"type": "tool-call-chunks",
"time0": 0,
"index": 0,
"dt": [],
"id": "advanced-denied-ptc",
"name": "run_code",
"args": [
""
]
},
{
"type": "tool-call-chunks",
"time0": 0,
"index": 0,
"dt": [],
"id": "advanced-denied-ptc",
"args": [
"{\"code\": \"try { await tools.snapshot_double({ value: -1 }) } catch (error) { return error.message }\", \"description\": \"Catch a structured inner tool denial\"}"
]
},
{
"type": "chunk",
"time": 0,
"chunk": {
"type": "block-end",
"index": 0,
"block": {
"type": "tool-call",
"id": "advanced-denied-ptc",
"name": "run_code",
"arguments": "{\"code\": \"try { await tools.snapshot_double({ value: -1 }) } catch (error) { return error.message }\", \"description\": \"Catch a structured inner tool denial\"}"
}
}
},
{
"type": "chunk",
"time": 0,
"chunk": {
"type": "usage",
"usage": {
"inputTokens": 3,
"outputTokens": 3,
"totalTokens": 6
}
}
},
{
"type": "chunk",
"time": 0,
"chunk": {
"type": "finish",
"reason": {
"kind": "tool-calls"
},
"replayState": {
"response": {
"kind": "deepseek-messages",
"version": 1,
"model": "smoke-model"
},
"blocks": [
{
"type": "tool-call"
}
]
}
}
}
]
},
"surfaceOp": "append"
},
{
"type": "tool/call",
"seq": 36,
"time": 0,
"data": {
"turn": 1,
"step": 3,
"callId": "advanced-denied-ptc",
"name": "run_code",
"arguments": "{\"code\": \"try { await tools.snapshot_double({ value: -1 }) } catch (error) { return error.message }\", \"description\": \"Catch a structured inner tool denial\"}"
}
},
{
"type": "tool/ptc-dispatch-start",
"seq": 37,
"time": 0,
"data": {
"rootCallId": "advanced-denied-ptc",
"parentCallId": "advanced-denied-ptc",
"subCallId": "advanced-denied-ptc:ptc:1",
"name": "snapshot_double",
"arguments": {
"value": -1
}
}
},
{
"type": "tool/ptc-dispatch",
"seq": 38,
"time": 0,
"data": {
"rootCallId": "advanced-denied-ptc",
"parentCallId": "advanced-denied-ptc",
"subCallId": "advanced-denied-ptc:ptc:1",
"name": "snapshot_double",
"arguments": {
"value": -1
},
"isError": true,
"error": {
"name": "AutoReviewDeniedError",
"code": "AUTO_REVIEW_DENIED",
"reason": " transport raw\r\nreason "
},
"content": [
{
"type": "text",
"text": "Error: Auto review rejected tool \"snapshot_double\"; its body was not executed"
}
]
}
},
{
"type": "tool/result",
"seq": 39,
"time": 0,
"data": {
"turn": 1,
"step": 3,
"message": {
"role": "tool",
"source": {
"kind": "tool",
"callId": "advanced-denied-ptc"
},
"toolCallId": "advanced-denied-ptc",
"content": [
{
"type": "text",
"text": "Auto review rejected tool \"snapshot_double\"; its body was not executed"
}
],
"isError": false,
"id": "{{messageId}}"
}
},
"sourceEventSeqs": [
36
],
"surfaceOp": "append"
},
{
"type": "step/end",
"seq": 40,
"time": 0,
"data": {
"turn": 1,
"step": 3
}
},
{
"type": "step/start",
"seq": 41,
"time": 0,
"data": {
"turn": 1,
"step": 4
}
},
{
"type": "session-log-deepseek/delivery-accepted",
"seq": 42,
"time": 0,
"data": {
"sessionId": "{{parent}}",
"sessionFormatVersion": 4,
"throughSeq": 41
}
},
{
"type": "assistant/message",
"seq": 43,
"time": 0,
"data": {
"turn": 1,
"step": 4,
"message": {
"role": "assistant",
"content": [
{
"type": "tool-call",
"id": "advanced-direct-child",
"name": "subagent",
"arguments": "{\"description\": \"Check direct child\", \"prompt\": \"Reply with exactly DIRECT_CHILD_OK and nothing else.\"}"
}
],
"source": {
"kind": "model",
"provider": "deepseek-official",
"model": "smoke-model",
"replayState": {
"response": {
"kind": "deepseek-messages",
"version": 1,
"model": "smoke-model"
},
"blocks": [
{
"type": "tool-call"
}
]
}
},
"id": "{{messageId}}"
},
"usage": {
"inputTokens": 3,
"outputTokens": 3,
"totalTokens": 6
},
"stream": [
{
"type": "chunk",
"time": 0,
"chunk": {
"type": "block-start",
"index": 0,
"blockType": "tool-call"
}
},
{
"type": "tool-call-chunks",
"time0": 0,
"index": 0,
"dt": [],
"id": "advanced-direct-child",
"name": "subagent",
"args": [
""
]
},
{
"type": "tool-call-chunks",
"time0": 0,
"index": 0,
"dt": [],
"id": "advanced-direct-child",
"args": [
"{\"description\": \"Check direct child\", \"prompt\": \"Reply with exactly DIRECT_CHILD_OK and nothing else.\"}"
]
},
{
"type": "chunk",
"time": 0,
"chunk": {
"type": "block-end",
"index": 0,
"block": {
"type": "tool-call",
"id": "advanced-direct-child",
"name": "subagent",
"arguments": "{\"description\": \"Check direct child\", \"prompt\": \"Reply with exactly DIRECT_CHILD_OK and nothing else.\"}"
}
}
},
{
"type": "chunk",
"time": 0,
"chunk": {
"type": "usage",
"usage": {
"inputTokens": 3,
"outputTokens": 3,
"totalTokens": 6
}
}
},
{
"type": "chunk",
"time": 0,
"chunk": {
"type": "finish",
"reason": {
"kind": "tool-calls"
},
"replayState": {
"response": {
"kind": "deepseek-messages",
"version": 1,
"model": "smoke-model"
},
"blocks": [
{
"type": "tool-call"
}
]
}
}
}
]
},
"surfaceOp": "append"
},
{
"type": "tool/call",
"seq": 44,
"time": 0,
"data": {
"turn": 1,
"step": 4,
"callId": "advanced-direct-child",
"name": "subagent",
"arguments": "{\"description\": \"Check direct child\", \"prompt\": \"Reply with exactly DIRECT_CHILD_OK and nothing else.\"}"
}
},
{
"type": "subagent/catalog",
"seq": 45,
"time": 0,
"data": {
"version": 0,
"childId": "{{child-1}}",
"childCreatedAt": 0,
"mode": "one-shot",
"label": "Check direct child"
}
},
{
"type": "tool/result",
"seq": 46,
"time": 0,
"data": {
"turn": 1,
"step": 4,
"message": {
"role": "tool",
"source": {
"kind": "tool",
"callId": "advanced-direct-child"
},
"toolCallId": "advanced-direct-child",
"content": [
{
"type": "text",
"text": "DIRECT_CHILD_OK"
}
],
"isError": false,
"id": "{{messageId}}"
}
},
"sourceEventSeqs": [
44
],
"surfaceOp": "append"
},
{
"type": "step/end",
"seq": 47,
"time": 0,
"data": {
"turn": 1,
"step": 4
}
},
{
"type": "step/start",
"seq": 48,
"time": 0,
"data": {
"turn": 1,
"step": 5
}
},
{
"type": "session-log-deepseek/delivery-accepted",
"seq": 49,
"time": 0,
"data": {
"sessionId": "{{parent}}",
"sessionFormatVersion": 4,
"throughSeq": 48
}
},
{
"type": "assistant/message",
"seq": 50,
"time": 0,
"data": {
"turn": 1,
"step": 5,
"message": {
"role": "assistant",
"content": [
{
"type": "tool-call",
"id": "advanced-workflow",
"name": "workflow",
"arguments": "{\"script\": \"phase('Delegate')\\nconst reply = await agent('Reply with exactly WORKFLOW_CHILD_OK and nothing else.', { label: 'workflow-child' })\\nreturn { reply }\", \"meta\": {\"name\": \"advanced-exe-snapshot\", \"description\": \"exercise one packaged workflow child\"}}"
}
],
"source": {
"kind": "model",
"provider": "deepseek-official",
"model": "smoke-model",
"replayState": {
"response": {
"kind": "deepseek-messages",
"version": 1,
"model": "smoke-model"
},
"blocks": [
{
"type": "tool-call"
}
]
}
},
"id": "{{messageId}}"
},
"usage": {
"inputTokens": 3,
"outputTokens": 3,
"totalTokens": 6
},
"stream": [
{
"type": "chunk",
"time": 0,
"chunk": {
"type": "block-start",
"index": 0,
"blockType": "tool-call"
}
},
{
"type": "tool-call-chunks",
"time0": 0,
"index": 0,
"dt": [],
"id": "advanced-workflow",
"name": "workflow",
"args": [
""
]
},
{
"type": "tool-call-chunks",
"time0": 0,
"index": 0,
"dt": [],
"id": "advanced-workflow",
"args": [
"{\"script\": \"phase('Delegate')\\nconst reply = await agent('Reply with exactly WORKFLOW_CHILD_OK and nothing else.', { label: 'workflow-child' })\\nreturn { reply }\", \"meta\": {\"name\": \"advanced-exe-snapshot\", \"description\": \"exercise one packaged workflow child\"}}"
]
},
{
"type": "chunk",
"time": 0,
"chunk": {
"type": "block-end",
"index": 0,
"block": {
"type": "tool-call",
"id": "advanced-workflow",
"name": "workflow",
"arguments": "{\"script\": \"phase('Delegate')\\nconst reply = await agent('Reply with exactly WORKFLOW_CHILD_OK and nothing else.', { label: 'workflow-child' })\\nreturn { reply }\", \"meta\": {\"name\": \"advanced-exe-snapshot\", \"description\": \"exercise one packaged workflow child\"}}"
}
}
},
{
"type": "chunk",
"time": 0,
"chunk": {
"type": "usage",
"usage": {
"inputTokens": 3,
"outputTokens": 3,
"totalTokens": 6
}
}
},
{
"type": "chunk",
"time": 0,
"chunk": {
"type": "finish",
"reason": {
"kind": "tool-calls"
},
"replayState": {
"response": {
"kind": "deepseek-messages",
"version": 1,
"model": "smoke-model"
},
"blocks": [
{
"type": "tool-call"
}
]
}
}
}
]
},
"surfaceOp": "append"
},
{
"type": "tool/call",
"seq": 51,
"time": 0,
"data": {
"turn": 1,
"step": 5,
"callId": "advanced-workflow",
"name": "workflow",
"arguments": "{\"script\": \"phase('Delegate')\\nconst reply = await agent('Reply with exactly WORKFLOW_CHILD_OK and nothing else.', { label: 'workflow-child' })\\nreturn { reply }\", \"meta\": {\"name\": \"advanced-exe-snapshot\", \"description\": \"exercise one packaged workflow child\"}}"
}
},
{
"type": "tool-workflow/run-start",
"seq": 52,
"time": 0,
"data": {
"runId": "{{workflow-run}}",
"name": "advanced-exe-snapshot"
}
},
{
"type": "subagent/catalog",
"seq": 53,
"time": 0,
"data": {
"version": 0,
"childId": "{{child-2}}",
"childCreatedAt": 0,
"mode": "one-shot"
}
},
{
"type": "tool-workflow/agent-start",
"seq": 54,
"time": 0,
"data": {
"runId": "{{workflow-run}}",
"seq": 1,
"label": "workflow-child",
"phase": "Delegate",
"childId": "{{child-2}}"
}
},
{
"type": "tool-workflow/agent-end",
"seq": 55,
"time": 0,
"data": {
"runId": "{{workflow-run}}",
"seq": 1,
"outcome": "completed"
}
},
{
"type": "tool-workflow/run-end",
"seq": 56,
"time": 0,
"data": {
"runId": "{{workflow-run}}",
"stopReason": "completed"
}
},
{
"type": "tool/result",
"seq": 57,
"time": 0,
"data": {
"turn": 1,
"step": 5,
"message": {
"role": "tool",
"source": {
"kind": "tool",
"callId": "advanced-workflow"
},
"toolCallId": "advanced-workflow",
"content": [
{
"type": "text",
"text": "workflow \"advanced-exe-snapshot\" completed (1 agent).\nReturn value:\n{\n \"reply\": \"WORKFLOW_CHILD_OK\"\n}"
}
],
"isError": false,
"id": "{{messageId}}"
}
},
"sourceEventSeqs": [
51
],
"surfaceOp": "append"
},
{
"type": "step/end",
"seq": 58,
"time": 0,
"data": {
"turn": 1,
"step": 5
}
},
{
"type": "step/start",
"seq": 59,
"time": 0,
"data": {
"turn": 1,
"step": 6
}
},
{
"type": "session-log-deepseek/delivery-accepted",
"seq": 60,
"time": 0,
"data": {
"sessionId": "{{parent}}",
"sessionFormatVersion": 4,
"throughSeq": 59
}
},
{
"type": "assistant/message",
"seq": 61,
"time": 0,
"data": {
"turn": 1,
"step": 6,
"message": {
"role": "assistant",
"content": [
{
"type": "text",
"text": "ADVANCED_EXECUTABLE_OK"
}
],
"source": {
"kind": "model",
"provider": "deepseek-official",
"model": "smoke-model",
"replayState": {
"response": {
"kind": "deepseek-messages",
"version": 1,
"model": "smoke-model"
},
"blocks": [
{
"type": "text"
}
]
}
},
"id": "{{message:1}}"
},
"usage": {
"inputTokens": 3,
"outputTokens": 3,
"totalTokens": 6
},
"stream": [
{
"type": "chunk",
"time": 0,
"chunk": {
"type": "block-start",
"index": 0,
"blockType": "text"
}
},
{
"type": "text-chunks",
"time0": 0,
"index": 0,
"dt": [],
"texts": [
"ADVANCED_EXECUTABLE_OK"
]
},
{
"type": "chunk",
"time": 0,
"chunk": {
"type": "block-end",
"index": 0,
"block": {
"type": "text",
"text": "ADVANCED_EXECUTABLE_OK"
}
}
},
{
"type": "chunk",
"time": 0,
"chunk": {
"type": "usage",
"usage": {
"inputTokens": 3,
"outputTokens": 3,
"totalTokens": 6
}
}
},
{
"type": "chunk",
"time": 0,
"chunk": {
"type": "finish",
"reason": {
"kind": "stop"
},
"replayState": {
"response": {
"kind": "deepseek-messages",
"version": 1,
"model": "smoke-model"
},
"blocks": [
{
"type": "text"
}
]
}
}
}
]
},
"surfaceOp": "append"
},
{
"type": "step/end",
"seq": 62,
"time": 0,
"data": {
"turn": 1,
"step": 6
}
},
{
"type": "command/run",
"seq": 63,
"time": 0,
"data": {
"commandId": "{{command:1}}",
"name": "feedback",
"source": {
"kind": "user"
}
}
},
{
"type": "feedback/record",
"seq": 64,
"time": 0,
"data": {
"text": "The session needs a clearer explanation."
}
},
{
"type": "command/done",
"seq": 65,
"time": 0,
"data": {
"commandId": "{{command:1}}",
"kind": "success",
"text": "Feedback recorded for session {{parent}}\nAnonymous user: {{anonymous-user}}."
}
},
{
"type": "feedback/record",
"seq": 66,
"time": 0,
"data": {
"category": "other"
}
},
{
"type": "feedback/message-put",
"seq": 67,
"time": 0,
"data": {
"sessionId": "{{parent}}",
"item": {
"messageId": "{{message:1}}",
"rating": "negative",
"note": "Explain the result.",
"category": "task-result",
"version": "{{feedback-version:1}}",
"createdAt": 0,
"updatedAt": 0
}
}
},
{
"type": "feedback/message-put",
"seq": 68,
"time": 0,
"data": {
"sessionId": "{{parent}}",
"item": {
"messageId": "{{message:1}}",
"rating": "positive",
"note": "The explanation is clear now.",
"version": "{{feedback-version:2}}",
"createdAt": 0,
"updatedAt": 0
}
}
},
{
"type": "feedback/message-delete",
"seq": 69,
"time": 0,
"data": {
"sessionId": "{{parent}}",
"messageId": "{{message:1}}"
}
},
{
"type": "turn/end",
"seq": 70,
"time": 0,
"data": {
"turn": 1,
"reason": {
"kind": "completed"
}
}
}
],
"notifications": [
{
"method": "session.event",
"payload": {
"sessionId": "{{parent}}",
"event": {
"type": "agent/inbox/spliced",
"seq": 4,
"time": 0,
"data": {
"target": "next-turn",
"start": 0,
"inserted": [
{
"content": [
{
"type": "text",
"text": "Run the advanced packaged-runtime snapshot scenario."
}
],
"source": {
"kind": "user"
},
"role": "user",
"id": "{{messageId}}"
}
]
}
}
}
},
{
"method": "session.status",
"payload": {
"sessionId": "{{parent}}",
"status": "running"
}
},
{
"method": "session.event",
"payload": {
"sessionId": "{{parent}}",
"event": {
"type": "turn/start",
"seq": 5,
"time": 0,
"data": {
"turn": 1
}
}
}
},
{
"method": "session.event",
"payload": {
"sessionId": "{{parent}}",
"event": {
"type": "agent/inbox/spliced",
"seq": 6,
"time": 0,
"data": {
"target": "next-step",
"start": 0,
"removedCount": 1,
"inserted": []
}
}
}
},
{
"method": "session.event",
"payload": {
"sessionId": "{{parent}}",
"event": {
"type": "agent/inbox/spliced",
"seq": 7,
"time": 0,
"data": {
"target": "next-turn",
"start": 0,
"removedCount": 1,
"inserted": []
}
}
}
},
{
"method": "session.event",
"payload": {
"sessionId": "{{parent}}",
"event": {
"type": "step/start",
"seq": 8,
"time": 0,
"data": {
"turn": 1,
"step": 1
}
}
}
},
{
"method": "session.event",
"payload": {
"sessionId": "{{parent}}",
"event": {
"type": "system/message",
"seq": 9,
"time": 0,
"data": {
"turn": 1,
"step": 1,
"message": {
"role": "system",
"content": [
{
"type": "text",
"text": "{{system}}"
}
],
"source": {
"kind": "plugin",
"plugin": "@deepseek-ai/dsh-system-prompt"
},
"id": "{{messageId}}"
}
},
"surfaceOp": "append"
}
}
},
{
"method": "session.event",
"payload": {
"sessionId": "{{parent}}",
"event": {
"type": "user/message",
"seq": 10,
"time": 0,
"data": {
"id": "{{messageId}}",
"role": "user",
"content": [
{
"type": "text",
"text": "Serial agent creation completed."
}
],
"source": {
"kind": "plugin",
"plugin": "serial-created-fixture"
}
},
"surfaceOp": "append"
}
}
},
{
"method": "session.event",
"payload": {
"sessionId": "{{parent}}",
"event": {
"type": "user/message",
"seq": 11,
"time": 0,
"data": {
"content": [
{
"type": "text",
"text": "Run the advanced packaged-runtime snapshot scenario."
}
],
"source": {
"kind": "user"
},
"role": "user",
"id": "{{messageId}}"
},
"surfaceOp": "append"
}
}
},
{
"method": "session.event",
"payload": {
"sessionId": "{{parent}}",
"event": {
"type": "user/message",
"seq": 12,
"time": 0,
"data": {
"content": [
{
"type": "text",
"text": "Current runtime context. This snapshot supersedes earlier runtime-context snapshots.\n\nCurrent DSH file policy: danger-full-access. The DSH file sandbox does not restrict file modifications by available operations.\n\nApproval prompts are disabled in this session: actions that require approval are rejected automatically — do not request sandbox escalation (do not set `sandbox_permissions`)."
}
],
"source": {
"kind": "plugin",
"plugin": "@deepseek-ai/dsh-system-prompt",
"form": "snapshot",
"sections": [
{
"name": "sandbox:policy",
"text": "Current DSH file policy: danger-full-access. The DSH file sandbox does not restrict file modifications by available operations."
},
{
"name": "approval:policy",
"text": "Approval prompts are disabled in this session: actions that require approval are rejected automatically — do not request sandbox escalation (do not set `sandbox_permissions`)."
}
]
},
"role": "user",
"id": "{{messageId}}"
},
"surfaceOp": "append"
}
}
},
{
"method": "session.event",
"payload": {
"sessionId": "{{parent}}",
"event": {
"type": "user/message",
"seq": 13,
"time": 0,
"data": {
"id": "{{messageId}}",
"role": "user",
"content": [
{
"type": "image",
"attachment": {
"attachmentId": "sha256:b1ff9c8ea3a780bad09b346c423d2d0e46815926879b18e841d928376a946640",
"mediaType": "image/png",
"width": 1,
"height": 1,
"bytes": 69
}
}
],
"source": {
"kind": "plugin",
"plugin": "python-snapshot-image-offload"
}
},
"surfaceOp": "append"
}
}
},
{
"method": "session.event",
"payload": {
"sessionId": "{{parent}}",
"event": {
"type": "request/header",
"seq": 14,
"time": 0,
"data": {
"header": {
"config": {
"provider": "deepseek-official",
"model": "smoke-model",
"maxTokens": 256000,
"reasoningEffort": "high"
},
"adapterDefaults": {
"reasoningEffort": true,
"maxTokens": true
},
"tools": [
"cordis_inspect_list",
"cordis_inspect_query",
"job_kill",
"job_list",
"job_output",
"run_code",
"snapshot_double",
"subagent",
"workflow"
]
},
"reason": "initial"
}
}
}
},
{
"method": "session.event",
"payload": {
"sessionId": "{{parent}}",
"event": {
"type": "request/context",
"seq": 15,
"time": 0,
"data": {
"provider": "deepseek-official",
"model": "smoke-model",
"contextWindow": 1000000
}
}
}
},
{
"method": "session.event",
"payload": {
"sessionId": "{{parent}}",
"event": {
"type": "session/title",
"seq": 16,
"time": 0,
"data": {
"title": "Run the advanced packaged-runtime snapsh",
"messageSeqs": [
11
],
"source": {
"kind": "fallback"
}
}
}
}
},
{
"method": "session.event",
"payload": {
"sessionId": "{{parent}}",
"event": {
"type": "assistant/attempt",
"seq": 17,
"time": 0,
"data": {
"turn": 1,
"step": 1,
"stream": [
{
"type": "chunk",
"time": 0,
"chunk": {
"type": "finish",
"reason": {
"kind": "error",
"failure": {
"code": "IMAGE_OFFLOAD_REQUIRED",
"message": "authored image budget failure",
"offloadImages": 1
}
}
}
}
]
}
}
}
},
{
"method": "session.event",
"payload": {
"sessionId": "{{parent}}",
"event": {
"type": "image/offload",
"seq": 18,
"time": 0,
"data": {
"targets": [
{
"seq": 13,
"imageIndexes": [
0
]
}
]
}
}
}
},
{
"method": "session.event",
"payload": {
"sessionId": "{{parent}}",
"event": {
"type": "request/header",
"seq": 19,
"time": 0,
"data": {
"header": {
"config": {
"provider": "deepseek-official",
"model": "smoke-model",
"maxTokens": 256000,
"reasoningEffort": "high"
},
"adapterDefaults": {
"reasoningEffort": true,
"maxTokens": true
},
"tools": [
"cordis_inspect_list",
"cordis_inspect_query",
"job_kill",
"job_list",
"job_output",
"run_code",
"snapshot_double",
"subagent",
"workflow"
]
},
"reason": "series"
}
}
}
},
{
"method": "session.event",
"payload": {
"sessionId": "{{parent}}",
"event": {
"type": "session-log-deepseek/delivery-accepted",
"seq": 20,
"time": 0,
"data": {
"sessionId": "{{parent}}",
"sessionFormatVersion": 4,
"throughSeq": 19
}
}
}
},
{
"method": "session.event",
"payload": {
"sessionId": "{{parent}}",
"event": {
"type": "assistant/message",
"seq": 21,
"time": 0,
"data": {
"turn": 1,
"step": 1,
"message": {
"role": "assistant",
"content": [
{
"type": "tool-call",
"id": "advanced-code",
"name": "run_code",
"arguments": "{\"code\": \"return await tools.snapshot_double({ value: 21 })\", \"description\": \"Call the configured Plugin tool\"}"
}
],
"source": {
"kind": "model",
"provider": "deepseek-official",
"model": "smoke-model",
"replayState": {
"response": {
"kind": "deepseek-messages",
"version": 1,
"model": "smoke-model"
},
"blocks": [
{
"type": "tool-call"
}
]
}
},
"id": "{{messageId}}"
},
"usage": {
"inputTokens": 3,
"outputTokens": 3,
"totalTokens": 6
},
"stream": [
{
"type": "chunk",
"time": 0,
"chunk": {
"type": "block-start",
"index": 0,
"blockType": "tool-call"
}
},
{
"type": "tool-call-chunks",
"time0": 0,
"index": 0,
"dt": [],
"id": "advanced-code",
"name": "run_code",
"args": [
""
]
},
{
"type": "tool-call-chunks",
"time0": 0,
"index": 0,
"dt": [],
"id": "advanced-code",
"args": [
"{\"code\": \"return await tools.snapshot_double({ value: 21 })\", \"description\": \"Call the configured Plugin tool\"}"
]
},
{
"type": "chunk",
"time": 0,
"chunk": {
"type": "block-end",
"index": 0,
"block": {
"type": "tool-call",
"id": "advanced-code",
"name": "run_code",
"arguments": "{\"code\": \"return await tools.snapshot_double({ value: 21 })\", \"description\": \"Call the configured Plugin tool\"}"
}
}
},
{
"type": "chunk",
"time": 0,
"chunk": {
"type": "usage",
"usage": {
"inputTokens": 3,
"outputTokens": 3,
"totalTokens": 6
}
}
},
{
"type": "chunk",
"time": 0,
"chunk": {
"type": "finish",
"reason": {
"kind": "tool-calls"
},
"replayState": {
"response": {
"kind": "deepseek-messages",
"version": 1,
"model": "smoke-model"
},
"blocks": [
{
"type": "tool-call"
}
]
}
}
}
]
},
"surfaceOp": "append"
}
}
},
{
"method": "session.event",
"payload": {
"sessionId": "{{parent}}",
"event": {
"type": "tool/call",
"seq": 22,
"time": 0,
"data": {
"turn": 1,
"step": 1,
"callId": "advanced-code",
"name": "run_code",
"arguments": "{\"code\": \"return await tools.snapshot_double({ value: 21 })\", \"description\": \"Call the configured Plugin tool\"}"
}
}
}
},
{
"method": "session.event",
"payload": {
"sessionId": "{{parent}}",
"event": {
"type": "tool/ptc-dispatch-start",
"seq": 23,
"time": 0,
"data": {
"rootCallId": "advanced-code",
"parentCallId": "advanced-code",
"subCallId": "advanced-code:ptc:1",
"name": "snapshot_double",
"arguments": {
"value": 21
}
}
}
}
},
{
"method": "session.event",
"payload": {
"sessionId": "{{parent}}",
"event": {
"type": "tool/ptc-dispatch",
"seq": 24,
"time": 0,
"data": {
"rootCallId": "advanced-code",
"parentCallId": "advanced-code",
"subCallId": "advanced-code:ptc:1",
"name": "snapshot_double",
"arguments": {
"value": 21
},
"isError": false,
"content": [
{
"type": "text",
"text": "42"
}
]
}
}
}
},
{
"method": "session.event",
"payload": {
"sessionId": "{{parent}}",
"event": {
"type": "tool/result",
"seq": 25,
"time": 0,
"data": {
"turn": 1,
"step": 1,
"message": {
"role": "tool",
"source": {
"kind": "tool",
"callId": "advanced-code"
},
"toolCallId": "advanced-code",
"content": [
{
"type": "text",
"text": "42"
}
],
"isError": false,
"id": "{{messageId}}"
}
},
"sourceEventSeqs": [
22
],
"surfaceOp": "append"
}
}
},
{
"method": "session.event",
"payload": {
"sessionId": "{{parent}}",
"event": {
"type": "step/end",
"seq": 26,
"time": 0,
"data": {
"turn": 1,
"step": 1
}
}
}
},
{
"method": "session.event",
"payload": {
"sessionId": "{{parent}}",
"event": {
"type": "step/start",
"seq": 27,
"time": 0,
"data": {
"turn": 1,
"step": 2
}
}
}
},
{
"method": "session.event",
"payload": {
"sessionId": "{{parent}}",
"event": {
"type": "session-log-deepseek/delivery-accepted",
"seq": 28,
"time": 0,
"data": {
"sessionId": "{{parent}}",
"sessionFormatVersion": 4,
"throughSeq": 27
}
}
}
},
{
"method": "session.event",
"payload": {
"sessionId": "{{parent}}",
"event": {
"type": "assistant/message",
"seq": 29,
"time": 0,
"data": {
"turn": 1,
"step": 2,
"message": {
"role": "assistant",
"content": [
{
"type": "tool-call",
"id": "advanced-denied-native",
"name": "snapshot_double",
"arguments": "{\"value\": -1}"
}
],
"source": {
"kind": "model",
"provider": "deepseek-official",
"model": "smoke-model",
"replayState": {
"response": {
"kind": "deepseek-messages",
"version": 1,
"model": "smoke-model"
},
"blocks": [
{
"type": "tool-call"
}
]
}
},
"id": "{{messageId}}"
},
"usage": {
"inputTokens": 3,
"outputTokens": 3,
"totalTokens": 6
},
"stream": [
{
"type": "chunk",
"time": 0,
"chunk": {
"type": "block-start",
"index": 0,
"blockType": "tool-call"
}
},
{
"type": "tool-call-chunks",
"time0": 0,
"index": 0,
"dt": [],
"id": "advanced-denied-native",
"name": "snapshot_double",
"args": [
""
]
},
{
"type": "tool-call-chunks",
"time0": 0,
"index": 0,
"dt": [],
"id": "advanced-denied-native",
"args": [
"{\"value\": -1}"
]
},
{
"type": "chunk",
"time": 0,
"chunk": {
"type": "block-end",
"index": 0,
"block": {
"type": "tool-call",
"id": "advanced-denied-native",
"name": "snapshot_double",
"arguments": "{\"value\": -1}"
}
}
},
{
"type": "chunk",
"time": 0,
"chunk": {
"type": "usage",
"usage": {
"inputTokens": 3,
"outputTokens": 3,
"totalTokens": 6
}
}
},
{
"type": "chunk",
"time": 0,
"chunk": {
"type": "finish",
"reason": {
"kind": "tool-calls"
},
"replayState": {
"response": {
"kind": "deepseek-messages",
"version": 1,
"model": "smoke-model"
},
"blocks": [
{
"type": "tool-call"
}
]
}
}
}
]
},
"surfaceOp": "append"
}
}
},
{
"method": "session.event",
"payload": {
"sessionId": "{{parent}}",
"event": {
"type": "tool/call",
"seq": 30,
"time": 0,
"data": {
"turn": 1,
"step": 2,
"callId": "advanced-denied-native",
"name": "snapshot_double",
"arguments": "{\"value\": -1}"
}
}
}
},
{
"method": "session.event",
"payload": {
"sessionId": "{{parent}}",
"event": {
"type": "tool/result",
"seq": 31,
"time": 0,
"data": {
"turn": 1,
"step": 2,
"message": {
"role": "tool",
"source": {
"kind": "tool",
"callId": "advanced-denied-native"
},
"toolCallId": "advanced-denied-native",
"content": [
{
"type": "text",
"text": "Error: Auto review rejected tool \"snapshot_double\"; its body was not executed"
}
],
"isError": true,
"id": "{{messageId}}"
},
"error": {
"name": "AutoReviewDeniedError",
"code": "AUTO_REVIEW_DENIED",
"reason": " transport raw\r\nreason "
}
},
"sourceEventSeqs": [
30
],
"surfaceOp": "append"
}
}
},
{
"method": "session.event",
"payload": {
"sessionId": "{{parent}}",
"event": {
"type": "step/end",
"seq": 32,
"time": 0,
"data": {
"turn": 1,
"step": 2
}
}
}
},
{
"method": "session.event",
"payload": {
"sessionId": "{{parent}}",
"event": {
"type": "step/start",
"seq": 33,
"time": 0,
"data": {
"turn": 1,
"step": 3
}
}
}
},
{
"method": "session.event",
"payload": {
"sessionId": "{{parent}}",
"event": {
"type": "session-log-deepseek/delivery-accepted",
"seq": 34,
"time": 0,
"data": {
"sessionId": "{{parent}}",
"sessionFormatVersion": 4,
"throughSeq": 33
}
}
}
},
{
"method": "session.event",
"payload": {
"sessionId": "{{parent}}",
"event": {
"type": "assistant/message",
"seq": 35,
"time": 0,
"data": {
"turn": 1,
"step": 3,
"message": {
"role": "assistant",
"content": [
{
"type": "tool-call",
"id": "advanced-denied-ptc",
"name": "run_code",
"arguments": "{\"code\": \"try { await tools.snapshot_double({ value: -1 }) } catch (error) { return error.message }\", \"description\": \"Catch a structured inner tool denial\"}"
}
],
"source": {
"kind": "model",
"provider": "deepseek-official",
"model": "smoke-model",
"replayState": {
"response": {
"kind": "deepseek-messages",
"version": 1,
"model": "smoke-model"
},
"blocks": [
{
"type": "tool-call"
}
]
}
},
"id": "{{messageId}}"
},
"usage": {
"inputTokens": 3,
"outputTokens": 3,
"totalTokens": 6
},
"stream": [
{
"type": "chunk",
"time": 0,
"chunk": {
"type": "block-start",
"index": 0,
"blockType": "tool-call"
}
},
{
"type": "tool-call-chunks",
"time0": 0,
"index": 0,
"dt": [],
"id": "advanced-denied-ptc",
"name": "run_code",
"args": [
""
]
},
{
"type": "tool-call-chunks",
"time0": 0,
"index": 0,
"dt": [],
"id": "advanced-denied-ptc",
"args": [
"{\"code\": \"try { await tools.snapshot_double({ value: -1 }) } catch (error) { return error.message }\", \"description\": \"Catch a structured inner tool denial\"}"
]
},
{
"type": "chunk",
"time": 0,
"chunk": {
"type": "block-end",
"index": 0,
"block": {
"type": "tool-call",
"id": "advanced-denied-ptc",
"name": "run_code",
"arguments": "{\"code\": \"try { await tools.snapshot_double({ value: -1 }) } catch (error) { return error.message }\", \"description\": \"Catch a structured inner tool denial\"}"
}
}
},
{
"type": "chunk",
"time": 0,
"chunk": {
"type": "usage",
"usage": {
"inputTokens": 3,
"outputTokens": 3,
"totalTokens": 6
}
}
},
{
"type": "chunk",
"time": 0,
"chunk": {
"type": "finish",
"reason": {
"kind": "tool-calls"
},
"replayState": {
"response": {
"kind": "deepseek-messages",
"version": 1,
"model": "smoke-model"
},
"blocks": [
{
"type": "tool-call"
}
]
}
}
}
]
},
"surfaceOp": "append"
}
}
},
{
"method": "session.event",
"payload": {
"sessionId": "{{parent}}",
"event": {
"type": "tool/call",
"seq": 36,
"time": 0,
"data": {
"turn": 1,
"step": 3,
"callId": "advanced-denied-ptc",
"name": "run_code",
"arguments": "{\"code\": \"try { await tools.snapshot_double({ value: -1 }) } catch (error) { return error.message }\", \"description\": \"Catch a structured inner tool denial\"}"
}
}
}
},
{
"method": "session.event",
"payload": {
"sessionId": "{{parent}}",
"event": {
"type": "tool/ptc-dispatch-start",
"seq": 37,
"time": 0,
"data": {
"rootCallId": "advanced-denied-ptc",
"parentCallId": "advanced-denied-ptc",
"subCallId": "advanced-denied-ptc:ptc:1",
"name": "snapshot_double",
"arguments": {
"value": -1
}
}
}
}
},
{
"method": "session.event",
"payload": {
"sessionId": "{{parent}}",
"event": {
"type": "tool/ptc-dispatch",
"seq": 38,
"time": 0,
"data": {
"rootCallId": "advanced-denied-ptc",
"parentCallId": "advanced-denied-ptc",
"subCallId": "advanced-denied-ptc:ptc:1",
"name": "snapshot_double",
"arguments": {
"value": -1
},
"isError": true,
"error": {
"name": "AutoReviewDeniedError",
"code": "AUTO_REVIEW_DENIED",
"reason": " transport raw\r\nreason "
},
"content": [
{
"type": "text",
"text": "Error: Auto review rejected tool \"snapshot_double\"; its body was not executed"
}
]
}
}
}
},
{
"method": "session.event",
"payload": {
"sessionId": "{{parent}}",
"event": {
"type": "tool/result",
"seq": 39,
"time": 0,
"data": {
"turn": 1,
"step": 3,
"message": {
"role": "tool",
"source": {
"kind": "tool",
"callId": "advanced-denied-ptc"
},
"toolCallId": "advanced-denied-ptc",
"content": [
{
"type": "text",
"text": "Auto review rejected tool \"snapshot_double\"; its body was not executed"
}
],
"isError": false,
"id": "{{messageId}}"
}
},
"sourceEventSeqs": [
36
],
"surfaceOp": "append"
}
}
},
{
"method": "session.event",
"payload": {
"sessionId": "{{parent}}",
"event": {
"type": "step/end",
"seq": 40,
"time": 0,
"data": {
"turn": 1,
"step": 3
}
}
}
},
{
"method": "session.event",
"payload": {
"sessionId": "{{parent}}",
"event": {
"type": "step/start",
"seq": 41,
"time": 0,
"data": {
"turn": 1,
"step": 4
}
}
}
},
{
"method": "session.event",
"payload": {
"sessionId": "{{parent}}",
"event": {
"type": "session-log-deepseek/delivery-accepted",
"seq": 42,
"time": 0,
"data": {
"sessionId": "{{parent}}",
"sessionFormatVersion": 4,
"throughSeq": 41
}
}
}
},
{
"method": "session.event",
"payload": {
"sessionId": "{{parent}}",
"event": {
"type": "assistant/message",
"seq": 43,
"time": 0,
"data": {
"turn": 1,
"step": 4,
"message": {
"role": "assistant",
"content": [
{
"type": "tool-call",
"id": "advanced-direct-child",
"name": "subagent",
"arguments": "{\"description\": \"Check direct child\", \"prompt\": \"Reply with exactly DIRECT_CHILD_OK and nothing else.\"}"
}
],
"source": {
"kind": "model",
"provider": "deepseek-official",
"model": "smoke-model",
"replayState": {
"response": {
"kind": "deepseek-messages",
"version": 1,
"model": "smoke-model"
},
"blocks": [
{
"type": "tool-call"
}
]
}
},
"id": "{{messageId}}"
},
"usage": {
"inputTokens": 3,
"outputTokens": 3,
"totalTokens": 6
},
"stream": [
{
"type": "chunk",
"time": 0,
"chunk": {
"type": "block-start",
"index": 0,
"blockType": "tool-call"
}
},
{
"type": "tool-call-chunks",
"time0": 0,
"index": 0,
"dt": [],
"id": "advanced-direct-child",
"name": "subagent",
"args": [
""
]
},
{
"type": "tool-call-chunks",
"time0": 0,
"index": 0,
"dt": [],
"id": "advanced-direct-child",
"args": [
"{\"description\": \"Check direct child\", \"prompt\": \"Reply with exactly DIRECT_CHILD_OK and nothing else.\"}"
]
},
{
"type": "chunk",
"time": 0,
"chunk": {
"type": "block-end",
"index": 0,
"block": {
"type": "tool-call",
"id": "advanced-direct-child",
"name": "subagent",
"arguments": "{\"description\": \"Check direct child\", \"prompt\": \"Reply with exactly DIRECT_CHILD_OK and nothing else.\"}"
}
}
},
{
"type": "chunk",
"time": 0,
"chunk": {
"type": "usage",
"usage": {
"inputTokens": 3,
"outputTokens": 3,
"totalTokens": 6
}
}
},
{
"type": "chunk",
"time": 0,
"chunk": {
"type": "finish",
"reason": {
"kind": "tool-calls"
},
"replayState": {
"response": {
"kind": "deepseek-messages",
"version": 1,
"model": "smoke-model"
},
"blocks": [
{
"type": "tool-call"
}
]
}
}
}
]
},
"surfaceOp": "append"
}
}
},
{
"method": "session.event",
"payload": {
"sessionId": "{{parent}}",
"event": {
"type": "tool/call",
"seq": 44,
"time": 0,
"data": {
"turn": 1,
"step": 4,
"callId": "advanced-direct-child",
"name": "subagent",
"arguments": "{\"description\": \"Check direct child\", \"prompt\": \"Reply with exactly DIRECT_CHILD_OK and nothing else.\"}"
}
}
}
},
{
"method": "subagent.started",
"payload": {
"parentSessionId": "{{parent}}",
"childSessionId": "{{child-1}}"
}
},
{
"method": "session.event",
"payload": {
"sessionId": "{{child-1}}",
"event": {
"type": "agent/inbox/spliced",
"seq": 3,
"time": 0,
"data": {
"target": "next-step",
"start": 0,
"inserted": [
{
"id": "{{messageId}}",
"role": "user",
"content": [
{
"type": "text",
"text": "Serial agent creation completed."
}
],
"source": {
"kind": "plugin",
"plugin": "serial-created-fixture"
}
}
]
}
}
}
},
{
"method": "session.event",
"payload": {
"sessionId": "{{child-1}}",
"event": {
"type": "agent/inbox/spliced",
"seq": 4,
"time": 0,
"data": {
"target": "next-turn",
"start": 0,
"inserted": [
{
"content": [
{
"type": "text",
"text": "Reply with exactly DIRECT_CHILD_OK and nothing else."
}
],
"source": {
"kind": "user"
},
"role": "user",
"id": "{{messageId}}"
}
]
}
}
}
},
{
"method": "session.status",
"payload": {
"sessionId": "{{child-1}}",
"status": "running"
}
},
{
"method": "session.event",
"payload": {
"sessionId": "{{child-1}}",
"event": {
"type": "turn/start",
"seq": 5,
"time": 0,
"data": {
"turn": 1
}
}
}
},
{
"method": "session.event",
"payload": {
"sessionId": "{{child-1}}",
"event": {
"type": "agent/inbox/spliced",
"seq": 6,
"time": 0,
"data": {
"target": "next-step",
"start": 0,
"removedCount": 1,
"inserted": []
}
}
}
},
{
"method": "session.event",
"payload": {
"sessionId": "{{child-1}}",
"event": {
"type": "agent/inbox/spliced",
"seq": 7,
"time": 0,
"data": {
"target": "next-turn",
"start": 0,
"removedCount": 1,
"inserted": []
}
}
}
},
{
"method": "session.event",
"payload": {
"sessionId": "{{parent}}",
"event": {
"type": "subagent/catalog",
"seq": 45,
"time": 0,
"data": {
"version": 0,
"childId": "{{child-1}}",
"childCreatedAt": 0,
"mode": "one-shot",
"label": "Check direct child"
}
}
}
},
{
"method": "session.event",
"payload": {
"sessionId": "{{child-1}}",
"event": {
"type": "subagent/descriptor",
"seq": 8,
"time": 0,
"data": {
"version": 3,
"mode": "one-shot",
"provider": "spawn",
"label": "Check direct child"
}
}
}
},
{
"method": "session.event",
"payload": {
"sessionId": "{{child-1}}",
"event": {
"type": "step/start",
"seq": 9,
"time": 0,
"data": {
"turn": 1,
"step": 1
}
}
}
},
{
"method": "session.event",
"payload": {
"sessionId": "{{child-1}}",
"event": {
"type": "system/message",
"seq": 10,
"time": 0,
"data": {
"turn": 1,
"step": 1,
"message": {
"role": "system",
"content": [
{
"type": "text",
"text": "{{system}}"
}
],
"source": {
"kind": "plugin",
"plugin": "@deepseek-ai/dsh-system-prompt"
},
"id": "{{messageId}}"
}
},
"surfaceOp": "append"
}
}
},
{
"method": "session.event",
"payload": {
"sessionId": "{{child-1}}",
"event": {
"type": "user/message",
"seq": 11,
"time": 0,
"data": {
"id": "{{messageId}}",
"role": "user",
"content": [
{
"type": "text",
"text": "Serial agent creation completed."
}
],
"source": {
"kind": "plugin",
"plugin": "serial-created-fixture"
}
},
"surfaceOp": "append"
}
}
},
{
"method": "session.event",
"payload": {
"sessionId": "{{child-1}}",
"event": {
"type": "user/message",
"seq": 12,
"time": 0,
"data": {
"content": [
{
"type": "text",
"text": "Reply with exactly DIRECT_CHILD_OK and nothing else."
}
],
"source": {
"kind": "user"
},
"role": "user",
"id": "{{messageId}}"
},
"surfaceOp": "append"
}
}
},
{
"method": "session.event",
"payload": {
"sessionId": "{{child-1}}",
"event": {
"type": "user/message",
"seq": 13,
"time": 0,
"data": {
"content": [
{
"type": "text",
"text": "Current runtime context. This snapshot supersedes earlier runtime-context snapshots.\n\nCurrent DSH file policy: danger-full-access. The DSH file sandbox does not restrict file modifications by available operations.\n\nApproval prompts are disabled in this session: actions that require approval are rejected automatically — do not request sandbox escalation (do not set `sandbox_permissions`).\n\nYou are a delegated subagent: your permission scope was fixed when you were started and cannot be widened from inside this session — operations that require approval are rejected automatically. When the task needs access beyond that scope, do not retry the denied operation; state the limitation in your reply so the delegating agent can handle it."
}
],
"source": {
"kind": "plugin",
"plugin": "@deepseek-ai/dsh-system-prompt",
"form": "snapshot",
"sections": [
{
"name": "sandbox:policy",
"text": "Current DSH file policy: danger-full-access. The DSH file sandbox does not restrict file modifications by available operations."
},
{
"name": "approval:policy",
"text": "Approval prompts are disabled in this session: actions that require approval are rejected automatically — do not request sandbox escalation (do not set `sandbox_permissions`)."
},
{
"name": "subagent:delegation",
"text": "You are a delegated subagent: your permission scope was fixed when you were started and cannot be widened from inside this session — operations that require approval are rejected automatically. When the task needs access beyond that scope, do not retry the denied operation; state the limitation in your reply so the delegating agent can handle it."
}
]
},
"role": "user",
"id": "{{messageId}}"
},
"surfaceOp": "append"
}
}
},
{
"method": "session.event",
"payload": {
"sessionId": "{{child-1}}",
"event": {
"type": "request/header",
"seq": 14,
"time": 0,
"data": {
"header": {
"config": {
"provider": "deepseek-official",
"model": "smoke-model",
"reasoningEffort": "high",
"maxTokens": 256000
},
"adapterDefaults": {
"maxTokens": true
},
"tools": [
"cordis_inspect_list",
"cordis_inspect_query",
"job_kill",
"job_list",
"job_output",
"run_code",
"snapshot_double",
"subagent",
"workflow"
]
},
"reason": "initial"
}
}
}
},
{
"method": "session.event",
"payload": {
"sessionId": "{{child-1}}",
"event": {
"type": "request/context",
"seq": 15,
"time": 0,
"data": {
"provider": "deepseek-official",
"model": "smoke-model",
"contextWindow": 1000000
}
}
}
},
{
"method": "session.event",
"payload": {
"sessionId": "{{child-1}}",
"event": {
"type": "session/title",
"seq": 16,
"time": 0,
"data": {
"title": "Reply with exactly DIRECT_CHILD_OK and",
"messageSeqs": [
12
],
"source": {
"kind": "fallback"
}
}
}
}
},
{
"method": "session.event",
"payload": {
"sessionId": "{{child-1}}",
"event": {
"type": "session-log-deepseek/delivery-accepted",
"seq": 17,
"time": 0,
"data": {
"sessionId": "{{child-1}}",
"sessionFormatVersion": 4,
"throughSeq": 16
}
}
}
},
{
"method": "session.event",
"payload": {
"sessionId": "{{child-1}}",
"event": {
"type": "assistant/message",
"seq": 18,
"time": 0,
"data": {
"turn": 1,
"step": 1,
"message": {
"role": "assistant",
"content": [
{
"type": "text",
"text": "DIRECT_CHILD_OK"
}
],
"source": {
"kind": "model",
"provider": "deepseek-official",
"model": "smoke-model",
"replayState": {
"response": {
"kind": "deepseek-messages",
"version": 1,
"model": "smoke-model"
},
"blocks": [
{
"type": "text"
}
]
}
},
"id": "{{messageId}}"
},
"usage": {
"inputTokens": 3,
"outputTokens": 3,
"totalTokens": 6
},
"stream": [
{
"type": "chunk",
"time": 0,
"chunk": {
"type": "block-start",
"index": 0,
"blockType": "text"
}
},
{
"type": "text-chunks",
"time0": 0,
"index": 0,
"dt": [],
"texts": [
"DIRECT_CHILD_OK"
]
},
{
"type": "chunk",
"time": 0,
"chunk": {
"type": "block-end",
"index": 0,
"block": {
"type": "text",
"text": "DIRECT_CHILD_OK"
}
}
},
{
"type": "chunk",
"time": 0,
"chunk": {
"type": "usage",
"usage": {
"inputTokens": 3,
"outputTokens": 3,
"totalTokens": 6
}
}
},
{
"type": "chunk",
"time": 0,
"chunk": {
"type": "finish",
"reason": {
"kind": "stop"
},
"replayState": {
"response": {
"kind": "deepseek-messages",
"version": 1,
"model": "smoke-model"
},
"blocks": [
{
"type": "text"
}
]
}
}
}
]
},
"surfaceOp": "append"
}
}
},
{
"method": "session.event",
"payload": {
"sessionId": "{{child-1}}",
"event": {
"type": "step/end",
"seq": 19,
"time": 0,
"data": {
"turn": 1,
"step": 1
}
}
}
},
{
"method": "session.event",
"payload": {
"sessionId": "{{child-1}}",
"event": {
"type": "turn/end",
"seq": 20,
"time": 0,
"data": {
"turn": 1,
"reason": {
"kind": "completed"
}
}
}
}
},
{
"method": "session.status",
"payload": {
"sessionId": "{{child-1}}",
"status": "idle"
}
},
{
"method": "subagent.finished",
"payload": {
"provider": "spawn",
"agentId": "{{child-1}}",
"parentSessionId": "{{parent}}",
"childSessionId": "{{child-1}}",
"status": "ok",
"stopReason": "completed",
"lastAssistantMessage": [
{
"type": "text",
"text": "DIRECT_CHILD_OK"
}
]
}
},
{
"method": "session.event",
"payload": {
"sessionId": "{{parent}}",
"event": {
"type": "tool/result",
"seq": 46,
"time": 0,
"data": {
"turn": 1,
"step": 4,
"message": {
"role": "tool",
"source": {
"kind": "tool",
"callId": "advanced-direct-child"
},
"toolCallId": "advanced-direct-child",
"content": [
{
"type": "text",
"text": "DIRECT_CHILD_OK"
}
],
"isError": false,
"id": "{{messageId}}"
}
},
"sourceEventSeqs": [
44
],
"surfaceOp": "append"
}
}
},
{
"method": "session.event",
"payload": {
"sessionId": "{{parent}}",
"event": {
"type": "step/end",
"seq": 47,
"time": 0,
"data": {
"turn": 1,
"step": 4
}
}
}
},
{
"method": "session.event",
"payload": {
"sessionId": "{{parent}}",
"event": {
"type": "step/start",
"seq": 48,
"time": 0,
"data": {
"turn": 1,
"step": 5
}
}
}
},
{
"method": "session.event",
"payload": {
"sessionId": "{{parent}}",
"event": {
"type": "session-log-deepseek/delivery-accepted",
"seq": 49,
"time": 0,
"data": {
"sessionId": "{{parent}}",
"sessionFormatVersion": 4,
"throughSeq": 48
}
}
}
},
{
"method": "session.event",
"payload": {
"sessionId": "{{parent}}",
"event": {
"type": "assistant/message",
"seq": 50,
"time": 0,
"data": {
"turn": 1,
"step": 5,
"message": {
"role": "assistant",
"content": [
{
"type": "tool-call",
"id": "advanced-workflow",
"name": "workflow",
"arguments": "{\"script\": \"phase('Delegate')\\nconst reply = await agent('Reply with exactly WORKFLOW_CHILD_OK and nothing else.', { label: 'workflow-child' })\\nreturn { reply }\", \"meta\": {\"name\": \"advanced-exe-snapshot\", \"description\": \"exercise one packaged workflow child\"}}"
}
],
"source": {
"kind": "model",
"provider": "deepseek-official",
"model": "smoke-model",
"replayState": {
"response": {
"kind": "deepseek-messages",
"version": 1,
"model": "smoke-model"
},
"blocks": [
{
"type": "tool-call"
}
]
}
},
"id": "{{messageId}}"
},
"usage": {
"inputTokens": 3,
"outputTokens": 3,
"totalTokens": 6
},
"stream": [
{
"type": "chunk",
"time": 0,
"chunk": {
"type": "block-start",
"index": 0,
"blockType": "tool-call"
}
},
{
"type": "tool-call-chunks",
"time0": 0,
"index": 0,
"dt": [],
"id": "advanced-workflow",
"name": "workflow",
"args": [
""
]
},
{
"type": "tool-call-chunks",
"time0": 0,
"index": 0,
"dt": [],
"id": "advanced-workflow",
"args": [
"{\"script\": \"phase('Delegate')\\nconst reply = await agent('Reply with exactly WORKFLOW_CHILD_OK and nothing else.', { label: 'workflow-child' })\\nreturn { reply }\", \"meta\": {\"name\": \"advanced-exe-snapshot\", \"description\": \"exercise one packaged workflow child\"}}"
]
},
{
"type": "chunk",
"time": 0,
"chunk": {
"type": "block-end",
"index": 0,
"block": {
"type": "tool-call",
"id": "advanced-workflow",
"name": "workflow",
"arguments": "{\"script\": \"phase('Delegate')\\nconst reply = await agent('Reply with exactly WORKFLOW_CHILD_OK and nothing else.', { label: 'workflow-child' })\\nreturn { reply }\", \"meta\": {\"name\": \"advanced-exe-snapshot\", \"description\": \"exercise one packaged workflow child\"}}"
}
}
},
{
"type": "chunk",
"time": 0,
"chunk": {
"type": "usage",
"usage": {
"inputTokens": 3,
"outputTokens": 3,
"totalTokens": 6
}
}
},
{
"type": "chunk",
"time": 0,
"chunk": {
"type": "finish",
"reason": {
"kind": "tool-calls"
},
"replayState": {
"response": {
"kind": "deepseek-messages",
"version": 1,
"model": "smoke-model"
},
"blocks": [
{
"type": "tool-call"
}
]
}
}
}
]
},
"surfaceOp": "append"
}
}
},
{
"method": "session.event",
"payload": {
"sessionId": "{{parent}}",
"event": {
"type": "tool/call",
"seq": 51,
"time": 0,
"data": {
"turn": 1,
"step": 5,
"callId": "advanced-workflow",
"name": "workflow",
"arguments": "{\"script\": \"phase('Delegate')\\nconst reply = await agent('Reply with exactly WORKFLOW_CHILD_OK and nothing else.', { label: 'workflow-child' })\\nreturn { reply }\", \"meta\": {\"name\": \"advanced-exe-snapshot\", \"description\": \"exercise one packaged workflow child\"}}"
}
}
}
},
{
"method": "session.event",
"payload": {
"sessionId": "{{parent}}",
"event": {
"type": "tool-workflow/run-start",
"seq": 52,
"time": 0,
"data": {
"runId": "{{workflow-run}}",
"name": "advanced-exe-snapshot"
}
}
}
},
{
"method": "subagent.started",
"payload": {
"parentSessionId": "{{parent}}",
"childSessionId": "{{child-2}}"
}
},
{
"method": "session.event",
"payload": {
"sessionId": "{{child-2}}",
"event": {
"type": "agent/inbox/spliced",
"seq": 3,
"time": 0,
"data": {
"target": "next-step",
"start": 0,
"inserted": [
{
"id": "{{messageId}}",
"role": "user",
"content": [
{
"type": "text",
"text": "Serial agent creation completed."
}
],
"source": {
"kind": "plugin",
"plugin": "serial-created-fixture"
}
}
]
}
}
}
},
{
"method": "session.event",
"payload": {
"sessionId": "{{child-2}}",
"event": {
"type": "agent/inbox/spliced",
"seq": 4,
"time": 0,
"data": {
"target": "next-turn",
"start": 0,
"inserted": [
{
"content": [
{
"type": "text",
"text": "Reply with exactly WORKFLOW_CHILD_OK and nothing else."
}
],
"source": {
"kind": "user"
},
"role": "user",
"id": "{{messageId}}"
}
]
}
}
}
},
{
"method": "session.status",
"payload": {
"sessionId": "{{child-2}}",
"status": "running"
}
},
{
"method": "session.event",
"payload": {
"sessionId": "{{child-2}}",
"event": {
"type": "turn/start",
"seq": 5,
"time": 0,
"data": {
"turn": 1
}
}
}
},
{
"method": "session.event",
"payload": {
"sessionId": "{{child-2}}",
"event": {
"type": "agent/inbox/spliced",
"seq": 6,
"time": 0,
"data": {
"target": "next-step",
"start": 0,
"removedCount": 1,
"inserted": []
}
}
}
},
{
"method": "session.event",
"payload": {
"sessionId": "{{child-2}}",
"event": {
"type": "agent/inbox/spliced",
"seq": 7,
"time": 0,
"data": {
"target": "next-turn",
"start": 0,
"removedCount": 1,
"inserted": []
}
}
}
},
{
"method": "session.event",
"payload": {
"sessionId": "{{parent}}",
"event": {
"type": "subagent/catalog",
"seq": 53,
"time": 0,
"data": {
"version": 0,
"childId": "{{child-2}}",
"childCreatedAt": 0,
"mode": "one-shot"
}
}
}
},
{
"method": "session.event",
"payload": {
"sessionId": "{{parent}}",
"event": {
"type": "tool-workflow/agent-start",
"seq": 54,
"time": 0,
"data": {
"runId": "{{workflow-run}}",
"seq": 1,
"label": "workflow-child",
"phase": "Delegate",
"childId": "{{child-2}}"
}
}
}
},
{
"method": "session.event",
"payload": {
"sessionId": "{{child-2}}",
"event": {
"type": "subagent/descriptor",
"seq": 8,
"time": 0,
"data": {
"version": 3,
"mode": "one-shot",
"provider": "spawn"
}
}
}
},
{
"method": "session.event",
"payload": {
"sessionId": "{{child-2}}",
"event": {
"type": "step/start",
"seq": 9,
"time": 0,
"data": {
"turn": 1,
"step": 1
}
}
}
},
{
"method": "session.event",
"payload": {
"sessionId": "{{child-2}}",
"event": {
"type": "system/message",
"seq": 10,
"time": 0,
"data": {
"turn": 1,
"step": 1,
"message": {
"role": "system",
"content": [
{
"type": "text",
"text": "{{system}}"
}
],
"source": {
"kind": "plugin",
"plugin": "@deepseek-ai/dsh-system-prompt"
},
"id": "{{messageId}}"
}
},
"surfaceOp": "append"
}
}
},
{
"method": "session.event",
"payload": {
"sessionId": "{{child-2}}",
"event": {
"type": "user/message",
"seq": 11,
"time": 0,
"data": {
"id": "{{messageId}}",
"role": "user",
"content": [
{
"type": "text",
"text": "Serial agent creation completed."
}
],
"source": {
"kind": "plugin",
"plugin": "serial-created-fixture"
}
},
"surfaceOp": "append"
}
}
},
{
"method": "session.event",
"payload": {
"sessionId": "{{child-2}}",
"event": {
"type": "user/message",
"seq": 12,
"time": 0,
"data": {
"content": [
{
"type": "text",
"text": "Reply with exactly WORKFLOW_CHILD_OK and nothing else."
}
],
"source": {
"kind": "user"
},
"role": "user",
"id": "{{messageId}}"
},
"surfaceOp": "append"
}
}
},
{
"method": "session.event",
"payload": {
"sessionId": "{{child-2}}",
"event": {
"type": "user/message",
"seq": 13,
"time": 0,
"data": {
"content": [
{
"type": "text",
"text": "Current runtime context. This snapshot supersedes earlier runtime-context snapshots.\n\nCurrent DSH file policy: danger-full-access. The DSH file sandbox does not restrict file modifications by available operations.\n\nApproval prompts are disabled in this session: actions that require approval are rejected automatically — do not request sandbox escalation (do not set `sandbox_permissions`).\n\nYou are a delegated subagent: your permission scope was fixed when you were started and cannot be widened from inside this session — operations that require approval are rejected automatically. When the task needs access beyond that scope, do not retry the denied operation; state the limitation in your reply so the delegating agent can handle it."
}
],
"source": {
"kind": "plugin",
"plugin": "@deepseek-ai/dsh-system-prompt",
"form": "snapshot",
"sections": [
{
"name": "sandbox:policy",
"text": "Current DSH file policy: danger-full-access. The DSH file sandbox does not restrict file modifications by available operations."
},
{
"name": "approval:policy",
"text": "Approval prompts are disabled in this session: actions that require approval are rejected automatically — do not request sandbox escalation (do not set `sandbox_permissions`)."
},
{
"name": "subagent:delegation",
"text": "You are a delegated subagent: your permission scope was fixed when you were started and cannot be widened from inside this session — operations that require approval are rejected automatically. When the task needs access beyond that scope, do not retry the denied operation; state the limitation in your reply so the delegating agent can handle it."
}
]
},
"role": "user",
"id": "{{messageId}}"
},
"surfaceOp": "append"
}
}
},
{
"method": "session.event",
"payload": {
"sessionId": "{{child-2}}",
"event": {
"type": "request/header",
"seq": 14,
"time": 0,
"data": {
"header": {
"config": {
"provider": "deepseek-official",
"model": "smoke-model",
"reasoningEffort": "high",
"maxTokens": 256000
},
"adapterDefaults": {
"maxTokens": true
},
"tools": [
"cordis_inspect_list",
"cordis_inspect_query",
"job_kill",
"job_list",
"job_output",
"run_code",
"snapshot_double",
"subagent",
"workflow"
]
},
"reason": "initial"
}
}
}
},
{
"method": "session.event",
"payload": {
"sessionId": "{{child-2}}",
"event": {
"type": "request/context",
"seq": 15,
"time": 0,
"data": {
"provider": "deepseek-official",
"model": "smoke-model",
"contextWindow": 1000000
}
}
}
},
{
"method": "session.event",
"payload": {
"sessionId": "{{child-2}}",
"event": {
"type": "session/title",
"seq": 16,
"time": 0,
"data": {
"title": "Reply with exactly WORKFLOW_CHILD_OK and",
"messageSeqs": [
12
],
"source": {
"kind": "fallback"
}
}
}
}
},
{
"method": "session.event",
"payload": {
"sessionId": "{{child-2}}",
"event": {
"type": "session-log-deepseek/delivery-accepted",
"seq": 17,
"time": 0,
"data": {
"sessionId": "{{child-2}}",
"sessionFormatVersion": 4,
"throughSeq": 16
}
}
}
},
{
"method": "session.event",
"payload": {
"sessionId": "{{child-2}}",
"event": {
"type": "assistant/message",
"seq": 18,
"time": 0,
"data": {
"turn": 1,
"step": 1,
"message": {
"role": "assistant",
"content": [
{
"type": "text",
"text": "WORKFLOW_CHILD_OK"
}
],
"source": {
"kind": "model",
"provider": "deepseek-official",
"model": "smoke-model",
"replayState": {
"response": {
"kind": "deepseek-messages",
"version": 1,
"model": "smoke-model"
},
"blocks": [
{
"type": "text"
}
]
}
},
"id": "{{messageId}}"
},
"usage": {
"inputTokens": 3,
"outputTokens": 3,
"totalTokens": 6
},
"stream": [
{
"type": "chunk",
"time": 0,
"chunk": {
"type": "block-start",
"index": 0,
"blockType": "text"
}
},
{
"type": "text-chunks",
"time0": 0,
"index": 0,
"dt": [],
"texts": [
"WORKFLOW_CHILD_OK"
]
},
{
"type": "chunk",
"time": 0,
"chunk": {
"type": "block-end",
"index": 0,
"block": {
"type": "text",
"text": "WORKFLOW_CHILD_OK"
}
}
},
{
"type": "chunk",
"time": 0,
"chunk": {
"type": "usage",
"usage": {
"inputTokens": 3,
"outputTokens": 3,
"totalTokens": 6
}
}
},
{
"type": "chunk",
"time": 0,
"chunk": {
"type": "finish",
"reason": {
"kind": "stop"
},
"replayState": {
"response": {
"kind": "deepseek-messages",
"version": 1,
"model": "smoke-model"
},
"blocks": [
{
"type": "text"
}
]
}
}
}
]
},
"surfaceOp": "append"
}
}
},
{
"method": "session.event",
"payload": {
"sessionId": "{{child-2}}",
"event": {
"type": "step/end",
"seq": 19,
"time": 0,
"data": {
"turn": 1,
"step": 1
}
}
}
},
{
"method": "session.event",
"payload": {
"sessionId": "{{child-2}}",
"event": {
"type": "turn/end",
"seq": 20,
"time": 0,
"data": {
"turn": 1,
"reason": {
"kind": "completed"
}
}
}
}
},
{
"method": "session.status",
"payload": {
"sessionId": "{{child-2}}",
"status": "idle"
}
},
{
"method": "subagent.finished",
"payload": {
"provider": "spawn",
"agentId": "{{child-2}}",
"parentSessionId": "{{parent}}",
"childSessionId": "{{child-2}}",
"status": "ok",
"stopReason": "completed",
"lastAssistantMessage": [
{
"type": "text",
"text": "WORKFLOW_CHILD_OK"
}
]
}
},
{
"method": "session.event",
"payload": {
"sessionId": "{{parent}}",
"event": {
"type": "tool-workflow/agent-end",
"seq": 55,
"time": 0,
"data": {
"runId": "{{workflow-run}}",
"seq": 1,
"outcome": "completed"
}
}
}
},
{
"method": "session.event",
"payload": {
"sessionId": "{{parent}}",
"event": {
"type": "tool-workflow/run-end",
"seq": 56,
"time": 0,
"data": {
"runId": "{{workflow-run}}",
"stopReason": "completed"
}
}
}
},
{
"method": "session.event",
"payload": {
"sessionId": "{{parent}}",
"event": {
"type": "tool/result",
"seq": 57,
"time": 0,
"data": {
"turn": 1,
"step": 5,
"message": {
"role": "tool",
"source": {
"kind": "tool",
"callId": "advanced-workflow"
},
"toolCallId": "advanced-workflow",
"content": [
{
"type": "text",
"text": "workflow \"advanced-exe-snapshot\" completed (1 agent).\nReturn value:\n{\n \"reply\": \"WORKFLOW_CHILD_OK\"\n}"
}
],
"isError": false,
"id": "{{messageId}}"
}
},
"sourceEventSeqs": [
51
],
"surfaceOp": "append"
}
}
},
{
"method": "session.event",
"payload": {
"sessionId": "{{parent}}",
"event": {
"type": "step/end",
"seq": 58,
"time": 0,
"data": {
"turn": 1,
"step": 5
}
}
}
},
{
"method": "session.event",
"payload": {
"sessionId": "{{parent}}",
"event": {
"type": "step/start",
"seq": 59,
"time": 0,
"data": {
"turn": 1,
"step": 6
}
}
}
},
{
"method": "session.event",
"payload": {
"sessionId": "{{parent}}",
"event": {
"type": "session-log-deepseek/delivery-accepted",
"seq": 60,
"time": 0,
"data": {
"sessionId": "{{parent}}",
"sessionFormatVersion": 4,
"throughSeq": 59
}
}
}
},
{
"method": "session.event",
"payload": {
"sessionId": "{{parent}}",
"event": {
"type": "assistant/message",
"seq": 61,
"time": 0,
"data": {
"turn": 1,
"step": 6,
"message": {
"role": "assistant",
"content": [
{
"type": "text",
"text": "ADVANCED_EXECUTABLE_OK"
}
],
"source": {
"kind": "model",
"provider": "deepseek-official",
"model": "smoke-model",
"replayState": {
"response": {
"kind": "deepseek-messages",
"version": 1,
"model": "smoke-model"
},
"blocks": [
{
"type": "text"
}
]
}
},
"id": "{{message:1}}"
},
"usage": {
"inputTokens": 3,
"outputTokens": 3,
"totalTokens": 6
},
"stream": [
{
"type": "chunk",
"time": 0,
"chunk": {
"type": "block-start",
"index": 0,
"blockType": "text"
}
},
{
"type": "text-chunks",
"time0": 0,
"index": 0,
"dt": [],
"texts": [
"ADVANCED_EXECUTABLE_OK"
]
},
{
"type": "chunk",
"time": 0,
"chunk": {
"type": "block-end",
"index": 0,
"block": {
"type": "text",
"text": "ADVANCED_EXECUTABLE_OK"
}
}
},
{
"type": "chunk",
"time": 0,
"chunk": {
"type": "usage",
"usage": {
"inputTokens": 3,
"outputTokens": 3,
"totalTokens": 6
}
}
},
{
"type": "chunk",
"time": 0,
"chunk": {
"type": "finish",
"reason": {
"kind": "stop"
},
"replayState": {
"response": {
"kind": "deepseek-messages",
"version": 1,
"model": "smoke-model"
},
"blocks": [
{
"type": "text"
}
]
}
}
}
]
},
"surfaceOp": "append"
}
}
},
{
"method": "session.event",
"payload": {
"sessionId": "{{parent}}",
"event": {
"type": "step/end",
"seq": 62,
"time": 0,
"data": {
"turn": 1,
"step": 6
}
}
}
},
{
"method": "session.event",
"payload": {
"sessionId": "{{parent}}",
"event": {
"type": "command/run",
"seq": 63,
"time": 0,
"data": {
"commandId": "{{command:1}}",
"name": "feedback",
"source": {
"kind": "user"
}
}
}
}
},
{
"method": "session.event",
"payload": {
"sessionId": "{{parent}}",
"event": {
"type": "feedback/record",
"seq": 64,
"time": 0,
"data": {
"text": "The session needs a clearer explanation."
}
}
}
},
{
"method": "session.event",
"payload": {
"sessionId": "{{parent}}",
"event": {
"type": "command/done",
"seq": 65,
"time": 0,
"data": {
"commandId": "{{command:1}}",
"kind": "success",
"text": "Feedback recorded for session {{parent}}\nAnonymous user: {{anonymous-user}}."
}
}
}
},
{
"method": "session.event",
"payload": {
"sessionId": "{{parent}}",
"event": {
"type": "feedback/record",
"seq": 66,
"time": 0,
"data": {
"category": "other"
}
}
}
},
{
"method": "session.event",
"payload": {
"sessionId": "{{parent}}",
"event": {
"type": "feedback/message-put",
"seq": 67,
"time": 0,
"data": {
"sessionId": "{{parent}}",
"item": {
"messageId": "{{message:1}}",
"rating": "negative",
"note": "Explain the result.",
"category": "task-result",
"version": "{{feedback-version:1}}",
"createdAt": 0,
"updatedAt": 0
}
}
}
}
},
{
"method": "session.event",
"payload": {
"sessionId": "{{parent}}",
"event": {
"type": "feedback/message-put",
"seq": 68,
"time": 0,
"data": {
"sessionId": "{{parent}}",
"item": {
"messageId": "{{message:1}}",
"rating": "positive",
"note": "The explanation is clear now.",
"version": "{{feedback-version:2}}",
"createdAt": 0,
"updatedAt": 0
}
}
}
}
},
{
"method": "session.event",
"payload": {
"sessionId": "{{parent}}",
"event": {
"type": "feedback/message-delete",
"seq": 69,
"time": 0,
"data": {
"sessionId": "{{parent}}",
"messageId": "{{message:1}}"
}
}
}
},
{
"method": "session.event",
"payload": {
"sessionId": "{{parent}}",
"event": {
"type": "turn/end",
"seq": 70,
"time": 0,
"data": {
"turn": 1,
"reason": {
"kind": "completed"
}
}
}
}
},
{
"method": "session.status",
"payload": {
"sessionId": "{{parent}}",
"status": "idle"
}
}
]
}