From 3de59b8a4f64676c62b219d5e533a405985f2ccc Mon Sep 17 00:00:00 2001 From: r Date: Sat, 10 Oct 2026 12:50:07 -0400 Subject: [PATCH 1/2] fix(ruflo-loop-workers): loop-worker skill lists all 12 workers and the background-polling rule The skill's table had 8 workers while ADR-0001 and /ruflo-loop define 12; add ultralearn, deepdive, refactor and preload with the priorities from /ruflo-loop. Intervals for the four added workers follow the existing pattern (heavier analysis 600s, light preload 270s) and are labelled as suggested cadences. Add the rule not to poll background work with short ScheduleWakeup calls. Plugin smoke: 15 passed, 0 failed (unchanged). CHANGELOG is built from git history, so it is not hand-edited. Co-Authored-By: claude-flow --- .../skills/loop-worker/SKILL.md | 30 ++++++++++++------- 1 file changed, 19 insertions(+), 11 deletions(-) diff --git a/plugins/ruflo-loop-workers/skills/loop-worker/SKILL.md b/plugins/ruflo-loop-workers/skills/loop-worker/SKILL.md index dd2d3dce2a..dc3ce68ec0 100644 --- a/plugins/ruflo-loop-workers/skills/loop-worker/SKILL.md +++ b/plugins/ruflo-loop-workers/skills/loop-worker/SKILL.md @@ -11,17 +11,25 @@ Dispatch a worker via MCP: `mcp__plugin_ruflo-core_ruflo__hooks_worker-dispatch( Then schedule the next iteration: `ScheduleWakeup({ delaySeconds: 270, reason: "next WORKER_NAME iteration" })` -### Available Workers +### Available Workers (12, per ADR-0001 and `/ruflo-loop`) -| Worker | Interval | Description | -|--------|----------|-------------| -| audit | 270s | Security analysis | -| optimize | 270s | Performance optimization | -| consolidate | 600s | Memory consolidation | -| predict | 270s | Predictive preloading | -| map | 600s | Codebase mapping | -| testgaps | 270s | Test coverage analysis | -| document | 600s | Auto-documentation | -| benchmark | 600s | Performance benchmarking | +| Worker | Priority | Interval | Description | +|--------|----------|----------|-------------| +| audit | critical | 270s | Security analysis | +| optimize | high | 270s | Performance optimization | +| predict | normal | 270s | Predictive preloading | +| testgaps | normal | 270s | Test coverage analysis | +| ultralearn | normal | 600s | Deep knowledge acquisition | +| deepdive | normal | 600s | Deep code analysis | +| map | normal | 600s | Codebase mapping | +| document | normal | 600s | Auto-documentation | +| refactor | normal | 600s | Refactoring suggestions | +| benchmark | normal | 600s | Performance benchmarking | +| consolidate | low | 600s | Memory consolidation | +| preload | low | 270s | Resource preloading | + +The intervals are suggested cadences, not enforced by the dispatcher: 270s keeps the prompt cache warm, and the heavier analysis workers run at 600s because one iteration rarely finishes sooner. + +Work you start in the background (a build, a long job) finishes with its own completion notification. Do not poll it with short `ScheduleWakeup` calls; use a long fallback delay (1200s or more) so the loop survives a hung job. MCP tool responses include `[LOOP_SUGGESTION]` and `[CRON_SUGGESTION]` hints -- follow them. From 5a85751f961a15200d12b04e5273edf309601964 Mon Sep 17 00:00:00 2001 From: r Date: Mon, 12 Oct 2026 13:35:56 -0400 Subject: [PATCH 2/2] chore(loop-workers): 0.3.5 for the 12-worker skill table (changelog) Co-Authored-By: RuFlo --- plugins/ruflo-loop-workers/.claude-plugin/plugin.json | 2 +- plugins/ruflo-loop-workers/CHANGELOG.md | 5 +++++ plugins/ruflo-loop-workers/scripts/smoke.sh | 4 ++-- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/plugins/ruflo-loop-workers/.claude-plugin/plugin.json b/plugins/ruflo-loop-workers/.claude-plugin/plugin.json index d2feda5367..1982cf70ec 100644 --- a/plugins/ruflo-loop-workers/.claude-plugin/plugin.json +++ b/plugins/ruflo-loop-workers/.claude-plugin/plugin.json @@ -1,7 +1,7 @@ { "name": "ruflo-loop-workers", "description": "Cache-aware /loop workers and CronCreate background automation — wraps 5 hooks_worker-* MCP tools (list/dispatch/status/detect/cancel) and exposes 12 background worker triggers (ultralearn, optimize, consolidate, predict, audit, map, preload, deepdive, document, refactor, benchmark, testgaps). As a mod (ADR-445): a per-session dispatch cap, no secrets in worker context, /loop-mod, and a status file the console shows", - "version": "0.3.4", + "version": "0.3.5", "author": { "name": "ruvnet", "url": "https://github.com/ruvnet" diff --git a/plugins/ruflo-loop-workers/CHANGELOG.md b/plugins/ruflo-loop-workers/CHANGELOG.md index b8a2b75af8..c867f8e47c 100644 --- a/plugins/ruflo-loop-workers/CHANGELOG.md +++ b/plugins/ruflo-loop-workers/CHANGELOG.md @@ -2,6 +2,11 @@ Newest first. One `## — ` heading per version, then `feat:`, `fix:`, `breaking:` and `chore:` bullets (ADR-478). Built from git history; this is the whole history. +## 0.3.5 — 2026-10-12 + +- Fix: the loop-worker skill lists all 12 workers with the priorities `hooks worker list` reports (it listed 8); the four added workers (ultralearn, deepdive, refactor, preload) have suggested cadences, and the intervals are documented as suggestions the dispatcher does not enforce (#4043) +- Fix: the skill says not to poll background work with short `ScheduleWakeup` calls (use a 1200s+ fallback) + ## 0.3.4 — 2026-10-11 - Fix: `CronCreate` takes `{ cron, prompt, recurring }` (not `schedule`, and not positional arguments), and its jobs are session-scoped and expire after 7 days; docs no longer say they survive restarts. Use `/schedule` or an OS scheduler for that. diff --git a/plugins/ruflo-loop-workers/scripts/smoke.sh b/plugins/ruflo-loop-workers/scripts/smoke.sh index a7c8c2ec7b..359d0d6b02 100755 --- a/plugins/ruflo-loop-workers/scripts/smoke.sh +++ b/plugins/ruflo-loop-workers/scripts/smoke.sh @@ -7,9 +7,9 @@ step() { printf "→ %s ... " "$1"; } ok() { printf "PASS\n"; PASS=$((PASS+1)); } bad() { printf "FAIL: %s\n" "$1"; FAIL=$((FAIL+1)); } -step "1. plugin.json declares 0.3.4 with new keywords" +step "1. plugin.json declares 0.3.5 with new keywords" v=$(grep -E '"version"' "$ROOT/.claude-plugin/plugin.json" | grep -oE '[0-9]+\.[0-9]+\.[0-9]+' | head -1) -if [[ "$v" != "0.3.4" ]]; then bad "expected 0.3.4, got '$v'"; else +if [[ "$v" != "0.3.5" ]]; then bad "expected 0.3.5, got '$v'"; else miss="" for k in mcp background-workers cache-aware schedule-wakeup; do grep -q "\"$k\"" "$ROOT/.claude-plugin/plugin.json" || miss="$miss $k"