Skip to content

armgit / ruflo

Public Imported from GitHub
0

🌊 The original agent harness. Deploy intelligent multi-player swarms, coordinate autonomous workflows, and build conversational AI systems. Features adaptive memory, self-learning intelligence, federation, vector RAG integration, and native Claude Code / Codex / Hermes and many more Integrated

chore(console): 0.40.4 changelog and version, drop regex fallback in isOpenTask, test wf-links isOpen

r555ee880e7f2
diff --git a/plugins/ruflo-console/.claude-plugin/plugin.json b/plugins/ruflo-console/.claude-plugin/plugin.json
index 6b27e865fe..ac935bf67c 100644
--- a/plugins/ruflo-console/.claude-plugin/plugin.json
+++ b/plugins/ruflo-console/.claude-plugin/plugin.json
@@ -1,7 +1,7 @@
{
"name": "ruflo-console",
"description": "ruflo's cockpit inside Claude Code and the one /ruflo command for every ruflo mod (function hooks, early access). Views: overview with health alerts, swarm topology graph, claims flow with TTL rings, federation map, plugin health matrix, learning curve and pipeline, MetaHarness radar and audit trend, memory, cost gauge, agent timeline, approvals queue, event stream, a main menu, an x.ruv.io federation board, an AI terminal (codex, claude or both in remembered sessions, streamed), Skills (npx skills), a Hive-Mind view, a MetaHarness lab, agent drill-down; a command palette for confirm-gated actions through the ruflo CLI; a band above the prompt. Reads ruflo's files and the CLI's local JSON; anything not measured reads n/a. The one network call it makes by itself is a daily read of the published plugin.json at github.com/ruvnet/ruflo to offer an update (Settings → Updates: ask, auto, or off); it installs only through Claude Code's own claude plugin update, and never a new major version without asking.",
- "version": "0.40.3",
+ "version": "0.40.4",
"author": {
"name": "ruvnet",
"url": "https://github.com/ruvnet"
diff --git a/plugins/ruflo-console/CHANGELOG.md b/plugins/ruflo-console/CHANGELOG.md
index 8cd877ad80..b2f3e4e6cf 100644
--- a/plugins/ruflo-console/CHANGELOG.md
+++ b/plugins/ruflo-console/CHANGELOG.md
@@ -2,6 +2,9 @@
Newest first. One `## <version> — <date>` heading per version, then `feat:`, `fix:`, `breaking:` and `chore:` bullets (ADR-478). Built from git history; older versions: `git log -- plugins/ruflo-console`.
+## 0.40.4 — 2026-10-09
+- fix: a task an older CLI stored as "complete", "done", "canceled" or "running" reads as its canonical state everywhere the console decides on status: the kanban lane, Mission Control (it is never handed to Claude again), mission cancel, and the workflow task links (#3931, #3932, thanks @proffesor-for-testing)
+
## 0.40.3 — 2026-10-08
- fix: the approvals badge (band "n to approve", menu badge, change notices, and the Approvals header) counts only rows a person can act on; a refused mod or a permission deny has no approve or deny action, stays listed on the page as a notice, and no longer holds the badge up with nothing to press (#3920)
diff --git a/plugins/ruflo-console/hooks/data/wf-guide.ts b/plugins/ruflo-console/hooks/data/wf-guide.ts
index 2dead8062b..cd51d36fcd 100644
--- a/plugins/ruflo-console/hooks/data/wf-guide.ts
+++ b/plugins/ruflo-console/hooks/data/wf-guide.ts
@@ -25,8 +25,8 @@ export type NestRow = { depth: number; kind: NestKind; label: string; detail: st
const MAX_ROWS = 60
const isOpenClaim = (claim: ClaimRecord): boolean => !/released|completed|cancel/i.test(claim.status)
-// Finished by its canonical status ("complete", "done", "canceled" from older CLIs included) or by the words the regex always matched.
-const isOpenTask = (task: TaskRecord): boolean => !(['completed', 'failed', 'cancelled'].includes(taskStatusOf(task.status)) || /completed|failed|cancelled/i.test(task.status))
+// Finished by its canonical status ("complete", "done", "canceled" from older CLIs included).
+const isOpenTask = (task: TaskRecord): boolean => !['completed', 'failed', 'cancelled'].includes(taskStatusOf(task.status))
/** swarm > hive (queen) > worker > claim > task, each level only from what the stores say; a missing level is a note, never invented. */
export function nestingOf(input: { swarm: SwarmInfo | null; hive: HiveInfo | null; agents: readonly AgentRecord[]; hiveAgents: readonly HiveAgentRecord[]; claims: readonly ClaimRecord[]; tasks: readonly TaskRecord[] }): NestRow[] {
diff --git a/plugins/ruflo-console/hooks/data/wf-links.ts b/plugins/ruflo-console/hooks/data/wf-links.ts
index 53c54b6d25..25ba294120 100644
--- a/plugins/ruflo-console/hooks/data/wf-links.ts
+++ b/plugins/ruflo-console/hooks/data/wf-links.ts
@@ -84,7 +84,7 @@ export function refsOf(ledger: Iterable<MissionRecord>, observed: readonly Missi
}
const tagOf = (task: TaskRecord, prefix: 'mission' | 'task'): string | undefined => task.tags?.find(tag => tag.startsWith(`${prefix}:`))?.slice(prefix.length + 1)
-const isOpen = (status: string | undefined): boolean => !['completed', 'failed', 'cancelled'].includes(taskStatusOf(status))
+export const isOpen = (status: string | undefined): boolean => !['completed', 'failed', 'cancelled'].includes(taskStatusOf(status))
/** Builds the index over every agent of `runs` (the ruflo swarm folded in as a run, as the page holds it). */
export function linkAgents(refs: readonly MissionTaskRef[], runs: readonly WfRun[], tasks: readonly TaskRecord[]): LinkIndex {
diff --git a/plugins/ruflo-console/hooks/version.ts b/plugins/ruflo-console/hooks/version.ts
index 698092864c..820b06003e 100644
--- a/plugins/ruflo-console/hooks/version.ts
+++ b/plugins/ruflo-console/hooks/version.ts
@@ -2,4 +2,4 @@
* The console's version, shown on the header so a person can tell which build is running. Kept equal to the plugin's manifest
* (`.claude-plugin/plugin.json`); tests/version.spec.ts fails if the two drift.
*/
-export const CONSOLE_VERSION = '0.40.3'
+export const CONSOLE_VERSION = '0.40.4'
diff --git a/plugins/ruflo-console/scripts/smoke.sh b/plugins/ruflo-console/scripts/smoke.sh
index d4da04c507..15054b8aaa 100755
--- a/plugins/ruflo-console/scripts/smoke.sh
+++ b/plugins/ruflo-console/scripts/smoke.sh
@@ -11,9 +11,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 ruflo-console 0.40.3"
+step "1. plugin.json declares ruflo-console 0.40.4"
grep -q '"name": "ruflo-console"' "$ROOT/.claude-plugin/plugin.json" \
- && grep -q '"version": "0.40.3"' "$ROOT/.claude-plugin/plugin.json" && ok || bad "name/version"
+ && grep -q '"version": "0.40.4"' "$ROOT/.claude-plugin/plugin.json" && ok || bad "name/version"
step "2. hooks.json names exactly one module and no classic hook commands"
grep -q '"modules": \["./register.ts"\]' "$HOOKS/hooks.json" && ! grep -q '"command"' "$HOOKS/hooks.json" \
diff --git a/plugins/ruflo-console/tests/wf-links.spec.ts b/plugins/ruflo-console/tests/wf-links.spec.ts
index 1370a88d14..7f3a48f6e6 100644
--- a/plugins/ruflo-console/tests/wf-links.spec.ts
+++ b/plugins/ruflo-console/tests/wf-links.spec.ts
@@ -7,7 +7,7 @@ import { describe, expect, it } from 'vitest'
import type { MissionRecord } from '../hooks/mission-types'
import { applyMissionEvents, eventsBetween } from '../hooks/data/wf-events'
-import { agentLinkLine, labelTag, linkAgents, readLabelTag, refsOf, taskLinkLine, type MissionTaskRef } from '../hooks/data/wf-links'
+import { agentLinkLine, isOpen, labelTag, linkAgents, readLabelTag, refsOf, taskLinkLine, type MissionTaskRef } from '../hooks/data/wf-links'
import type { AgentRecord, TaskRecord } from '../hooks/data/parse'
import { STALE_MS, type AgentState, type RunState, type WfAgent, type WfRun } from '../hooks/data/workflows'
@@ -22,6 +22,12 @@ const task = (id: string, assignedTo: string[], tags: string[] | undefined, stat
const REFS: MissionTaskRef[] = [{ missionId: 'm1', taskId: 'implement', title: 'Implement it', rufloTaskId: 'task-9' }, { missionId: 'm1', taskId: 'review', title: 'Review it' }]
describe('links', () => {
+ it('a task stored under an older CLI spelling is finished, not open', () => {
+ expect(['complete', 'Done ', 'canceled', 'completed', 'failed', 'cancelled'].map(isOpen)).toEqual([false, false, false, false, false, false])
+ expect([undefined, 'pending', 'running', 'in-progress', 'in_progress'].map(isOpen)).toEqual([true, true, true, true, true])
+ })
+
+
it('links a ruflo agent through the ruflo task assigned to it, by the mission:/task: tags', () => {
const index = linkAgents(REFS, [run('swarm', [rufloAgent('agent-1')], { kind: 'ruflo-swarm' })], [task('task-7', ['agent-1'], ['mission:m1', 'task:review', 'phase:X'])])