π 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
TypeScript agentic-aiagentic-frameworkagentic-workflowagentsai-agentsai-assistantai-skillsautonomous-agentsclaudecodexdsh-pluginharnessmcp-servermulti-agentmulti-agent-systemsnpmskillsswarmswarm-intelligencetypescript
fix(mods): live-check W5 β guards read key names and every field; trader gates the package's real order tools
ruv1d1394aa53c2
diff --git a/plugins/ruflo-jujutsu/.claude-plugin/plugin.json b/plugins/ruflo-jujutsu/.claude-plugin/plugin.jsonindex 22ed6a1023..e4fc72b57c 100644--- a/plugins/ruflo-jujutsu/.claude-plugin/plugin.json+++ b/plugins/ruflo-jujutsu/.claude-plugin/plugin.json@@ -1,7 +1,7 @@{"name": "ruflo-jujutsu","description": "Advanced git workflows with diff analysis, risk scoring, change classification (feature/bugfix/refactor/...), and reviewer recommendations β wraps 6 analyze_* MCP tools (diff, diff-risk, diff-classify, diff-reviewers, file-risk, diff-stats). As a mod (ADR-445): a PR-text and merge/close guard, /jujutsu-mod, and a status file the console shows",- "version": "0.3.0",+ "version": "0.3.1","author": {"name": "ruvnet","url": "https://github.com/ruvnet"diff --git a/plugins/ruflo-jujutsu/hooks/guard.ts b/plugins/ruflo-jujutsu/hooks/guard.tsindex 6a81105e76..bd29cfe4df 100644--- a/plugins/ruflo-jujutsu/hooks/guard.ts+++ b/plugins/ruflo-jujutsu/hooks/guard.ts@@ -7,15 +7,15 @@ export function shortName(name: string): string {return name.startsWith('mcp__') && at > 5 ? name.slice(at + 2) : name}-/** Every string in a tool's input, to a bounded depth and size: what the guard reads. */-export function textsOf(input: unknown, budget = { left: 20_000 }, depth = 0): string[] {+/** Every string in a tool's input (a string value led by its key, so `api_key=...` reads as an assignment), to a bounded depth and size: what the guard reads. */+export function textsOf(input: unknown, budget = { left: 100_000 }, depth = 0): string[] {if (budget.left <= 0 || depth > 6) return []if (typeof input === 'string') {- budget.left -= input.length+ budget.left -= Math.min(input.length, 20_000)return [input]}if (Array.isArray(input)) return input.slice(0, 200).flatMap(v => textsOf(v, budget, depth + 1))- if (typeof input === 'object' && input !== null) return Object.values(input).slice(0, 200).flatMap(v => textsOf(v, budget, depth + 1))+ if (typeof input === 'object' && input !== null) return Object.entries(input).slice(0, 200).flatMap(([k, v]) => (typeof v === 'string' ? textsOf(`${k}=${v}`, budget, depth + 1) : textsOf(v, budget, depth + 1)))return []}diff --git a/plugins/ruflo-jujutsu/scripts/smoke.sh b/plugins/ruflo-jujutsu/scripts/smoke.shindex 829e2d1a95..5018006722 100755--- a/plugins/ruflo-jujutsu/scripts/smoke.sh+++ b/plugins/ruflo-jujutsu/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.0 with new keywords"+step "1. plugin.json declares 0.3.1 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.0" ]]; then bad "expected 0.3.0, got '$v'"; else+if [[ "$v" != "0.3.1" ]]; then bad "expected 0.3.1, got '$v'"; elsemiss=""for k in mcp change-classification reviewer-recommendation; dogrep -q "\"$k\"" "$ROOT/.claude-plugin/plugin.json" || miss="$miss $k"diff --git a/plugins/ruflo-jujutsu/tests/textsof.test.ts b/plugins/ruflo-jujutsu/tests/textsof.test.tsnew file mode 100644index 0000000000..b41114bc9f--- /dev/null+++ b/plugins/ruflo-jujutsu/tests/textsof.test.ts@@ -0,0 +1,22 @@+import { describe, expect, test, tier } from 'claude-code/testing'++import { textsOf } from '../hooks/guard'+import { hasSecret } from '../hooks/screen'++tier('user')++const AWS = `AKIA${'IOSFODNN7EXAMPLE'}`+const BIG = 'QUJD'.repeat(10_000)+const found = (input: unknown) => textsOf(input).some(hasSecret)++describe('what the guard reads', () => {+ test('a key name leads its string value, so an object-shaped assignment is caught', () => {+ expect(found({ meta: { api_key: 'abcdef1234567890abcdef' } })).toBe(true)+ expect(found({ meta: { maxTokens: 4096, name: 'refresh policy' } })).toBe(false)+ })++ test('a long field does not starve the fields after it', () => {+ expect(found({ value: BIG, note: AWS })).toBe(true)+ expect(found({ a: BIG, b: BIG, c: BIG, d: 'plain text' })).toBe(false)+ })+})diff --git a/plugins/ruflo-knowledge-graph/.claude-plugin/plugin.json b/plugins/ruflo-knowledge-graph/.claude-plugin/plugin.jsonindex 6f9bb76d63..a06b68e998 100644--- a/plugins/ruflo-knowledge-graph/.claude-plugin/plugin.json+++ b/plugins/ruflo-knowledge-graph/.claude-plugin/plugin.json@@ -1,7 +1,7 @@{"name": "ruflo-knowledge-graph","description": "Knowledge graph construction β entity extraction, relation mapping, and pathfinder graph traversal. As a mod (ADR-445): keeps secrets out of the graph, confirms graph deletes, /kg-mod, and a status file the console shows",- "version": "0.3.0",+ "version": "0.3.1","author": {"name": "ruvnet","url": "https://github.com/ruvnet"diff --git a/plugins/ruflo-knowledge-graph/hooks/guard.ts b/plugins/ruflo-knowledge-graph/hooks/guard.tsindex 4523373f80..dd18f1cc45 100644--- a/plugins/ruflo-knowledge-graph/hooks/guard.ts+++ b/plugins/ruflo-knowledge-graph/hooks/guard.ts@@ -7,15 +7,15 @@ export function shortName(name: string): string {return name.startsWith('mcp__') && at > 5 ? name.slice(at + 2) : name}-/** Every string in a tool's input, to a bounded depth and size: what the guard reads. */-export function textsOf(input: unknown, budget = { left: 20_000 }, depth = 0): string[] {+/** Every string in a tool's input (a string value led by its key, so `api_key=...` reads as an assignment), to a bounded depth and size: what the guard reads. */+export function textsOf(input: unknown, budget = { left: 100_000 }, depth = 0): string[] {if (budget.left <= 0 || depth > 6) return []if (typeof input === 'string') {- budget.left -= input.length+ budget.left -= Math.min(input.length, 20_000)return [input]}if (Array.isArray(input)) return input.slice(0, 200).flatMap(v => textsOf(v, budget, depth + 1))- if (typeof input === 'object' && input !== null) return Object.values(input).slice(0, 200).flatMap(v => textsOf(v, budget, depth + 1))+ if (typeof input === 'object' && input !== null) return Object.entries(input).slice(0, 200).flatMap(([k, v]) => (typeof v === 'string' ? textsOf(`${k}=${v}`, budget, depth + 1) : textsOf(v, budget, depth + 1)))return []}diff --git a/plugins/ruflo-knowledge-graph/scripts/smoke.sh b/plugins/ruflo-knowledge-graph/scripts/smoke.shindex 36dbf880de..6102ffcc54 100755--- a/plugins/ruflo-knowledge-graph/scripts/smoke.sh+++ b/plugins/ruflo-knowledge-graph/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.0 with new keywords"+step "1. plugin.json declares 0.3.1 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.0" ]]; then bad "expected 0.3.0, got '$v'"; else+if [[ "$v" != "0.3.1" ]]; then bad "expected 0.3.1, got '$v'"; elsemiss=""for k in mcp pathfinder-traversal entity-extraction; dogrep -q "\"$k\"" "$ROOT/.claude-plugin/plugin.json" || miss="$miss $k"diff --git a/plugins/ruflo-knowledge-graph/tests/textsof.test.ts b/plugins/ruflo-knowledge-graph/tests/textsof.test.tsnew file mode 100644index 0000000000..b41114bc9f--- /dev/null+++ b/plugins/ruflo-knowledge-graph/tests/textsof.test.ts@@ -0,0 +1,22 @@+import { describe, expect, test, tier } from 'claude-code/testing'++import { textsOf } from '../hooks/guard'+import { hasSecret } from '../hooks/screen'++tier('user')++const AWS = `AKIA${'IOSFODNN7EXAMPLE'}`+const BIG = 'QUJD'.repeat(10_000)+const found = (input: unknown) => textsOf(input).some(hasSecret)++describe('what the guard reads', () => {+ test('a key name leads its string value, so an object-shaped assignment is caught', () => {+ expect(found({ meta: { api_key: 'abcdef1234567890abcdef' } })).toBe(true)+ expect(found({ meta: { maxTokens: 4096, name: 'refresh policy' } })).toBe(false)+ })++ test('a long field does not starve the fields after it', () => {+ expect(found({ value: BIG, note: AWS })).toBe(true)+ expect(found({ a: BIG, b: BIG, c: BIG, d: 'plain text' })).toBe(false)+ })+})diff --git a/plugins/ruflo-knowledge-graph/tsconfig.json b/plugins/ruflo-knowledge-graph/tsconfig.jsonnew file mode 100644index 0000000000..8681ec01da--- /dev/null+++ b/plugins/ruflo-knowledge-graph/tsconfig.json@@ -0,0 +1,3 @@+{+ "extends": "./.claude-plugin/types/tsconfig.json"+}diff --git a/plugins/ruflo-loop-workers/.claude-plugin/plugin.json b/plugins/ruflo-loop-workers/.claude-plugin/plugin.jsonindex e59f941475..41a1471ce6 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.0",+ "version": "0.3.1","author": {"name": "ruvnet","url": "https://github.com/ruvnet"diff --git a/plugins/ruflo-loop-workers/hooks/guard.ts b/plugins/ruflo-loop-workers/hooks/guard.tsindex c3a3cefab0..a6eb8a5e11 100644--- a/plugins/ruflo-loop-workers/hooks/guard.ts+++ b/plugins/ruflo-loop-workers/hooks/guard.ts@@ -7,15 +7,15 @@ export function shortName(name: string): string {return name.startsWith('mcp__') && at > 5 ? name.slice(at + 2) : name}-/** Every string in a tool's input, to a bounded depth and size: what the guard reads. */-export function textsOf(input: unknown, budget = { left: 20_000 }, depth = 0): string[] {+/** Every string in a tool's input (a string value led by its key, so `api_key=...` reads as an assignment), to a bounded depth and size: what the guard reads. */+export function textsOf(input: unknown, budget = { left: 100_000 }, depth = 0): string[] {if (budget.left <= 0 || depth > 6) return []if (typeof input === 'string') {- budget.left -= input.length+ budget.left -= Math.min(input.length, 20_000)return [input]}if (Array.isArray(input)) return input.slice(0, 200).flatMap(v => textsOf(v, budget, depth + 1))- if (typeof input === 'object' && input !== null) return Object.values(input).slice(0, 200).flatMap(v => textsOf(v, budget, depth + 1))+ if (typeof input === 'object' && input !== null) return Object.entries(input).slice(0, 200).flatMap(([k, v]) => (typeof v === 'string' ? textsOf(`${k}=${v}`, budget, depth + 1) : textsOf(v, budget, depth + 1)))return []}diff --git a/plugins/ruflo-loop-workers/scripts/smoke.sh b/plugins/ruflo-loop-workers/scripts/smoke.shindex fe7b49b109..e48c3f0beb 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.0 with new keywords"+step "1. plugin.json declares 0.3.1 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.0" ]]; then bad "expected 0.3.0, got '$v'"; else+if [[ "$v" != "0.3.1" ]]; then bad "expected 0.3.1, got '$v'"; elsemiss=""for k in mcp background-workers cache-aware schedule-wakeup; dogrep -q "\"$k\"" "$ROOT/.claude-plugin/plugin.json" || miss="$miss $k"diff --git a/plugins/ruflo-loop-workers/tests/textsof.test.ts b/plugins/ruflo-loop-workers/tests/textsof.test.tsnew file mode 100644index 0000000000..b41114bc9f--- /dev/null+++ b/plugins/ruflo-loop-workers/tests/textsof.test.ts@@ -0,0 +1,22 @@+import { describe, expect, test, tier } from 'claude-code/testing'++import { textsOf } from '../hooks/guard'+import { hasSecret } from '../hooks/screen'++tier('user')++const AWS = `AKIA${'IOSFODNN7EXAMPLE'}`+const BIG = 'QUJD'.repeat(10_000)+const found = (input: unknown) => textsOf(input).some(hasSecret)++describe('what the guard reads', () => {+ test('a key name leads its string value, so an object-shaped assignment is caught', () => {+ expect(found({ meta: { api_key: 'abcdef1234567890abcdef' } })).toBe(true)+ expect(found({ meta: { maxTokens: 4096, name: 'refresh policy' } })).toBe(false)+ })++ test('a long field does not starve the fields after it', () => {+ expect(found({ value: BIG, note: AWS })).toBe(true)+ expect(found({ a: BIG, b: BIG, c: BIG, d: 'plain text' })).toBe(false)+ })+})diff --git a/plugins/ruflo-loop-workers/tsconfig.json b/plugins/ruflo-loop-workers/tsconfig.jsonnew file mode 100644index 0000000000..8681ec01da--- /dev/null+++ b/plugins/ruflo-loop-workers/tsconfig.json@@ -0,0 +1,3 @@+{+ "extends": "./.claude-plugin/types/tsconfig.json"+}diff --git a/plugins/ruflo-market-data/.claude-plugin/plugin.json b/plugins/ruflo-market-data/.claude-plugin/plugin.jsonindex b922c7ba00..7cdd06daad 100644--- a/plugins/ruflo-market-data/.claude-plugin/plugin.json+++ b/plugins/ruflo-market-data/.claude-plugin/plugin.json@@ -1,7 +1,7 @@{"name": "ruflo-market-data","description": "Market data ingestion β feed normalization, OHLCV vectorization, and HNSW-indexed pattern matching. As a mod (ADR-445): keeps credentials and credentialed feed URLs out of market memory, /market-mod, and a status file the console shows",- "version": "0.3.0",+ "version": "0.3.1","author": {"name": "ruvnet","url": "https://github.com/ruvnet"diff --git a/plugins/ruflo-market-data/hooks/guard.ts b/plugins/ruflo-market-data/hooks/guard.tsindex e67545ec52..677551c17e 100644--- a/plugins/ruflo-market-data/hooks/guard.ts+++ b/plugins/ruflo-market-data/hooks/guard.ts@@ -7,15 +7,15 @@ export function shortName(name: string): string {return name.startsWith('mcp__') && at > 5 ? name.slice(at + 2) : name}-/** Every string in a tool's input, to a bounded depth and size: what the guard reads. */-export function textsOf(input: unknown, budget = { left: 20_000 }, depth = 0): string[] {+/** Every string in a tool's input (a string value led by its key, so `api_key=...` reads as an assignment), to a bounded depth and size: what the guard reads. */+export function textsOf(input: unknown, budget = { left: 100_000 }, depth = 0): string[] {if (budget.left <= 0 || depth > 6) return []if (typeof input === 'string') {- budget.left -= input.length+ budget.left -= Math.min(input.length, 20_000)return [input]}if (Array.isArray(input)) return input.slice(0, 200).flatMap(v => textsOf(v, budget, depth + 1))- if (typeof input === 'object' && input !== null) return Object.values(input).slice(0, 200).flatMap(v => textsOf(v, budget, depth + 1))+ if (typeof input === 'object' && input !== null) return Object.entries(input).slice(0, 200).flatMap(([k, v]) => (typeof v === 'string' ? textsOf(`${k}=${v}`, budget, depth + 1) : textsOf(v, budget, depth + 1)))return []}diff --git a/plugins/ruflo-market-data/scripts/smoke.sh b/plugins/ruflo-market-data/scripts/smoke.shindex 194ab17f71..a780f560a3 100755--- a/plugins/ruflo-market-data/scripts/smoke.sh+++ b/plugins/ruflo-market-data/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.0 with new keywords"+step "1. plugin.json declares 0.3.1 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.0" ]]; then bad "expected 0.3.0, got '$v'"; else+if [[ "$v" != "0.3.1" ]]; then bad "expected 0.3.1, got '$v'"; elsemiss=""for k in mcp candlestick-patterns namespace-routing; dogrep -q "\"$k\"" "$ROOT/.claude-plugin/plugin.json" || miss="$miss $k"diff --git a/plugins/ruflo-market-data/tests/textsof.test.ts b/plugins/ruflo-market-data/tests/textsof.test.tsnew file mode 100644index 0000000000..b41114bc9f--- /dev/null+++ b/plugins/ruflo-market-data/tests/textsof.test.ts@@ -0,0 +1,22 @@+import { describe, expect, test, tier } from 'claude-code/testing'++import { textsOf } from '../hooks/guard'+import { hasSecret } from '../hooks/screen'++tier('user')++const AWS = `AKIA${'IOSFODNN7EXAMPLE'}`+const BIG = 'QUJD'.repeat(10_000)+const found = (input: unknown) => textsOf(input).some(hasSecret)++describe('what the guard reads', () => {+ test('a key name leads its string value, so an object-shaped assignment is caught', () => {+ expect(found({ meta: { api_key: 'abcdef1234567890abcdef' } })).toBe(true)+ expect(found({ meta: { maxTokens: 4096, name: 'refresh policy' } })).toBe(false)+ })++ test('a long field does not starve the fields after it', () => {+ expect(found({ value: BIG, note: AWS })).toBe(true)+ expect(found({ a: BIG, b: BIG, c: BIG, d: 'plain text' })).toBe(false)+ })+})diff --git a/plugins/ruflo-market-data/tsconfig.json b/plugins/ruflo-market-data/tsconfig.jsonnew file mode 100644index 0000000000..8681ec01da--- /dev/null+++ b/plugins/ruflo-market-data/tsconfig.json@@ -0,0 +1,3 @@+{+ "extends": "./.claude-plugin/types/tsconfig.json"+}diff --git a/plugins/ruflo-metaharness/.claude-plugin/plugin.json b/plugins/ruflo-metaharness/.claude-plugin/plugin.jsonindex 22abd799d8..b3e0f95640 100644--- a/plugins/ruflo-metaharness/.claude-plugin/plugin.json+++ b/plugins/ruflo-metaharness/.claude-plugin/plugin.json@@ -1,7 +1,7 @@{"name": "ruflo-metaharness","description": "MetaHarness integration for ruflo β surfaces score/genome/mint/mcp-scan/threat-model via skills; pairs with @metaharness/router (ADR-148/149) for cost-optimal model routing; honors ADR-150's architectural constraint that MetaHarness remains an optional augmentation, never a required runtime dependency. As a mod (ADR-445): confirms flywheel promotion, keeps secrets out of inputs, /metaharness-mod, and a status file the console shows",- "version": "0.2.0",+ "version": "0.2.1","author": {"name": "ruvnet","url": "https://github.com/ruvnet"diff --git a/plugins/ruflo-metaharness/hooks/guard.ts b/plugins/ruflo-metaharness/hooks/guard.tsindex 74d2cac37b..b52e62b0c9 100644--- a/plugins/ruflo-metaharness/hooks/guard.ts+++ b/plugins/ruflo-metaharness/hooks/guard.ts@@ -7,15 +7,15 @@ export function shortName(name: string): string {return name.startsWith('mcp__') && at > 5 ? name.slice(at + 2) : name}-/** Every string in a tool's input, to a bounded depth and size: what the guard reads. */-export function textsOf(input: unknown, budget = { left: 20_000 }, depth = 0): string[] {+/** Every string in a tool's input (a string value led by its key, so `api_key=...` reads as an assignment), to a bounded depth and size: what the guard reads. */+export function textsOf(input: unknown, budget = { left: 100_000 }, depth = 0): string[] {if (budget.left <= 0 || depth > 6) return []if (typeof input === 'string') {- budget.left -= input.length+ budget.left -= Math.min(input.length, 20_000)return [input]}if (Array.isArray(input)) return input.slice(0, 200).flatMap(v => textsOf(v, budget, depth + 1))- if (typeof input === 'object' && input !== null) return Object.values(input).slice(0, 200).flatMap(v => textsOf(v, budget, depth + 1))+ if (typeof input === 'object' && input !== null) return Object.entries(input).slice(0, 200).flatMap(([k, v]) => (typeof v === 'string' ? textsOf(`${k}=${v}`, budget, depth + 1) : textsOf(v, budget, depth + 1)))return []}diff --git a/plugins/ruflo-metaharness/scripts/smoke.sh b/plugins/ruflo-metaharness/scripts/smoke.shindex c54d6e539e..54008febde 100755--- a/plugins/ruflo-metaharness/scripts/smoke.sh+++ b/plugins/ruflo-metaharness/scripts/smoke.sh@@ -1,5 +1,5 @@#!/usr/bin/env bash-# Structural smoke test for ruflo-metaharness v0.2.0 (ADR-150 Phase 1).+# Structural smoke test for ruflo-metaharness v0.2.1 (ADR-150 Phase 1).set -uROOT="$(cd "$(dirname "$0")/.." && pwd)"PASS=0@@ -32,10 +32,10 @@ elsebad "extraction-regex-rot: EXPECTED_TOOLS=$EXPECTED_TOOLS EXPECTED_SUBS=$EXPECTED_SUBS"fi-step "1. plugin.json declares 0.2.0 with adr-150 keywords"+step "1. plugin.json declares 0.2.1 with adr-150 keywords"v=$(grep -E '"version"' "$ROOT/.claude-plugin/plugin.json" | grep -oE '[0-9]+\.[0-9]+\.[0-9]+' | head -1)-if [[ "$v" != "0.2.0" ]]; then- bad "expected 0.2.0, got '$v'"+if [[ "$v" != "0.2.1" ]]; then+ bad "expected 0.2.1, got '$v'"elsemiss=""for k in ruflo metaharness harness scorecard genome mcp-scan threat-model router adr-150 adr-148 adr-149 optional-dependency graceful-degradation subprocess phase-1-mvp; dodiff --git a/plugins/ruflo-metaharness/tests/textsof.test.ts b/plugins/ruflo-metaharness/tests/textsof.test.tsnew file mode 100644index 0000000000..b41114bc9f--- /dev/null+++ b/plugins/ruflo-metaharness/tests/textsof.test.ts@@ -0,0 +1,22 @@+import { describe, expect, test, tier } from 'claude-code/testing'++import { textsOf } from '../hooks/guard'+import { hasSecret } from '../hooks/screen'++tier('user')++const AWS = `AKIA${'IOSFODNN7EXAMPLE'}`+const BIG = 'QUJD'.repeat(10_000)+const found = (input: unknown) => textsOf(input).some(hasSecret)++describe('what the guard reads', () => {+ test('a key name leads its string value, so an object-shaped assignment is caught', () => {+ expect(found({ meta: { api_key: 'abcdef1234567890abcdef' } })).toBe(true)+ expect(found({ meta: { maxTokens: 4096, name: 'refresh policy' } })).toBe(false)+ })++ test('a long field does not starve the fields after it', () => {+ expect(found({ value: BIG, note: AWS })).toBe(true)+ expect(found({ a: BIG, b: BIG, c: BIG, d: 'plain text' })).toBe(false)+ })+})diff --git a/plugins/ruflo-metaharness/tsconfig.json b/plugins/ruflo-metaharness/tsconfig.jsonnew file mode 100644index 0000000000..8681ec01da--- /dev/null+++ b/plugins/ruflo-metaharness/tsconfig.json@@ -0,0 +1,3 @@+{+ "extends": "./.claude-plugin/types/tsconfig.json"+}diff --git a/plugins/ruflo-neural-trader/.claude-plugin/plugin.json b/plugins/ruflo-neural-trader/.claude-plugin/plugin.jsonindex 334ce3a070..104cd01f9f 100644--- a/plugins/ruflo-neural-trader/.claude-plugin/plugin.json+++ b/plugins/ruflo-neural-trader/.claude-plugin/plugin.json@@ -1,7 +1,7 @@{"name": "ruflo-neural-trader","description": "Neural trading via npx neural-trader β self-learning strategies, Rust/NAPI backtesting, 112+ MCP tools, swarm coordination, and portfolio optimization. As a mod (ADR-445): a tighten-only guard on its tools, /trader-mod, and a status file the console shows",- "version": "0.3.0",+ "version": "0.3.1","author": {"name": "ruvnet","url": "https://github.com/ruvnet"diff --git a/plugins/ruflo-neural-trader/hooks/guard.ts b/plugins/ruflo-neural-trader/hooks/guard.tsindex 13b1d76569..11cf66365e 100644--- a/plugins/ruflo-neural-trader/hooks/guard.ts+++ b/plugins/ruflo-neural-trader/hooks/guard.ts@@ -4,7 +4,8 @@ import type { Stats } from './status'const WRITERS = new Set(['memory_store', 'agentdb_pattern-store', 'agentdb_hierarchical-store', 'agentdb_batch'])// Order placement on a neural-trader MCP server (`neural-trader mcp start`), however the plugin names the server.-const ORDER = /^(?:execute|place|submit)[_-]?(?:trade|order)s?$|^live[_-]?(?:trade|order|execute)|^(?:close|cancel)[_-]?all/i+// Covers the package's own names too: execute_trade, execute_multi_asset_trade, place_prediction_order_tool. Paper and simulated tools are not orders.+const ORDER = /^(?!.*(?:paper|simulat|dry))(?:execute|place|submit)(?:[_-][a-z]+)*[_-]?(?:trade|order|bet)s?(?:[_-]tool)?$|^live[_-]?(?:trade|order|execute)|^(?:close|cancel)[_-]?all/iconst toolOf = (name: string) => (name.startsWith('mcp__') ? name.slice(name.lastIndexOf('__') + 2) : name)const serverOf = (name: string) => (name.startsWith('mcp__') ? name.slice(5, name.lastIndexOf('__')) : '')diff --git a/plugins/ruflo-neural-trader/scripts/smoke.sh b/plugins/ruflo-neural-trader/scripts/smoke.shindex 63c327170e..be631a5733 100755--- a/plugins/ruflo-neural-trader/scripts/smoke.sh+++ b/plugins/ruflo-neural-trader/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.0 with new keywords"+step "1. plugin.json declares 0.3.1 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.0" ]]; then bad "expected 0.3.0, got '$v'"; else+if [[ "$v" != "0.3.1" ]]; then bad "expected 0.3.1, got '$v'"; elsemiss=""for k in neural-trader-runtime walk-forward monte-carlo; dogrep -q "\"$k\"" "$ROOT/.claude-plugin/plugin.json" || miss="$miss $k"diff --git a/plugins/ruflo-neural-trader/tests/trader-mod.test.ts b/plugins/ruflo-neural-trader/tests/trader-mod.test.tsindex 7753d1e751..9a3004e5b5 100644--- a/plugins/ruflo-neural-trader/tests/trader-mod.test.ts+++ b/plugins/ruflo-neural-trader/tests/trader-mod.test.ts@@ -81,6 +81,18 @@ describe('guard', () => {expect(status(w.files)).toMatchObject({ liveBlocked: 1, blocked: 1 })})+ test('the package\'s other order tools are gated too, and paper or simulated ones are not', async ($, on) => {+ world(on)+ await $.session.start(START)+ for (const name of ['execute_multi_asset_trade', 'place_prediction_order_tool', 'execute_trades']) {+ expect(await outcome($, call(`mcp__neural-trader__${name}`, { symbol: 'SPY' }))).toContain('confirm: true')+ }+ expect(await outcome($, call('mcp__neural-trader__place_prediction_order_tool', { confirm: true }))).toContain('ok')+ for (const name of ['simulate_trade', 'execute_paper_trade', 'get_market_orderbook_tool', 'run_backtest']) {+ expect(await outcome($, call(`mcp__neural-trader__${name}`, { symbol: 'SPY' }))).toContain('ok')+ }+ })+test('a broker secret in a trader call is refused without echoing it', async ($, on) => {world(on)await $.session.start(START)diff --git a/plugins/ruflo-rag-memory/.claude-plugin/plugin.json b/plugins/ruflo-rag-memory/.claude-plugin/plugin.jsonindex fcd243cf03..e25f9dcbb5 100644--- a/plugins/ruflo-rag-memory/.claude-plugin/plugin.json+++ b/plugins/ruflo-rag-memory/.claude-plugin/plugin.json@@ -1,7 +1,7 @@{"name": "ruflo-rag-memory","description": "RuVector memory with HNSW search, AgentDB, and semantic retrieval. As a mod (ADR-445): a write guard that keeps secrets out of memory, /rag-mod, and a status file the console shows",- "version": "0.3.0",+ "version": "0.3.1","author": {"name": "ruvnet","url": "https://github.com/ruvnet"diff --git a/plugins/ruflo-rag-memory/hooks/guard.ts b/plugins/ruflo-rag-memory/hooks/guard.tsindex 8abb5bff31..2da856c790 100644--- a/plugins/ruflo-rag-memory/hooks/guard.ts+++ b/plugins/ruflo-rag-memory/hooks/guard.ts@@ -1,15 +1,15 @@import { hasSecret } from './screen'import { isWriter } from './tools'-/** Every string in a tool's input, to a bounded depth and size: what the guard reads. */-export function textsOf(input: unknown, budget = { left: 20_000 }, depth = 0): string[] {+/** Every string in a tool's input (a string value led by its key, so `api_key=...` reads as an assignment), to a bounded depth and size: what the guard reads. */+export function textsOf(input: unknown, budget = { left: 100_000 }, depth = 0): string[] {if (budget.left <= 0 || depth > 6) return []if (typeof input === 'string') {- budget.left -= input.length+ budget.left -= Math.min(input.length, 20_000)return [input]}if (Array.isArray(input)) return input.slice(0, 200).flatMap(v => textsOf(v, budget, depth + 1))- if (typeof input === 'object' && input !== null) return Object.values(input).slice(0, 200).flatMap(v => textsOf(v, budget, depth + 1))+ if (typeof input === 'object' && input !== null) return Object.entries(input).slice(0, 200).flatMap(([k, v]) => (typeof v === 'string' ? textsOf(`${k}=${v}`, budget, depth + 1) : textsOf(v, budget, depth + 1)))return []}diff --git a/plugins/ruflo-rag-memory/scripts/smoke.sh b/plugins/ruflo-rag-memory/scripts/smoke.shindex c9410b8c69..70f9f9a4d9 100755--- a/plugins/ruflo-rag-memory/scripts/smoke.sh+++ b/plugins/ruflo-rag-memory/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.0 with new keywords"+step "1. plugin.json declares 0.3.1 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.0" ]]; then bad "expected 0.3.0, got '$v'"; else+if [[ "$v" != "0.3.1" ]]; then bad "expected 0.3.1, got '$v'"; elsemiss=""for k in mcp claude-memories bridged-memory; dogrep -q "\"$k\"" "$ROOT/.claude-plugin/plugin.json" || miss="$miss $k"diff --git a/plugins/ruflo-rag-memory/tests/textsof.test.ts b/plugins/ruflo-rag-memory/tests/textsof.test.tsnew file mode 100644index 0000000000..b41114bc9f--- /dev/null+++ b/plugins/ruflo-rag-memory/tests/textsof.test.ts@@ -0,0 +1,22 @@+import { describe, expect, test, tier } from 'claude-code/testing'++import { textsOf } from '../hooks/guard'+import { hasSecret } from '../hooks/screen'++tier('user')++const AWS = `AKIA${'IOSFODNN7EXAMPLE'}`+const BIG = 'QUJD'.repeat(10_000)+const found = (input: unknown) => textsOf(input).some(hasSecret)++describe('what the guard reads', () => {+ test('a key name leads its string value, so an object-shaped assignment is caught', () => {+ expect(found({ meta: { api_key: 'abcdef1234567890abcdef' } })).toBe(true)+ expect(found({ meta: { maxTokens: 4096, name: 'refresh policy' } })).toBe(false)+ })++ test('a long field does not starve the fields after it', () => {+ expect(found({ value: BIG, note: AWS })).toBe(true)+ expect(found({ a: BIG, b: BIG, c: BIG, d: 'plain text' })).toBe(false)+ })+})diff --git a/plugins/ruflo-ruvector/.claude-plugin/plugin.json b/plugins/ruflo-ruvector/.claude-plugin/plugin.jsonindex 7cb5c5a51a..750e3234da 100644--- a/plugins/ruflo-ruvector/.claude-plugin/plugin.json+++ b/plugins/ruflo-ruvector/.claude-plugin/plugin.json@@ -1,7 +1,7 @@{"name": "ruflo-ruvector","description": "Self-learning vector database via npx [email protected] β HNSW, adaptive LoRA embeddings, code-graph clustering, hooks routing, brain/SONA, 103 MCP tools. As a mod (ADR-445): a write guard that keeps secrets out of the vector store and shared brain, /ruvector-mod, and a status file the console shows",- "version": "0.3.0",+ "version": "0.3.1","author": {"name": "ruvnet","url": "https://github.com/ruvnet"diff --git a/plugins/ruflo-ruvector/hooks/guard.ts b/plugins/ruflo-ruvector/hooks/guard.tsindex 72d1e93d1f..e57b73dff2 100644--- a/plugins/ruflo-ruvector/hooks/guard.ts+++ b/plugins/ruflo-ruvector/hooks/guard.ts@@ -1,15 +1,15 @@import { hasSecret } from './screen'import { isWriter } from './tools'-/** Every string in a tool's input, to a bounded depth and size: what the guard reads. */-export function textsOf(input: unknown, budget = { left: 20_000 }, depth = 0): string[] {+/** Every string in a tool's input (a string value led by its key, so `api_key=...` reads as an assignment), to a bounded depth and size: what the guard reads. */+export function textsOf(input: unknown, budget = { left: 100_000 }, depth = 0): string[] {if (budget.left <= 0 || depth > 6) return []if (typeof input === 'string') {- budget.left -= input.length+ budget.left -= Math.min(input.length, 20_000)return [input]}if (Array.isArray(input)) return input.slice(0, 200).flatMap(v => textsOf(v, budget, depth + 1))- if (typeof input === 'object' && input !== null) return Object.values(input).slice(0, 200).flatMap(v => textsOf(v, budget, depth + 1))+ if (typeof input === 'object' && input !== null) return Object.entries(input).slice(0, 200).flatMap(([k, v]) => (typeof v === 'string' ? textsOf(`${k}=${v}`, budget, depth + 1) : textsOf(v, budget, depth + 1)))return []}diff --git a/plugins/ruflo-ruvector/tests/textsof.test.ts b/plugins/ruflo-ruvector/tests/textsof.test.tsnew file mode 100644index 0000000000..b41114bc9f--- /dev/null+++ b/plugins/ruflo-ruvector/tests/textsof.test.ts@@ -0,0 +1,22 @@+import { describe, expect, test, tier } from 'claude-code/testing'++import { textsOf } from '../hooks/guard'+import { hasSecret } from '../hooks/screen'++tier('user')++const AWS = `AKIA${'IOSFODNN7EXAMPLE'}`+const BIG = 'QUJD'.repeat(10_000)+const found = (input: unknown) => textsOf(input).some(hasSecret)++describe('what the guard reads', () => {+ test('a key name leads its string value, so an object-shaped assignment is caught', () => {+ expect(found({ meta: { api_key: 'abcdef1234567890abcdef' } })).toBe(true)+ expect(found({ meta: { maxTokens: 4096, name: 'refresh policy' } })).toBe(false)+ })++ test('a long field does not starve the fields after it', () => {+ expect(found({ value: BIG, note: AWS })).toBe(true)+ expect(found({ a: BIG, b: BIG, c: BIG, d: 'plain text' })).toBe(false)+ })+})diff --git a/plugins/ruflo-ruvllm/.claude-plugin/plugin.json b/plugins/ruflo-ruvllm/.claude-plugin/plugin.jsonindex 43b4127216..257c7824c8 100644--- a/plugins/ruflo-ruvllm/.claude-plugin/plugin.json+++ b/plugins/ruflo-ruvllm/.claude-plugin/plugin.json@@ -1,7 +1,7 @@{"name": "ruflo-ruvllm","description": "RuVLLM local inference with chat formatting (Claude/GPT/Gemini/Ollama/Cohere), model configuration, MicroLoRA fine-tuning, and SONA real-time adaptation. As a mod (ADR-445): a guard that keeps secrets out of adapters and the pattern router, /ruvllm-mod, and a status file the console shows",- "version": "0.3.0",+ "version": "0.3.1","author": {"name": "ruvnet","url": "https://github.com/ruvnet"diff --git a/plugins/ruflo-ruvllm/hooks/guard.ts b/plugins/ruflo-ruvllm/hooks/guard.tsindex 8f9f866cee..1c53a2ad23 100644--- a/plugins/ruflo-ruvllm/hooks/guard.ts+++ b/plugins/ruflo-ruvllm/hooks/guard.ts@@ -1,15 +1,15 @@import { hasSecret } from './screen'import { isWriter } from './tools'-/** Every string in a tool's input, to a bounded depth and size: what the guard reads. */-export function textsOf(input: unknown, budget = { left: 20_000 }, depth = 0): string[] {+/** Every string in a tool's input (a string value led by its key, so `api_key=...` reads as an assignment), to a bounded depth and size: what the guard reads. */+export function textsOf(input: unknown, budget = { left: 100_000 }, depth = 0): string[] {if (budget.left <= 0 || depth > 6) return []if (typeof input === 'string') {- budget.left -= input.length+ budget.left -= Math.min(input.length, 20_000)return [input]}if (Array.isArray(input)) return input.slice(0, 200).flatMap(v => textsOf(v, budget, depth + 1))- if (typeof input === 'object' && input !== null) return Object.values(input).slice(0, 200).flatMap(v => textsOf(v, budget, depth + 1))+ if (typeof input === 'object' && input !== null) return Object.entries(input).slice(0, 200).flatMap(([k, v]) => (typeof v === 'string' ? textsOf(`${k}=${v}`, budget, depth + 1) : textsOf(v, budget, depth + 1)))return []}diff --git a/plugins/ruflo-ruvllm/scripts/smoke.sh b/plugins/ruflo-ruvllm/scripts/smoke.shindex 41aab23d73..8a15e6e272 100755--- a/plugins/ruflo-ruvllm/scripts/smoke.sh+++ b/plugins/ruflo-ruvllm/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.0 with new keywords"+step "1. plugin.json declares 0.3.1 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.0" ]]; then bad "expected 0.3.0, got '$v'"; else+if [[ "$v" != "0.3.1" ]]; then bad "expected 0.3.1, got '$v'"; elsemiss=""for k in mcp local-inference chat-templates; dogrep -q "\"$k\"" "$ROOT/.claude-plugin/plugin.json" || miss="$miss $k"diff --git a/plugins/ruflo-ruvllm/tests/textsof.test.ts b/plugins/ruflo-ruvllm/tests/textsof.test.tsnew file mode 100644index 0000000000..b41114bc9f--- /dev/null+++ b/plugins/ruflo-ruvllm/tests/textsof.test.ts@@ -0,0 +1,22 @@+import { describe, expect, test, tier } from 'claude-code/testing'++import { textsOf } from '../hooks/guard'+import { hasSecret } from '../hooks/screen'++tier('user')++const AWS = `AKIA${'IOSFODNN7EXAMPLE'}`+const BIG = 'QUJD'.repeat(10_000)+const found = (input: unknown) => textsOf(input).some(hasSecret)++describe('what the guard reads', () => {+ test('a key name leads its string value, so an object-shaped assignment is caught', () => {+ expect(found({ meta: { api_key: 'abcdef1234567890abcdef' } })).toBe(true)+ expect(found({ meta: { maxTokens: 4096, name: 'refresh policy' } })).toBe(false)+ })++ test('a long field does not starve the fields after it', () => {+ expect(found({ value: BIG, note: AWS })).toBe(true)+ expect(found({ a: BIG, b: BIG, c: BIG, d: 'plain text' })).toBe(false)+ })+})diff --git a/plugins/ruflo-rvf/.claude-plugin/plugin.json b/plugins/ruflo-rvf/.claude-plugin/plugin.jsonindex b6ebac2c97..18ac33c54c 100644--- a/plugins/ruflo-rvf/.claude-plugin/plugin.json+++ b/plugins/ruflo-rvf/.claude-plugin/plugin.json@@ -1,7 +1,7 @@{"name": "ruflo-rvf","description": "RVF format for portable agent memory, session persistence, and cross-platform transfer. As a mod (ADR-445): a write guard that keeps secrets out of memory, sessions and transfers, /rvf-mod, and a status file the console shows",- "version": "0.3.0",+ "version": "0.3.1","author": {"name": "ruvnet","url": "https://github.com/ruvnet"diff --git a/plugins/ruflo-rvf/hooks/guard.ts b/plugins/ruflo-rvf/hooks/guard.tsindex c8df385846..c2a0149887 100644--- a/plugins/ruflo-rvf/hooks/guard.ts+++ b/plugins/ruflo-rvf/hooks/guard.ts@@ -1,15 +1,15 @@import { hasSecret } from './screen'import { isWriter } from './tools'-/** Every string in a tool's input, to a bounded depth and size: what the guard reads. */-export function textsOf(input: unknown, budget = { left: 20_000 }, depth = 0): string[] {+/** Every string in a tool's input (a string value led by its key, so `api_key=...` reads as an assignment), to a bounded depth and size: what the guard reads. */+export function textsOf(input: unknown, budget = { left: 100_000 }, depth = 0): string[] {if (budget.left <= 0 || depth > 6) return []if (typeof input === 'string') {- budget.left -= input.length+ budget.left -= Math.min(input.length, 20_000)return [input]}if (Array.isArray(input)) return input.slice(0, 200).flatMap(v => textsOf(v, budget, depth + 1))- if (typeof input === 'object' && input !== null) return Object.values(input).slice(0, 200).flatMap(v => textsOf(v, budget, depth + 1))+ if (typeof input === 'object' && input !== null) return Object.entries(input).slice(0, 200).flatMap(([k, v]) => (typeof v === 'string' ? textsOf(`${k}=${v}`, budget, depth + 1) : textsOf(v, budget, depth + 1)))return []}diff --git a/plugins/ruflo-rvf/scripts/smoke.sh b/plugins/ruflo-rvf/scripts/smoke.shindex 38c9ae7171..25412e7d38 100755--- a/plugins/ruflo-rvf/scripts/smoke.sh+++ b/plugins/ruflo-rvf/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.0 with new keywords"+step "1. plugin.json declares 0.3.1 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.0" ]]; then bad "expected 0.3.0, got '$v'"; else+if [[ "$v" != "0.3.1" ]]; then bad "expected 0.3.1, got '$v'"; elsemiss=""for k in mcp cognitive-containers lineage-tracking; dogrep -q "\"$k\"" "$ROOT/.claude-plugin/plugin.json" || miss="$miss $k"diff --git a/plugins/ruflo-rvf/tests/textsof.test.ts b/plugins/ruflo-rvf/tests/textsof.test.tsnew file mode 100644index 0000000000..b41114bc9f--- /dev/null+++ b/plugins/ruflo-rvf/tests/textsof.test.ts@@ -0,0 +1,22 @@+import { describe, expect, test, tier } from 'claude-code/testing'++import { textsOf } from '../hooks/guard'+import { hasSecret } from '../hooks/screen'++tier('user')++const AWS = `AKIA${'IOSFODNN7EXAMPLE'}`+const BIG = 'QUJD'.repeat(10_000)+const found = (input: unknown) => textsOf(input).some(hasSecret)++describe('what the guard reads', () => {+ test('a key name leads its string value, so an object-shaped assignment is caught', () => {+ expect(found({ meta: { api_key: 'abcdef1234567890abcdef' } })).toBe(true)+ expect(found({ meta: { maxTokens: 4096, name: 'refresh policy' } })).toBe(false)+ })++ test('a long field does not starve the fields after it', () => {+ expect(found({ value: BIG, note: AWS })).toBe(true)+ expect(found({ a: BIG, b: BIG, c: BIG, d: 'plain text' })).toBe(false)+ })+})diff --git a/plugins/ruflo-security-audit/.claude-plugin/plugin.json b/plugins/ruflo-security-audit/.claude-plugin/plugin.jsonindex 529d22e24e..ad6edecbeb 100644--- a/plugins/ruflo-security-audit/.claude-plugin/plugin.json+++ b/plugins/ruflo-security-audit/.claude-plugin/plugin.json@@ -1,7 +1,7 @@{"name": "ruflo-security-audit","description": "Security review, dependency scanning, policy gates, and CVE monitoring",- "version": "0.3.0",+ "version": "0.3.1","author": {"name": "ruvnet","url": "https://github.com/ruvnet"diff --git a/plugins/ruflo-security-audit/hooks/guard.ts b/plugins/ruflo-security-audit/hooks/guard.tsindex c9bce246c5..97d43071a3 100644--- a/plugins/ruflo-security-audit/hooks/guard.ts+++ b/plugins/ruflo-security-audit/hooks/guard.ts@@ -1,14 +1,14 @@import { hasSecret } from './screen'-/** Every string in a tool's input, to a bounded depth and size: what the guard reads. */-export function textsOf(input: unknown, budget = { left: 20_000 }, depth = 0): string[] {+/** Every string in a tool's input (a string value led by its key, so `api_key=...` reads as an assignment), to a bounded depth and size: what the guard reads. */+export function textsOf(input: unknown, budget = { left: 100_000 }, depth = 0): string[] {if (budget.left <= 0 || depth > 6) return []if (typeof input === 'string') {- budget.left -= input.length+ budget.left -= Math.min(input.length, 20_000)return [input]}if (Array.isArray(input)) return input.slice(0, 200).flatMap(v => textsOf(v, budget, depth + 1))- if (typeof input === 'object' && input !== null) return Object.values(input).slice(0, 200).flatMap(v => textsOf(v, budget, depth + 1))+ if (typeof input === 'object' && input !== null) return Object.entries(input).slice(0, 200).flatMap(([k, v]) => (typeof v === 'string' ? textsOf(`${k}=${v}`, budget, depth + 1) : textsOf(v, budget, depth + 1)))return []}diff --git a/plugins/ruflo-security-audit/scripts/smoke.sh b/plugins/ruflo-security-audit/scripts/smoke.shindex 0316d0b5a6..e22dd1d8ed 100755--- a/plugins/ruflo-security-audit/scripts/smoke.sh+++ b/plugins/ruflo-security-audit/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.0 with new keywords"+step "1. plugin.json declares 0.3.1 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.0" ]]; then bad "expected 0.3.0, got '$v'"; else+if [[ "$v" != "0.3.1" ]]; then bad "expected 0.3.1, got '$v'"; elsemiss=""for k in mcp cve-monitoring policy-gates shell-injection; dogrep -q "\"$k\"" "$ROOT/.claude-plugin/plugin.json" || miss="$miss $k"diff --git a/plugins/ruflo-security-audit/tests/textsof.test.ts b/plugins/ruflo-security-audit/tests/textsof.test.tsnew file mode 100644index 0000000000..b41114bc9f--- /dev/null+++ b/plugins/ruflo-security-audit/tests/textsof.test.ts@@ -0,0 +1,22 @@+import { describe, expect, test, tier } from 'claude-code/testing'++import { textsOf } from '../hooks/guard'+import { hasSecret } from '../hooks/screen'++tier('user')++const AWS = `AKIA${'IOSFODNN7EXAMPLE'}`+const BIG = 'QUJD'.repeat(10_000)+const found = (input: unknown) => textsOf(input).some(hasSecret)++describe('what the guard reads', () => {+ test('a key name leads its string value, so an object-shaped assignment is caught', () => {+ expect(found({ meta: { api_key: 'abcdef1234567890abcdef' } })).toBe(true)+ expect(found({ meta: { maxTokens: 4096, name: 'refresh policy' } })).toBe(false)+ })++ test('a long field does not starve the fields after it', () => {+ expect(found({ value: BIG, note: AWS })).toBe(true)+ expect(found({ a: BIG, b: BIG, c: BIG, d: 'plain text' })).toBe(false)+ })+})diff --git a/plugins/ruflo-sparc/.claude-plugin/plugin.json b/plugins/ruflo-sparc/.claude-plugin/plugin.jsonindex f9f392ebfe..29b5c1633c 100644--- a/plugins/ruflo-sparc/.claude-plugin/plugin.json+++ b/plugins/ruflo-sparc/.claude-plugin/plugin.json@@ -1,7 +1,7 @@{"name": "ruflo-sparc","description": "SPARC methodology β Specification, Pseudocode, Architecture, Refinement, Completion phases with gate checks",- "version": "0.3.0",+ "version": "0.3.1","author": {"name": "ruvnet","url": "https://github.com/ruvnet"diff --git a/plugins/ruflo-sparc/hooks/guard.ts b/plugins/ruflo-sparc/hooks/guard.tsindex 119a29c4a0..5bebe41d47 100644--- a/plugins/ruflo-sparc/hooks/guard.ts+++ b/plugins/ruflo-sparc/hooks/guard.ts@@ -1,14 +1,14 @@import { hasSecret } from './screen'-/** Every string in a tool's input, to a bounded depth and size: what the guard reads. */-export function textsOf(input: unknown, budget = { left: 20_000 }, depth = 0): string[] {+/** Every string in a tool's input (a string value led by its key, so `api_key=...` reads as an assignment), to a bounded depth and size: what the guard reads. */+export function textsOf(input: unknown, budget = { left: 100_000 }, depth = 0): string[] {if (budget.left <= 0 || depth > 6) return []if (typeof input === 'string') {- budget.left -= input.length+ budget.left -= Math.min(input.length, 20_000)return [input]}if (Array.isArray(input)) return input.slice(0, 200).flatMap(v => textsOf(v, budget, depth + 1))- if (typeof input === 'object' && input !== null) return Object.values(input).slice(0, 200).flatMap(v => textsOf(v, budget, depth + 1))+ if (typeof input === 'object' && input !== null) return Object.entries(input).slice(0, 200).flatMap(([k, v]) => (typeof v === 'string' ? textsOf(`${k}=${v}`, budget, depth + 1) : textsOf(v, budget, depth + 1)))return []}diff --git a/plugins/ruflo-sparc/scripts/smoke.sh b/plugins/ruflo-sparc/scripts/smoke.shindex 1a2a5e4d9d..d1e2a59182 100755--- a/plugins/ruflo-sparc/scripts/smoke.sh+++ b/plugins/ruflo-sparc/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.0 with new keywords"+step "1. plugin.json declares 0.3.1 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.0" ]]; then bad "expected 0.3.0, got '$v'"; else+if [[ "$v" != "0.3.1" ]]; then bad "expected 0.3.1, got '$v'"; elsemiss=""for k in mcp phase-gates quality-gates; dogrep -q "\"$k\"" "$ROOT/.claude-plugin/plugin.json" || miss="$miss $k"diff --git a/plugins/ruflo-sparc/tests/textsof.test.ts b/plugins/ruflo-sparc/tests/textsof.test.tsnew file mode 100644index 0000000000..b41114bc9f--- /dev/null+++ b/plugins/ruflo-sparc/tests/textsof.test.ts@@ -0,0 +1,22 @@+import { describe, expect, test, tier } from 'claude-code/testing'++import { textsOf } from '../hooks/guard'+import { hasSecret } from '../hooks/screen'++tier('user')++const AWS = `AKIA${'IOSFODNN7EXAMPLE'}`+const BIG = 'QUJD'.repeat(10_000)+const found = (input: unknown) => textsOf(input).some(hasSecret)++describe('what the guard reads', () => {+ test('a key name leads its string value, so an object-shaped assignment is caught', () => {+ expect(found({ meta: { api_key: 'abcdef1234567890abcdef' } })).toBe(true)+ expect(found({ meta: { maxTokens: 4096, name: 'refresh policy' } })).toBe(false)+ })++ test('a long field does not starve the fields after it', () => {+ expect(found({ value: BIG, note: AWS })).toBe(true)+ expect(found({ a: BIG, b: BIG, c: BIG, d: 'plain text' })).toBe(false)+ })+})diff --git a/plugins/ruflo-workflows/.claude-plugin/plugin.json b/plugins/ruflo-workflows/.claude-plugin/plugin.jsonindex ad4d157f2b..3541e40183 100644--- a/plugins/ruflo-workflows/.claude-plugin/plugin.json+++ b/plugins/ruflo-workflows/.claude-plugin/plugin.json@@ -1,7 +1,7 @@{"name": "ruflo-workflows","description": "Workflow automation across two surfaces: the 10 workflow_* MCP tools (create/run/execute/status/list/pause/resume/cancel/delete/template) with full state-machine lifecycle (created β running β paused β completed/cancelled), and native Claude Code Workflow JS orchestration (.claude/workflows/*.js β agent/parallel/pipeline/phase fan-out). Includes GAIA benchmark component for Princeton HAL leaderboard submissions.",- "version": "0.6.0",+ "version": "0.6.1","author": {"name": "ruvnet","url": "https://github.com/ruvnet"diff --git a/plugins/ruflo-workflows/hooks/guard.ts b/plugins/ruflo-workflows/hooks/guard.tsindex 335e9ad268..060b4d0f5c 100644--- a/plugins/ruflo-workflows/hooks/guard.ts+++ b/plugins/ruflo-workflows/hooks/guard.ts@@ -1,14 +1,14 @@import { hasSecret } from './screen'-/** Every string in a tool's input, to a bounded depth and size: what the guard reads. */-export function textsOf(input: unknown, budget = { left: 20_000 }, depth = 0): string[] {+/** Every string in a tool's input (a string value led by its key, so `api_key=...` reads as an assignment), to a bounded depth and size: what the guard reads. */+export function textsOf(input: unknown, budget = { left: 100_000 }, depth = 0): string[] {if (budget.left <= 0 || depth > 6) return []if (typeof input === 'string') {- budget.left -= input.length+ budget.left -= Math.min(input.length, 20_000)return [input]}if (Array.isArray(input)) return input.slice(0, 200).flatMap(v => textsOf(v, budget, depth + 1))- if (typeof input === 'object' && input !== null) return Object.values(input).slice(0, 200).flatMap(v => textsOf(v, budget, depth + 1))+ if (typeof input === 'object' && input !== null) return Object.entries(input).slice(0, 200).flatMap(([k, v]) => (typeof v === 'string' ? textsOf(`${k}=${v}`, budget, depth + 1) : textsOf(v, budget, depth + 1)))return []}diff --git a/plugins/ruflo-workflows/scripts/smoke.sh b/plugins/ruflo-workflows/scripts/smoke.shindex 5f89ecb5cf..c077610f97 100755--- a/plugins/ruflo-workflows/scripts/smoke.sh+++ b/plugins/ruflo-workflows/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.6.0 with lifecycle keywords"+step "1. plugin.json declares 0.6.1 with lifecycle keywords"v=$(grep -E '"version"' "$ROOT/.claude-plugin/plugin.json" | grep -oE '[0-9]+\.[0-9]+\.[0-9]+' | head -1)-if [[ "$v" != "0.6.0" ]]; then bad "expected 0.6.0, got '$v'"; else+if [[ "$v" != "0.6.1" ]]; then bad "expected 0.6.1, got '$v'"; elsemiss=""for k in mcp workflow-templates pause-resume lifecycle; dogrep -q "\"$k\"" "$ROOT/.claude-plugin/plugin.json" || miss="$miss $k"diff --git a/plugins/ruflo-workflows/tests/textsof.test.ts b/plugins/ruflo-workflows/tests/textsof.test.tsnew file mode 100644index 0000000000..b41114bc9f--- /dev/null+++ b/plugins/ruflo-workflows/tests/textsof.test.ts@@ -0,0 +1,22 @@+import { describe, expect, test, tier } from 'claude-code/testing'++import { textsOf } from '../hooks/guard'+import { hasSecret } from '../hooks/screen'++tier('user')++const AWS = `AKIA${'IOSFODNN7EXAMPLE'}`+const BIG = 'QUJD'.repeat(10_000)+const found = (input: unknown) => textsOf(input).some(hasSecret)++describe('what the guard reads', () => {+ test('a key name leads its string value, so an object-shaped assignment is caught', () => {+ expect(found({ meta: { api_key: 'abcdef1234567890abcdef' } })).toBe(true)+ expect(found({ meta: { maxTokens: 4096, name: 'refresh policy' } })).toBe(false)+ })++ test('a long field does not starve the fields after it', () => {+ expect(found({ value: BIG, note: AWS })).toBe(true)+ expect(found({ a: BIG, b: BIG, c: BIG, d: 'plain text' })).toBe(false)+ })+})diff --git a/plugins/ruflo-x-gateway/.claude-plugin/plugin.json b/plugins/ruflo-x-gateway/.claude-plugin/plugin.jsonindex 9a7c6ba650..16b4a6d61f 100644--- a/plugins/ruflo-x-gateway/.claude-plugin/plugin.json+++ b/plugins/ruflo-x-gateway/.claude-plugin/plugin.json@@ -1,7 +1,7 @@{"name": "ruflo-x-gateway","description": "Coordinate AI-agent swarms through signed federation messages, channels, and work claims. The remote Claude connector exposes a directory-safe Streamable HTTP MCP surface with OAuth-protected publishing and five ruv:// reference resources.",- "version": "0.9.0",+ "version": "0.9.1","author": {"name": "ruvnet","url": "https://github.com/ruvnet"diff --git a/plugins/ruflo-x-gateway/hooks/guard.ts b/plugins/ruflo-x-gateway/hooks/guard.tsindex d7fb6d0b84..78783deaa4 100644--- a/plugins/ruflo-x-gateway/hooks/guard.ts+++ b/plugins/ruflo-x-gateway/hooks/guard.ts@@ -1,14 +1,14 @@import { hasSecret } from './screen'-/** Every string in a tool's input, to a bounded depth and size: what the guard reads. */-export function textsOf(input: unknown, budget = { left: 20_000 }, depth = 0): string[] {+/** Every string in a tool's input (a string value led by its key, so `api_key=...` reads as an assignment), to a bounded depth and size: what the guard reads. */+export function textsOf(input: unknown, budget = { left: 100_000 }, depth = 0): string[] {if (budget.left <= 0 || depth > 6) return []if (typeof input === 'string') {- budget.left -= input.length+ budget.left -= Math.min(input.length, 20_000)return [input]}if (Array.isArray(input)) return input.slice(0, 200).flatMap(v => textsOf(v, budget, depth + 1))- if (typeof input === 'object' && input !== null) return Object.values(input).slice(0, 200).flatMap(v => textsOf(v, budget, depth + 1))+ if (typeof input === 'object' && input !== null) return Object.entries(input).slice(0, 200).flatMap(([k, v]) => (typeof v === 'string' ? textsOf(`${k}=${v}`, budget, depth + 1) : textsOf(v, budget, depth + 1)))return []}diff --git a/plugins/ruflo-x-gateway/tests/textsof.test.ts b/plugins/ruflo-x-gateway/tests/textsof.test.tsnew file mode 100644index 0000000000..b41114bc9f--- /dev/null+++ b/plugins/ruflo-x-gateway/tests/textsof.test.ts@@ -0,0 +1,22 @@+import { describe, expect, test, tier } from 'claude-code/testing'++import { textsOf } from '../hooks/guard'+import { hasSecret } from '../hooks/screen'++tier('user')++const AWS = `AKIA${'IOSFODNN7EXAMPLE'}`+const BIG = 'QUJD'.repeat(10_000)+const found = (input: unknown) => textsOf(input).some(hasSecret)++describe('what the guard reads', () => {+ test('a key name leads its string value, so an object-shaped assignment is caught', () => {+ expect(found({ meta: { api_key: 'abcdef1234567890abcdef' } })).toBe(true)+ expect(found({ meta: { maxTokens: 4096, name: 'refresh policy' } })).toBe(false)+ })++ test('a long field does not starve the fields after it', () => {+ expect(found({ value: BIG, note: AWS })).toBe(true)+ expect(found({ a: BIG, b: BIG, c: BIG, d: 'plain text' })).toBe(false)+ })+})