Command Palette

Search for a command to run...

Назад к скиллам
скилл № 45022

zf-workflow-resume-operator

ZaoFu workflow resume operator playbook for stuck autoresearch, supervisor, orchestrator, fanout, PRD, issue, refactor, or build runs. Use when asked to…

БесплатноБез исполняемых скриптов
uisee-aiот uisee-ai★ 36 звёзд на GitHub

Установить zf-workflow-resume-operator в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

ZaoFu Workflow Resume Operator

Overview

Use this skill to inspect and resume ZaoFu workflows without corrupting runtime truth. The skill guides operator behavior; deterministic state transitions still belong to ZaoFu CLI/runtime helpers.

Invariants

  • Treat zf.yaml as the only control-plane config.
  • Resolve and pass the configured project.state_dir; do not assume .zf.
  • Never edit events.jsonl, kanban.json, session.yaml, feature_list.json, or role_sessions.yaml directly.
  • Use zf recover workflow and kernel helpers for mutations.
  • Do not synthesize terminal events such as *.passed, *.approved, or task.done.
  • Do not claim a workflow is complete until both resume projection and downstream gates support that claim.

Read-Only First

Start with a dry-run from the target project root. Use a project-relative launcher so the command is portable across checkouts — pick whichever your project provides:

# repo-root uv (recommended when the project ships a uv env)
ZF_STATE_DIR=<state-dir> uv run zf recover workflow --dry-run --json

# or an editable venv checkout
ZF_STATE_DIR=<state-dir> .venv/bin/zf recover workflow --dry-run --json

Inspect:

  • summary.pending: per-task checkpoints that need action.
  • summary.batch_pending: batch/fanout checkpoints that may be current or historical.
  • checkpoints[].safe_resume_action: task-level action such as needs_stage_dispatch, needs_rework_dispatch, needs_gate_dispatch, needs_terminal_closeout, blocked_external_gate, or no_action.
  • batch_checkpoints[].safe_resume_action: batch-level action such as repair_failed_children or reemit_candidate_ready.
  • worker_registry.stale: stale worker evidence.

Decision Rules

safe_resume_action is the enum the kernel writes on each checkpoint. Map the value to the guidance below. The "expected downstream" column is what a successful --resume-pending must produce (see src/zf/runtime/run_manager_router.py expected_downstream_events); if you do not see those events after applying, treat the resume as not landed.

safe_resume_action level expected downstream after apply operator guidance
no_action task — Do not re-apply; already settled.
needs_stage_dispatch task task.dispatched + workflow.resume.applied Apply single checkpoint by id, then dry-run again.
needs_rework_dispatch task task.rework.requested + workflow.resume.applied Apply single checkpoint by id, then dry-run again.
needs_gate_dispatch task stage.transition.stalled + workflow.resume.applied Apply single checkpoint; confirm the stalled marker landed.
needs_terminal_closeout task stage.transition.stalled + workflow.resume.applied (same group as needs_gate_dispatch in router expected_downstream_events) Terminal-stage closeout. Before manual apply, check the Tier-2 diagnosis channel (below) — a blocked terminal often means the kernel already opened a diagnosis loop.
blocked_external_gate task stage.transition.stalled + workflow.resume.applied Do not guess approval. Check whether a route or gate event is genuinely missing, and check the diagnosis channel first.
repair_failed_children batch task_map.ready + workflow.resume.applied Triage superseded first (see Batch Checkpoint Triage). Only resume current batches.
reemit_candidate_ready batch candidate.ready + workflow.resume.applied (router expected_downstream_events; classifier in workflow_resume.py _batch_safe_action) The batch has a completed candidate ref+head but no candidate.ready emission. Re-emit only if no later equivalent patch already landed the candidate (patch-id check below).

Additional rules that do not fit a single row:

  • If pending=0 and batch_pending=0, do not resume anything.
  • If pending=0 but batch_pending>0, say the active task path is clear but historical or batch checkpoints remain. Do not call the whole run done.
  • If the checkpoint source was rejected earlier, remember that workflow.resume.rejected is not success. Fix the rejection cause and retry the same checkpoint.
  • SAFE_BATCH_ACTIONS in the kernel is exactly {repair_failed_children, reemit_candidate_ready} (src/zf/runtime/run_manager_router.py). A batch checkpoint outside that set is not auto-safe; inspect before acting.

Tier-2 Diagnosis First

Before you manually recover any blocked_external_gate / needs_terminal_closeout checkpoint, or any run that looks stuck because a judge is not converging or a rework quota is exhausted, look at the Tier-2 diagnosis channel. The kernel opens it automatically; a manual resume that races it will duplicate work the kernel already suppressed.

How it works (src/zf/runtime/diagnosis.py, wired in src/zf/runtime/orchestrator.py Orchestrator._run_diagnosis_sweep):

  • On a non-convergence / rework-exhausted escalation, the orchestrator sweep mi
Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл zf-workflow-resume-operator?

ZaoFu workflow resume operator playbook for stuck autoresearch, supervisor, orchestrator, fanout, PRD, issue, refactor, or build runs. Use when asked to inspect current workflow status, handle workflow_resume checkpoints, resume pending tasks, distinguish per-task pending from batch checkpoints, or decide whether a blocked ZaoFu run needs manual recovery.

Как установить скилл zf-workflow-resume-operator?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл zf-workflow-resume-operator запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить zf-workflow-resume-operator с