type: agent/inbox/spliced

target: next-turn

type: text

text: Run the advanced packaged-runtime snapshot scenario.

kind: user

role: user


type: user/message

surfaceOp: append


text:
Current runtime context. This snapshot supersedes earlier runtime-context snapshots.

Current DSH file policy: danger-full-access. The DSH file sandbox does not restrict file modifications by available operations.

Approval prompts are disabled in this session: actions that require approval are rejected automatically — do not request sandbox escalation (do not set `sandbox_permissions`).

kind: plugin

form: snapshot


type: session/title

title: Run the advanced packaged-runtime snapsh

kind: fallback


type: request/header

provider: deepseek-official

model: smoke-model

reasoningEffort: high

[System] {{system}}

reason: initial


type: request/context


type: session-log-deepseek/delivery-accepted

sessionId: {{parent}}


type: assistant/chunk

type: tool-call-delta

Snapshot Double

kind: new

idPrefix: snap

purpose: Expose a deterministic doubling tool for executable snapshot verification.

host:
return (ctx) => {
  harness.registerTool(ctx, harness.defineTool({
    name: 'snapshot_double',
    description: 'Double a number for executable snapshot verification.',
    parameters: { value: { type: 'number', required: true } },
    output: {
      schema: { type: 'number' },
      render(_args, value) {
        return [{ type: 'text', text: String(value) }]
      }
    },
    async execute(args) {
      return args.value * 2
    }
  }))
}


type: block-end

type: tool-call


type: assistant/message

role: assistant

kind: model


type: tool/call

callId: advanced-define


type: tool/result

kind: tool

type: tool-result

toolCallId: advanced-define

text: Defined snap-1/pkg-1 (Snapshot Double); it is not running yet. Use cordis_run to activate this Package.


mode: run


callId: advanced-run

toolCallId: advanced-run

text: snap-1/pkg-1 is running (run-1).


[System] {{system}}

reason: change


code: return await tools.snapshot_double({ value: 21 })

description: Run the temporary Plugin tool


description: Run the temporary Plugin tool


description: Run the temporary Plugin tool


callId: advanced-code

description: Run the temporary Plugin tool


type: tool/code-dispatch-start

rootCallId: advanced-code

parentCallId: advanced-code


type: tool/code-dispatch


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-exe-snapshot

description: exercise one packaged workflow child


advanced-exe-snapshot

description: exercise one packaged workflow child


workflow

description: exercise one packaged workflow child


callId: advanced-workflow

advanced-exe-snapshot

description: exercise one packaged workflow child


type: tool-workflow/agent-start

runId: {{workflow-run}}

label: workflow-child

phase: Delegate


type: tool-workflow/agent-end

outcome: completed


type: tool-workflow/run-end

stopReason: completed


toolCallId: advanced-workflow

type: text

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


callId: advanced-undefine

toolCallId: advanced-undefine

text: Removed dynamic Plugin snap-1 and all of its Packages.


type: request/header

[System] {{system}}