<< All versions
Skill v1.0.0
currentLLM-judged scan90/100dwchoo/workbench/workbench-recovery
──Details
PublishedOctober 23, 2026 at 11:33 AM
Content Hashsha256:fef6b51ad7573a95...
Git SHA320ce937168e
──Files
Files (1 file, 3.8 KB)
SKILL.md3.8 KBactive
SKILL.md · 34 lines · 3.8 KB
version: "1.0.0" name: workbench-recovery description: Recover a Workbench Task after a notice (worker_stalled, worker_restarted, report_delivery_unknown, manager_recovery, backend_restarted) - read workbench_status, then follow up, cancel, restart_worker, stop_command or stop_survivor. Agent-only; not for the user.
workbench-recovery (manager)
Workbench watches the worker; never poll it yourself. It tells you with a Workbench notice: a user message whose JSON has workbench_notice (no workbench_message_id; not a worker report).
Notices
worker_stalled: after 2 automatic status checks the open Task got no report and no command.worker_restarted: the worker OMP is a new session (user restart,restart_worker, or a crash) with no memory of the open Task. It is the one cue to continue: one follow-up on the sametask_id(Workbench re-sends the Task), or cancel.report_delivery_unknown: a worker report may not have reached you; it is not re-sent (its text is inworkbench_status).worker_terminal_done(information): a command the previous worker session started has ended (command_id, exit,log_path); it is incommands_run; never run it again yourself.backend_restarted: the Task is held, nothing was re-sent or re-run.survivorsare processes the old backend left running; per survivor:stop_survivor(survivor_id,reason) or leave it.manager_recovery: your own OMP session is new. Missed reports come as messages (reports_resentcounts them; wait for them before you cancel the Task); reports with an unknown delivery are only listed.
Procedure
- Call
workbench_status(no arguments, or the notice'stask_id). It is read-only and answers at once: the Task (commands,commands_runwith exit code andlog_path), the worker (idle/busy, restarts), the host terminal (running command or idle) and reports to you that are pending, deferred, of unknown delivery ornot_sent(never sent: ask the worker again if needed), with their text. - Decide, once:
- The work is done or the facts are enough (for example
commands_runshows every command finished): answer the user from the report text; cancel the Task if still open (to_workerwithtask_id,cancel: true). - The worker is idle but has not finished, or it is a new session: send a follow-up
to_workeron the sametask_idthat says what to do next (a new session gets the full Task and commands already run). - The worker is stuck or silent (busy long with no terminal command running, or your follow-up got no answer): call
restart_workerwith a shortreasonand end your turn; on theworker_restartednotice send exactly one follow-up on the sametask_id(or cancel). - The Task no longer matters: cancel it.
- A command or experiment run runs on and should not:
stop_commandwith itscommand_id(an experiment'srun_id) and areason. Take the id fromworkbench_statustask.host_commandsor a cancel response'shost_commands; results are in the to-worker skill's task-results reference.unknown/stale: not confirmed; tell the user, never claim it stopped.stopping: checkworkbench_statuslater; do not loop.refusedwithprevious_backend_command: usestop_survivor. A stopped command or run is not a failure to retry.
- Tell the user briefly what happened and what you did, then end your turn and wait for the report.
Rules
- Never run the worker's commands yourself or operate the host terminal; a worker command keeps running through a restart.
- Cancel is not stop, nor is
restart_worker: after a cancel,host_commandsmay still list a running command;stop_commandit only if it should not finish. restart_workeris refused while another restart runs (restart_in_progress); do not loop.- Do not re-send a report's content to the worker or invent results the status does not show.