sessionId: {{sessionId}}

type: user/message

type: text

text: Run this advanced flow exactly once: try a no-op temporary Cordis Plugin named snapshot-marker; use run_code to inspect the live temporary Plugins through tools.cordis_inspect; delegate once to a direct spawn child; run one workflow that delegates to another spawn child; stop dyn-1; then reply with exactly ADVANCED_HEADLESS_OK.

kind: user

role: user

surfaceOp: append


type: session/title

title: Run this advanced flow exactly

kind: fallback


type: request/header

provider: deepseek-official

[System] {{system}}

tools: {{tools}}

reason: initial


type: assistant/chunk

type: block-start

blockType: tool-call


type: tool-call-delta

code: return { name: 'snapshot-marker', apply() {} }


type: block-end

type: tool-call


type: finish

kind: tool-calls


type: assistant/message

role: assistant

kind: model


type: tool/call

callId: advanced-mount


type: tool/result

kind: tool

type: tool-result

toolCallId: advanced-mount

text: Temporary Plugin dyn-1 is running (plugin "snapshot-marker"; available until unmounted or DSH restarts).


code: return await tools.cordis_inspect({ what: 'temporary' })

description: Run the scripted inspection program


description: Run the scripted inspection program


description: Run the scripted inspection program


callId: advanced-code

description: Run the scripted inspection program


type: tool/code-dispatch-start

parentCallId: advanced-code

what: temporary


type: tool/code-dispatch

text:
## Temporary Plugins
- Temporary Plugin dyn-1: snapshot-marker [running] — provides: none; waiting for: none; lifetime: until unmounted or DSH restarts


toolCallId: advanced-code


subagent

description: Check direct child

prompt: Reply with exactly DIRECT_CHILD_OK and nothing else.


description: Check direct child

prompt: Reply with exactly DIRECT_CHILD_OK and nothing else.


description: Check direct child

prompt: Reply with exactly DIRECT_CHILD_OK and nothing else.


callId: advanced-direct-child

description: Check direct child

prompt: Reply with exactly DIRECT_CHILD_OK and nothing else.


toolCallId: advanced-direct-child


workflow

script:
phase('Delegate')
const reply = await agent('Reply with exactly WORKFLOW_CHILD_OK and nothing else.', { label: 'workflow-child' })
return { reply }

advanced-headless-snapshot

description: exercise one workflow child through the headless agent


callId: advanced-workflow


toolCallId: advanced-workflow

text:
workflow "advanced-headless-snapshot" completed (1 agent).
Return value:
{
  "reply": "WORKFLOW_CHILD_OK"
}


callId: advanced-unmount

toolCallId: advanced-unmount

text: Temporary Plugin dyn-1 was unmounted and removed.


blockType: text