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" diff --git a/plugins/ruflo-loop-workers/skills/loop-worker/SKILL.md b/plugins/ruflo-loop-workers/skills/loop-worker/SKILL.md index 3f747f03ec..2e112c2913 100644 --- a/plugins/ruflo-loop-workers/skills/loop-worker/SKILL.md +++ b/plugins/ruflo-loop-workers/skills/loop-worker/SKILL.md @@ -15,17 +15,25 @@ Then schedule the next iteration. `ScheduleWakeup` needs the loop prompt back so Stop the loop when the worker reports nothing new twice in a row: `ScheduleWakeup({ stop: true })`. -### 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 | 270s | 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.