Plan a checkpoint recovery into a new session (read-only)
dsh_prepare_recoveryLoads a persisted task record and checkpoint read-only, verifies the current workspace matches, and returns a scrubbed recovery plan with a planToken without starting a runtime or model request.
Instructions
Read-only. Loads a persisted task record and checkpoint under DATA_ROOT/tasks with anchored, symlink-refusing reads, checks that the caller workspace matches the recorded workspace, and returns a bounded scrubbed plan with a planToken bound to the exact source record/checkpoint and current workspace state. Starts no runtime and makes no model request; never probes or reuses the recorded PID and never exposes prompts, context, environment, reasoning or the recorded argv. A source still in this bridge process's live map is refused; use dsh_continue_task. A missing or corrupt checkpoint is an explicit refusal. A source recorded accepted/starting/running produces a warning and requires allowUnsettledSource=true at recovery.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"taskId": "<taskId>",
"workspace": "<workspace>"
},
"name": "dsh_prepare_recovery"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| taskId | Yes | ||
| workspace | Yes | The admitted current workspace; it must canonically match the workspace recorded for the task. |