Command Palette

Search for a command to run...

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

dos-dispatch-loop

Run recurring `dos-dispatch` cycles, switching to `dos-replan` when the backlog drains and stopping on the kernel's loop verdict. Use for unattended…

БесплатноБез исполняемых скриптов
anthony-chaudharyот anthony-chaudhary★ 50 звёзд на GitHub

Установить dos-dispatch-loop в Claude Code и Claude Desktop

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

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

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

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

dos-dispatch-loop — the generic dispatch⇄replan cadence

The unattended plan-and-ship loop. It runs /dos-dispatch repeatedly and falls to /dos-replan when a lane drains, stopping on a typed, kernel-decided condition (not a prose guess). The stop/continue logic is the kernel's loop_decide.decide — the loop carries counters, the kernel decides. Several loops on disjoint lanes run in parallel, each holding its own lane lease.

The stop conditions are the kernel's, in one place:

  1. iteration cap — reached max_iterations (default 10).
  2. drained-twice — a DRAIN after a productive /dos-replan that itself followed a DRAIN (the lane is genuinely exhausted).
  3. consecutive-unclear — the dispatch subprocess is failing systematically.
  4. rate-limited — a usage window is exhausted (don't burn launches).
  5. launch-failed — a subprocess never started.
  6. pick-held-invariant — the next unit is held ONLY by a reason a re-dispatch cannot change (draft-class / operator-gated / soak-open / dependency-unmet); re-dispatching it would re-block identically, so honest-STOP + surface the hold.
  7. pick-cooldown — the next unit was attempted-and-didn't-move inside its cooldown window AND nothing fresher is offerable; re-dispatching it would re-storm a known drain (the ~5%-shipping re-pick loop the bare loop hit).
  8. not-ratcheting — the OUTER RATCHET (docs/351): the loop has run too many iterations in a row with no witnessed net gain — the reconcile-VERIFIED ship-count (Step 3) is not rising, even though each iteration reported SHIPPED. The loop is running but not improving (the "spinning, narrating progress while net-shipping nothing real" failure that worsens the longer the loop runs). The verdict is the kernel's improve ESCALATE, read VERBATIM — not the loop's self-report. Hand the judgment back to a human.

Conditions 6–7 are the docs/207 anti-churn rungs (the loop stops re-picking work it cannot move); condition 8 is the docs/351 ratchet (the loop stops when it is moving but not improving — RSI made first-class here, the same improve keep-gate the /dos-self-improve loop uses, now gating each dispatch iteration's net gain).

Inputs

  • --lane <name> (optional) — focus the whole loop on one lane (fixed for the run; a bare loop auto-picks a free lane at Step 0).
  • --gate hard|soft|drive (default hard) — the verdict policy. hard routes a non-LIVE verdict through /dos-replan; soft/drive stop on a true DRAIN; drive self-heals a STALE-STAMP inline.
  • --max-iterations <N> (default 10).

Step 0 — Pre-flight: take the lane, read the taxonomy

dos doctor --workspace . --json
python tools/dos_fleet_lease.py --workspace . acquire --lane <LANE> --kind cluster

The fleet lease wrapper materializes the live lease union, feeds it to the kernel acquire, then republishes this node's held set. For ordinary shard lanes this is the same-host fast path; for the three global lanes (abi, release, global) it uses the GitRefStore cross-node transport by default (#21). A REFUSE means a sibling loop already holds an overlapping lane — pick a free one from kernel.free_clusters or exit. Initialise the loop counters (iteration=1, the breakers at 0).

dos lease-lane acquire is the lease AUTHORITY; dos arbitrate is ADVISORY. Only acquire folds the durable lane-journal WAL under the lease mutex and journals the grant, so only its verdict binds. Honor its REFUSE; never start editing a tree on the strength of an arbitrate GO alone (arbitrate holds no lock, so even a correct GO can be stale by acquire time).

The advisory has two surfaces and they do not behave the same:

  • dos arbitrate (the CLI) reads the live WAL by default, so it agrees with acquire. Passing --leases '[]' opts out into an empty world.
  • The MCP tool dos_arbitrate reads nothing — it arbitrates only against the live_leases you hand it, and an omitted argument means "the world is empty", so every lane reads free. Observed live: MCP dos_arbitrate answered "cluster lane 'tools' free — admitted." for a lane dos lease-lane acquire refused the same second as "already held by a live loop" (dos-kernel#246). Until that lands, either use the CLI form or pass the real set explicitly (dos lease-lane live / fak leaseref live). A FREE from a checker that cannot see the store is not evidence of a free lane.

Step 1 — Pick-selection: skip held + cooled units (the anti-churn gate)

Before a dispatch iteration offers a unit, screen the candidate unit set so the loop never re-storms work it cannot move (the docs/207 §6 throughline). For each candidate, in order:

dos pickable <UNIT> --state '<host-gathered state>'   # OFFERABLE=0; HELD=per-reason code
dos cooldown <UNIT>
Полный SKILL.md на GitHub

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

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

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

FAQ

Что делает скилл dos-dispatch-loop?

Run recurring `dos-dispatch` cycles, switching to `dos-replan` when the backlog drains and stopping on the kernel's loop verdict. Use for unattended dispatch->replan->dispatch work across disjoint lanes.

Как установить скилл dos-dispatch-loop?

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

Скилл dos-dispatch-loop запускает скрипты?

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

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

Сравнить dos-dispatch-loop с