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.5 changelog; bound the answer scan on unclosed openers; merge main

r41b2175901a3
diff --git a/plugins/ruflo-console/.claude-plugin/plugin.json b/plugins/ruflo-console/.claude-plugin/plugin.json
index ac935bf67c..c63830a39c 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.4",
+ "version": "0.40.5",
"author": {
"name": "ruvnet",
"url": "https://github.com/ruvnet"
diff --git a/plugins/ruflo-console/CHANGELOG.md b/plugins/ruflo-console/CHANGELOG.md
index b2f3e4e6cf..7344e02b08 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.5 — 2026-10-09
+- fix: a verdict command's "found something" exit (security scans, AIDefence checks, MetaHarness mcp-scan, threat-model and drift) is an answer, not a failure: Claude is told what was found, and a failed run names its real reason (the [ERROR] line, a wrapped tool error) instead of the CLI's [WARN] banner; the answer is read out of stdout in bounded time (#3933, #3934, thanks @proffesor-for-testing)
+
## 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)
diff --git a/plugins/ruflo-console/hooks/data/failure.ts b/plugins/ruflo-console/hooks/data/failure.ts
index 6af09f7a38..80d79e4931 100644
--- a/plugins/ruflo-console/hooks/data/failure.ts
+++ b/plugins/ruflo-console/hooks/data/failure.ts
@@ -97,10 +97,12 @@ function answerIn(isAnswer: Findings['isAnswer'], stdout: string): { json: Recor
for (let match = starts.exec(text); match !== null && tried < MAX_CANDIDATES; match = starts.exec(text)) {
const start = match.index + match[0].length - 1
+ // Counted before the scan: an opener that never closes costs a scan of the rest, so it must use up an attempt too (else n openers cost n scans).
+ tried += 1
+
const end = closeOf(text, start)
if (end < 0) continue
- tried += 1
let json: Record<string, unknown> | null = null
diff --git a/plugins/ruflo-console/hooks/version.ts b/plugins/ruflo-console/hooks/version.ts
index 820b06003e..dcdefe0f3e 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.4'
+export const CONSOLE_VERSION = '0.40.5'
diff --git a/plugins/ruflo-console/scripts/smoke.sh b/plugins/ruflo-console/scripts/smoke.sh
index 15054b8aaa..881fac885e 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.4"
+step "1. plugin.json declares ruflo-console 0.40.5"
grep -q '"name": "ruflo-console"' "$ROOT/.claude-plugin/plugin.json" \
- && grep -q '"version": "0.40.4"' "$ROOT/.claude-plugin/plugin.json" && ok || bad "name/version"
+ && grep -q '"version": "0.40.5"' "$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/verdict-exit.spec.ts b/plugins/ruflo-console/tests/verdict-exit.spec.ts
index 7eae8c9fd5..ff8858b82b 100644
--- a/plugins/ruflo-console/tests/verdict-exit.spec.ts
+++ b/plugins/ruflo-console/tests/verdict-exit.spec.ts
@@ -10,7 +10,7 @@
import { describe, expect, it } from 'vitest'
import { probeError } from '../hooks/data/cli'
-import { failureReason, isFindingsExit, reasonLine } from '../hooks/data/failure'
+import { failureReason, isFindingsExit, judgeFindings, reasonLine } from '../hooks/data/failure'
import type { Host } from '../hooks/host'
import { LAB, labSpec } from '../hooks/mh-lab'
import { evidenceEvent, parseGates } from '../hooks/mission-verify'
@@ -446,4 +446,12 @@ describe('a wrapped MCP failure (exit 0, isError) names its own error', () => {
expect(state.outcome?.ok).toBe(false)
expect(state.outcome?.detail).toBe('Error: Failed to initialize @ruvector/rvagent-wasm: ERR_MODULE_NOT_FOUND')
})
+
+ it('reading an answer out of hostile stdout is bounded: 100k unclosed openers cost a few scans, not one each', () => {
+ const findings = { exits: [1], isAnswer: () => false, found: () => true }
+ const start = Date.now()
+
+ expect(judgeFindings(findings, { stdout: '{\n'.repeat(100_000) }).answer).toBeNull()
+ expect(Date.now() - start).toBeLessThan(1_000)
+ })
})