π 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): shared textsOf reports truncation and every guard fails closed on it
ruvd06b0122be86
diff --git a/plugins/ruflo-adr/.claude-plugin/plugin.json b/plugins/ruflo-adr/.claude-plugin/plugin.jsonindex 042d4f3e2d..3dee43f089 100644--- a/plugins/ruflo-adr/.claude-plugin/plugin.json+++ b/plugins/ruflo-adr/.claude-plugin/plugin.json@@ -1,7 +1,7 @@{"name": "ruflo-adr","description": "ADR lifecycle management β create, index, reconcile, supersede, check compliance, and link Architecture Decision Records to code via AgentDB hierarchical store + causal edges (supersedes/amends/depends-on/related)",- "version": "0.5.2",+ "version": "0.5.3","author": {"name": "ruvnet","url": "https://github.com/ruvnet"diff --git a/plugins/ruflo-adr/hooks/screen.ts b/plugins/ruflo-adr/hooks/screen.tsindex 5e899f3944..91e444a161 100644--- a/plugins/ruflo-adr/hooks/screen.ts+++ b/plugins/ruflo-adr/hooks/screen.ts@@ -144,8 +144,15 @@ function matches(name: string, re: RegExp, text: string): boolean {return false}+/**+ * The text textsOf appends when it had to drop input (a node, character or per-string budget ran out). It is never matched against a rule:+ * `names` reports it as a finding of its own, so every guard that asks "is there a secret in these texts" refuses what it could not read in full.+ */+export const TRUNCATED = 'ruflo-screen: input exceeded the screening budget'+export const TRUNCATED_NAME = 'input too large to screen'+/** Names of the rules that match `text` (already bare'd). A rule named 'key assignment' is judged by assignmentSecret, whatever its regex. */-export const names = (rules: Rules, text: string) => rules.filter(([name, re]) => matches(name, re, text)).map(([name]) => name)+export const names = (rules: Rules, text: string) => text === TRUNCATED ? [TRUNCATED_NAME] : rules.filter(([name, re]) => matches(name, re, text)).map(([name]) => name)export type Findings = { readonly secrets: readonly string[]; readonly injection: readonly string[] }@@ -187,33 +194,46 @@ function windows(text: string, out: string[]): void {* breadth-first (siblings before depth, so a long list cannot hide a nested value). A string under an object key comes back as `key=value`,* so a secret-named key is judged with its value; a key whose value is not a string is returned bare. Strings longer than the screen window* come back as overlapping windows; one over `perString` keeps its head and tail. Work is bounded by `nodes` slots and `chars` characters.+ * Anything dropped (slots or characters ran out, or a string lost its middle) is reported by a final TRUNCATED text, which `names` and+ * `hasSecretIn` count as a finding, so the screen fails closed instead of passing what it did not read.*/export function textsOf(input: unknown, limits: TextLimits = {}): string[] {const out: string[] = []let slots = limits.nodes ?? NODESlet chars = limits.chars ?? CHARSconst perString = limits.perString ?? PER_STRING+ let truncated = falseconst take = (text: string): void => {- if (chars <= 0) return+ if (chars <= 0) {+ truncated = true+ return+ }if (text.length <= Math.min(perString, chars)) {chars -= text.lengthwindows(text, out)return}+ truncated = trueconst half = Math.floor(Math.min(perString, chars) / 2)chars -= 2 * halfwindows(text.slice(0, half), out)windows(text.slice(-half), out)}const queue: unknown[] = [input]- for (let head = 0; head < queue.length && chars > 0; head++) {+ let head = 0+ for (; head < queue.length && chars > 0; head++) {const node = queue[head]if (typeof node === 'string') take(node)else if (Array.isArray(node)) {- for (let i = 0; i < node.length && slots > 0; i++, slots--) if (i in node) queue.push(node[i])+ let i = 0+ for (; i < node.length && slots > 0; i++, slots--) if (i in node) queue.push(node[i])+ if (i < node.length) truncated = true} else if (typeof node === 'object' && node !== null) {for (const k in node) {- if (slots-- <= 0) break+ if (slots-- <= 0) {+ truncated = true+ break+ }if (!Object.prototype.hasOwnProperty.call(node, k)) continueconst v = (node as Record<string, unknown>)[k]if (typeof v === 'string') queue.push(k + '=' + v)@@ -224,6 +244,8 @@ export function textsOf(input: unknown, limits: TextLimits = {}): string[] {}}}+ if (queue.length > head) truncated = true+ if (truncated) out.push(TRUNCATED)return out}// END SHARED SCREENdiff --git a/plugins/ruflo-adr/scripts/smoke.sh b/plugins/ruflo-adr/scripts/smoke.shindex 5bf4bdc839..604d984b37 100755--- a/plugins/ruflo-adr/scripts/smoke.sh+++ b/plugins/ruflo-adr/scripts/smoke.sh@@ -1,5 +1,5 @@#!/usr/bin/env bash-# Structural smoke test for ruflo-adr v0.5.2 (ADR-0001, ADR-0002).+# Structural smoke test for ruflo-adr v0.5.3 (ADR-0001, ADR-0002).set -uROOT="$(cd "$(dirname "$0")/.." && pwd)"PASS=0@@ -9,10 +9,10 @@ ok() { printf "PASS\n"; PASS=$((PASS+1)); }bad() { printf "FAIL: %s\n" "$1"; FAIL=$((FAIL+1)); }# 1. plugin.json bump + new keywords-step "1. plugin.json declares 0.5.2 with new keywords"+step "1. plugin.json declares 0.5.3 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.5.2" ]]; then- bad "expected 0.5.2, got '$v'"+if [[ "$v" != "0.5.3" ]]; then+ bad "expected 0.5.3, got '$v'"elsemiss=""for k in lifecycle compliance causal-graph mcp; dodiff --git a/plugins/ruflo-agent/.claude-plugin/plugin.json b/plugins/ruflo-agent/.claude-plugin/plugin.jsonindex df470bb806..117e86b875 100644--- a/plugins/ruflo-agent/.claude-plugin/plugin.json+++ b/plugins/ruflo-agent/.claude-plugin/plugin.json@@ -1,7 +1,7 @@{"name": "ruflo-agent","description": "Agent runtimes for ruflo β local WASM-sandboxed agents (rvagent: 10 wasm_agent_*/wasm_gallery_* MCP tools, built on @ruvector/rvagent-wasm + @ruvector/ruvllm-wasm per ADR-070) plus Anthropic Claude Managed Agents as a cloud backend (managed_agent_* MCP tools per ADR-115). One interface, local-vs-cloud runtimes.",- "version": "0.3.1",+ "version": "0.3.2","author": {"name": "ruvnet","url": "https://github.com/ruvnet"diff --git a/plugins/ruflo-agent/hooks/screen.ts b/plugins/ruflo-agent/hooks/screen.tsindex 5e899f3944..91e444a161 100644--- a/plugins/ruflo-agent/hooks/screen.ts+++ b/plugins/ruflo-agent/hooks/screen.ts@@ -144,8 +144,15 @@ function matches(name: string, re: RegExp, text: string): boolean {return false}+/**+ * The text textsOf appends when it had to drop input (a node, character or per-string budget ran out). It is never matched against a rule:+ * `names` reports it as a finding of its own, so every guard that asks "is there a secret in these texts" refuses what it could not read in full.+ */+export const TRUNCATED = 'ruflo-screen: input exceeded the screening budget'+export const TRUNCATED_NAME = 'input too large to screen'+/** Names of the rules that match `text` (already bare'd). A rule named 'key assignment' is judged by assignmentSecret, whatever its regex. */-export const names = (rules: Rules, text: string) => rules.filter(([name, re]) => matches(name, re, text)).map(([name]) => name)+export const names = (rules: Rules, text: string) => text === TRUNCATED ? [TRUNCATED_NAME] : rules.filter(([name, re]) => matches(name, re, text)).map(([name]) => name)export type Findings = { readonly secrets: readonly string[]; readonly injection: readonly string[] }@@ -187,33 +194,46 @@ function windows(text: string, out: string[]): void {* breadth-first (siblings before depth, so a long list cannot hide a nested value). A string under an object key comes back as `key=value`,* so a secret-named key is judged with its value; a key whose value is not a string is returned bare. Strings longer than the screen window* come back as overlapping windows; one over `perString` keeps its head and tail. Work is bounded by `nodes` slots and `chars` characters.+ * Anything dropped (slots or characters ran out, or a string lost its middle) is reported by a final TRUNCATED text, which `names` and+ * `hasSecretIn` count as a finding, so the screen fails closed instead of passing what it did not read.*/export function textsOf(input: unknown, limits: TextLimits = {}): string[] {const out: string[] = []let slots = limits.nodes ?? NODESlet chars = limits.chars ?? CHARSconst perString = limits.perString ?? PER_STRING+ let truncated = falseconst take = (text: string): void => {- if (chars <= 0) return+ if (chars <= 0) {+ truncated = true+ return+ }if (text.length <= Math.min(perString, chars)) {chars -= text.lengthwindows(text, out)return}+ truncated = trueconst half = Math.floor(Math.min(perString, chars) / 2)chars -= 2 * halfwindows(text.slice(0, half), out)windows(text.slice(-half), out)}const queue: unknown[] = [input]- for (let head = 0; head < queue.length && chars > 0; head++) {+ let head = 0+ for (; head < queue.length && chars > 0; head++) {const node = queue[head]if (typeof node === 'string') take(node)else if (Array.isArray(node)) {- for (let i = 0; i < node.length && slots > 0; i++, slots--) if (i in node) queue.push(node[i])+ let i = 0+ for (; i < node.length && slots > 0; i++, slots--) if (i in node) queue.push(node[i])+ if (i < node.length) truncated = true} else if (typeof node === 'object' && node !== null) {for (const k in node) {- if (slots-- <= 0) break+ if (slots-- <= 0) {+ truncated = true+ break+ }if (!Object.prototype.hasOwnProperty.call(node, k)) continueconst v = (node as Record<string, unknown>)[k]if (typeof v === 'string') queue.push(k + '=' + v)@@ -224,6 +244,8 @@ export function textsOf(input: unknown, limits: TextLimits = {}): string[] {}}}+ if (queue.length > head) truncated = true+ if (truncated) out.push(TRUNCATED)return out}// END SHARED SCREENdiff --git a/plugins/ruflo-agent/scripts/smoke.sh b/plugins/ruflo-agent/scripts/smoke.shindex bb2b7465b2..997952d0c4 100755--- a/plugins/ruflo-agent/scripts/smoke.sh+++ b/plugins/ruflo-agent/scripts/smoke.sh@@ -7,11 +7,11 @@ step() { printf "β %s ... " "$1"; }ok() { printf "PASS\n"; PASS=$((PASS+1)); }bad() { printf "FAIL: %s\n" "$1"; FAIL=$((FAIL+1)); }-step "1. plugin.json is ruflo-agent 0.3.1 with both-runtime keywords"+step "1. plugin.json is ruflo-agent 0.3.2 with both-runtime keywords"P="$ROOT/.claude-plugin/plugin.json"v=$(grep -E '"version"' "$P" | grep -oE '[0-9]+\.[0-9]+\.[0-9]+' | head -1)n=$(grep -E '"name"' "$P" | grep -oE 'ruflo-agent' | head -1)-if [[ "$v" != "0.3.1" ]]; then bad "expected version 0.3.1, got '$v'";+if [[ "$v" != "0.3.2" ]]; then bad "expected version 0.3.2, got '$v'";elif [[ "$n" != "ruflo-agent" ]]; then bad "expected name ruflo-agent";elsemiss=""diff --git a/plugins/ruflo-agentdb/.claude-plugin/plugin.json b/plugins/ruflo-agentdb/.claude-plugin/plugin.jsonindex b548a7faac..167f0d009b 100644--- a/plugins/ruflo-agentdb/.claude-plugin/plugin.json+++ b/plugins/ruflo-agentdb/.claude-plugin/plugin.json@@ -1,7 +1,7 @@{"name": "ruflo-agentdb","description": "Substrate plugin for Ruflo memory: AgentDB controller bridge (15 agentdb_* MCP tools), RuVector ONNX embeddings (10 embeddings_* tools incl. RaBitQ 32x quantization), and WASM HNSW pattern router (3 ruvllm_hnsw_* tools). As a mod (ADR-445): opt-in safe recall into the prompt, a write guard that keeps secrets out of memory, /agentdb, and a status file the console shows",- "version": "0.4.3",+ "version": "0.4.4","author": {"name": "ruvnet","url": "https://github.com/ruvnet"diff --git a/plugins/ruflo-agentdb/README.md b/plugins/ruflo-agentdb/README.mdindex cd85b901c7..88eb0d30bb 100644--- a/plugins/ruflo-agentdb/README.md+++ b/plugins/ruflo-agentdb/README.md@@ -205,7 +205,7 @@ bash plugins/ruflo-agentdb/scripts/smoke.shThe smoke script is the contract. It calls each documented MCP tool, exercises the RaBitQ workflow, and source-inspects the fallback path (no env-var gate exists to force the fallback live).-## As a mod (0.4.3, ADR-445)+## As a mod (0.4.4, ADR-445)A function-hook mod ships beside the skills. Needs a Claude Code with mods (2.1.287+); older builds ignore it.diff --git a/plugins/ruflo-agentdb/hooks/screen.ts b/plugins/ruflo-agentdb/hooks/screen.tsindex e7d2fcbe99..1e9c6f0189 100644--- a/plugins/ruflo-agentdb/hooks/screen.ts+++ b/plugins/ruflo-agentdb/hooks/screen.ts@@ -148,8 +148,15 @@ function matches(name: string, re: RegExp, text: string): boolean {return false}+/**+ * The text textsOf appends when it had to drop input (a node, character or per-string budget ran out). It is never matched against a rule:+ * `names` reports it as a finding of its own, so every guard that asks "is there a secret in these texts" refuses what it could not read in full.+ */+export const TRUNCATED = 'ruflo-screen: input exceeded the screening budget'+export const TRUNCATED_NAME = 'input too large to screen'+/** Names of the rules that match `text` (already bare'd). A rule named 'key assignment' is judged by assignmentSecret, whatever its regex. */-export const names = (rules: Rules, text: string) => rules.filter(([name, re]) => matches(name, re, text)).map(([name]) => name)+export const names = (rules: Rules, text: string) => text === TRUNCATED ? [TRUNCATED_NAME] : rules.filter(([name, re]) => matches(name, re, text)).map(([name]) => name)export type Findings = { readonly secrets: readonly string[]; readonly injection: readonly string[] }@@ -191,33 +198,46 @@ function windows(text: string, out: string[]): void {* breadth-first (siblings before depth, so a long list cannot hide a nested value). A string under an object key comes back as `key=value`,* so a secret-named key is judged with its value; a key whose value is not a string is returned bare. Strings longer than the screen window* come back as overlapping windows; one over `perString` keeps its head and tail. Work is bounded by `nodes` slots and `chars` characters.+ * Anything dropped (slots or characters ran out, or a string lost its middle) is reported by a final TRUNCATED text, which `names` and+ * `hasSecretIn` count as a finding, so the screen fails closed instead of passing what it did not read.*/export function textsOf(input: unknown, limits: TextLimits = {}): string[] {const out: string[] = []let slots = limits.nodes ?? NODESlet chars = limits.chars ?? CHARSconst perString = limits.perString ?? PER_STRING+ let truncated = falseconst take = (text: string): void => {- if (chars <= 0) return+ if (chars <= 0) {+ truncated = true+ return+ }if (text.length <= Math.min(perString, chars)) {chars -= text.lengthwindows(text, out)return}+ truncated = trueconst half = Math.floor(Math.min(perString, chars) / 2)chars -= 2 * halfwindows(text.slice(0, half), out)windows(text.slice(-half), out)}const queue: unknown[] = [input]- for (let head = 0; head < queue.length && chars > 0; head++) {+ let head = 0+ for (; head < queue.length && chars > 0; head++) {const node = queue[head]if (typeof node === 'string') take(node)else if (Array.isArray(node)) {- for (let i = 0; i < node.length && slots > 0; i++, slots--) if (i in node) queue.push(node[i])+ let i = 0+ for (; i < node.length && slots > 0; i++, slots--) if (i in node) queue.push(node[i])+ if (i < node.length) truncated = true} else if (typeof node === 'object' && node !== null) {for (const k in node) {- if (slots-- <= 0) break+ if (slots-- <= 0) {+ truncated = true+ break+ }if (!Object.prototype.hasOwnProperty.call(node, k)) continueconst v = (node as Record<string, unknown>)[k]if (typeof v === 'string') queue.push(k + '=' + v)@@ -228,6 +248,8 @@ export function textsOf(input: unknown, limits: TextLimits = {}): string[] {}}}+ if (queue.length > head) truncated = true+ if (truncated) out.push(TRUNCATED)return out}// END SHARED SCREENdiff --git a/plugins/ruflo-agentdb/scripts/smoke.sh b/plugins/ruflo-agentdb/scripts/smoke.shindex dfbf21b663..eb1db1d110 100755--- a/plugins/ruflo-agentdb/scripts/smoke.sh+++ b/plugins/ruflo-agentdb/scripts/smoke.sh@@ -48,10 +48,10 @@ grep -q "## Namespace convention" "$ROOT/README.md" \&& ok || bad "Namespace convention section missing"# 1. Plugin version + new keywords-step "1. plugin.json declares version 0.4.3 with rabitq + namespace-convention keywords"+step "1. plugin.json declares version 0.4.4 with rabitq + namespace-convention keywords"v=$(grep -E '"version"[[:space:]]*:' "$ROOT/.claude-plugin/plugin.json" | grep -oE '[0-9]+\.[0-9]+\.[0-9]+' | head -1)-if [[ "$v" != "0.4.3" ]]; then- bad "expected 0.4.3, got '$v'"+if [[ "$v" != "0.4.4" ]]; then+ bad "expected 0.4.4, got '$v'"elsemiss=""for k in rabitq quantization namespace-convention controller-bridge; dodiff --git a/plugins/ruflo-agentdb/tests/screen.test.ts b/plugins/ruflo-agentdb/tests/screen.test.tsindex 13e2812553..6199accb3c 100644--- a/plugins/ruflo-agentdb/tests/screen.test.ts+++ b/plugins/ruflo-agentdb/tests/screen.test.ts@@ -4,7 +4,7 @@ import { verdict } from '../hooks/guard'import { readOptions } from '../hooks/options'import { cacheKey, frame, keywords, parse, screen as screenItems, worthRecalling } from '../hooks/recall'import { expandTruncated } from '../hooks/expand'-import { hasSecret, scan, tidy } from '../hooks/screen'+import { TRUNCATED, hasSecret, hasSecretIn, names, scan, textsOf, tidy, COMMON_SECRETS } from '../hooks/screen'import { isWriter, pickReaders, splitName } from '../hooks/tools'tier('user')@@ -322,3 +322,41 @@ describe('tools and guard', () => {expect(readOptions({ recall: 'on', recallLimit: 99, recallDeadlineMs: 5, guard: 'off', source: 'bogus' })).toMatchObject({ recall: true, recallLimit: 5, recallDeadlineMs: 200, guard: false, source: 'auto' })})})++describe('truncation fails closed', () => {+ const flagged = (input: unknown, limits?: Parameters<typeof textsOf>[1]) => textsOf(input, limits).includes(TRUNCATED)++ test('a secret after the node budget is refused, not dropped', () => {+ const list: unknown[] = Array.from({ length: 25_000 }, () => 'x')+ list.push(aws)+ expect(flagged(list)).toBe(true)+ expect(textsOf(list).some(hasSecret)).toBe(true)+ expect(verdict('mcp__x__memory_store', { value: list })).toMatch(/too large|secret/)+ })++ test('a wide object past the node budget is flagged', () => {+ const wide: Record<string, unknown> = {}+ for (let i = 0; i < 30_000; i++) wide[`field${i}`] = i+ expect(flagged(wide)).toBe(true)+ })++ test('the character budget and a string past the per-string limit are flagged', () => {+ expect(flagged(['a'.repeat(900), 'b'.repeat(900), 'c'], { chars: 1000 })).toBe(true)+ expect(flagged({ value: 'z'.repeat(3000) }, { perString: 1000 })).toBe(true)+ })++ test('input inside every budget is not flagged, and a custom node budget flags only when something was dropped', () => {+ expect(flagged({ a: 'one', b: ['two', 'three'] })).toBe(false)+ expect(flagged(['a', 'b'], { nodes: 2 })).toBe(false)+ expect(flagged(['a', 'b', 'c'], { nodes: 2 })).toBe(true)+ })++ test('the refusal names a finding, never echoes input', () => {+ expect(names(COMMON_SECRETS, TRUNCATED)).toEqual(['input too large to screen'])+ expect(hasSecretIn(COMMON_SECRETS, TRUNCATED)).toBe(true)+ const list: unknown[] = Array.from({ length: 25_000 }, () => 'x')+ list.push(ghp)+ const msg = verdict('mcp__x__memory_store', { value: list }) ?? ''+ expect(msg).not.toContain(ghp)+ })+})diff --git a/plugins/ruflo-agentdb/tests/textsof.test.ts b/plugins/ruflo-agentdb/tests/textsof.test.tsindex b50a0544ea..b85522660d 100644--- a/plugins/ruflo-agentdb/tests/textsof.test.ts+++ b/plugins/ruflo-agentdb/tests/textsof.test.ts@@ -24,7 +24,7 @@ describe('the shared walker every guard reads through', () => {const started = performance.now()const texts = textsOf(wide)expect(performance.now() - started).toBeLessThan(500)- expect(texts.length).toBeLessThanOrEqual(20_000)+ expect(texts.length).toBeLessThanOrEqual(20_001) // the walked texts and the truncation markerexpect(texts.some(hasSecret)).toBe(true)})@@ -56,6 +56,6 @@ describe('the shared walker every guard reads through', () => {})test('limits bound the work: a node budget of 2 stops the walk', () => {- expect(textsOf({ a: 'one', b: 'two', c: 'three' }, { nodes: 2 }).length).toBeLessThanOrEqual(2)+ expect(textsOf({ a: 'one', b: 'two', c: 'three' }, { nodes: 2 }).length).toBeLessThanOrEqual(3) // two texts and the truncation marker})})diff --git a/plugins/ruflo-agntcy/.claude-plugin/plugin.json b/plugins/ruflo-agntcy/.claude-plugin/plugin.jsonindex 8a300e4258..c1d97ea1f0 100644--- a/plugins/ruflo-agntcy/.claude-plugin/plugin.json+++ b/plugins/ruflo-agntcy/.claude-plugin/plugin.json@@ -1,7 +1,7 @@{"name": "ruflo-agntcy","description": "AGNTCY/Outshift Internet-of-Cognition runtime integration for Ruflo β SLIM secure transport for cross-host agent coordination, CASA intent-scoped tool authorization enforcement, optional IOC Layer 9 coordination events, and AGNTCY identity/observability spans (ADR-380). Optional, removable augmentation per ADR-150; degrades gracefully when AGNTCY/SLIM packages are not installed.",- "version": "0.2.1",+ "version": "0.2.2","author": {"name": "ruvnet","url": "https://github.com/ruvnet"diff --git a/plugins/ruflo-agntcy/hooks/screen.ts b/plugins/ruflo-agntcy/hooks/screen.tsindex 5e899f3944..91e444a161 100644--- a/plugins/ruflo-agntcy/hooks/screen.ts+++ b/plugins/ruflo-agntcy/hooks/screen.ts@@ -144,8 +144,15 @@ function matches(name: string, re: RegExp, text: string): boolean {return false}+/**+ * The text textsOf appends when it had to drop input (a node, character or per-string budget ran out). It is never matched against a rule:+ * `names` reports it as a finding of its own, so every guard that asks "is there a secret in these texts" refuses what it could not read in full.+ */+export const TRUNCATED = 'ruflo-screen: input exceeded the screening budget'+export const TRUNCATED_NAME = 'input too large to screen'+/** Names of the rules that match `text` (already bare'd). A rule named 'key assignment' is judged by assignmentSecret, whatever its regex. */-export const names = (rules: Rules, text: string) => rules.filter(([name, re]) => matches(name, re, text)).map(([name]) => name)+export const names = (rules: Rules, text: string) => text === TRUNCATED ? [TRUNCATED_NAME] : rules.filter(([name, re]) => matches(name, re, text)).map(([name]) => name)export type Findings = { readonly secrets: readonly string[]; readonly injection: readonly string[] }@@ -187,33 +194,46 @@ function windows(text: string, out: string[]): void {* breadth-first (siblings before depth, so a long list cannot hide a nested value). A string under an object key comes back as `key=value`,* so a secret-named key is judged with its value; a key whose value is not a string is returned bare. Strings longer than the screen window* come back as overlapping windows; one over `perString` keeps its head and tail. Work is bounded by `nodes` slots and `chars` characters.+ * Anything dropped (slots or characters ran out, or a string lost its middle) is reported by a final TRUNCATED text, which `names` and+ * `hasSecretIn` count as a finding, so the screen fails closed instead of passing what it did not read.*/export function textsOf(input: unknown, limits: TextLimits = {}): string[] {const out: string[] = []let slots = limits.nodes ?? NODESlet chars = limits.chars ?? CHARSconst perString = limits.perString ?? PER_STRING+ let truncated = falseconst take = (text: string): void => {- if (chars <= 0) return+ if (chars <= 0) {+ truncated = true+ return+ }if (text.length <= Math.min(perString, chars)) {chars -= text.lengthwindows(text, out)return}+ truncated = trueconst half = Math.floor(Math.min(perString, chars) / 2)chars -= 2 * halfwindows(text.slice(0, half), out)windows(text.slice(-half), out)}const queue: unknown[] = [input]- for (let head = 0; head < queue.length && chars > 0; head++) {+ let head = 0+ for (; head < queue.length && chars > 0; head++) {const node = queue[head]if (typeof node === 'string') take(node)else if (Array.isArray(node)) {- for (let i = 0; i < node.length && slots > 0; i++, slots--) if (i in node) queue.push(node[i])+ let i = 0+ for (; i < node.length && slots > 0; i++, slots--) if (i in node) queue.push(node[i])+ if (i < node.length) truncated = true} else if (typeof node === 'object' && node !== null) {for (const k in node) {- if (slots-- <= 0) break+ if (slots-- <= 0) {+ truncated = true+ break+ }if (!Object.prototype.hasOwnProperty.call(node, k)) continueconst v = (node as Record<string, unknown>)[k]if (typeof v === 'string') queue.push(k + '=' + v)@@ -224,6 +244,8 @@ export function textsOf(input: unknown, limits: TextLimits = {}): string[] {}}}+ if (queue.length > head) truncated = true+ if (truncated) out.push(TRUNCATED)return out}// END SHARED SCREENdiff --git a/plugins/ruflo-agntcy/scripts/smoke.sh b/plugins/ruflo-agntcy/scripts/smoke.shindex 3fa01bb463..819d642f2a 100755--- a/plugins/ruflo-agntcy/scripts/smoke.sh+++ b/plugins/ruflo-agntcy/scripts/smoke.sh@@ -8,9 +8,9 @@ step() { printf "β %s ... " "$1"; }ok() { printf "PASS\n"; PASS=$((PASS+1)); }bad() { printf "FAIL: %s\n" "$1"; FAIL=$((FAIL+1)); }-step "0. plugin.json declares 0.2.1"+step "0. plugin.json declares 0.2.2"v=$(grep -E '"version"' "$ROOT/.claude-plugin/plugin.json" | grep -oE '[0-9]+\.[0-9]+\.[0-9]+' | head -1)-[[ "$v" == "0.2.1" ]] && ok || bad "expected 0.2.1, got '$v'"+[[ "$v" == "0.2.2" ]] && ok || bad "expected 0.2.2, got '$v'"# M1. The mod (ADR-445 pattern): hooks module registered, files within the 500-line rulestep "M1. mod: hooks.json names register.ts, every hook file is present and under 500 lines"diff --git a/plugins/ruflo-ai-team/.claude-plugin/plugin.json b/plugins/ruflo-ai-team/.claude-plugin/plugin.jsonindex 757d645ca6..c222fbb8ba 100644--- a/plugins/ruflo-ai-team/.claude-plugin/plugin.json+++ b/plugins/ruflo-ai-team/.claude-plugin/plugin.json@@ -1,7 +1,7 @@{"name": "ruflo-ai-team","description": "Give Claude a tenant-isolated AI team that divides work, coordinates progress, recalls approved context, and returns evidence-backed results.",- "version": "0.2.1",+ "version": "0.2.2","author": {"name": "ruvnet","url": "https://github.com/ruvnet"diff --git a/plugins/ruflo-ai-team/hooks/screen.ts b/plugins/ruflo-ai-team/hooks/screen.tsindex 5e899f3944..91e444a161 100644--- a/plugins/ruflo-ai-team/hooks/screen.ts+++ b/plugins/ruflo-ai-team/hooks/screen.ts@@ -144,8 +144,15 @@ function matches(name: string, re: RegExp, text: string): boolean {return false}+/**+ * The text textsOf appends when it had to drop input (a node, character or per-string budget ran out). It is never matched against a rule:+ * `names` reports it as a finding of its own, so every guard that asks "is there a secret in these texts" refuses what it could not read in full.+ */+export const TRUNCATED = 'ruflo-screen: input exceeded the screening budget'+export const TRUNCATED_NAME = 'input too large to screen'+/** Names of the rules that match `text` (already bare'd). A rule named 'key assignment' is judged by assignmentSecret, whatever its regex. */-export const names = (rules: Rules, text: string) => rules.filter(([name, re]) => matches(name, re, text)).map(([name]) => name)+export const names = (rules: Rules, text: string) => text === TRUNCATED ? [TRUNCATED_NAME] : rules.filter(([name, re]) => matches(name, re, text)).map(([name]) => name)export type Findings = { readonly secrets: readonly string[]; readonly injection: readonly string[] }@@ -187,33 +194,46 @@ function windows(text: string, out: string[]): void {* breadth-first (siblings before depth, so a long list cannot hide a nested value). A string under an object key comes back as `key=value`,* so a secret-named key is judged with its value; a key whose value is not a string is returned bare. Strings longer than the screen window* come back as overlapping windows; one over `perString` keeps its head and tail. Work is bounded by `nodes` slots and `chars` characters.+ * Anything dropped (slots or characters ran out, or a string lost its middle) is reported by a final TRUNCATED text, which `names` and+ * `hasSecretIn` count as a finding, so the screen fails closed instead of passing what it did not read.*/export function textsOf(input: unknown, limits: TextLimits = {}): string[] {const out: string[] = []let slots = limits.nodes ?? NODESlet chars = limits.chars ?? CHARSconst perString = limits.perString ?? PER_STRING+ let truncated = falseconst take = (text: string): void => {- if (chars <= 0) return+ if (chars <= 0) {+ truncated = true+ return+ }if (text.length <= Math.min(perString, chars)) {chars -= text.lengthwindows(text, out)return}+ truncated = trueconst half = Math.floor(Math.min(perString, chars) / 2)chars -= 2 * halfwindows(text.slice(0, half), out)windows(text.slice(-half), out)}const queue: unknown[] = [input]- for (let head = 0; head < queue.length && chars > 0; head++) {+ let head = 0+ for (; head < queue.length && chars > 0; head++) {const node = queue[head]if (typeof node === 'string') take(node)else if (Array.isArray(node)) {- for (let i = 0; i < node.length && slots > 0; i++, slots--) if (i in node) queue.push(node[i])+ let i = 0+ for (; i < node.length && slots > 0; i++, slots--) if (i in node) queue.push(node[i])+ if (i < node.length) truncated = true} else if (typeof node === 'object' && node !== null) {for (const k in node) {- if (slots-- <= 0) break+ if (slots-- <= 0) {+ truncated = true+ break+ }if (!Object.prototype.hasOwnProperty.call(node, k)) continueconst v = (node as Record<string, unknown>)[k]if (typeof v === 'string') queue.push(k + '=' + v)@@ -224,6 +244,8 @@ export function textsOf(input: unknown, limits: TextLimits = {}): string[] {}}}+ if (queue.length > head) truncated = true+ if (truncated) out.push(TRUNCATED)return out}// END SHARED SCREENdiff --git a/plugins/ruflo-aidefence/.claude-plugin/plugin.json b/plugins/ruflo-aidefence/.claude-plugin/plugin.jsonindex 40d4903334..21fdd80062 100644--- a/plugins/ruflo-aidefence/.claude-plugin/plugin.json+++ b/plugins/ruflo-aidefence/.claude-plugin/plugin.json@@ -1,7 +1,7 @@{"name": "ruflo-aidefence","description": "AI safety scanning, PII detection, prompt injection defense, and adaptive threat learning",- "version": "0.3.1",+ "version": "0.3.2","author": {"name": "ruvnet","url": "https://github.com/ruvnet"diff --git a/plugins/ruflo-aidefence/hooks/screen.ts b/plugins/ruflo-aidefence/hooks/screen.tsindex 5e899f3944..91e444a161 100644--- a/plugins/ruflo-aidefence/hooks/screen.ts+++ b/plugins/ruflo-aidefence/hooks/screen.ts@@ -144,8 +144,15 @@ function matches(name: string, re: RegExp, text: string): boolean {return false}+/**+ * The text textsOf appends when it had to drop input (a node, character or per-string budget ran out). It is never matched against a rule:+ * `names` reports it as a finding of its own, so every guard that asks "is there a secret in these texts" refuses what it could not read in full.+ */+export const TRUNCATED = 'ruflo-screen: input exceeded the screening budget'+export const TRUNCATED_NAME = 'input too large to screen'+/** Names of the rules that match `text` (already bare'd). A rule named 'key assignment' is judged by assignmentSecret, whatever its regex. */-export const names = (rules: Rules, text: string) => rules.filter(([name, re]) => matches(name, re, text)).map(([name]) => name)+export const names = (rules: Rules, text: string) => text === TRUNCATED ? [TRUNCATED_NAME] : rules.filter(([name, re]) => matches(name, re, text)).map(([name]) => name)export type Findings = { readonly secrets: readonly string[]; readonly injection: readonly string[] }@@ -187,33 +194,46 @@ function windows(text: string, out: string[]): void {* breadth-first (siblings before depth, so a long list cannot hide a nested value). A string under an object key comes back as `key=value`,* so a secret-named key is judged with its value; a key whose value is not a string is returned bare. Strings longer than the screen window* come back as overlapping windows; one over `perString` keeps its head and tail. Work is bounded by `nodes` slots and `chars` characters.+ * Anything dropped (slots or characters ran out, or a string lost its middle) is reported by a final TRUNCATED text, which `names` and+ * `hasSecretIn` count as a finding, so the screen fails closed instead of passing what it did not read.*/export function textsOf(input: unknown, limits: TextLimits = {}): string[] {const out: string[] = []let slots = limits.nodes ?? NODESlet chars = limits.chars ?? CHARSconst perString = limits.perString ?? PER_STRING+ let truncated = falseconst take = (text: string): void => {- if (chars <= 0) return+ if (chars <= 0) {+ truncated = true+ return+ }if (text.length <= Math.min(perString, chars)) {chars -= text.lengthwindows(text, out)return}+ truncated = trueconst half = Math.floor(Math.min(perString, chars) / 2)chars -= 2 * halfwindows(text.slice(0, half), out)windows(text.slice(-half), out)}const queue: unknown[] = [input]- for (let head = 0; head < queue.length && chars > 0; head++) {+ let head = 0+ for (; head < queue.length && chars > 0; head++) {const node = queue[head]if (typeof node === 'string') take(node)else if (Array.isArray(node)) {- for (let i = 0; i < node.length && slots > 0; i++, slots--) if (i in node) queue.push(node[i])+ let i = 0+ for (; i < node.length && slots > 0; i++, slots--) if (i in node) queue.push(node[i])+ if (i < node.length) truncated = true} else if (typeof node === 'object' && node !== null) {for (const k in node) {- if (slots-- <= 0) break+ if (slots-- <= 0) {+ truncated = true+ break+ }if (!Object.prototype.hasOwnProperty.call(node, k)) continueconst v = (node as Record<string, unknown>)[k]if (typeof v === 'string') queue.push(k + '=' + v)@@ -224,6 +244,8 @@ export function textsOf(input: unknown, limits: TextLimits = {}): string[] {}}}+ if (queue.length > head) truncated = true+ if (truncated) out.push(TRUNCATED)return out}// END SHARED SCREENdiff --git a/plugins/ruflo-aidefence/scripts/smoke.sh b/plugins/ruflo-aidefence/scripts/smoke.shindex 2aaf645cde..5a191a0739 100755--- a/plugins/ruflo-aidefence/scripts/smoke.sh+++ b/plugins/ruflo-aidefence/scripts/smoke.sh@@ -1,5 +1,5 @@#!/usr/bin/env bash-# Structural smoke test for ruflo-aidefence v0.3.1 (ADR-0001).+# Structural smoke test for ruflo-aidefence v0.3.2 (ADR-0001).set -uROOT="$(cd "$(dirname "$0")/.." && pwd)"PASS=0@@ -8,10 +8,10 @@ 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.1 with new keywords"+step "1. plugin.json declares 0.3.2 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.1" ]]; then- bad "expected 0.3.1, got '$v'"+if [[ "$v" != "0.3.2" ]]; then+ bad "expected 0.3.2, got '$v'"elsemiss=""for k in prompt-injection defense-in-depth mcp; dodiff --git a/plugins/ruflo-arena/.claude-plugin/plugin.json b/plugins/ruflo-arena/.claude-plugin/plugin.jsonindex b224fe0107..f7a55af9e3 100644--- a/plugins/ruflo-arena/.claude-plugin/plugin.json+++ b/plugins/ruflo-arena/.claude-plugin/plugin.json@@ -1,6 +1,6 @@{"name": "ruflo-arena",- "version": "0.2.1",+ "version": "0.2.2","description": "Competitive ruliology for Ruflo swarms β arenas, tournaments, and adaptive co-evolution of program strategies (ADR-147/148). Strategies-as-programs compete under payoff games; tournaments produce Wolfram-style competitive arrays; hill-climb and mutual co-evolution discover winners empirically.","author": {"name": "ruvnet",diff --git a/plugins/ruflo-arena/hooks/screen.ts b/plugins/ruflo-arena/hooks/screen.tsindex 5e899f3944..91e444a161 100644--- a/plugins/ruflo-arena/hooks/screen.ts+++ b/plugins/ruflo-arena/hooks/screen.ts@@ -144,8 +144,15 @@ function matches(name: string, re: RegExp, text: string): boolean {return false}+/**+ * The text textsOf appends when it had to drop input (a node, character or per-string budget ran out). It is never matched against a rule:+ * `names` reports it as a finding of its own, so every guard that asks "is there a secret in these texts" refuses what it could not read in full.+ */+export const TRUNCATED = 'ruflo-screen: input exceeded the screening budget'+export const TRUNCATED_NAME = 'input too large to screen'+/** Names of the rules that match `text` (already bare'd). A rule named 'key assignment' is judged by assignmentSecret, whatever its regex. */-export const names = (rules: Rules, text: string) => rules.filter(([name, re]) => matches(name, re, text)).map(([name]) => name)+export const names = (rules: Rules, text: string) => text === TRUNCATED ? [TRUNCATED_NAME] : rules.filter(([name, re]) => matches(name, re, text)).map(([name]) => name)export type Findings = { readonly secrets: readonly string[]; readonly injection: readonly string[] }@@ -187,33 +194,46 @@ function windows(text: string, out: string[]): void {* breadth-first (siblings before depth, so a long list cannot hide a nested value). A string under an object key comes back as `key=value`,* so a secret-named key is judged with its value; a key whose value is not a string is returned bare. Strings longer than the screen window* come back as overlapping windows; one over `perString` keeps its head and tail. Work is bounded by `nodes` slots and `chars` characters.+ * Anything dropped (slots or characters ran out, or a string lost its middle) is reported by a final TRUNCATED text, which `names` and+ * `hasSecretIn` count as a finding, so the screen fails closed instead of passing what it did not read.*/export function textsOf(input: unknown, limits: TextLimits = {}): string[] {const out: string[] = []let slots = limits.nodes ?? NODESlet chars = limits.chars ?? CHARSconst perString = limits.perString ?? PER_STRING+ let truncated = falseconst take = (text: string): void => {- if (chars <= 0) return+ if (chars <= 0) {+ truncated = true+ return+ }if (text.length <= Math.min(perString, chars)) {chars -= text.lengthwindows(text, out)return}+ truncated = trueconst half = Math.floor(Math.min(perString, chars) / 2)chars -= 2 * halfwindows(text.slice(0, half), out)windows(text.slice(-half), out)}const queue: unknown[] = [input]- for (let head = 0; head < queue.length && chars > 0; head++) {+ let head = 0+ for (; head < queue.length && chars > 0; head++) {const node = queue[head]if (typeof node === 'string') take(node)else if (Array.isArray(node)) {- for (let i = 0; i < node.length && slots > 0; i++, slots--) if (i in node) queue.push(node[i])+ let i = 0+ for (; i < node.length && slots > 0; i++, slots--) if (i in node) queue.push(node[i])+ if (i < node.length) truncated = true} else if (typeof node === 'object' && node !== null) {for (const k in node) {- if (slots-- <= 0) break+ if (slots-- <= 0) {+ truncated = true+ break+ }if (!Object.prototype.hasOwnProperty.call(node, k)) continueconst v = (node as Record<string, unknown>)[k]if (typeof v === 'string') queue.push(k + '=' + v)@@ -224,6 +244,8 @@ export function textsOf(input: unknown, limits: TextLimits = {}): string[] {}}}+ if (queue.length > head) truncated = true+ if (truncated) out.push(TRUNCATED)return out}// END SHARED SCREENdiff --git a/plugins/ruflo-arena/scripts/smoke.sh b/plugins/ruflo-arena/scripts/smoke.shindex 3c71ea29cf..8e26ee9858 100755--- a/plugins/ruflo-arena/scripts/smoke.sh+++ b/plugins/ruflo-arena/scripts/smoke.sh@@ -8,9 +8,9 @@ step() { printf "β %s ... " "$1"; }ok() { printf "PASS\n"; PASS=$((PASS+1)); }bad() { printf "FAIL: %s\n" "$1"; FAIL=$((FAIL+1)); }-step "0. plugin.json declares 0.2.1"+step "0. plugin.json declares 0.2.2"v=$(grep -E '"version"' "$ROOT/.claude-plugin/plugin.json" | grep -oE '[0-9]+\.[0-9]+\.[0-9]+' | head -1)-[[ "$v" == "0.2.1" ]] && ok || bad "expected 0.2.1, got '$v'"+[[ "$v" == "0.2.2" ]] && ok || bad "expected 0.2.2, got '$v'"# M1. The mod (ADR-445 pattern): hooks module registered, files within the 500-line rulestep "M1. mod: hooks.json names register.ts, every hook file is present and under 500 lines"diff --git a/plugins/ruflo-autopilot/.claude-plugin/plugin.json b/plugins/ruflo-autopilot/.claude-plugin/plugin.jsonindex c163a0e99d..d54133f546 100644--- a/plugins/ruflo-autopilot/.claude-plugin/plugin.json+++ b/plugins/ruflo-autopilot/.claude-plugin/plugin.json@@ -1,7 +1,7 @@{"name": "ruflo-autopilot","description": "Autonomous /loop-driven task completion with learning, prediction, and progress tracking β wraps 10 autopilot_* MCP tools (status/enable/disable/config/reset/log/progress/learn/history/predict)",- "version": "0.3.1",+ "version": "0.3.2","author": {"name": "ruvnet","url": "https://github.com/ruvnet"diff --git a/plugins/ruflo-autopilot/hooks/screen.ts b/plugins/ruflo-autopilot/hooks/screen.tsindex 5e899f3944..91e444a161 100644--- a/plugins/ruflo-autopilot/hooks/screen.ts+++ b/plugins/ruflo-autopilot/hooks/screen.ts@@ -144,8 +144,15 @@ function matches(name: string, re: RegExp, text: string): boolean {return false}+/**+ * The text textsOf appends when it had to drop input (a node, character or per-string budget ran out). It is never matched against a rule:+ * `names` reports it as a finding of its own, so every guard that asks "is there a secret in these texts" refuses what it could not read in full.+ */+export const TRUNCATED = 'ruflo-screen: input exceeded the screening budget'+export const TRUNCATED_NAME = 'input too large to screen'+/** Names of the rules that match `text` (already bare'd). A rule named 'key assignment' is judged by assignmentSecret, whatever its regex. */-export const names = (rules: Rules, text: string) => rules.filter(([name, re]) => matches(name, re, text)).map(([name]) => name)+export const names = (rules: Rules, text: string) => text === TRUNCATED ? [TRUNCATED_NAME] : rules.filter(([name, re]) => matches(name, re, text)).map(([name]) => name)export type Findings = { readonly secrets: readonly string[]; readonly injection: readonly string[] }@@ -187,33 +194,46 @@ function windows(text: string, out: string[]): void {* breadth-first (siblings before depth, so a long list cannot hide a nested value). A string under an object key comes back as `key=value`,* so a secret-named key is judged with its value; a key whose value is not a string is returned bare. Strings longer than the screen window* come back as overlapping windows; one over `perString` keeps its head and tail. Work is bounded by `nodes` slots and `chars` characters.+ * Anything dropped (slots or characters ran out, or a string lost its middle) is reported by a final TRUNCATED text, which `names` and+ * `hasSecretIn` count as a finding, so the screen fails closed instead of passing what it did not read.*/export function textsOf(input: unknown, limits: TextLimits = {}): string[] {const out: string[] = []let slots = limits.nodes ?? NODESlet chars = limits.chars ?? CHARSconst perString = limits.perString ?? PER_STRING+ let truncated = falseconst take = (text: string): void => {- if (chars <= 0) return+ if (chars <= 0) {+ truncated = true+ return+ }if (text.length <= Math.min(perString, chars)) {chars -= text.lengthwindows(text, out)return}+ truncated = trueconst half = Math.floor(Math.min(perString, chars) / 2)chars -= 2 * halfwindows(text.slice(0, half), out)windows(text.slice(-half), out)}const queue: unknown[] = [input]- for (let head = 0; head < queue.length && chars > 0; head++) {+ let head = 0+ for (; head < queue.length && chars > 0; head++) {const node = queue[head]if (typeof node === 'string') take(node)else if (Array.isArray(node)) {- for (let i = 0; i < node.length && slots > 0; i++, slots--) if (i in node) queue.push(node[i])+ let i = 0+ for (; i < node.length && slots > 0; i++, slots--) if (i in node) queue.push(node[i])+ if (i < node.length) truncated = true} else if (typeof node === 'object' && node !== null) {for (const k in node) {- if (slots-- <= 0) break+ if (slots-- <= 0) {+ truncated = true+ break+ }if (!Object.prototype.hasOwnProperty.call(node, k)) continueconst v = (node as Record<string, unknown>)[k]if (typeof v === 'string') queue.push(k + '=' + v)@@ -224,6 +244,8 @@ export function textsOf(input: unknown, limits: TextLimits = {}): string[] {}}}+ if (queue.length > head) truncated = true+ if (truncated) out.push(TRUNCATED)return out}// END SHARED SCREENdiff --git a/plugins/ruflo-autopilot/scripts/smoke.sh b/plugins/ruflo-autopilot/scripts/smoke.shindex a6ac91e732..437072f575 100755--- a/plugins/ruflo-autopilot/scripts/smoke.sh+++ b/plugins/ruflo-autopilot/scripts/smoke.sh@@ -1,5 +1,5 @@#!/usr/bin/env bash-# Structural smoke test for ruflo-autopilot v0.3.1 (ADR-0001).+# Structural smoke test for ruflo-autopilot v0.3.2 (ADR-0001).set -uROOT="$(cd "$(dirname "$0")/.." && pwd)"PASS=0@@ -8,10 +8,10 @@ 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.1 with new keywords"+step "1. plugin.json declares 0.3.2 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.1" ]]; then- bad "expected 0.3.1, got '$v'"+if [[ "$v" != "0.3.2" ]]; then+ bad "expected 0.3.2, got '$v'"elsemiss=""for k in prediction progress-tracking cache-aware mcp; dodiff --git a/plugins/ruflo-bbs-federation/.claude-plugin/plugin.json b/plugins/ruflo-bbs-federation/.claude-plugin/plugin.jsonindex 04887a5d33..37b7359eb2 100644--- a/plugins/ruflo-bbs-federation/.claude-plugin/plugin.json+++ b/plugins/ruflo-bbs-federation/.claude-plugin/plugin.json@@ -1,7 +1,7 @@{"name": "ruflo-bbs-federation","description": "AgentBBS cross-host agent federation for ruflo (ADR-164). Phase 1 exposes room coordination β federation_bbs_register / federation_bbs_publish / federation_bbs_watch / federation_bbs_human_join. Phase 2 (v3.40.0) adds signed cross-host federation β federation_bbs_identity (persistent Ed25519 node identity), federation_bbs_peer_add (pin a peer by nodeId + public key), federation_bbs_peers (audit/unpin), federation_bbs_serve (read-only pull endpoint), and federation_bbs_sync (pull pinned peers and union-merge what verifies). Every merged envelope is Ed25519-verified against a pinned key; unsigned/misattributed/oversize/over-hop envelopes are dropped and counted. Transport is HTTP pull and works on any network (Tailscale, LAN, VPN, loopback) β no tailnet required. Coordinates work ownership via claim messages (ClaimIssued/Released/Handoff/Ack). agentbbs lives in optionalDependencies; every handler gracefully degrades to {degraded:true} when the package is missing (ADR-150 pattern). As a mod (ADR-445 pattern): a tighten-only tool guard, a local slash command, and a status file the console shows.",- "version": "0.3.2",+ "version": "0.3.3","author": {"name": "ruvnet","url": "https://github.com/ruvnet"diff --git a/plugins/ruflo-bbs-federation/hooks/screen.ts b/plugins/ruflo-bbs-federation/hooks/screen.tsindex 581478dfd7..3a1b569742 100644--- a/plugins/ruflo-bbs-federation/hooks/screen.ts+++ b/plugins/ruflo-bbs-federation/hooks/screen.ts@@ -144,8 +144,15 @@ function matches(name: string, re: RegExp, text: string): boolean {return false}+/**+ * The text textsOf appends when it had to drop input (a node, character or per-string budget ran out). It is never matched against a rule:+ * `names` reports it as a finding of its own, so every guard that asks "is there a secret in these texts" refuses what it could not read in full.+ */+export const TRUNCATED = 'ruflo-screen: input exceeded the screening budget'+export const TRUNCATED_NAME = 'input too large to screen'+/** Names of the rules that match `text` (already bare'd). A rule named 'key assignment' is judged by assignmentSecret, whatever its regex. */-export const names = (rules: Rules, text: string) => rules.filter(([name, re]) => matches(name, re, text)).map(([name]) => name)+export const names = (rules: Rules, text: string) => text === TRUNCATED ? [TRUNCATED_NAME] : rules.filter(([name, re]) => matches(name, re, text)).map(([name]) => name)export type Findings = { readonly secrets: readonly string[]; readonly injection: readonly string[] }@@ -187,33 +194,46 @@ function windows(text: string, out: string[]): void {* breadth-first (siblings before depth, so a long list cannot hide a nested value). A string under an object key comes back as `key=value`,* so a secret-named key is judged with its value; a key whose value is not a string is returned bare. Strings longer than the screen window* come back as overlapping windows; one over `perString` keeps its head and tail. Work is bounded by `nodes` slots and `chars` characters.+ * Anything dropped (slots or characters ran out, or a string lost its middle) is reported by a final TRUNCATED text, which `names` and+ * `hasSecretIn` count as a finding, so the screen fails closed instead of passing what it did not read.*/export function textsOf(input: unknown, limits: TextLimits = {}): string[] {const out: string[] = []let slots = limits.nodes ?? NODESlet chars = limits.chars ?? CHARSconst perString = limits.perString ?? PER_STRING+ let truncated = falseconst take = (text: string): void => {- if (chars <= 0) return+ if (chars <= 0) {+ truncated = true+ return+ }if (text.length <= Math.min(perString, chars)) {chars -= text.lengthwindows(text, out)return}+ truncated = trueconst half = Math.floor(Math.min(perString, chars) / 2)chars -= 2 * halfwindows(text.slice(0, half), out)windows(text.slice(-half), out)}const queue: unknown[] = [input]- for (let head = 0; head < queue.length && chars > 0; head++) {+ let head = 0+ for (; head < queue.length && chars > 0; head++) {const node = queue[head]if (typeof node === 'string') take(node)else if (Array.isArray(node)) {- for (let i = 0; i < node.length && slots > 0; i++, slots--) if (i in node) queue.push(node[i])+ let i = 0+ for (; i < node.length && slots > 0; i++, slots--) if (i in node) queue.push(node[i])+ if (i < node.length) truncated = true} else if (typeof node === 'object' && node !== null) {for (const k in node) {- if (slots-- <= 0) break+ if (slots-- <= 0) {+ truncated = true+ break+ }if (!Object.prototype.hasOwnProperty.call(node, k)) continueconst v = (node as Record<string, unknown>)[k]if (typeof v === 'string') queue.push(k + '=' + v)@@ -224,6 +244,8 @@ export function textsOf(input: unknown, limits: TextLimits = {}): string[] {}}}+ if (queue.length > head) truncated = true+ if (truncated) out.push(TRUNCATED)return out}// END SHARED SCREENdiff --git a/plugins/ruflo-bbs-federation/scripts/smoke.sh b/plugins/ruflo-bbs-federation/scripts/smoke.shindex 07545e2821..f751981f48 100755--- a/plugins/ruflo-bbs-federation/scripts/smoke.sh+++ b/plugins/ruflo-bbs-federation/scripts/smoke.sh@@ -1,5 +1,5 @@#!/usr/bin/env bash-# Structural smoke test for ruflo-bbs-federation v0.3.2: the plugin manifest and the mod (ADR-445 pattern).+# Structural smoke test for ruflo-bbs-federation v0.3.3: the plugin manifest and the mod (ADR-445 pattern).set -uROOT="$(cd "$(dirname "$0")/.." && pwd)"PASS=0@@ -8,10 +8,10 @@ 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 version 0.3.2 and the mod keywords"+step "1. plugin.json declares version 0.3.3 and the mod keywords"v=$(grep -E '"version"[[:space:]]*:' "$ROOT/.claude-plugin/plugin.json" | grep -oE '[0-9]+\.[0-9]+\.[0-9]+' | head -1)-if [[ "$v" != "0.3.2" ]]; then- bad "expected 0.3.2, got '$v'"+if [[ "$v" != "0.3.3" ]]; then+ bad "expected 0.3.3, got '$v'"elsemiss=""for k in mod function-hooks guard; do grep -q "\"$k\"" "$ROOT/.claude-plugin/plugin.json" || miss="$miss $k"; donediff --git a/plugins/ruflo-browser/.claude-plugin/plugin.json b/plugins/ruflo-browser/.claude-plugin/plugin.jsonindex 62b7be9f0e..3663288fe0 100644--- a/plugins/ruflo-browser/.claude-plugin/plugin.json+++ b/plugins/ruflo-browser/.claude-plugin/plugin.json@@ -1,7 +1,7 @@{"name": "ruflo-browser","description": "Session-as-skill browser automation: Playwright + RVF cognitive containers + ruvector trajectories + AgentDB selector memory + AIDefence PII/injection gates As a mod (ADR-445 pattern): a tighten-only tool guard, a local slash command, and a status file the console shows.",- "version": "0.3.3",+ "version": "0.3.4","author": {"name": "ruvnet","url": "https://github.com/ruvnet"diff --git a/plugins/ruflo-browser/hooks/screen.ts b/plugins/ruflo-browser/hooks/screen.tsindex a0a457c9ec..b5d667f7c3 100644--- a/plugins/ruflo-browser/hooks/screen.ts+++ b/plugins/ruflo-browser/hooks/screen.ts@@ -144,8 +144,15 @@ function matches(name: string, re: RegExp, text: string): boolean {return false}+/**+ * The text textsOf appends when it had to drop input (a node, character or per-string budget ran out). It is never matched against a rule:+ * `names` reports it as a finding of its own, so every guard that asks "is there a secret in these texts" refuses what it could not read in full.+ */+export const TRUNCATED = 'ruflo-screen: input exceeded the screening budget'+export const TRUNCATED_NAME = 'input too large to screen'+/** Names of the rules that match `text` (already bare'd). A rule named 'key assignment' is judged by assignmentSecret, whatever its regex. */-export const names = (rules: Rules, text: string) => rules.filter(([name, re]) => matches(name, re, text)).map(([name]) => name)+export const names = (rules: Rules, text: string) => text === TRUNCATED ? [TRUNCATED_NAME] : rules.filter(([name, re]) => matches(name, re, text)).map(([name]) => name)export type Findings = { readonly secrets: readonly string[]; readonly injection: readonly string[] }@@ -187,33 +194,46 @@ function windows(text: string, out: string[]): void {* breadth-first (siblings before depth, so a long list cannot hide a nested value). A string under an object key comes back as `key=value`,* so a secret-named key is judged with its value; a key whose value is not a string is returned bare. Strings longer than the screen window* come back as overlapping windows; one over `perString` keeps its head and tail. Work is bounded by `nodes` slots and `chars` characters.+ * Anything dropped (slots or characters ran out, or a string lost its middle) is reported by a final TRUNCATED text, which `names` and+ * `hasSecretIn` count as a finding, so the screen fails closed instead of passing what it did not read.*/export function textsOf(input: unknown, limits: TextLimits = {}): string[] {const out: string[] = []let slots = limits.nodes ?? NODESlet chars = limits.chars ?? CHARSconst perString = limits.perString ?? PER_STRING+ let truncated = falseconst take = (text: string): void => {- if (chars <= 0) return+ if (chars <= 0) {+ truncated = true+ return+ }if (text.length <= Math.min(perString, chars)) {chars -= text.lengthwindows(text, out)return}+ truncated = trueconst half = Math.floor(Math.min(perString, chars) / 2)chars -= 2 * halfwindows(text.slice(0, half), out)windows(text.slice(-half), out)}const queue: unknown[] = [input]- for (let head = 0; head < queue.length && chars > 0; head++) {+ let head = 0+ for (; head < queue.length && chars > 0; head++) {const node = queue[head]if (typeof node === 'string') take(node)else if (Array.isArray(node)) {- for (let i = 0; i < node.length && slots > 0; i++, slots--) if (i in node) queue.push(node[i])+ let i = 0+ for (; i < node.length && slots > 0; i++, slots--) if (i in node) queue.push(node[i])+ if (i < node.length) truncated = true} else if (typeof node === 'object' && node !== null) {for (const k in node) {- if (slots-- <= 0) break+ if (slots-- <= 0) {+ truncated = true+ break+ }if (!Object.prototype.hasOwnProperty.call(node, k)) continueconst v = (node as Record<string, unknown>)[k]if (typeof v === 'string') queue.push(k + '=' + v)@@ -224,6 +244,8 @@ export function textsOf(input: unknown, limits: TextLimits = {}): string[] {}}}+ if (queue.length > head) truncated = true+ if (truncated) out.push(TRUNCATED)return out}// END SHARED SCREENdiff --git a/plugins/ruflo-browser/scripts/smoke.sh b/plugins/ruflo-browser/scripts/smoke.shindex eb0730817d..8c58cae6f3 100755--- a/plugins/ruflo-browser/scripts/smoke.sh+++ b/plugins/ruflo-browser/scripts/smoke.sh@@ -15,10 +15,10 @@ ok() { printf "PASS\n"; PASS=$((PASS+1)); }bad() { printf "FAIL: %s\n" "$1"; FAIL=$((FAIL+1)); }# 1. plugin.json version + keywords-step "plugin.json declares version 0.3.3 with new keywords"+step "plugin.json declares version 0.3.4 with new keywords"v=$(grep -E '"version"[[:space:]]*:' "$ROOT/.claude-plugin/plugin.json" | grep -oE '[0-9]+\.[0-9]+\.[0-9]+' | head -1)-if [[ "$v" != "0.3.3" ]]; then- bad "expected 0.3.3, got '$v'"+if [[ "$v" != "0.3.4" ]]; then+ bad "expected 0.3.4, got '$v'"elsemissing=""for kw in rvf replay trajectory agentdb aidefence; dodiff --git a/plugins/ruflo-business-pods/.claude-plugin/plugin.json b/plugins/ruflo-business-pods/.claude-plugin/plugin.jsonindex 9e930cbeba..de4709fafb 100644--- a/plugins/ruflo-business-pods/.claude-plugin/plugin.json+++ b/plugins/ruflo-business-pods/.claude-plugin/plugin.json@@ -1,7 +1,7 @@{"name": "ruflo-business-pods","description": "ADR-164 Phase 2 β business-domain pod templates for the federated business autopilot. Ships the sales pod template (templates/sales.json) and a single-tick runner (scripts/pod-tick.mjs) that pre-flights templates via business_pod_validate, reserves budget through a file-based stub ledger (atomic SQLite tracker is Phase 3 per ADR-164.1), resolves each agent role against ruflo's agent registry, constructs dry-run prompts, and posts an envelope summary to the room via federation_bbs_publish. Dry-run by default β --live is reserved for Phase 3 Managed-Agent + claude-p wiring. As a mod (ADR-445 pattern): a tighten-only tool guard, a local slash command, and a status file the console shows.",- "version": "0.2.2",+ "version": "0.2.3","author": {"name": "ruvnet","url": "https://github.com/ruvnet"diff --git a/plugins/ruflo-business-pods/hooks/screen.ts b/plugins/ruflo-business-pods/hooks/screen.tsindex 49edb148d9..ccdbd850f7 100644--- a/plugins/ruflo-business-pods/hooks/screen.ts+++ b/plugins/ruflo-business-pods/hooks/screen.ts@@ -144,8 +144,15 @@ function matches(name: string, re: RegExp, text: string): boolean {return false}+/**+ * The text textsOf appends when it had to drop input (a node, character or per-string budget ran out). It is never matched against a rule:+ * `names` reports it as a finding of its own, so every guard that asks "is there a secret in these texts" refuses what it could not read in full.+ */+export const TRUNCATED = 'ruflo-screen: input exceeded the screening budget'+export const TRUNCATED_NAME = 'input too large to screen'+/** Names of the rules that match `text` (already bare'd). A rule named 'key assignment' is judged by assignmentSecret, whatever its regex. */-export const names = (rules: Rules, text: string) => rules.filter(([name, re]) => matches(name, re, text)).map(([name]) => name)+export const names = (rules: Rules, text: string) => text === TRUNCATED ? [TRUNCATED_NAME] : rules.filter(([name, re]) => matches(name, re, text)).map(([name]) => name)export type Findings = { readonly secrets: readonly string[]; readonly injection: readonly string[] }@@ -187,33 +194,46 @@ function windows(text: string, out: string[]): void {* breadth-first (siblings before depth, so a long list cannot hide a nested value). A string under an object key comes back as `key=value`,* so a secret-named key is judged with its value; a key whose value is not a string is returned bare. Strings longer than the screen window* come back as overlapping windows; one over `perString` keeps its head and tail. Work is bounded by `nodes` slots and `chars` characters.+ * Anything dropped (slots or characters ran out, or a string lost its middle) is reported by a final TRUNCATED text, which `names` and+ * `hasSecretIn` count as a finding, so the screen fails closed instead of passing what it did not read.*/export function textsOf(input: unknown, limits: TextLimits = {}): string[] {const out: string[] = []let slots = limits.nodes ?? NODESlet chars = limits.chars ?? CHARSconst perString = limits.perString ?? PER_STRING+ let truncated = falseconst take = (text: string): void => {- if (chars <= 0) return+ if (chars <= 0) {+ truncated = true+ return+ }if (text.length <= Math.min(perString, chars)) {chars -= text.lengthwindows(text, out)return}+ truncated = trueconst half = Math.floor(Math.min(perString, chars) / 2)chars -= 2 * halfwindows(text.slice(0, half), out)windows(text.slice(-half), out)}const queue: unknown[] = [input]- for (let head = 0; head < queue.length && chars > 0; head++) {+ let head = 0+ for (; head < queue.length && chars > 0; head++) {const node = queue[head]if (typeof node === 'string') take(node)else if (Array.isArray(node)) {- for (let i = 0; i < node.length && slots > 0; i++, slots--) if (i in node) queue.push(node[i])+ let i = 0+ for (; i < node.length && slots > 0; i++, slots--) if (i in node) queue.push(node[i])+ if (i < node.length) truncated = true} else if (typeof node === 'object' && node !== null) {for (const k in node) {- if (slots-- <= 0) break+ if (slots-- <= 0) {+ truncated = true+ break+ }if (!Object.prototype.hasOwnProperty.call(node, k)) continueconst v = (node as Record<string, unknown>)[k]if (typeof v === 'string') queue.push(k + '=' + v)@@ -224,6 +244,8 @@ export function textsOf(input: unknown, limits: TextLimits = {}): string[] {}}}+ if (queue.length > head) truncated = true+ if (truncated) out.push(TRUNCATED)return out}// END SHARED SCREENdiff --git a/plugins/ruflo-business-pods/scripts/smoke.sh b/plugins/ruflo-business-pods/scripts/smoke.shindex a055552345..130ca44bef 100755--- a/plugins/ruflo-business-pods/scripts/smoke.sh+++ b/plugins/ruflo-business-pods/scripts/smoke.sh@@ -1,8 +1,8 @@#!/usr/bin/env bash-# Structural + functional smoke test for ruflo-business-pods v0.2.2+# Structural + functional smoke test for ruflo-business-pods v0.2.3# (ADR-164 Phase 2). Verifies:#-# 1. plugin.json declares 0.2.2 with the expected adr-164/phase-2 keywords+# 1. plugin.json declares 0.2.3 with the expected adr-164/phase-2 keywords# 2. templates/sales.json exists and validates against the pod-schema# 3. scripts/pod-tick.mjs exists, parses, and is executable# 4. Vitest suite passes (cli/__tests__/business-pod-tools.test.ts)@@ -23,10 +23,10 @@ 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.2.2 with adr-164 + phase-2 keywords"+step "1. plugin.json declares 0.2.3 with adr-164 + phase-2 keywords"v=$(grep -E '"version"' "$PLUGIN/.claude-plugin/plugin.json" | grep -oE '[0-9]+\.[0-9]+\.[0-9]+' | head -1)-if [[ "$v" != "0.2.2" ]]; then- bad "expected 0.2.2, got '$v'"+if [[ "$v" != "0.2.3" ]]; then+ bad "expected 0.2.3, got '$v'"elsemiss=""for k in ruflo pods business sales adr-164 adr-164.1 phase-2 pod-template pod-tick budget-reservation dry-run-default agent-registry-resolution; dodiff --git a/plugins/ruflo-chatgpt-federation/.claude-plugin/plugin.json b/plugins/ruflo-chatgpt-federation/.claude-plugin/plugin.jsonindex b6cbbbce0f..1cfb4a8ea5 100644--- a/plugins/ruflo-chatgpt-federation/.claude-plugin/plugin.json+++ b/plugins/ruflo-chatgpt-federation/.claude-plugin/plugin.json@@ -1,7 +1,7 @@{"name": "ruflo-chatgpt-federation","description": "Dedicated ChatGPT Federation MCP publisher with isolated Nostr signing-key custody, OAuth-scoped publishing, and signed public-channel coordination over the Ruflo relay. As a mod (ADR-445 pattern): a tighten-only tool guard, a local slash command, and a status file the console shows.",- "version": "0.2.2",+ "version": "0.2.3","author": {"name": "ruvnet","url": "https://github.com/ruvnet"diff --git a/plugins/ruflo-chatgpt-federation/hooks/screen.ts b/plugins/ruflo-chatgpt-federation/hooks/screen.tsindex 63587c2961..60f3ed4268 100644--- a/plugins/ruflo-chatgpt-federation/hooks/screen.ts+++ b/plugins/ruflo-chatgpt-federation/hooks/screen.ts@@ -144,8 +144,15 @@ function matches(name: string, re: RegExp, text: string): boolean {return false}+/**+ * The text textsOf appends when it had to drop input (a node, character or per-string budget ran out). It is never matched against a rule:+ * `names` reports it as a finding of its own, so every guard that asks "is there a secret in these texts" refuses what it could not read in full.+ */+export const TRUNCATED = 'ruflo-screen: input exceeded the screening budget'+export const TRUNCATED_NAME = 'input too large to screen'+/** Names of the rules that match `text` (already bare'd). A rule named 'key assignment' is judged by assignmentSecret, whatever its regex. */-export const names = (rules: Rules, text: string) => rules.filter(([name, re]) => matches(name, re, text)).map(([name]) => name)+export const names = (rules: Rules, text: string) => text === TRUNCATED ? [TRUNCATED_NAME] : rules.filter(([name, re]) => matches(name, re, text)).map(([name]) => name)export type Findings = { readonly secrets: readonly string[]; readonly injection: readonly string[] }@@ -187,33 +194,46 @@ function windows(text: string, out: string[]): void {* breadth-first (siblings before depth, so a long list cannot hide a nested value). A string under an object key comes back as `key=value`,* so a secret-named key is judged with its value; a key whose value is not a string is returned bare. Strings longer than the screen window* come back as overlapping windows; one over `perString` keeps its head and tail. Work is bounded by `nodes` slots and `chars` characters.+ * Anything dropped (slots or characters ran out, or a string lost its middle) is reported by a final TRUNCATED text, which `names` and+ * `hasSecretIn` count as a finding, so the screen fails closed instead of passing what it did not read.*/export function textsOf(input: unknown, limits: TextLimits = {}): string[] {const out: string[] = []let slots = limits.nodes ?? NODESlet chars = limits.chars ?? CHARSconst perString = limits.perString ?? PER_STRING+ let truncated = falseconst take = (text: string): void => {- if (chars <= 0) return+ if (chars <= 0) {+ truncated = true+ return+ }if (text.length <= Math.min(perString, chars)) {chars -= text.lengthwindows(text, out)return}+ truncated = trueconst half = Math.floor(Math.min(perString, chars) / 2)chars -= 2 * halfwindows(text.slice(0, half), out)windows(text.slice(-half), out)}const queue: unknown[] = [input]- for (let head = 0; head < queue.length && chars > 0; head++) {+ let head = 0+ for (; head < queue.length && chars > 0; head++) {const node = queue[head]if (typeof node === 'string') take(node)else if (Array.isArray(node)) {- for (let i = 0; i < node.length && slots > 0; i++, slots--) if (i in node) queue.push(node[i])+ let i = 0+ for (; i < node.length && slots > 0; i++, slots--) if (i in node) queue.push(node[i])+ if (i < node.length) truncated = true} else if (typeof node === 'object' && node !== null) {for (const k in node) {- if (slots-- <= 0) break+ if (slots-- <= 0) {+ truncated = true+ break+ }if (!Object.prototype.hasOwnProperty.call(node, k)) continueconst v = (node as Record<string, unknown>)[k]if (typeof v === 'string') queue.push(k + '=' + v)@@ -224,6 +244,8 @@ export function textsOf(input: unknown, limits: TextLimits = {}): string[] {}}}+ if (queue.length > head) truncated = true+ if (truncated) out.push(TRUNCATED)return out}// END SHARED SCREENdiff --git a/plugins/ruflo-chatgpt-federation/scripts/smoke.sh b/plugins/ruflo-chatgpt-federation/scripts/smoke.shindex efdb66bafc..ab7a8410d7 100755--- a/plugins/ruflo-chatgpt-federation/scripts/smoke.sh+++ b/plugins/ruflo-chatgpt-federation/scripts/smoke.sh@@ -1,5 +1,5 @@#!/usr/bin/env bash-# Structural smoke test for ruflo-chatgpt-federation v0.2.2: the plugin manifest and the mod (ADR-445 pattern).+# Structural smoke test for ruflo-chatgpt-federation v0.2.3: the plugin manifest and the mod (ADR-445 pattern).set -uROOT="$(cd "$(dirname "$0")/.." && pwd)"PASS=0@@ -8,10 +8,10 @@ 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 version 0.2.2 and the mod keywords"+step "1. plugin.json declares version 0.2.3 and the mod keywords"v=$(grep -E '"version"[[:space:]]*:' "$ROOT/.claude-plugin/plugin.json" | grep -oE '[0-9]+\.[0-9]+\.[0-9]+' | head -1)-if [[ "$v" != "0.2.2" ]]; then- bad "expected 0.2.2, got '$v'"+if [[ "$v" != "0.2.3" ]]; then+ bad "expected 0.2.3, got '$v'"elsemiss=""for k in mod function-hooks guard; do grep -q "\"$k\"" "$ROOT/.claude-plugin/plugin.json" || miss="$miss $k"; donediff --git a/plugins/ruflo-console/.claude-plugin/plugin.json b/plugins/ruflo-console/.claude-plugin/plugin.jsonindex fa7e57baa6..a7a94466e7 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.33.5",+ "version": "0.33.6","author": {"name": "ruvnet","url": "https://github.com/ruvnet"diff --git a/plugins/ruflo-console/hooks/screen.ts b/plugins/ruflo-console/hooks/screen.tsindex a88144d98c..69f6f7201b 100644--- a/plugins/ruflo-console/hooks/screen.ts+++ b/plugins/ruflo-console/hooks/screen.ts@@ -146,8 +146,15 @@ function matches(name: string, re: RegExp, text: string): boolean {return false}+/**+ * The text textsOf appends when it had to drop input (a node, character or per-string budget ran out). It is never matched against a rule:+ * `names` reports it as a finding of its own, so every guard that asks "is there a secret in these texts" refuses what it could not read in full.+ */+export const TRUNCATED = 'ruflo-screen: input exceeded the screening budget'+export const TRUNCATED_NAME = 'input too large to screen'+/** Names of the rules that match `text` (already bare'd). A rule named 'key assignment' is judged by assignmentSecret, whatever its regex. */-export const names = (rules: Rules, text: string) => rules.filter(([name, re]) => matches(name, re, text)).map(([name]) => name)+export const names = (rules: Rules, text: string) => text === TRUNCATED ? [TRUNCATED_NAME] : rules.filter(([name, re]) => matches(name, re, text)).map(([name]) => name)export type Findings = { readonly secrets: readonly string[]; readonly injection: readonly string[] }@@ -189,33 +196,46 @@ function windows(text: string, out: string[]): void {* breadth-first (siblings before depth, so a long list cannot hide a nested value). A string under an object key comes back as `key=value`,* so a secret-named key is judged with its value; a key whose value is not a string is returned bare. Strings longer than the screen window* come back as overlapping windows; one over `perString` keeps its head and tail. Work is bounded by `nodes` slots and `chars` characters.+ * Anything dropped (slots or characters ran out, or a string lost its middle) is reported by a final TRUNCATED text, which `names` and+ * `hasSecretIn` count as a finding, so the screen fails closed instead of passing what it did not read.*/export function textsOf(input: unknown, limits: TextLimits = {}): string[] {const out: string[] = []let slots = limits.nodes ?? NODESlet chars = limits.chars ?? CHARSconst perString = limits.perString ?? PER_STRING+ let truncated = falseconst take = (text: string): void => {- if (chars <= 0) return+ if (chars <= 0) {+ truncated = true+ return+ }if (text.length <= Math.min(perString, chars)) {chars -= text.lengthwindows(text, out)return}+ truncated = trueconst half = Math.floor(Math.min(perString, chars) / 2)chars -= 2 * halfwindows(text.slice(0, half), out)windows(text.slice(-half), out)}const queue: unknown[] = [input]- for (let head = 0; head < queue.length && chars > 0; head++) {+ let head = 0+ for (; head < queue.length && chars > 0; head++) {const node = queue[head]if (typeof node === 'string') take(node)else if (Array.isArray(node)) {- for (let i = 0; i < node.length && slots > 0; i++, slots--) if (i in node) queue.push(node[i])+ let i = 0+ for (; i < node.length && slots > 0; i++, slots--) if (i in node) queue.push(node[i])+ if (i < node.length) truncated = true} else if (typeof node === 'object' && node !== null) {for (const k in node) {- if (slots-- <= 0) break+ if (slots-- <= 0) {+ truncated = true+ break+ }if (!Object.prototype.hasOwnProperty.call(node, k)) continueconst v = (node as Record<string, unknown>)[k]if (typeof v === 'string') queue.push(k + '=' + v)@@ -226,6 +246,8 @@ export function textsOf(input: unknown, limits: TextLimits = {}): string[] {}}}+ if (queue.length > head) truncated = true+ if (truncated) out.push(TRUNCATED)return out}// END SHARED SCREENdiff --git a/plugins/ruflo-console/hooks/version.ts b/plugins/ruflo-console/hooks/version.tsindex cac7c25dcd..80d458030b 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.33.5'+export const CONSOLE_VERSION = '0.33.6'diff --git a/plugins/ruflo-console/scripts/smoke.sh b/plugins/ruflo-console/scripts/smoke.shindex 7c1059d132..8512b48649 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.33.5"+step "1. plugin.json declares ruflo-console 0.33.6"grep -q '"name": "ruflo-console"' "$ROOT/.claude-plugin/plugin.json" \- && grep -q '"version": "0.33.5"' "$ROOT/.claude-plugin/plugin.json" && ok || bad "name/version"+ && grep -q '"version": "0.33.6"' "$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-daa/.claude-plugin/plugin.json b/plugins/ruflo-daa/.claude-plugin/plugin.jsonindex 183dd72092..8bcc729de8 100644--- a/plugins/ruflo-daa/.claude-plugin/plugin.json+++ b/plugins/ruflo-daa/.claude-plugin/plugin.json@@ -1,7 +1,7 @@{"name": "ruflo-daa","description": "Dynamic Agentic Architecture β 8 daa_* MCP tools for adaptive agents (create/adapt), cognitive patterns, workflows (create/execute), knowledge sharing, and learning/performance metrics. Feeds the JUDGE phase of the 4-step intelligence pipeline.",- "version": "0.3.1",+ "version": "0.3.2","author": {"name": "ruvnet","url": "https://github.com/ruvnet"diff --git a/plugins/ruflo-daa/hooks/screen.ts b/plugins/ruflo-daa/hooks/screen.tsindex 58d52fdaaf..5db642aed6 100644--- a/plugins/ruflo-daa/hooks/screen.ts+++ b/plugins/ruflo-daa/hooks/screen.ts@@ -144,8 +144,15 @@ function matches(name: string, re: RegExp, text: string): boolean {return false}+/**+ * The text textsOf appends when it had to drop input (a node, character or per-string budget ran out). It is never matched against a rule:+ * `names` reports it as a finding of its own, so every guard that asks "is there a secret in these texts" refuses what it could not read in full.+ */+export const TRUNCATED = 'ruflo-screen: input exceeded the screening budget'+export const TRUNCATED_NAME = 'input too large to screen'+/** Names of the rules that match `text` (already bare'd). A rule named 'key assignment' is judged by assignmentSecret, whatever its regex. */-export const names = (rules: Rules, text: string) => rules.filter(([name, re]) => matches(name, re, text)).map(([name]) => name)+export const names = (rules: Rules, text: string) => text === TRUNCATED ? [TRUNCATED_NAME] : rules.filter(([name, re]) => matches(name, re, text)).map(([name]) => name)export type Findings = { readonly secrets: readonly string[]; readonly injection: readonly string[] }@@ -187,33 +194,46 @@ function windows(text: string, out: string[]): void {* breadth-first (siblings before depth, so a long list cannot hide a nested value). A string under an object key comes back as `key=value`,* so a secret-named key is judged with its value; a key whose value is not a string is returned bare. Strings longer than the screen window* come back as overlapping windows; one over `perString` keeps its head and tail. Work is bounded by `nodes` slots and `chars` characters.+ * Anything dropped (slots or characters ran out, or a string lost its middle) is reported by a final TRUNCATED text, which `names` and+ * `hasSecretIn` count as a finding, so the screen fails closed instead of passing what it did not read.*/export function textsOf(input: unknown, limits: TextLimits = {}): string[] {const out: string[] = []let slots = limits.nodes ?? NODESlet chars = limits.chars ?? CHARSconst perString = limits.perString ?? PER_STRING+ let truncated = falseconst take = (text: string): void => {- if (chars <= 0) return+ if (chars <= 0) {+ truncated = true+ return+ }if (text.length <= Math.min(perString, chars)) {chars -= text.lengthwindows(text, out)return}+ truncated = trueconst half = Math.floor(Math.min(perString, chars) / 2)chars -= 2 * halfwindows(text.slice(0, half), out)windows(text.slice(-half), out)}const queue: unknown[] = [input]- for (let head = 0; head < queue.length && chars > 0; head++) {+ let head = 0+ for (; head < queue.length && chars > 0; head++) {const node = queue[head]if (typeof node === 'string') take(node)else if (Array.isArray(node)) {- for (let i = 0; i < node.length && slots > 0; i++, slots--) if (i in node) queue.push(node[i])+ let i = 0+ for (; i < node.length && slots > 0; i++, slots--) if (i in node) queue.push(node[i])+ if (i < node.length) truncated = true} else if (typeof node === 'object' && node !== null) {for (const k in node) {- if (slots-- <= 0) break+ if (slots-- <= 0) {+ truncated = true+ break+ }if (!Object.prototype.hasOwnProperty.call(node, k)) continueconst v = (node as Record<string, unknown>)[k]if (typeof v === 'string') queue.push(k + '=' + v)@@ -224,6 +244,8 @@ export function textsOf(input: unknown, limits: TextLimits = {}): string[] {}}}+ if (queue.length > head) truncated = true+ if (truncated) out.push(TRUNCATED)return out}// END SHARED SCREENdiff --git a/plugins/ruflo-daa/scripts/smoke.sh b/plugins/ruflo-daa/scripts/smoke.shindex bba21f8e10..07ca18f521 100755--- a/plugins/ruflo-daa/scripts/smoke.sh+++ b/plugins/ruflo-daa/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.1 with new keywords"+step "1. plugin.json declares 0.3.2 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.1" ]]; then bad "expected 0.3.1, got '$v'"; else+if [[ "$v" != "0.3.2" ]]; then bad "expected 0.3.2, got '$v'"; elsemiss=""for k in cognitive-patterns workflows mcp; dogrep -q "\"$k\"" "$ROOT/.claude-plugin/plugin.json" || miss="$miss $k"diff --git a/plugins/ruflo-ddd/.claude-plugin/plugin.json b/plugins/ruflo-ddd/.claude-plugin/plugin.jsonindex d89e13f877..595187e06b 100644--- a/plugins/ruflo-ddd/.claude-plugin/plugin.json+++ b/plugins/ruflo-ddd/.claude-plugin/plugin.json@@ -1,7 +1,7 @@{"name": "ruflo-ddd","description": "Domain-Driven Design scaffolding β bounded contexts, aggregate roots, domain events, value objects, repositories, and anti-corruption layers; navigable domain graph stored in AgentDB",- "version": "0.3.2",+ "version": "0.3.3","author": {"name": "ruvnet","url": "https://github.com/ruvnet"diff --git a/plugins/ruflo-ddd/hooks/screen.ts b/plugins/ruflo-ddd/hooks/screen.tsindex 58d52fdaaf..5db642aed6 100644--- a/plugins/ruflo-ddd/hooks/screen.ts+++ b/plugins/ruflo-ddd/hooks/screen.ts@@ -144,8 +144,15 @@ function matches(name: string, re: RegExp, text: string): boolean {return false}+/**+ * The text textsOf appends when it had to drop input (a node, character or per-string budget ran out). It is never matched against a rule:+ * `names` reports it as a finding of its own, so every guard that asks "is there a secret in these texts" refuses what it could not read in full.+ */+export const TRUNCATED = 'ruflo-screen: input exceeded the screening budget'+export const TRUNCATED_NAME = 'input too large to screen'+/** Names of the rules that match `text` (already bare'd). A rule named 'key assignment' is judged by assignmentSecret, whatever its regex. */-export const names = (rules: Rules, text: string) => rules.filter(([name, re]) => matches(name, re, text)).map(([name]) => name)+export const names = (rules: Rules, text: string) => text === TRUNCATED ? [TRUNCATED_NAME] : rules.filter(([name, re]) => matches(name, re, text)).map(([name]) => name)export type Findings = { readonly secrets: readonly string[]; readonly injection: readonly string[] }@@ -187,33 +194,46 @@ function windows(text: string, out: string[]): void {* breadth-first (siblings before depth, so a long list cannot hide a nested value). A string under an object key comes back as `key=value`,* so a secret-named key is judged with its value; a key whose value is not a string is returned bare. Strings longer than the screen window* come back as overlapping windows; one over `perString` keeps its head and tail. Work is bounded by `nodes` slots and `chars` characters.+ * Anything dropped (slots or characters ran out, or a string lost its middle) is reported by a final TRUNCATED text, which `names` and+ * `hasSecretIn` count as a finding, so the screen fails closed instead of passing what it did not read.*/export function textsOf(input: unknown, limits: TextLimits = {}): string[] {const out: string[] = []let slots = limits.nodes ?? NODESlet chars = limits.chars ?? CHARSconst perString = limits.perString ?? PER_STRING+ let truncated = falseconst take = (text: string): void => {- if (chars <= 0) return+ if (chars <= 0) {+ truncated = true+ return+ }if (text.length <= Math.min(perString, chars)) {chars -= text.lengthwindows(text, out)return}+ truncated = trueconst half = Math.floor(Math.min(perString, chars) / 2)chars -= 2 * halfwindows(text.slice(0, half), out)windows(text.slice(-half), out)}const queue: unknown[] = [input]- for (let head = 0; head < queue.length && chars > 0; head++) {+ let head = 0+ for (; head < queue.length && chars > 0; head++) {const node = queue[head]if (typeof node === 'string') take(node)else if (Array.isArray(node)) {- for (let i = 0; i < node.length && slots > 0; i++, slots--) if (i in node) queue.push(node[i])+ let i = 0+ for (; i < node.length && slots > 0; i++, slots--) if (i in node) queue.push(node[i])+ if (i < node.length) truncated = true} else if (typeof node === 'object' && node !== null) {for (const k in node) {- if (slots-- <= 0) break+ if (slots-- <= 0) {+ truncated = true+ break+ }if (!Object.prototype.hasOwnProperty.call(node, k)) continueconst v = (node as Record<string, unknown>)[k]if (typeof v === 'string') queue.push(k + '=' + v)@@ -224,6 +244,8 @@ export function textsOf(input: unknown, limits: TextLimits = {}): string[] {}}}+ if (queue.length > head) truncated = true+ if (truncated) out.push(TRUNCATED)return out}// END SHARED SCREENdiff --git a/plugins/ruflo-ddd/scripts/smoke.sh b/plugins/ruflo-ddd/scripts/smoke.shindex 06cc4521cb..9338123106 100755--- a/plugins/ruflo-ddd/scripts/smoke.sh+++ b/plugins/ruflo-ddd/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.2 with new keywords"+step "1. plugin.json declares 0.3.3 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.2" ]]; then bad "expected 0.3.2, got '$v'"; else+if [[ "$v" != "0.3.3" ]]; then bad "expected 0.3.3, got '$v'"; elsemiss=""for k in acl value-objects repositories mcp; dogrep -q "\"$k\"" "$ROOT/.claude-plugin/plugin.json" || miss="$miss $k"diff --git a/plugins/ruflo-deepseek-harness/.claude-plugin/plugin.json b/plugins/ruflo-deepseek-harness/.claude-plugin/plugin.jsonindex 8a77e9b1e9..be81c0c996 100644--- a/plugins/ruflo-deepseek-harness/.claude-plugin/plugin.json+++ b/plugins/ruflo-deepseek-harness/.claude-plugin/plugin.json@@ -1,7 +1,7 @@{"name": "ruflo-deepseek-harness","description": "DeepSeek model harness for ruflo β agents, commands, scripts, and skills for running and evaluating DeepSeek-backed workflows within the ruflo swarm.",- "version": "0.2.2",+ "version": "0.2.3","author": {"name": "ruvnet","url": "https://github.com/ruvnet"diff --git a/plugins/ruflo-deepseek-harness/hooks/screen.ts b/plugins/ruflo-deepseek-harness/hooks/screen.tsindex 58d52fdaaf..5db642aed6 100644--- a/plugins/ruflo-deepseek-harness/hooks/screen.ts+++ b/plugins/ruflo-deepseek-harness/hooks/screen.ts@@ -144,8 +144,15 @@ function matches(name: string, re: RegExp, text: string): boolean {return false}+/**+ * The text textsOf appends when it had to drop input (a node, character or per-string budget ran out). It is never matched against a rule:+ * `names` reports it as a finding of its own, so every guard that asks "is there a secret in these texts" refuses what it could not read in full.+ */+export const TRUNCATED = 'ruflo-screen: input exceeded the screening budget'+export const TRUNCATED_NAME = 'input too large to screen'+/** Names of the rules that match `text` (already bare'd). A rule named 'key assignment' is judged by assignmentSecret, whatever its regex. */-export const names = (rules: Rules, text: string) => rules.filter(([name, re]) => matches(name, re, text)).map(([name]) => name)+export const names = (rules: Rules, text: string) => text === TRUNCATED ? [TRUNCATED_NAME] : rules.filter(([name, re]) => matches(name, re, text)).map(([name]) => name)export type Findings = { readonly secrets: readonly string[]; readonly injection: readonly string[] }@@ -187,33 +194,46 @@ function windows(text: string, out: string[]): void {* breadth-first (siblings before depth, so a long list cannot hide a nested value). A string under an object key comes back as `key=value`,* so a secret-named key is judged with its value; a key whose value is not a string is returned bare. Strings longer than the screen window* come back as overlapping windows; one over `perString` keeps its head and tail. Work is bounded by `nodes` slots and `chars` characters.+ * Anything dropped (slots or characters ran out, or a string lost its middle) is reported by a final TRUNCATED text, which `names` and+ * `hasSecretIn` count as a finding, so the screen fails closed instead of passing what it did not read.*/export function textsOf(input: unknown, limits: TextLimits = {}): string[] {const out: string[] = []let slots = limits.nodes ?? NODESlet chars = limits.chars ?? CHARSconst perString = limits.perString ?? PER_STRING+ let truncated = falseconst take = (text: string): void => {- if (chars <= 0) return+ if (chars <= 0) {+ truncated = true+ return+ }if (text.length <= Math.min(perString, chars)) {chars -= text.lengthwindows(text, out)return}+ truncated = trueconst half = Math.floor(Math.min(perString, chars) / 2)chars -= 2 * halfwindows(text.slice(0, half), out)windows(text.slice(-half), out)}const queue: unknown[] = [input]- for (let head = 0; head < queue.length && chars > 0; head++) {+ let head = 0+ for (; head < queue.length && chars > 0; head++) {const node = queue[head]if (typeof node === 'string') take(node)else if (Array.isArray(node)) {- for (let i = 0; i < node.length && slots > 0; i++, slots--) if (i in node) queue.push(node[i])+ let i = 0+ for (; i < node.length && slots > 0; i++, slots--) if (i in node) queue.push(node[i])+ if (i < node.length) truncated = true} else if (typeof node === 'object' && node !== null) {for (const k in node) {- if (slots-- <= 0) break+ if (slots-- <= 0) {+ truncated = true+ break+ }if (!Object.prototype.hasOwnProperty.call(node, k)) continueconst v = (node as Record<string, unknown>)[k]if (typeof v === 'string') queue.push(k + '=' + v)@@ -224,6 +244,8 @@ export function textsOf(input: unknown, limits: TextLimits = {}): string[] {}}}+ if (queue.length > head) truncated = true+ if (truncated) out.push(TRUNCATED)return out}// END SHARED SCREENdiff --git a/plugins/ruflo-deepseek-harness/scripts/smoke.sh b/plugins/ruflo-deepseek-harness/scripts/smoke.shindex bcdd269298..9422ef4507 100755--- a/plugins/ruflo-deepseek-harness/scripts/smoke.sh+++ b/plugins/ruflo-deepseek-harness/scripts/smoke.sh@@ -9,8 +9,8 @@ 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 version 0.2.2"-grep -q '"version": "0.2.2"' "$ROOT/.claude-plugin/plugin.json" && ok || bad "version is not 0.2.2"+step "1. plugin.json declares version 0.2.3"+grep -q '"version": "0.2.3"' "$ROOT/.claude-plugin/plugin.json" && ok || bad "version is not 0.2.3"step "2. scripts, both skills, the command and the agent are present"miss=""diff --git a/plugins/ruflo-docs/.claude-plugin/plugin.json b/plugins/ruflo-docs/.claude-plugin/plugin.jsonindex a055f63e74..cea3382faa 100644--- a/plugins/ruflo-docs/.claude-plugin/plugin.json+++ b/plugins/ruflo-docs/.claude-plugin/plugin.json@@ -1,7 +1,7 @@{"name": "ruflo-docs","description": "Documentation generation, API docs (JSDoc/TSDoc/OpenAPI), and drift detection β drives the `document` background worker via hooks_worker-dispatch; uses Haiku model for cost-efficient docs work",- "version": "0.3.1",+ "version": "0.3.2","author": {"name": "ruvnet","url": "https://github.com/ruvnet"diff --git a/plugins/ruflo-docs/hooks/screen.ts b/plugins/ruflo-docs/hooks/screen.tsindex 58d52fdaaf..5db642aed6 100644--- a/plugins/ruflo-docs/hooks/screen.ts+++ b/plugins/ruflo-docs/hooks/screen.ts@@ -144,8 +144,15 @@ function matches(name: string, re: RegExp, text: string): boolean {return false}+/**+ * The text textsOf appends when it had to drop input (a node, character or per-string budget ran out). It is never matched against a rule:+ * `names` reports it as a finding of its own, so every guard that asks "is there a secret in these texts" refuses what it could not read in full.+ */+export const TRUNCATED = 'ruflo-screen: input exceeded the screening budget'+export const TRUNCATED_NAME = 'input too large to screen'+/** Names of the rules that match `text` (already bare'd). A rule named 'key assignment' is judged by assignmentSecret, whatever its regex. */-export const names = (rules: Rules, text: string) => rules.filter(([name, re]) => matches(name, re, text)).map(([name]) => name)+export const names = (rules: Rules, text: string) => text === TRUNCATED ? [TRUNCATED_NAME] : rules.filter(([name, re]) => matches(name, re, text)).map(([name]) => name)export type Findings = { readonly secrets: readonly string[]; readonly injection: readonly string[] }@@ -187,33 +194,46 @@ function windows(text: string, out: string[]): void {* breadth-first (siblings before depth, so a long list cannot hide a nested value). A string under an object key comes back as `key=value`,* so a secret-named key is judged with its value; a key whose value is not a string is returned bare. Strings longer than the screen window* come back as overlapping windows; one over `perString` keeps its head and tail. Work is bounded by `nodes` slots and `chars` characters.+ * Anything dropped (slots or characters ran out, or a string lost its middle) is reported by a final TRUNCATED text, which `names` and+ * `hasSecretIn` count as a finding, so the screen fails closed instead of passing what it did not read.*/export function textsOf(input: unknown, limits: TextLimits = {}): string[] {const out: string[] = []let slots = limits.nodes ?? NODESlet chars = limits.chars ?? CHARSconst perString = limits.perString ?? PER_STRING+ let truncated = falseconst take = (text: string): void => {- if (chars <= 0) return+ if (chars <= 0) {+ truncated = true+ return+ }if (text.length <= Math.min(perString, chars)) {chars -= text.lengthwindows(text, out)return}+ truncated = trueconst half = Math.floor(Math.min(perString, chars) / 2)chars -= 2 * halfwindows(text.slice(0, half), out)windows(text.slice(-half), out)}const queue: unknown[] = [input]- for (let head = 0; head < queue.length && chars > 0; head++) {+ let head = 0+ for (; head < queue.length && chars > 0; head++) {const node = queue[head]if (typeof node === 'string') take(node)else if (Array.isArray(node)) {- for (let i = 0; i < node.length && slots > 0; i++, slots--) if (i in node) queue.push(node[i])+ let i = 0+ for (; i < node.length && slots > 0; i++, slots--) if (i in node) queue.push(node[i])+ if (i < node.length) truncated = true} else if (typeof node === 'object' && node !== null) {for (const k in node) {- if (slots-- <= 0) break+ if (slots-- <= 0) {+ truncated = true+ break+ }if (!Object.prototype.hasOwnProperty.call(node, k)) continueconst v = (node as Record<string, unknown>)[k]if (typeof v === 'string') queue.push(k + '=' + v)@@ -224,6 +244,8 @@ export function textsOf(input: unknown, limits: TextLimits = {}): string[] {}}}+ if (queue.length > head) truncated = true+ if (truncated) out.push(TRUNCATED)return out}// END SHARED SCREENdiff --git a/plugins/ruflo-docs/scripts/smoke.sh b/plugins/ruflo-docs/scripts/smoke.shindex 47bd0d18a3..5c81ed0ee9 100755--- a/plugins/ruflo-docs/scripts/smoke.sh+++ b/plugins/ruflo-docs/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.1 with new keywords"+step "1. plugin.json declares 0.3.2 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.1" ]]; then bad "expected 0.3.1, got '$v'"; else+if [[ "$v" != "0.3.2" ]]; then bad "expected 0.3.2, got '$v'"; elsemiss=""for k in jsdoc openapi mcp; dogrep -q "\"$k\"" "$ROOT/.claude-plugin/plugin.json" || miss="$miss $k"diff --git a/plugins/ruflo-federation/.claude-plugin/plugin.json b/plugins/ruflo-federation/.claude-plugin/plugin.jsonindex 401b4b0b8d..365760e822 100644--- a/plugins/ruflo-federation/.claude-plugin/plugin.json+++ b/plugins/ruflo-federation/.claude-plugin/plugin.json@@ -1,7 +1,7 @@{"name": "ruflo-federation","description": "Cross-installation agent federation with zero-trust security, peer discovery, consensus-based task routing, and per-call budget circuit breaker (ADR-097)",- "version": "0.3.3",+ "version": "0.3.4","author": {"name": "ruvnet","url": "https://github.com/ruvnet"diff --git a/plugins/ruflo-federation/hooks/screen.ts b/plugins/ruflo-federation/hooks/screen.tsindex 58d52fdaaf..5db642aed6 100644--- a/plugins/ruflo-federation/hooks/screen.ts+++ b/plugins/ruflo-federation/hooks/screen.ts@@ -144,8 +144,15 @@ function matches(name: string, re: RegExp, text: string): boolean {return false}+/**+ * The text textsOf appends when it had to drop input (a node, character or per-string budget ran out). It is never matched against a rule:+ * `names` reports it as a finding of its own, so every guard that asks "is there a secret in these texts" refuses what it could not read in full.+ */+export const TRUNCATED = 'ruflo-screen: input exceeded the screening budget'+export const TRUNCATED_NAME = 'input too large to screen'+/** Names of the rules that match `text` (already bare'd). A rule named 'key assignment' is judged by assignmentSecret, whatever its regex. */-export const names = (rules: Rules, text: string) => rules.filter(([name, re]) => matches(name, re, text)).map(([name]) => name)+export const names = (rules: Rules, text: string) => text === TRUNCATED ? [TRUNCATED_NAME] : rules.filter(([name, re]) => matches(name, re, text)).map(([name]) => name)export type Findings = { readonly secrets: readonly string[]; readonly injection: readonly string[] }@@ -187,33 +194,46 @@ function windows(text: string, out: string[]): void {* breadth-first (siblings before depth, so a long list cannot hide a nested value). A string under an object key comes back as `key=value`,* so a secret-named key is judged with its value; a key whose value is not a string is returned bare. Strings longer than the screen window* come back as overlapping windows; one over `perString` keeps its head and tail. Work is bounded by `nodes` slots and `chars` characters.+ * Anything dropped (slots or characters ran out, or a string lost its middle) is reported by a final TRUNCATED text, which `names` and+ * `hasSecretIn` count as a finding, so the screen fails closed instead of passing what it did not read.*/export function textsOf(input: unknown, limits: TextLimits = {}): string[] {const out: string[] = []let slots = limits.nodes ?? NODESlet chars = limits.chars ?? CHARSconst perString = limits.perString ?? PER_STRING+ let truncated = falseconst take = (text: string): void => {- if (chars <= 0) return+ if (chars <= 0) {+ truncated = true+ return+ }if (text.length <= Math.min(perString, chars)) {chars -= text.lengthwindows(text, out)return}+ truncated = trueconst half = Math.floor(Math.min(perString, chars) / 2)chars -= 2 * halfwindows(text.slice(0, half), out)windows(text.slice(-half), out)}const queue: unknown[] = [input]- for (let head = 0; head < queue.length && chars > 0; head++) {+ let head = 0+ for (; head < queue.length && chars > 0; head++) {const node = queue[head]if (typeof node === 'string') take(node)else if (Array.isArray(node)) {- for (let i = 0; i < node.length && slots > 0; i++, slots--) if (i in node) queue.push(node[i])+ let i = 0+ for (; i < node.length && slots > 0; i++, slots--) if (i in node) queue.push(node[i])+ if (i < node.length) truncated = true} else if (typeof node === 'object' && node !== null) {for (const k in node) {- if (slots-- <= 0) break+ if (slots-- <= 0) {+ truncated = true+ break+ }if (!Object.prototype.hasOwnProperty.call(node, k)) continueconst v = (node as Record<string, unknown>)[k]if (typeof v === 'string') queue.push(k + '=' + v)@@ -224,6 +244,8 @@ export function textsOf(input: unknown, limits: TextLimits = {}): string[] {}}}+ if (queue.length > head) truncated = true+ if (truncated) out.push(TRUNCATED)return out}// END SHARED SCREENdiff --git a/plugins/ruflo-federation/scripts/smoke.sh b/plugins/ruflo-federation/scripts/smoke.shindex a861b695ee..14dc4081fc 100755--- a/plugins/ruflo-federation/scripts/smoke.sh+++ b/plugins/ruflo-federation/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.3 with new keywords"+step "1. plugin.json declares 0.3.4 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.3" ]]; then bad "expected 0.3.3, got '$v'"; else+if [[ "$v" != "0.3.4" ]]; then bad "expected 0.3.4, got '$v'"; elsemiss=""for k in mcp pii-pipeline audit-log; dogrep -q "\"$k\"" "$ROOT/.claude-plugin/plugin.json" || miss="$miss $k"diff --git a/plugins/ruflo-goals/.claude-plugin/plugin.json b/plugins/ruflo-goals/.claude-plugin/plugin.jsonindex 5d434723ed..7ca614d15c 100644--- a/plugins/ruflo-goals/.claude-plugin/plugin.json+++ b/plugins/ruflo-goals/.claude-plugin/plugin.json@@ -1,7 +1,7 @@{"name": "ruflo-goals","description": "Long-horizon goal planning, deep research orchestration, and adaptive replanning using GOAP algorithms",- "version": "0.4.1",+ "version": "0.4.2","author": {"name": "ruvnet","url": "https://github.com/ruvnet"diff --git a/plugins/ruflo-goals/README.md b/plugins/ruflo-goals/README.mdindex 69df4d65d4..3feac87b92 100644--- a/plugins/ruflo-goals/README.md+++ b/plugins/ruflo-goals/README.md@@ -96,7 +96,7 @@ bash plugins/ruflo-goals/scripts/smoke.sh# Expected: "12 passed, 0 failed"```-## As a mod (0.4.1)+## As a mod (0.4.2)A function-hook mod ships beside the skills (ADR-445 pattern). Needs a Claude Code with mods (2.1.287+); older builds ignore it. No network, no process spawning: it only tightens calls to this plugin's own tools and reads through tools already connected.diff --git a/plugins/ruflo-goals/hooks/screen.ts b/plugins/ruflo-goals/hooks/screen.tsindex 5e899f3944..91e444a161 100644--- a/plugins/ruflo-goals/hooks/screen.ts+++ b/plugins/ruflo-goals/hooks/screen.ts@@ -144,8 +144,15 @@ function matches(name: string, re: RegExp, text: string): boolean {return false}+/**+ * The text textsOf appends when it had to drop input (a node, character or per-string budget ran out). It is never matched against a rule:+ * `names` reports it as a finding of its own, so every guard that asks "is there a secret in these texts" refuses what it could not read in full.+ */+export const TRUNCATED = 'ruflo-screen: input exceeded the screening budget'+export const TRUNCATED_NAME = 'input too large to screen'+/** Names of the rules that match `text` (already bare'd). A rule named 'key assignment' is judged by assignmentSecret, whatever its regex. */-export const names = (rules: Rules, text: string) => rules.filter(([name, re]) => matches(name, re, text)).map(([name]) => name)+export const names = (rules: Rules, text: string) => text === TRUNCATED ? [TRUNCATED_NAME] : rules.filter(([name, re]) => matches(name, re, text)).map(([name]) => name)export type Findings = { readonly secrets: readonly string[]; readonly injection: readonly string[] }@@ -187,33 +194,46 @@ function windows(text: string, out: string[]): void {* breadth-first (siblings before depth, so a long list cannot hide a nested value). A string under an object key comes back as `key=value`,* so a secret-named key is judged with its value; a key whose value is not a string is returned bare. Strings longer than the screen window* come back as overlapping windows; one over `perString` keeps its head and tail. Work is bounded by `nodes` slots and `chars` characters.+ * Anything dropped (slots or characters ran out, or a string lost its middle) is reported by a final TRUNCATED text, which `names` and+ * `hasSecretIn` count as a finding, so the screen fails closed instead of passing what it did not read.*/export function textsOf(input: unknown, limits: TextLimits = {}): string[] {const out: string[] = []let slots = limits.nodes ?? NODESlet chars = limits.chars ?? CHARSconst perString = limits.perString ?? PER_STRING+ let truncated = falseconst take = (text: string): void => {- if (chars <= 0) return+ if (chars <= 0) {+ truncated = true+ return+ }if (text.length <= Math.min(perString, chars)) {chars -= text.lengthwindows(text, out)return}+ truncated = trueconst half = Math.floor(Math.min(perString, chars) / 2)chars -= 2 * halfwindows(text.slice(0, half), out)windows(text.slice(-half), out)}const queue: unknown[] = [input]- for (let head = 0; head < queue.length && chars > 0; head++) {+ let head = 0+ for (; head < queue.length && chars > 0; head++) {const node = queue[head]if (typeof node === 'string') take(node)else if (Array.isArray(node)) {- for (let i = 0; i < node.length && slots > 0; i++, slots--) if (i in node) queue.push(node[i])+ let i = 0+ for (; i < node.length && slots > 0; i++, slots--) if (i in node) queue.push(node[i])+ if (i < node.length) truncated = true} else if (typeof node === 'object' && node !== null) {for (const k in node) {- if (slots-- <= 0) break+ if (slots-- <= 0) {+ truncated = true+ break+ }if (!Object.prototype.hasOwnProperty.call(node, k)) continueconst v = (node as Record<string, unknown>)[k]if (typeof v === 'string') queue.push(k + '=' + v)@@ -224,6 +244,8 @@ export function textsOf(input: unknown, limits: TextLimits = {}): string[] {}}}+ if (queue.length > head) truncated = true+ if (truncated) out.push(TRUNCATED)return out}// END SHARED SCREENdiff --git a/plugins/ruflo-goals/scripts/smoke.sh b/plugins/ruflo-goals/scripts/smoke.shindex a912198db0..bb2f0fbf30 100755--- a/plugins/ruflo-goals/scripts/smoke.sh+++ b/plugins/ruflo-goals/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.4.1 with new keywords"+step "1. plugin.json declares 0.4.2 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.4.1" ]]; then bad "expected 0.4.1, got '$v'"; else+if [[ "$v" != "0.4.2" ]]; then bad "expected 0.4.2, got '$v'"; elsemiss=""for k in mcp evidence-grading legacy-namespaces; dogrep -q "\"$k\"" "$ROOT/.claude-plugin/plugin.json" || miss="$miss $k"diff --git a/plugins/ruflo-graph-intelligence/.claude-plugin/plugin.json b/plugins/ruflo-graph-intelligence/.claude-plugin/plugin.jsonindex 8b8cf7683a..c985cb9aae 100644--- a/plugins/ruflo-graph-intelligence/.claude-plugin/plugin.json+++ b/plugins/ruflo-graph-intelligence/.claude-plugin/plugin.json@@ -1,7 +1,7 @@{"name": "ruflo-graph-intelligence","description": "RuFlo Graph Intelligence Engine β real-time relationship intelligence with complexity-aware execution. Single-entry personalized PageRank, streaming delta updates, witness-signed reasoning artifacts, federation-distributable PR vectors. Built on [email protected].",- "version": "0.2.0-alpha.2",+ "version": "0.2.0-alpha.3","author": {"name": "ruvnet","url": "https://github.com/ruvnet"diff --git a/plugins/ruflo-graph-intelligence/README.md b/plugins/ruflo-graph-intelligence/README.mdindex 7a5a30686f..49632a74a2 100644--- a/plugins/ruflo-graph-intelligence/README.md+++ b/plugins/ruflo-graph-intelligence/README.md@@ -2,7 +2,7 @@Graph Intelligence Engine for RuFlo: single-entry personalized PageRank, streaming delta updates and witness-signed reasoning artifacts (ADR-123), built on sublinear-time-solver. Library: `npm test`, `npm run build`.-## As a mod (0.2.0-alpha.2)+## As a mod (0.2.0-alpha.3)A function-hook mod ships beside the skills (ADR-445 pattern). Needs a Claude Code with mods (2.1.287+); older builds ignore it. No network, no process spawning: it only tightens calls to this plugin's own tools and reads through tools already connected.diff --git a/plugins/ruflo-graph-intelligence/hooks/screen.ts b/plugins/ruflo-graph-intelligence/hooks/screen.tsindex 5e899f3944..91e444a161 100644--- a/plugins/ruflo-graph-intelligence/hooks/screen.ts+++ b/plugins/ruflo-graph-intelligence/hooks/screen.ts@@ -144,8 +144,15 @@ function matches(name: string, re: RegExp, text: string): boolean {return false}+/**+ * The text textsOf appends when it had to drop input (a node, character or per-string budget ran out). It is never matched against a rule:+ * `names` reports it as a finding of its own, so every guard that asks "is there a secret in these texts" refuses what it could not read in full.+ */+export const TRUNCATED = 'ruflo-screen: input exceeded the screening budget'+export const TRUNCATED_NAME = 'input too large to screen'+/** Names of the rules that match `text` (already bare'd). A rule named 'key assignment' is judged by assignmentSecret, whatever its regex. */-export const names = (rules: Rules, text: string) => rules.filter(([name, re]) => matches(name, re, text)).map(([name]) => name)+export const names = (rules: Rules, text: string) => text === TRUNCATED ? [TRUNCATED_NAME] : rules.filter(([name, re]) => matches(name, re, text)).map(([name]) => name)export type Findings = { readonly secrets: readonly string[]; readonly injection: readonly string[] }@@ -187,33 +194,46 @@ function windows(text: string, out: string[]): void {* breadth-first (siblings before depth, so a long list cannot hide a nested value). A string under an object key comes back as `key=value`,* so a secret-named key is judged with its value; a key whose value is not a string is returned bare. Strings longer than the screen window* come back as overlapping windows; one over `perString` keeps its head and tail. Work is bounded by `nodes` slots and `chars` characters.+ * Anything dropped (slots or characters ran out, or a string lost its middle) is reported by a final TRUNCATED text, which `names` and+ * `hasSecretIn` count as a finding, so the screen fails closed instead of passing what it did not read.*/export function textsOf(input: unknown, limits: TextLimits = {}): string[] {const out: string[] = []let slots = limits.nodes ?? NODESlet chars = limits.chars ?? CHARSconst perString = limits.perString ?? PER_STRING+ let truncated = falseconst take = (text: string): void => {- if (chars <= 0) return+ if (chars <= 0) {+ truncated = true+ return+ }if (text.length <= Math.min(perString, chars)) {chars -= text.lengthwindows(text, out)return}+ truncated = trueconst half = Math.floor(Math.min(perString, chars) / 2)chars -= 2 * halfwindows(text.slice(0, half), out)windows(text.slice(-half), out)}const queue: unknown[] = [input]- for (let head = 0; head < queue.length && chars > 0; head++) {+ let head = 0+ for (; head < queue.length && chars > 0; head++) {const node = queue[head]if (typeof node === 'string') take(node)else if (Array.isArray(node)) {- for (let i = 0; i < node.length && slots > 0; i++, slots--) if (i in node) queue.push(node[i])+ let i = 0+ for (; i < node.length && slots > 0; i++, slots--) if (i in node) queue.push(node[i])+ if (i < node.length) truncated = true} else if (typeof node === 'object' && node !== null) {for (const k in node) {- if (slots-- <= 0) break+ if (slots-- <= 0) {+ truncated = true+ break+ }if (!Object.prototype.hasOwnProperty.call(node, k)) continueconst v = (node as Record<string, unknown>)[k]if (typeof v === 'string') queue.push(k + '=' + v)@@ -224,6 +244,8 @@ export function textsOf(input: unknown, limits: TextLimits = {}): string[] {}}}+ if (queue.length > head) truncated = true+ if (truncated) out.push(TRUNCATED)return out}// END SHARED SCREENdiff --git a/plugins/ruflo-intelligence/.claude-plugin/plugin.json b/plugins/ruflo-intelligence/.claude-plugin/plugin.jsonindex 763c5e5111..7b84c423af 100644--- a/plugins/ruflo-intelligence/.claude-plugin/plugin.json+++ b/plugins/ruflo-intelligence/.claude-plugin/plugin.json@@ -1,7 +1,7 @@{"name": "ruflo-intelligence","description": "User-facing surface for Ruflo's self-learning system: 6 neural_* + 10 hooks_intelligence_* + 6 routing/meta hooks + 3 hooks_model-* + 4 SONA/MicroLoRA tools (29 total). Implements the 4-step pipeline (RETRIEVE β JUDGE β DISTILL β CONSOLIDATE) and IPFS-based cross-project pattern transfer.",- "version": "0.4.1",+ "version": "0.4.2","author": {"name": "ruvnet","url": "https://github.com/ruvnet"diff --git a/plugins/ruflo-intelligence/README.md b/plugins/ruflo-intelligence/README.mdindex 0ba5ddc3d8..46c15fa106 100644--- a/plugins/ruflo-intelligence/README.md+++ b/plugins/ruflo-intelligence/README.md@@ -127,7 +127,7 @@ Configure once via `mcp tool call hooks_intelligence -- '{"mode": "moe", "enable- `intelligence-route` β Route tasks using learned patterns; produces a `hooks_explain` rationale- `intelligence-transfer` β Publish/fetch patterns via IPFS (`hooks_transfer`)-## As a mod (0.4.1)+## As a mod (0.4.2)A function-hook mod ships beside the skills (ADR-445 pattern). Needs a Claude Code with mods (2.1.287+); older builds ignore it. No network, no process spawning: it only tightens calls to this plugin's own tools and reads through tools already connected.diff --git a/plugins/ruflo-intelligence/hooks/screen.ts b/plugins/ruflo-intelligence/hooks/screen.tsindex 5e899f3944..91e444a161 100644--- a/plugins/ruflo-intelligence/hooks/screen.ts+++ b/plugins/ruflo-intelligence/hooks/screen.ts@@ -144,8 +144,15 @@ function matches(name: string, re: RegExp, text: string): boolean {return false}+/**+ * The text textsOf appends when it had to drop input (a node, character or per-string budget ran out). It is never matched against a rule:+ * `names` reports it as a finding of its own, so every guard that asks "is there a secret in these texts" refuses what it could not read in full.+ */+export const TRUNCATED = 'ruflo-screen: input exceeded the screening budget'+export const TRUNCATED_NAME = 'input too large to screen'+/** Names of the rules that match `text` (already bare'd). A rule named 'key assignment' is judged by assignmentSecret, whatever its regex. */-export const names = (rules: Rules, text: string) => rules.filter(([name, re]) => matches(name, re, text)).map(([name]) => name)+export const names = (rules: Rules, text: string) => text === TRUNCATED ? [TRUNCATED_NAME] : rules.filter(([name, re]) => matches(name, re, text)).map(([name]) => name)export type Findings = { readonly secrets: readonly string[]; readonly injection: readonly string[] }@@ -187,33 +194,46 @@ function windows(text: string, out: string[]): void {* breadth-first (siblings before depth, so a long list cannot hide a nested value). A string under an object key comes back as `key=value`,* so a secret-named key is judged with its value; a key whose value is not a string is returned bare. Strings longer than the screen window* come back as overlapping windows; one over `perString` keeps its head and tail. Work is bounded by `nodes` slots and `chars` characters.+ * Anything dropped (slots or characters ran out, or a string lost its middle) is reported by a final TRUNCATED text, which `names` and+ * `hasSecretIn` count as a finding, so the screen fails closed instead of passing what it did not read.*/export function textsOf(input: unknown, limits: TextLimits = {}): string[] {const out: string[] = []let slots = limits.nodes ?? NODESlet chars = limits.chars ?? CHARSconst perString = limits.perString ?? PER_STRING+ let truncated = falseconst take = (text: string): void => {- if (chars <= 0) return+ if (chars <= 0) {+ truncated = true+ return+ }if (text.length <= Math.min(perString, chars)) {chars -= text.lengthwindows(text, out)return}+ truncated = trueconst half = Math.floor(Math.min(perString, chars) / 2)chars -= 2 * halfwindows(text.slice(0, half), out)windows(text.slice(-half), out)}const queue: unknown[] = [input]- for (let head = 0; head < queue.length && chars > 0; head++) {+ let head = 0+ for (; head < queue.length && chars > 0; head++) {const node = queue[head]if (typeof node === 'string') take(node)else if (Array.isArray(node)) {- for (let i = 0; i < node.length && slots > 0; i++, slots--) if (i in node) queue.push(node[i])+ let i = 0+ for (; i < node.length && slots > 0; i++, slots--) if (i in node) queue.push(node[i])+ if (i < node.length) truncated = true} else if (typeof node === 'object' && node !== null) {for (const k in node) {- if (slots-- <= 0) break+ if (slots-- <= 0) {+ truncated = true+ break+ }if (!Object.prototype.hasOwnProperty.call(node, k)) continueconst v = (node as Record<string, unknown>)[k]if (typeof v === 'string') queue.push(k + '=' + v)@@ -224,6 +244,8 @@ export function textsOf(input: unknown, limits: TextLimits = {}): string[] {}}}+ if (queue.length > head) truncated = true+ if (truncated) out.push(TRUNCATED)return out}// END SHARED SCREENdiff --git a/plugins/ruflo-intelligence/scripts/smoke.sh b/plugins/ruflo-intelligence/scripts/smoke.shindex 92a6eeacd0..bc6142daec 100755--- a/plugins/ruflo-intelligence/scripts/smoke.sh+++ b/plugins/ruflo-intelligence/scripts/smoke.sh@@ -1,5 +1,5 @@#!/usr/bin/env bash-# Structural smoke test for ruflo-intelligence v0.4.1.+# Structural smoke test for ruflo-intelligence v0.4.2.# Per ADR-0001 Β§6 Verification: 13 contract checks + 3 doc invariants.# Offline-safe; no live MCP calls.set -u@@ -27,10 +27,10 @@ grep -qE "IPFS.+pattern|pattern.+IPFS|Pinata" "$ROOT/README.md" \&& ok || bad "README missing IPFS / Pinata transfer docs"# 1. plugin.json bump + new keywords-step "1. plugin.json declares 0.4.1 with new keywords"+step "1. plugin.json declares 0.4.2 with new keywords"v=$(grep -E '"version"[[:space:]]*:' "$ROOT/.claude-plugin/plugin.json" | grep -oE '[0-9]+\.[0-9]+\.[0-9]+' | head -1)-if [[ "$v" != "0.4.1" ]]; then- bad "expected 0.4.1, got '$v'"+if [[ "$v" != "0.4.2" ]]; then+ bad "expected 0.4.2, got '$v'"elsemiss=""for k in microlora ewc attention moe pattern-transfer model-routing; dodiff --git a/plugins/ruflo-iot-cognitum/.claude-plugin/plugin.json b/plugins/ruflo-iot-cognitum/.claude-plugin/plugin.jsonindex e080441ea0..82b57b7c0f 100644--- a/plugins/ruflo-iot-cognitum/.claude-plugin/plugin.json+++ b/plugins/ruflo-iot-cognitum/.claude-plugin/plugin.json@@ -1,7 +1,7 @@{"name": "ruflo-iot-cognitum","description": "IoT device lifecycle, telemetry anomaly detection, fleet management, and witness chain verification for Cognitum Seed hardware",- "version": "0.3.1",+ "version": "0.3.2","author": {"name": "ruvnet","url": "https://github.com/ruvnet"diff --git a/plugins/ruflo-iot-cognitum/README.md b/plugins/ruflo-iot-cognitum/README.mdindex 192f077624..efb40cdab0 100644--- a/plugins/ruflo-iot-cognitum/README.md+++ b/plugins/ruflo-iot-cognitum/README.md@@ -154,7 +154,7 @@ This plugin owns five AgentDB namespaces, all compliant with the [ruflo-agentdbReserved namespaces (`pattern`, `claude-memories`, `default`) MUST NOT be shadowed.-## As a mod (0.3.1)+## As a mod (0.3.2)A function-hook mod ships beside the skills (ADR-445 pattern). Needs a Claude Code with mods (2.1.287+); older builds ignore it. No network, no process spawning: it only tightens calls to this plugin's own tools and reads through tools already connected.diff --git a/plugins/ruflo-iot-cognitum/hooks/screen.ts b/plugins/ruflo-iot-cognitum/hooks/screen.tsindex 5e899f3944..91e444a161 100644--- a/plugins/ruflo-iot-cognitum/hooks/screen.ts+++ b/plugins/ruflo-iot-cognitum/hooks/screen.ts@@ -144,8 +144,15 @@ function matches(name: string, re: RegExp, text: string): boolean {return false}+/**+ * The text textsOf appends when it had to drop input (a node, character or per-string budget ran out). It is never matched against a rule:+ * `names` reports it as a finding of its own, so every guard that asks "is there a secret in these texts" refuses what it could not read in full.+ */+export const TRUNCATED = 'ruflo-screen: input exceeded the screening budget'+export const TRUNCATED_NAME = 'input too large to screen'+/** Names of the rules that match `text` (already bare'd). A rule named 'key assignment' is judged by assignmentSecret, whatever its regex. */-export const names = (rules: Rules, text: string) => rules.filter(([name, re]) => matches(name, re, text)).map(([name]) => name)+export const names = (rules: Rules, text: string) => text === TRUNCATED ? [TRUNCATED_NAME] : rules.filter(([name, re]) => matches(name, re, text)).map(([name]) => name)export type Findings = { readonly secrets: readonly string[]; readonly injection: readonly string[] }@@ -187,33 +194,46 @@ function windows(text: string, out: string[]): void {* breadth-first (siblings before depth, so a long list cannot hide a nested value). A string under an object key comes back as `key=value`,* so a secret-named key is judged with its value; a key whose value is not a string is returned bare. Strings longer than the screen window* come back as overlapping windows; one over `perString` keeps its head and tail. Work is bounded by `nodes` slots and `chars` characters.+ * Anything dropped (slots or characters ran out, or a string lost its middle) is reported by a final TRUNCATED text, which `names` and+ * `hasSecretIn` count as a finding, so the screen fails closed instead of passing what it did not read.*/export function textsOf(input: unknown, limits: TextLimits = {}): string[] {const out: string[] = []let slots = limits.nodes ?? NODESlet chars = limits.chars ?? CHARSconst perString = limits.perString ?? PER_STRING+ let truncated = falseconst take = (text: string): void => {- if (chars <= 0) return+ if (chars <= 0) {+ truncated = true+ return+ }if (text.length <= Math.min(perString, chars)) {chars -= text.lengthwindows(text, out)return}+ truncated = trueconst half = Math.floor(Math.min(perString, chars) / 2)chars -= 2 * halfwindows(text.slice(0, half), out)windows(text.slice(-half), out)}const queue: unknown[] = [input]- for (let head = 0; head < queue.length && chars > 0; head++) {+ let head = 0+ for (; head < queue.length && chars > 0; head++) {const node = queue[head]if (typeof node === 'string') take(node)else if (Array.isArray(node)) {- for (let i = 0; i < node.length && slots > 0; i++, slots--) if (i in node) queue.push(node[i])+ let i = 0+ for (; i < node.length && slots > 0; i++, slots--) if (i in node) queue.push(node[i])+ if (i < node.length) truncated = true} else if (typeof node === 'object' && node !== null) {for (const k in node) {- if (slots-- <= 0) break+ if (slots-- <= 0) {+ truncated = true+ break+ }if (!Object.prototype.hasOwnProperty.call(node, k)) continueconst v = (node as Record<string, unknown>)[k]if (typeof v === 'string') queue.push(k + '=' + v)@@ -224,6 +244,8 @@ export function textsOf(input: unknown, limits: TextLimits = {}): string[] {}}}+ if (queue.length > head) truncated = true+ if (truncated) out.push(TRUNCATED)return out}// END SHARED SCREENdiff --git a/plugins/ruflo-iot-cognitum/scripts/smoke.sh b/plugins/ruflo-iot-cognitum/scripts/smoke.shindex 6f3b42e21c..a157ced0fa 100755--- a/plugins/ruflo-iot-cognitum/scripts/smoke.sh+++ b/plugins/ruflo-iot-cognitum/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.1 with new keywords"+step "1. plugin.json declares 0.3.2 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.1" ]]; then bad "expected 0.3.1, got '$v'"; else+if [[ "$v" != "0.3.2" ]]; then bad "expected 0.3.2, got '$v'"; elsemiss=""for k in mcp cognitum-seed 5-tier-trust; dogrep -q "\"$k\"" "$ROOT/.claude-plugin/plugin.json" || miss="$miss $k"diff --git a/plugins/ruflo-jujutsu/.claude-plugin/plugin.json b/plugins/ruflo-jujutsu/.claude-plugin/plugin.jsonindex d03e9ff2e1..6f28cfb34e 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.2",+ "version": "0.3.3","author": {"name": "ruvnet","url": "https://github.com/ruvnet"diff --git a/plugins/ruflo-jujutsu/hooks/screen.ts b/plugins/ruflo-jujutsu/hooks/screen.tsindex 5e899f3944..91e444a161 100644--- a/plugins/ruflo-jujutsu/hooks/screen.ts+++ b/plugins/ruflo-jujutsu/hooks/screen.ts@@ -144,8 +144,15 @@ function matches(name: string, re: RegExp, text: string): boolean {return false}+/**+ * The text textsOf appends when it had to drop input (a node, character or per-string budget ran out). It is never matched against a rule:+ * `names` reports it as a finding of its own, so every guard that asks "is there a secret in these texts" refuses what it could not read in full.+ */+export const TRUNCATED = 'ruflo-screen: input exceeded the screening budget'+export const TRUNCATED_NAME = 'input too large to screen'+/** Names of the rules that match `text` (already bare'd). A rule named 'key assignment' is judged by assignmentSecret, whatever its regex. */-export const names = (rules: Rules, text: string) => rules.filter(([name, re]) => matches(name, re, text)).map(([name]) => name)+export const names = (rules: Rules, text: string) => text === TRUNCATED ? [TRUNCATED_NAME] : rules.filter(([name, re]) => matches(name, re, text)).map(([name]) => name)export type Findings = { readonly secrets: readonly string[]; readonly injection: readonly string[] }@@ -187,33 +194,46 @@ function windows(text: string, out: string[]): void {* breadth-first (siblings before depth, so a long list cannot hide a nested value). A string under an object key comes back as `key=value`,* so a secret-named key is judged with its value; a key whose value is not a string is returned bare. Strings longer than the screen window* come back as overlapping windows; one over `perString` keeps its head and tail. Work is bounded by `nodes` slots and `chars` characters.+ * Anything dropped (slots or characters ran out, or a string lost its middle) is reported by a final TRUNCATED text, which `names` and+ * `hasSecretIn` count as a finding, so the screen fails closed instead of passing what it did not read.*/export function textsOf(input: unknown, limits: TextLimits = {}): string[] {const out: string[] = []let slots = limits.nodes ?? NODESlet chars = limits.chars ?? CHARSconst perString = limits.perString ?? PER_STRING+ let truncated = falseconst take = (text: string): void => {- if (chars <= 0) return+ if (chars <= 0) {+ truncated = true+ return+ }if (text.length <= Math.min(perString, chars)) {chars -= text.lengthwindows(text, out)return}+ truncated = trueconst half = Math.floor(Math.min(perString, chars) / 2)chars -= 2 * halfwindows(text.slice(0, half), out)windows(text.slice(-half), out)}const queue: unknown[] = [input]- for (let head = 0; head < queue.length && chars > 0; head++) {+ let head = 0+ for (; head < queue.length && chars > 0; head++) {const node = queue[head]if (typeof node === 'string') take(node)else if (Array.isArray(node)) {- for (let i = 0; i < node.length && slots > 0; i++, slots--) if (i in node) queue.push(node[i])+ let i = 0+ for (; i < node.length && slots > 0; i++, slots--) if (i in node) queue.push(node[i])+ if (i < node.length) truncated = true} else if (typeof node === 'object' && node !== null) {for (const k in node) {- if (slots-- <= 0) break+ if (slots-- <= 0) {+ truncated = true+ break+ }if (!Object.prototype.hasOwnProperty.call(node, k)) continueconst v = (node as Record<string, unknown>)[k]if (typeof v === 'string') queue.push(k + '=' + v)@@ -224,6 +244,8 @@ export function textsOf(input: unknown, limits: TextLimits = {}): string[] {}}}+ if (queue.length > head) truncated = true+ if (truncated) out.push(TRUNCATED)return out}// END SHARED SCREENdiff --git a/plugins/ruflo-jujutsu/scripts/smoke.sh b/plugins/ruflo-jujutsu/scripts/smoke.shindex 036f9ddac4..2bd162a730 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.2 with new keywords"+step "1. plugin.json declares 0.3.3 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.2" ]]; then bad "expected 0.3.2, got '$v'"; else+if [[ "$v" != "0.3.3" ]]; then bad "expected 0.3.3, 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-knowledge-graph/.claude-plugin/plugin.json b/plugins/ruflo-knowledge-graph/.claude-plugin/plugin.jsonindex ab70d622de..0bb1d993aa 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.2",+ "version": "0.3.3","author": {"name": "ruvnet","url": "https://github.com/ruvnet"diff --git a/plugins/ruflo-knowledge-graph/hooks/screen.ts b/plugins/ruflo-knowledge-graph/hooks/screen.tsindex 5e899f3944..91e444a161 100644--- a/plugins/ruflo-knowledge-graph/hooks/screen.ts+++ b/plugins/ruflo-knowledge-graph/hooks/screen.ts@@ -144,8 +144,15 @@ function matches(name: string, re: RegExp, text: string): boolean {return false}+/**+ * The text textsOf appends when it had to drop input (a node, character or per-string budget ran out). It is never matched against a rule:+ * `names` reports it as a finding of its own, so every guard that asks "is there a secret in these texts" refuses what it could not read in full.+ */+export const TRUNCATED = 'ruflo-screen: input exceeded the screening budget'+export const TRUNCATED_NAME = 'input too large to screen'+/** Names of the rules that match `text` (already bare'd). A rule named 'key assignment' is judged by assignmentSecret, whatever its regex. */-export const names = (rules: Rules, text: string) => rules.filter(([name, re]) => matches(name, re, text)).map(([name]) => name)+export const names = (rules: Rules, text: string) => text === TRUNCATED ? [TRUNCATED_NAME] : rules.filter(([name, re]) => matches(name, re, text)).map(([name]) => name)export type Findings = { readonly secrets: readonly string[]; readonly injection: readonly string[] }@@ -187,33 +194,46 @@ function windows(text: string, out: string[]): void {* breadth-first (siblings before depth, so a long list cannot hide a nested value). A string under an object key comes back as `key=value`,* so a secret-named key is judged with its value; a key whose value is not a string is returned bare. Strings longer than the screen window* come back as overlapping windows; one over `perString` keeps its head and tail. Work is bounded by `nodes` slots and `chars` characters.+ * Anything dropped (slots or characters ran out, or a string lost its middle) is reported by a final TRUNCATED text, which `names` and+ * `hasSecretIn` count as a finding, so the screen fails closed instead of passing what it did not read.*/export function textsOf(input: unknown, limits: TextLimits = {}): string[] {const out: string[] = []let slots = limits.nodes ?? NODESlet chars = limits.chars ?? CHARSconst perString = limits.perString ?? PER_STRING+ let truncated = falseconst take = (text: string): void => {- if (chars <= 0) return+ if (chars <= 0) {+ truncated = true+ return+ }if (text.length <= Math.min(perString, chars)) {chars -= text.lengthwindows(text, out)return}+ truncated = trueconst half = Math.floor(Math.min(perString, chars) / 2)chars -= 2 * halfwindows(text.slice(0, half), out)windows(text.slice(-half), out)}const queue: unknown[] = [input]- for (let head = 0; head < queue.length && chars > 0; head++) {+ let head = 0+ for (; head < queue.length && chars > 0; head++) {const node = queue[head]if (typeof node === 'string') take(node)else if (Array.isArray(node)) {- for (let i = 0; i < node.length && slots > 0; i++, slots--) if (i in node) queue.push(node[i])+ let i = 0+ for (; i < node.length && slots > 0; i++, slots--) if (i in node) queue.push(node[i])+ if (i < node.length) truncated = true} else if (typeof node === 'object' && node !== null) {for (const k in node) {- if (slots-- <= 0) break+ if (slots-- <= 0) {+ truncated = true+ break+ }if (!Object.prototype.hasOwnProperty.call(node, k)) continueconst v = (node as Record<string, unknown>)[k]if (typeof v === 'string') queue.push(k + '=' + v)@@ -224,6 +244,8 @@ export function textsOf(input: unknown, limits: TextLimits = {}): string[] {}}}+ if (queue.length > head) truncated = true+ if (truncated) out.push(TRUNCATED)return out}// END SHARED SCREENdiff --git a/plugins/ruflo-knowledge-graph/scripts/smoke.sh b/plugins/ruflo-knowledge-graph/scripts/smoke.shindex c491a50a23..21d76dacd2 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.2 with new keywords"+step "1. plugin.json declares 0.3.3 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.2" ]]; then bad "expected 0.3.2, got '$v'"; else+if [[ "$v" != "0.3.3" ]]; then bad "expected 0.3.3, 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-loop-workers/.claude-plugin/plugin.json b/plugins/ruflo-loop-workers/.claude-plugin/plugin.jsonindex 8afdaa0f72..a83a5c332e 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.2",+ "version": "0.3.3","author": {"name": "ruvnet","url": "https://github.com/ruvnet"diff --git a/plugins/ruflo-loop-workers/hooks/screen.ts b/plugins/ruflo-loop-workers/hooks/screen.tsindex 5e899f3944..91e444a161 100644--- a/plugins/ruflo-loop-workers/hooks/screen.ts+++ b/plugins/ruflo-loop-workers/hooks/screen.ts@@ -144,8 +144,15 @@ function matches(name: string, re: RegExp, text: string): boolean {return false}+/**+ * The text textsOf appends when it had to drop input (a node, character or per-string budget ran out). It is never matched against a rule:+ * `names` reports it as a finding of its own, so every guard that asks "is there a secret in these texts" refuses what it could not read in full.+ */+export const TRUNCATED = 'ruflo-screen: input exceeded the screening budget'+export const TRUNCATED_NAME = 'input too large to screen'+/** Names of the rules that match `text` (already bare'd). A rule named 'key assignment' is judged by assignmentSecret, whatever its regex. */-export const names = (rules: Rules, text: string) => rules.filter(([name, re]) => matches(name, re, text)).map(([name]) => name)+export const names = (rules: Rules, text: string) => text === TRUNCATED ? [TRUNCATED_NAME] : rules.filter(([name, re]) => matches(name, re, text)).map(([name]) => name)export type Findings = { readonly secrets: readonly string[]; readonly injection: readonly string[] }@@ -187,33 +194,46 @@ function windows(text: string, out: string[]): void {* breadth-first (siblings before depth, so a long list cannot hide a nested value). A string under an object key comes back as `key=value`,* so a secret-named key is judged with its value; a key whose value is not a string is returned bare. Strings longer than the screen window* come back as overlapping windows; one over `perString` keeps its head and tail. Work is bounded by `nodes` slots and `chars` characters.+ * Anything dropped (slots or characters ran out, or a string lost its middle) is reported by a final TRUNCATED text, which `names` and+ * `hasSecretIn` count as a finding, so the screen fails closed instead of passing what it did not read.*/export function textsOf(input: unknown, limits: TextLimits = {}): string[] {const out: string[] = []let slots = limits.nodes ?? NODESlet chars = limits.chars ?? CHARSconst perString = limits.perString ?? PER_STRING+ let truncated = falseconst take = (text: string): void => {- if (chars <= 0) return+ if (chars <= 0) {+ truncated = true+ return+ }if (text.length <= Math.min(perString, chars)) {chars -= text.lengthwindows(text, out)return}+ truncated = trueconst half = Math.floor(Math.min(perString, chars) / 2)chars -= 2 * halfwindows(text.slice(0, half), out)windows(text.slice(-half), out)}const queue: unknown[] = [input]- for (let head = 0; head < queue.length && chars > 0; head++) {+ let head = 0+ for (; head < queue.length && chars > 0; head++) {const node = queue[head]if (typeof node === 'string') take(node)else if (Array.isArray(node)) {- for (let i = 0; i < node.length && slots > 0; i++, slots--) if (i in node) queue.push(node[i])+ let i = 0+ for (; i < node.length && slots > 0; i++, slots--) if (i in node) queue.push(node[i])+ if (i < node.length) truncated = true} else if (typeof node === 'object' && node !== null) {for (const k in node) {- if (slots-- <= 0) break+ if (slots-- <= 0) {+ truncated = true+ break+ }if (!Object.prototype.hasOwnProperty.call(node, k)) continueconst v = (node as Record<string, unknown>)[k]if (typeof v === 'string') queue.push(k + '=' + v)@@ -224,6 +244,8 @@ export function textsOf(input: unknown, limits: TextLimits = {}): string[] {}}}+ if (queue.length > head) truncated = true+ if (truncated) out.push(TRUNCATED)return out}// END SHARED SCREENdiff --git a/plugins/ruflo-loop-workers/scripts/smoke.sh b/plugins/ruflo-loop-workers/scripts/smoke.shindex 889e6b1604..6064bb70a5 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.2 with new keywords"+step "1. plugin.json declares 0.3.3 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.2" ]]; then bad "expected 0.3.2, got '$v'"; else+if [[ "$v" != "0.3.3" ]]; then bad "expected 0.3.3, 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-market-data/.claude-plugin/plugin.json b/plugins/ruflo-market-data/.claude-plugin/plugin.jsonindex f2f679071e..b0968c365d 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.2",+ "version": "0.3.3","author": {"name": "ruvnet","url": "https://github.com/ruvnet"diff --git a/plugins/ruflo-market-data/hooks/screen.ts b/plugins/ruflo-market-data/hooks/screen.tsindex 5e899f3944..91e444a161 100644--- a/plugins/ruflo-market-data/hooks/screen.ts+++ b/plugins/ruflo-market-data/hooks/screen.ts@@ -144,8 +144,15 @@ function matches(name: string, re: RegExp, text: string): boolean {return false}+/**+ * The text textsOf appends when it had to drop input (a node, character or per-string budget ran out). It is never matched against a rule:+ * `names` reports it as a finding of its own, so every guard that asks "is there a secret in these texts" refuses what it could not read in full.+ */+export const TRUNCATED = 'ruflo-screen: input exceeded the screening budget'+export const TRUNCATED_NAME = 'input too large to screen'+/** Names of the rules that match `text` (already bare'd). A rule named 'key assignment' is judged by assignmentSecret, whatever its regex. */-export const names = (rules: Rules, text: string) => rules.filter(([name, re]) => matches(name, re, text)).map(([name]) => name)+export const names = (rules: Rules, text: string) => text === TRUNCATED ? [TRUNCATED_NAME] : rules.filter(([name, re]) => matches(name, re, text)).map(([name]) => name)export type Findings = { readonly secrets: readonly string[]; readonly injection: readonly string[] }@@ -187,33 +194,46 @@ function windows(text: string, out: string[]): void {* breadth-first (siblings before depth, so a long list cannot hide a nested value). A string under an object key comes back as `key=value`,* so a secret-named key is judged with its value; a key whose value is not a string is returned bare. Strings longer than the screen window* come back as overlapping windows; one over `perString` keeps its head and tail. Work is bounded by `nodes` slots and `chars` characters.+ * Anything dropped (slots or characters ran out, or a string lost its middle) is reported by a final TRUNCATED text, which `names` and+ * `hasSecretIn` count as a finding, so the screen fails closed instead of passing what it did not read.*/export function textsOf(input: unknown, limits: TextLimits = {}): string[] {const out: string[] = []let slots = limits.nodes ?? NODESlet chars = limits.chars ?? CHARSconst perString = limits.perString ?? PER_STRING+ let truncated = falseconst take = (text: string): void => {- if (chars <= 0) return+ if (chars <= 0) {+ truncated = true+ return+ }if (text.length <= Math.min(perString, chars)) {chars -= text.lengthwindows(text, out)return}+ truncated = trueconst half = Math.floor(Math.min(perString, chars) / 2)chars -= 2 * halfwindows(text.slice(0, half), out)windows(text.slice(-half), out)}const queue: unknown[] = [input]- for (let head = 0; head < queue.length && chars > 0; head++) {+ let head = 0+ for (; head < queue.length && chars > 0; head++) {const node = queue[head]if (typeof node === 'string') take(node)else if (Array.isArray(node)) {- for (let i = 0; i < node.length && slots > 0; i++, slots--) if (i in node) queue.push(node[i])+ let i = 0+ for (; i < node.length && slots > 0; i++, slots--) if (i in node) queue.push(node[i])+ if (i < node.length) truncated = true} else if (typeof node === 'object' && node !== null) {for (const k in node) {- if (slots-- <= 0) break+ if (slots-- <= 0) {+ truncated = true+ break+ }if (!Object.prototype.hasOwnProperty.call(node, k)) continueconst v = (node as Record<string, unknown>)[k]if (typeof v === 'string') queue.push(k + '=' + v)@@ -224,6 +244,8 @@ export function textsOf(input: unknown, limits: TextLimits = {}): string[] {}}}+ if (queue.length > head) truncated = true+ if (truncated) out.push(TRUNCATED)return out}// END SHARED SCREENdiff --git a/plugins/ruflo-market-data/scripts/smoke.sh b/plugins/ruflo-market-data/scripts/smoke.shindex 47b8dd4d07..295dd35970 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.2 with new keywords"+step "1. plugin.json declares 0.3.3 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.2" ]]; then bad "expected 0.3.2, got '$v'"; else+if [[ "$v" != "0.3.3" ]]; then bad "expected 0.3.3, 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-metaharness/.claude-plugin/plugin.json b/plugins/ruflo-metaharness/.claude-plugin/plugin.jsonindex 47d8893e98..047131bbe2 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.2",+ "version": "0.2.3","author": {"name": "ruvnet","url": "https://github.com/ruvnet"diff --git a/plugins/ruflo-metaharness/hooks/screen.ts b/plugins/ruflo-metaharness/hooks/screen.tsindex 5e899f3944..91e444a161 100644--- a/plugins/ruflo-metaharness/hooks/screen.ts+++ b/plugins/ruflo-metaharness/hooks/screen.ts@@ -144,8 +144,15 @@ function matches(name: string, re: RegExp, text: string): boolean {return false}+/**+ * The text textsOf appends when it had to drop input (a node, character or per-string budget ran out). It is never matched against a rule:+ * `names` reports it as a finding of its own, so every guard that asks "is there a secret in these texts" refuses what it could not read in full.+ */+export const TRUNCATED = 'ruflo-screen: input exceeded the screening budget'+export const TRUNCATED_NAME = 'input too large to screen'+/** Names of the rules that match `text` (already bare'd). A rule named 'key assignment' is judged by assignmentSecret, whatever its regex. */-export const names = (rules: Rules, text: string) => rules.filter(([name, re]) => matches(name, re, text)).map(([name]) => name)+export const names = (rules: Rules, text: string) => text === TRUNCATED ? [TRUNCATED_NAME] : rules.filter(([name, re]) => matches(name, re, text)).map(([name]) => name)export type Findings = { readonly secrets: readonly string[]; readonly injection: readonly string[] }@@ -187,33 +194,46 @@ function windows(text: string, out: string[]): void {* breadth-first (siblings before depth, so a long list cannot hide a nested value). A string under an object key comes back as `key=value`,* so a secret-named key is judged with its value; a key whose value is not a string is returned bare. Strings longer than the screen window* come back as overlapping windows; one over `perString` keeps its head and tail. Work is bounded by `nodes` slots and `chars` characters.+ * Anything dropped (slots or characters ran out, or a string lost its middle) is reported by a final TRUNCATED text, which `names` and+ * `hasSecretIn` count as a finding, so the screen fails closed instead of passing what it did not read.*/export function textsOf(input: unknown, limits: TextLimits = {}): string[] {const out: string[] = []let slots = limits.nodes ?? NODESlet chars = limits.chars ?? CHARSconst perString = limits.perString ?? PER_STRING+ let truncated = falseconst take = (text: string): void => {- if (chars <= 0) return+ if (chars <= 0) {+ truncated = true+ return+ }if (text.length <= Math.min(perString, chars)) {chars -= text.lengthwindows(text, out)return}+ truncated = trueconst half = Math.floor(Math.min(perString, chars) / 2)chars -= 2 * halfwindows(text.slice(0, half), out)windows(text.slice(-half), out)}const queue: unknown[] = [input]- for (let head = 0; head < queue.length && chars > 0; head++) {+ let head = 0+ for (; head < queue.length && chars > 0; head++) {const node = queue[head]if (typeof node === 'string') take(node)else if (Array.isArray(node)) {- for (let i = 0; i < node.length && slots > 0; i++, slots--) if (i in node) queue.push(node[i])+ let i = 0+ for (; i < node.length && slots > 0; i++, slots--) if (i in node) queue.push(node[i])+ if (i < node.length) truncated = true} else if (typeof node === 'object' && node !== null) {for (const k in node) {- if (slots-- <= 0) break+ if (slots-- <= 0) {+ truncated = true+ break+ }if (!Object.prototype.hasOwnProperty.call(node, k)) continueconst v = (node as Record<string, unknown>)[k]if (typeof v === 'string') queue.push(k + '=' + v)@@ -224,6 +244,8 @@ export function textsOf(input: unknown, limits: TextLimits = {}): string[] {}}}+ if (queue.length > head) truncated = true+ if (truncated) out.push(TRUNCATED)return out}// END SHARED SCREENdiff --git a/plugins/ruflo-metaharness/scripts/smoke.sh b/plugins/ruflo-metaharness/scripts/smoke.shindex 9a45106948..7bbdc9227b 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.2 (ADR-150 Phase 1).+# Structural smoke test for ruflo-metaharness v0.2.3 (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.2 with adr-150 keywords"+step "1. plugin.json declares 0.2.3 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.2" ]]; then- bad "expected 0.2.2, got '$v'"+if [[ "$v" != "0.2.3" ]]; then+ bad "expected 0.2.3, 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-migrations/.claude-plugin/plugin.json b/plugins/ruflo-migrations/.claude-plugin/plugin.jsonindex 668e265614..b778b12529 100644--- a/plugins/ruflo-migrations/.claude-plugin/plugin.json+++ b/plugins/ruflo-migrations/.claude-plugin/plugin.json@@ -1,7 +1,7 @@{"name": "ruflo-migrations","description": "Schema migration management β generate, validate, dry-run, and rollback database migrations. As a mod (ADR-445): a tighten-only guard on its tools, /migrations-mod, and a status file the console shows",- "version": "0.3.1",+ "version": "0.3.2","author": {"name": "ruvnet","url": "https://github.com/ruvnet"diff --git a/plugins/ruflo-migrations/hooks/screen.ts b/plugins/ruflo-migrations/hooks/screen.tsindex e3b01e80f6..292e8ad0c0 100644--- a/plugins/ruflo-migrations/hooks/screen.ts+++ b/plugins/ruflo-migrations/hooks/screen.ts@@ -144,8 +144,15 @@ function matches(name: string, re: RegExp, text: string): boolean {return false}+/**+ * The text textsOf appends when it had to drop input (a node, character or per-string budget ran out). It is never matched against a rule:+ * `names` reports it as a finding of its own, so every guard that asks "is there a secret in these texts" refuses what it could not read in full.+ */+export const TRUNCATED = 'ruflo-screen: input exceeded the screening budget'+export const TRUNCATED_NAME = 'input too large to screen'+/** Names of the rules that match `text` (already bare'd). A rule named 'key assignment' is judged by assignmentSecret, whatever its regex. */-export const names = (rules: Rules, text: string) => rules.filter(([name, re]) => matches(name, re, text)).map(([name]) => name)+export const names = (rules: Rules, text: string) => text === TRUNCATED ? [TRUNCATED_NAME] : rules.filter(([name, re]) => matches(name, re, text)).map(([name]) => name)export type Findings = { readonly secrets: readonly string[]; readonly injection: readonly string[] }@@ -187,33 +194,46 @@ function windows(text: string, out: string[]): void {* breadth-first (siblings before depth, so a long list cannot hide a nested value). A string under an object key comes back as `key=value`,* so a secret-named key is judged with its value; a key whose value is not a string is returned bare. Strings longer than the screen window* come back as overlapping windows; one over `perString` keeps its head and tail. Work is bounded by `nodes` slots and `chars` characters.+ * Anything dropped (slots or characters ran out, or a string lost its middle) is reported by a final TRUNCATED text, which `names` and+ * `hasSecretIn` count as a finding, so the screen fails closed instead of passing what it did not read.*/export function textsOf(input: unknown, limits: TextLimits = {}): string[] {const out: string[] = []let slots = limits.nodes ?? NODESlet chars = limits.chars ?? CHARSconst perString = limits.perString ?? PER_STRING+ let truncated = falseconst take = (text: string): void => {- if (chars <= 0) return+ if (chars <= 0) {+ truncated = true+ return+ }if (text.length <= Math.min(perString, chars)) {chars -= text.lengthwindows(text, out)return}+ truncated = trueconst half = Math.floor(Math.min(perString, chars) / 2)chars -= 2 * halfwindows(text.slice(0, half), out)windows(text.slice(-half), out)}const queue: unknown[] = [input]- for (let head = 0; head < queue.length && chars > 0; head++) {+ let head = 0+ for (; head < queue.length && chars > 0; head++) {const node = queue[head]if (typeof node === 'string') take(node)else if (Array.isArray(node)) {- for (let i = 0; i < node.length && slots > 0; i++, slots--) if (i in node) queue.push(node[i])+ let i = 0+ for (; i < node.length && slots > 0; i++, slots--) if (i in node) queue.push(node[i])+ if (i < node.length) truncated = true} else if (typeof node === 'object' && node !== null) {for (const k in node) {- if (slots-- <= 0) break+ if (slots-- <= 0) {+ truncated = true+ break+ }if (!Object.prototype.hasOwnProperty.call(node, k)) continueconst v = (node as Record<string, unknown>)[k]if (typeof v === 'string') queue.push(k + '=' + v)@@ -224,6 +244,8 @@ export function textsOf(input: unknown, limits: TextLimits = {}): string[] {}}}+ if (queue.length > head) truncated = true+ if (truncated) out.push(TRUNCATED)return out}// END SHARED SCREENdiff --git a/plugins/ruflo-migrations/scripts/smoke.sh b/plugins/ruflo-migrations/scripts/smoke.shindex 4234bc7669..e8003db1e1 100755--- a/plugins/ruflo-migrations/scripts/smoke.sh+++ b/plugins/ruflo-migrations/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.1 with new keywords"+step "1. plugin.json declares 0.3.2 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.1" ]]; then bad "expected 0.3.1, got '$v'"; else+if [[ "$v" != "0.3.2" ]]; then bad "expected 0.3.2, got '$v'"; elsemiss=""for k in mcp dry-run up-down-pairs; dogrep -q "\"$k\"" "$ROOT/.claude-plugin/plugin.json" || miss="$miss $k"diff --git a/plugins/ruflo-music/.claude-plugin/plugin.json b/plugins/ruflo-music/.claude-plugin/plugin.jsonindex dc539b40f7..ccd963b797 100644--- a/plugins/ruflo-music/.claude-plugin/plugin.json+++ b/plugins/ruflo-music/.claude-plugin/plugin.json@@ -1,7 +1,7 @@{"name": "ruflo-music","description": "AI music generation via Cognitum Music (cogmusic MCP) β compose lyrics/prompts, generate tracks, separate stems, extract MIDI, and master through your own music.cognitum.one account. As a mod (ADR-445): a tighten-only guard on its tools, /music-mod, and a status file the console shows",- "version": "0.2.1",+ "version": "0.2.2","author": {"name": "ruvnet","url": "https://github.com/ruvnet"diff --git a/plugins/ruflo-music/hooks/screen.ts b/plugins/ruflo-music/hooks/screen.tsindex 0600038a81..8cc330ced4 100644--- a/plugins/ruflo-music/hooks/screen.ts+++ b/plugins/ruflo-music/hooks/screen.ts@@ -144,8 +144,15 @@ function matches(name: string, re: RegExp, text: string): boolean {return false}+/**+ * The text textsOf appends when it had to drop input (a node, character or per-string budget ran out). It is never matched against a rule:+ * `names` reports it as a finding of its own, so every guard that asks "is there a secret in these texts" refuses what it could not read in full.+ */+export const TRUNCATED = 'ruflo-screen: input exceeded the screening budget'+export const TRUNCATED_NAME = 'input too large to screen'+/** Names of the rules that match `text` (already bare'd). A rule named 'key assignment' is judged by assignmentSecret, whatever its regex. */-export const names = (rules: Rules, text: string) => rules.filter(([name, re]) => matches(name, re, text)).map(([name]) => name)+export const names = (rules: Rules, text: string) => text === TRUNCATED ? [TRUNCATED_NAME] : rules.filter(([name, re]) => matches(name, re, text)).map(([name]) => name)export type Findings = { readonly secrets: readonly string[]; readonly injection: readonly string[] }@@ -187,33 +194,46 @@ function windows(text: string, out: string[]): void {* breadth-first (siblings before depth, so a long list cannot hide a nested value). A string under an object key comes back as `key=value`,* so a secret-named key is judged with its value; a key whose value is not a string is returned bare. Strings longer than the screen window* come back as overlapping windows; one over `perString` keeps its head and tail. Work is bounded by `nodes` slots and `chars` characters.+ * Anything dropped (slots or characters ran out, or a string lost its middle) is reported by a final TRUNCATED text, which `names` and+ * `hasSecretIn` count as a finding, so the screen fails closed instead of passing what it did not read.*/export function textsOf(input: unknown, limits: TextLimits = {}): string[] {const out: string[] = []let slots = limits.nodes ?? NODESlet chars = limits.chars ?? CHARSconst perString = limits.perString ?? PER_STRING+ let truncated = falseconst take = (text: string): void => {- if (chars <= 0) return+ if (chars <= 0) {+ truncated = true+ return+ }if (text.length <= Math.min(perString, chars)) {chars -= text.lengthwindows(text, out)return}+ truncated = trueconst half = Math.floor(Math.min(perString, chars) / 2)chars -= 2 * halfwindows(text.slice(0, half), out)windows(text.slice(-half), out)}const queue: unknown[] = [input]- for (let head = 0; head < queue.length && chars > 0; head++) {+ let head = 0+ for (; head < queue.length && chars > 0; head++) {const node = queue[head]if (typeof node === 'string') take(node)else if (Array.isArray(node)) {- for (let i = 0; i < node.length && slots > 0; i++, slots--) if (i in node) queue.push(node[i])+ let i = 0+ for (; i < node.length && slots > 0; i++, slots--) if (i in node) queue.push(node[i])+ if (i < node.length) truncated = true} else if (typeof node === 'object' && node !== null) {for (const k in node) {- if (slots-- <= 0) break+ if (slots-- <= 0) {+ truncated = true+ break+ }if (!Object.prototype.hasOwnProperty.call(node, k)) continueconst v = (node as Record<string, unknown>)[k]if (typeof v === 'string') queue.push(k + '=' + v)@@ -224,6 +244,8 @@ export function textsOf(input: unknown, limits: TextLimits = {}): string[] {}}}+ if (queue.length > head) truncated = true+ if (truncated) out.push(TRUNCATED)return out}// END SHARED SCREENdiff --git a/plugins/ruflo-music/scripts/smoke.sh b/plugins/ruflo-music/scripts/smoke.shindex 38150527d6..54ff111c96 100755--- a/plugins/ruflo-music/scripts/smoke.sh+++ b/plugins/ruflo-music/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.2.1 with expected keywords"+step "1. plugin.json declares 0.2.2 with expected keywords"v=$(grep -E '"version"' "$ROOT/.claude-plugin/plugin.json" | grep -oE '[0-9]+\.[0-9]+\.[0-9]+' | head -1)-if [[ "$v" != "0.2.1" ]]; then bad "expected 0.2.1, got '$v'"; else+if [[ "$v" != "0.2.2" ]]; then bad "expected 0.2.2, got '$v'"; elsemiss=""for k in cogmusic cognitum mcp; dogrep -q "\"$k\"" "$ROOT/.claude-plugin/plugin.json" || miss="$miss $k"diff --git a/plugins/ruflo-neural-trader/.claude-plugin/plugin.json b/plugins/ruflo-neural-trader/.claude-plugin/plugin.jsonindex 576ca0973c..5a4895928c 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.2",+ "version": "0.3.3","author": {"name": "ruvnet","url": "https://github.com/ruvnet"diff --git a/plugins/ruflo-neural-trader/hooks/screen.ts b/plugins/ruflo-neural-trader/hooks/screen.tsindex b5f22aac70..c2924f551b 100644--- a/plugins/ruflo-neural-trader/hooks/screen.ts+++ b/plugins/ruflo-neural-trader/hooks/screen.ts@@ -144,8 +144,15 @@ function matches(name: string, re: RegExp, text: string): boolean {return false}+/**+ * The text textsOf appends when it had to drop input (a node, character or per-string budget ran out). It is never matched against a rule:+ * `names` reports it as a finding of its own, so every guard that asks "is there a secret in these texts" refuses what it could not read in full.+ */+export const TRUNCATED = 'ruflo-screen: input exceeded the screening budget'+export const TRUNCATED_NAME = 'input too large to screen'+/** Names of the rules that match `text` (already bare'd). A rule named 'key assignment' is judged by assignmentSecret, whatever its regex. */-export const names = (rules: Rules, text: string) => rules.filter(([name, re]) => matches(name, re, text)).map(([name]) => name)+export const names = (rules: Rules, text: string) => text === TRUNCATED ? [TRUNCATED_NAME] : rules.filter(([name, re]) => matches(name, re, text)).map(([name]) => name)export type Findings = { readonly secrets: readonly string[]; readonly injection: readonly string[] }@@ -187,33 +194,46 @@ function windows(text: string, out: string[]): void {* breadth-first (siblings before depth, so a long list cannot hide a nested value). A string under an object key comes back as `key=value`,* so a secret-named key is judged with its value; a key whose value is not a string is returned bare. Strings longer than the screen window* come back as overlapping windows; one over `perString` keeps its head and tail. Work is bounded by `nodes` slots and `chars` characters.+ * Anything dropped (slots or characters ran out, or a string lost its middle) is reported by a final TRUNCATED text, which `names` and+ * `hasSecretIn` count as a finding, so the screen fails closed instead of passing what it did not read.*/export function textsOf(input: unknown, limits: TextLimits = {}): string[] {const out: string[] = []let slots = limits.nodes ?? NODESlet chars = limits.chars ?? CHARSconst perString = limits.perString ?? PER_STRING+ let truncated = falseconst take = (text: string): void => {- if (chars <= 0) return+ if (chars <= 0) {+ truncated = true+ return+ }if (text.length <= Math.min(perString, chars)) {chars -= text.lengthwindows(text, out)return}+ truncated = trueconst half = Math.floor(Math.min(perString, chars) / 2)chars -= 2 * halfwindows(text.slice(0, half), out)windows(text.slice(-half), out)}const queue: unknown[] = [input]- for (let head = 0; head < queue.length && chars > 0; head++) {+ let head = 0+ for (; head < queue.length && chars > 0; head++) {const node = queue[head]if (typeof node === 'string') take(node)else if (Array.isArray(node)) {- for (let i = 0; i < node.length && slots > 0; i++, slots--) if (i in node) queue.push(node[i])+ let i = 0+ for (; i < node.length && slots > 0; i++, slots--) if (i in node) queue.push(node[i])+ if (i < node.length) truncated = true} else if (typeof node === 'object' && node !== null) {for (const k in node) {- if (slots-- <= 0) break+ if (slots-- <= 0) {+ truncated = true+ break+ }if (!Object.prototype.hasOwnProperty.call(node, k)) continueconst v = (node as Record<string, unknown>)[k]if (typeof v === 'string') queue.push(k + '=' + v)@@ -224,6 +244,8 @@ export function textsOf(input: unknown, limits: TextLimits = {}): string[] {}}}+ if (queue.length > head) truncated = true+ if (truncated) out.push(TRUNCATED)return out}// END SHARED SCREENdiff --git a/plugins/ruflo-neural-trader/scripts/smoke.sh b/plugins/ruflo-neural-trader/scripts/smoke.shindex a47823d138..3c5949d01d 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.2 with new keywords"+step "1. plugin.json declares 0.3.3 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.2" ]]; then bad "expected 0.3.2, got '$v'"; else+if [[ "$v" != "0.3.3" ]]; then bad "expected 0.3.3, 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-observability/.claude-plugin/plugin.json b/plugins/ruflo-observability/.claude-plugin/plugin.jsonindex 2303df6668..05a468f7dd 100644--- a/plugins/ruflo-observability/.claude-plugin/plugin.json+++ b/plugins/ruflo-observability/.claude-plugin/plugin.json@@ -1,7 +1,7 @@{"name": "ruflo-observability","description": "Structured logging, distributed tracing, and metrics β correlate agent swarm activity with application telemetry. As a mod (ADR-445): a tighten-only guard on its tools, /observe-mod, and a status file the console shows",- "version": "0.3.1",+ "version": "0.3.2","author": {"name": "ruvnet","url": "https://github.com/ruvnet"diff --git a/plugins/ruflo-observability/hooks/screen.ts b/plugins/ruflo-observability/hooks/screen.tsindex 329d685de3..fd5e70d08a 100644--- a/plugins/ruflo-observability/hooks/screen.ts+++ b/plugins/ruflo-observability/hooks/screen.ts@@ -144,8 +144,15 @@ function matches(name: string, re: RegExp, text: string): boolean {return false}+/**+ * The text textsOf appends when it had to drop input (a node, character or per-string budget ran out). It is never matched against a rule:+ * `names` reports it as a finding of its own, so every guard that asks "is there a secret in these texts" refuses what it could not read in full.+ */+export const TRUNCATED = 'ruflo-screen: input exceeded the screening budget'+export const TRUNCATED_NAME = 'input too large to screen'+/** Names of the rules that match `text` (already bare'd). A rule named 'key assignment' is judged by assignmentSecret, whatever its regex. */-export const names = (rules: Rules, text: string) => rules.filter(([name, re]) => matches(name, re, text)).map(([name]) => name)+export const names = (rules: Rules, text: string) => text === TRUNCATED ? [TRUNCATED_NAME] : rules.filter(([name, re]) => matches(name, re, text)).map(([name]) => name)export type Findings = { readonly secrets: readonly string[]; readonly injection: readonly string[] }@@ -187,33 +194,46 @@ function windows(text: string, out: string[]): void {* breadth-first (siblings before depth, so a long list cannot hide a nested value). A string under an object key comes back as `key=value`,* so a secret-named key is judged with its value; a key whose value is not a string is returned bare. Strings longer than the screen window* come back as overlapping windows; one over `perString` keeps its head and tail. Work is bounded by `nodes` slots and `chars` characters.+ * Anything dropped (slots or characters ran out, or a string lost its middle) is reported by a final TRUNCATED text, which `names` and+ * `hasSecretIn` count as a finding, so the screen fails closed instead of passing what it did not read.*/export function textsOf(input: unknown, limits: TextLimits = {}): string[] {const out: string[] = []let slots = limits.nodes ?? NODESlet chars = limits.chars ?? CHARSconst perString = limits.perString ?? PER_STRING+ let truncated = falseconst take = (text: string): void => {- if (chars <= 0) return+ if (chars <= 0) {+ truncated = true+ return+ }if (text.length <= Math.min(perString, chars)) {chars -= text.lengthwindows(text, out)return}+ truncated = trueconst half = Math.floor(Math.min(perString, chars) / 2)chars -= 2 * halfwindows(text.slice(0, half), out)windows(text.slice(-half), out)}const queue: unknown[] = [input]- for (let head = 0; head < queue.length && chars > 0; head++) {+ let head = 0+ for (; head < queue.length && chars > 0; head++) {const node = queue[head]if (typeof node === 'string') take(node)else if (Array.isArray(node)) {- for (let i = 0; i < node.length && slots > 0; i++, slots--) if (i in node) queue.push(node[i])+ let i = 0+ for (; i < node.length && slots > 0; i++, slots--) if (i in node) queue.push(node[i])+ if (i < node.length) truncated = true} else if (typeof node === 'object' && node !== null) {for (const k in node) {- if (slots-- <= 0) break+ if (slots-- <= 0) {+ truncated = true+ break+ }if (!Object.prototype.hasOwnProperty.call(node, k)) continueconst v = (node as Record<string, unknown>)[k]if (typeof v === 'string') queue.push(k + '=' + v)@@ -224,6 +244,8 @@ export function textsOf(input: unknown, limits: TextLimits = {}): string[] {}}}+ if (queue.length > head) truncated = true+ if (truncated) out.push(TRUNCATED)return out}// END SHARED SCREENdiff --git a/plugins/ruflo-observability/scripts/smoke.sh b/plugins/ruflo-observability/scripts/smoke.shindex 9e69ba60cd..c2f10eb273 100755--- a/plugins/ruflo-observability/scripts/smoke.sh+++ b/plugins/ruflo-observability/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.1 with new keywords"+step "1. plugin.json declares 0.3.2 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.1" ]]; then bad "expected 0.3.1, got '$v'"; else+if [[ "$v" != "0.3.2" ]]; then bad "expected 0.3.2, got '$v'"; elsemiss=""for k in mcp distributed-tracing anomaly-detection; dogrep -q "\"$k\"" "$ROOT/.claude-plugin/plugin.json" || miss="$miss $k"diff --git a/plugins/ruflo-rag-memory/.claude-plugin/plugin.json b/plugins/ruflo-rag-memory/.claude-plugin/plugin.jsonindex 15822bd55d..8dc875e600 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.3",+ "version": "0.3.4","author": {"name": "ruvnet","url": "https://github.com/ruvnet"diff --git a/plugins/ruflo-rag-memory/hooks/screen.ts b/plugins/ruflo-rag-memory/hooks/screen.tsindex 6a733312f7..179ea565c4 100644--- a/plugins/ruflo-rag-memory/hooks/screen.ts+++ b/plugins/ruflo-rag-memory/hooks/screen.ts@@ -144,8 +144,15 @@ function matches(name: string, re: RegExp, text: string): boolean {return false}+/**+ * The text textsOf appends when it had to drop input (a node, character or per-string budget ran out). It is never matched against a rule:+ * `names` reports it as a finding of its own, so every guard that asks "is there a secret in these texts" refuses what it could not read in full.+ */+export const TRUNCATED = 'ruflo-screen: input exceeded the screening budget'+export const TRUNCATED_NAME = 'input too large to screen'+/** Names of the rules that match `text` (already bare'd). A rule named 'key assignment' is judged by assignmentSecret, whatever its regex. */-export const names = (rules: Rules, text: string) => rules.filter(([name, re]) => matches(name, re, text)).map(([name]) => name)+export const names = (rules: Rules, text: string) => text === TRUNCATED ? [TRUNCATED_NAME] : rules.filter(([name, re]) => matches(name, re, text)).map(([name]) => name)export type Findings = { readonly secrets: readonly string[]; readonly injection: readonly string[] }@@ -187,33 +194,46 @@ function windows(text: string, out: string[]): void {* breadth-first (siblings before depth, so a long list cannot hide a nested value). A string under an object key comes back as `key=value`,* so a secret-named key is judged with its value; a key whose value is not a string is returned bare. Strings longer than the screen window* come back as overlapping windows; one over `perString` keeps its head and tail. Work is bounded by `nodes` slots and `chars` characters.+ * Anything dropped (slots or characters ran out, or a string lost its middle) is reported by a final TRUNCATED text, which `names` and+ * `hasSecretIn` count as a finding, so the screen fails closed instead of passing what it did not read.*/export function textsOf(input: unknown, limits: TextLimits = {}): string[] {const out: string[] = []let slots = limits.nodes ?? NODESlet chars = limits.chars ?? CHARSconst perString = limits.perString ?? PER_STRING+ let truncated = falseconst take = (text: string): void => {- if (chars <= 0) return+ if (chars <= 0) {+ truncated = true+ return+ }if (text.length <= Math.min(perString, chars)) {chars -= text.lengthwindows(text, out)return}+ truncated = trueconst half = Math.floor(Math.min(perString, chars) / 2)chars -= 2 * halfwindows(text.slice(0, half), out)windows(text.slice(-half), out)}const queue: unknown[] = [input]- for (let head = 0; head < queue.length && chars > 0; head++) {+ let head = 0+ for (; head < queue.length && chars > 0; head++) {const node = queue[head]if (typeof node === 'string') take(node)else if (Array.isArray(node)) {- for (let i = 0; i < node.length && slots > 0; i++, slots--) if (i in node) queue.push(node[i])+ let i = 0+ for (; i < node.length && slots > 0; i++, slots--) if (i in node) queue.push(node[i])+ if (i < node.length) truncated = true} else if (typeof node === 'object' && node !== null) {for (const k in node) {- if (slots-- <= 0) break+ if (slots-- <= 0) {+ truncated = true+ break+ }if (!Object.prototype.hasOwnProperty.call(node, k)) continueconst v = (node as Record<string, unknown>)[k]if (typeof v === 'string') queue.push(k + '=' + v)@@ -224,6 +244,8 @@ export function textsOf(input: unknown, limits: TextLimits = {}): string[] {}}}+ if (queue.length > head) truncated = true+ if (truncated) out.push(TRUNCATED)return out}// END SHARED SCREENdiff --git a/plugins/ruflo-rag-memory/scripts/smoke.sh b/plugins/ruflo-rag-memory/scripts/smoke.shindex de15cb9a0b..5ace564cc9 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.3 with new keywords"+step "1. plugin.json declares 0.3.4 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.3" ]]; then bad "expected 0.3.3, got '$v'"; else+if [[ "$v" != "0.3.4" ]]; then bad "expected 0.3.4, 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-ruvector/.claude-plugin/plugin.json b/plugins/ruflo-ruvector/.claude-plugin/plugin.jsonindex c0460e0fbf..e9d26ee073 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.2",+ "version": "0.3.3","author": {"name": "ruvnet","url": "https://github.com/ruvnet"diff --git a/plugins/ruflo-ruvector/hooks/screen.ts b/plugins/ruflo-ruvector/hooks/screen.tsindex 9fef5365db..46730982b7 100644--- a/plugins/ruflo-ruvector/hooks/screen.ts+++ b/plugins/ruflo-ruvector/hooks/screen.ts@@ -144,8 +144,15 @@ function matches(name: string, re: RegExp, text: string): boolean {return false}+/**+ * The text textsOf appends when it had to drop input (a node, character or per-string budget ran out). It is never matched against a rule:+ * `names` reports it as a finding of its own, so every guard that asks "is there a secret in these texts" refuses what it could not read in full.+ */+export const TRUNCATED = 'ruflo-screen: input exceeded the screening budget'+export const TRUNCATED_NAME = 'input too large to screen'+/** Names of the rules that match `text` (already bare'd). A rule named 'key assignment' is judged by assignmentSecret, whatever its regex. */-export const names = (rules: Rules, text: string) => rules.filter(([name, re]) => matches(name, re, text)).map(([name]) => name)+export const names = (rules: Rules, text: string) => text === TRUNCATED ? [TRUNCATED_NAME] : rules.filter(([name, re]) => matches(name, re, text)).map(([name]) => name)export type Findings = { readonly secrets: readonly string[]; readonly injection: readonly string[] }@@ -187,33 +194,46 @@ function windows(text: string, out: string[]): void {* breadth-first (siblings before depth, so a long list cannot hide a nested value). A string under an object key comes back as `key=value`,* so a secret-named key is judged with its value; a key whose value is not a string is returned bare. Strings longer than the screen window* come back as overlapping windows; one over `perString` keeps its head and tail. Work is bounded by `nodes` slots and `chars` characters.+ * Anything dropped (slots or characters ran out, or a string lost its middle) is reported by a final TRUNCATED text, which `names` and+ * `hasSecretIn` count as a finding, so the screen fails closed instead of passing what it did not read.*/export function textsOf(input: unknown, limits: TextLimits = {}): string[] {const out: string[] = []let slots = limits.nodes ?? NODESlet chars = limits.chars ?? CHARSconst perString = limits.perString ?? PER_STRING+ let truncated = falseconst take = (text: string): void => {- if (chars <= 0) return+ if (chars <= 0) {+ truncated = true+ return+ }if (text.length <= Math.min(perString, chars)) {chars -= text.lengthwindows(text, out)return}+ truncated = trueconst half = Math.floor(Math.min(perString, chars) / 2)chars -= 2 * halfwindows(text.slice(0, half), out)windows(text.slice(-half), out)}const queue: unknown[] = [input]- for (let head = 0; head < queue.length && chars > 0; head++) {+ let head = 0+ for (; head < queue.length && chars > 0; head++) {const node = queue[head]if (typeof node === 'string') take(node)else if (Array.isArray(node)) {- for (let i = 0; i < node.length && slots > 0; i++, slots--) if (i in node) queue.push(node[i])+ let i = 0+ for (; i < node.length && slots > 0; i++, slots--) if (i in node) queue.push(node[i])+ if (i < node.length) truncated = true} else if (typeof node === 'object' && node !== null) {for (const k in node) {- if (slots-- <= 0) break+ if (slots-- <= 0) {+ truncated = true+ break+ }if (!Object.prototype.hasOwnProperty.call(node, k)) continueconst v = (node as Record<string, unknown>)[k]if (typeof v === 'string') queue.push(k + '=' + v)@@ -224,6 +244,8 @@ export function textsOf(input: unknown, limits: TextLimits = {}): string[] {}}}+ if (queue.length > head) truncated = true+ if (truncated) out.push(TRUNCATED)return out}// END SHARED SCREENdiff --git a/plugins/ruflo-ruvllm/.claude-plugin/plugin.json b/plugins/ruflo-ruvllm/.claude-plugin/plugin.jsonindex eceed3c1db..71169e64e2 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.2",+ "version": "0.3.3","author": {"name": "ruvnet","url": "https://github.com/ruvnet"diff --git a/plugins/ruflo-ruvllm/hooks/screen.ts b/plugins/ruflo-ruvllm/hooks/screen.tsindex 1d0154f5cf..36813dce50 100644--- a/plugins/ruflo-ruvllm/hooks/screen.ts+++ b/plugins/ruflo-ruvllm/hooks/screen.ts@@ -144,8 +144,15 @@ function matches(name: string, re: RegExp, text: string): boolean {return false}+/**+ * The text textsOf appends when it had to drop input (a node, character or per-string budget ran out). It is never matched against a rule:+ * `names` reports it as a finding of its own, so every guard that asks "is there a secret in these texts" refuses what it could not read in full.+ */+export const TRUNCATED = 'ruflo-screen: input exceeded the screening budget'+export const TRUNCATED_NAME = 'input too large to screen'+/** Names of the rules that match `text` (already bare'd). A rule named 'key assignment' is judged by assignmentSecret, whatever its regex. */-export const names = (rules: Rules, text: string) => rules.filter(([name, re]) => matches(name, re, text)).map(([name]) => name)+export const names = (rules: Rules, text: string) => text === TRUNCATED ? [TRUNCATED_NAME] : rules.filter(([name, re]) => matches(name, re, text)).map(([name]) => name)export type Findings = { readonly secrets: readonly string[]; readonly injection: readonly string[] }@@ -187,33 +194,46 @@ function windows(text: string, out: string[]): void {* breadth-first (siblings before depth, so a long list cannot hide a nested value). A string under an object key comes back as `key=value`,* so a secret-named key is judged with its value; a key whose value is not a string is returned bare. Strings longer than the screen window* come back as overlapping windows; one over `perString` keeps its head and tail. Work is bounded by `nodes` slots and `chars` characters.+ * Anything dropped (slots or characters ran out, or a string lost its middle) is reported by a final TRUNCATED text, which `names` and+ * `hasSecretIn` count as a finding, so the screen fails closed instead of passing what it did not read.*/export function textsOf(input: unknown, limits: TextLimits = {}): string[] {const out: string[] = []let slots = limits.nodes ?? NODESlet chars = limits.chars ?? CHARSconst perString = limits.perString ?? PER_STRING+ let truncated = falseconst take = (text: string): void => {- if (chars <= 0) return+ if (chars <= 0) {+ truncated = true+ return+ }if (text.length <= Math.min(perString, chars)) {chars -= text.lengthwindows(text, out)return}+ truncated = trueconst half = Math.floor(Math.min(perString, chars) / 2)chars -= 2 * halfwindows(text.slice(0, half), out)windows(text.slice(-half), out)}const queue: unknown[] = [input]- for (let head = 0; head < queue.length && chars > 0; head++) {+ let head = 0+ for (; head < queue.length && chars > 0; head++) {const node = queue[head]if (typeof node === 'string') take(node)else if (Array.isArray(node)) {- for (let i = 0; i < node.length && slots > 0; i++, slots--) if (i in node) queue.push(node[i])+ let i = 0+ for (; i < node.length && slots > 0; i++, slots--) if (i in node) queue.push(node[i])+ if (i < node.length) truncated = true} else if (typeof node === 'object' && node !== null) {for (const k in node) {- if (slots-- <= 0) break+ if (slots-- <= 0) {+ truncated = true+ break+ }if (!Object.prototype.hasOwnProperty.call(node, k)) continueconst v = (node as Record<string, unknown>)[k]if (typeof v === 'string') queue.push(k + '=' + v)@@ -224,6 +244,8 @@ export function textsOf(input: unknown, limits: TextLimits = {}): string[] {}}}+ if (queue.length > head) truncated = true+ if (truncated) out.push(TRUNCATED)return out}// END SHARED SCREENdiff --git a/plugins/ruflo-ruvllm/scripts/smoke.sh b/plugins/ruflo-ruvllm/scripts/smoke.shindex 10a871d15c..839372d143 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.2 with new keywords"+step "1. plugin.json declares 0.3.3 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.2" ]]; then bad "expected 0.3.2, got '$v'"; else+if [[ "$v" != "0.3.3" ]]; then bad "expected 0.3.3, 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-rvf/.claude-plugin/plugin.json b/plugins/ruflo-rvf/.claude-plugin/plugin.jsonindex 2542dec2a4..7d7c20ee28 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.3",+ "version": "0.3.4","author": {"name": "ruvnet","url": "https://github.com/ruvnet"diff --git a/plugins/ruflo-rvf/hooks/screen.ts b/plugins/ruflo-rvf/hooks/screen.tsindex f780854d70..fbeee410bf 100644--- a/plugins/ruflo-rvf/hooks/screen.ts+++ b/plugins/ruflo-rvf/hooks/screen.ts@@ -144,8 +144,15 @@ function matches(name: string, re: RegExp, text: string): boolean {return false}+/**+ * The text textsOf appends when it had to drop input (a node, character or per-string budget ran out). It is never matched against a rule:+ * `names` reports it as a finding of its own, so every guard that asks "is there a secret in these texts" refuses what it could not read in full.+ */+export const TRUNCATED = 'ruflo-screen: input exceeded the screening budget'+export const TRUNCATED_NAME = 'input too large to screen'+/** Names of the rules that match `text` (already bare'd). A rule named 'key assignment' is judged by assignmentSecret, whatever its regex. */-export const names = (rules: Rules, text: string) => rules.filter(([name, re]) => matches(name, re, text)).map(([name]) => name)+export const names = (rules: Rules, text: string) => text === TRUNCATED ? [TRUNCATED_NAME] : rules.filter(([name, re]) => matches(name, re, text)).map(([name]) => name)export type Findings = { readonly secrets: readonly string[]; readonly injection: readonly string[] }@@ -187,33 +194,46 @@ function windows(text: string, out: string[]): void {* breadth-first (siblings before depth, so a long list cannot hide a nested value). A string under an object key comes back as `key=value`,* so a secret-named key is judged with its value; a key whose value is not a string is returned bare. Strings longer than the screen window* come back as overlapping windows; one over `perString` keeps its head and tail. Work is bounded by `nodes` slots and `chars` characters.+ * Anything dropped (slots or characters ran out, or a string lost its middle) is reported by a final TRUNCATED text, which `names` and+ * `hasSecretIn` count as a finding, so the screen fails closed instead of passing what it did not read.*/export function textsOf(input: unknown, limits: TextLimits = {}): string[] {const out: string[] = []let slots = limits.nodes ?? NODESlet chars = limits.chars ?? CHARSconst perString = limits.perString ?? PER_STRING+ let truncated = falseconst take = (text: string): void => {- if (chars <= 0) return+ if (chars <= 0) {+ truncated = true+ return+ }if (text.length <= Math.min(perString, chars)) {chars -= text.lengthwindows(text, out)return}+ truncated = trueconst half = Math.floor(Math.min(perString, chars) / 2)chars -= 2 * halfwindows(text.slice(0, half), out)windows(text.slice(-half), out)}const queue: unknown[] = [input]- for (let head = 0; head < queue.length && chars > 0; head++) {+ let head = 0+ for (; head < queue.length && chars > 0; head++) {const node = queue[head]if (typeof node === 'string') take(node)else if (Array.isArray(node)) {- for (let i = 0; i < node.length && slots > 0; i++, slots--) if (i in node) queue.push(node[i])+ let i = 0+ for (; i < node.length && slots > 0; i++, slots--) if (i in node) queue.push(node[i])+ if (i < node.length) truncated = true} else if (typeof node === 'object' && node !== null) {for (const k in node) {- if (slots-- <= 0) break+ if (slots-- <= 0) {+ truncated = true+ break+ }if (!Object.prototype.hasOwnProperty.call(node, k)) continueconst v = (node as Record<string, unknown>)[k]if (typeof v === 'string') queue.push(k + '=' + v)@@ -224,6 +244,8 @@ export function textsOf(input: unknown, limits: TextLimits = {}): string[] {}}}+ if (queue.length > head) truncated = true+ if (truncated) out.push(TRUNCATED)return out}// END SHARED SCREENdiff --git a/plugins/ruflo-rvf/scripts/smoke.sh b/plugins/ruflo-rvf/scripts/smoke.shindex 02167aafe8..116192bd92 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.3 with new keywords"+step "1. plugin.json declares 0.3.4 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.3" ]]; then bad "expected 0.3.3, got '$v'"; else+if [[ "$v" != "0.3.4" ]]; then bad "expected 0.3.4, 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-security-audit/.claude-plugin/plugin.json b/plugins/ruflo-security-audit/.claude-plugin/plugin.jsonindex bdd7010fbe..4fdbf0ab05 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.2",+ "version": "0.3.3","author": {"name": "ruvnet","url": "https://github.com/ruvnet"diff --git a/plugins/ruflo-security-audit/hooks/screen.ts b/plugins/ruflo-security-audit/hooks/screen.tsindex 19e560824a..46bb5fac17 100644--- a/plugins/ruflo-security-audit/hooks/screen.ts+++ b/plugins/ruflo-security-audit/hooks/screen.ts@@ -144,8 +144,15 @@ function matches(name: string, re: RegExp, text: string): boolean {return false}+/**+ * The text textsOf appends when it had to drop input (a node, character or per-string budget ran out). It is never matched against a rule:+ * `names` reports it as a finding of its own, so every guard that asks "is there a secret in these texts" refuses what it could not read in full.+ */+export const TRUNCATED = 'ruflo-screen: input exceeded the screening budget'+export const TRUNCATED_NAME = 'input too large to screen'+/** Names of the rules that match `text` (already bare'd). A rule named 'key assignment' is judged by assignmentSecret, whatever its regex. */-export const names = (rules: Rules, text: string) => rules.filter(([name, re]) => matches(name, re, text)).map(([name]) => name)+export const names = (rules: Rules, text: string) => text === TRUNCATED ? [TRUNCATED_NAME] : rules.filter(([name, re]) => matches(name, re, text)).map(([name]) => name)export type Findings = { readonly secrets: readonly string[]; readonly injection: readonly string[] }@@ -187,33 +194,46 @@ function windows(text: string, out: string[]): void {* breadth-first (siblings before depth, so a long list cannot hide a nested value). A string under an object key comes back as `key=value`,* so a secret-named key is judged with its value; a key whose value is not a string is returned bare. Strings longer than the screen window* come back as overlapping windows; one over `perString` keeps its head and tail. Work is bounded by `nodes` slots and `chars` characters.+ * Anything dropped (slots or characters ran out, or a string lost its middle) is reported by a final TRUNCATED text, which `names` and+ * `hasSecretIn` count as a finding, so the screen fails closed instead of passing what it did not read.*/export function textsOf(input: unknown, limits: TextLimits = {}): string[] {const out: string[] = []let slots = limits.nodes ?? NODESlet chars = limits.chars ?? CHARSconst perString = limits.perString ?? PER_STRING+ let truncated = falseconst take = (text: string): void => {- if (chars <= 0) return+ if (chars <= 0) {+ truncated = true+ return+ }if (text.length <= Math.min(perString, chars)) {chars -= text.lengthwindows(text, out)return}+ truncated = trueconst half = Math.floor(Math.min(perString, chars) / 2)chars -= 2 * halfwindows(text.slice(0, half), out)windows(text.slice(-half), out)}const queue: unknown[] = [input]- for (let head = 0; head < queue.length && chars > 0; head++) {+ let head = 0+ for (; head < queue.length && chars > 0; head++) {const node = queue[head]if (typeof node === 'string') take(node)else if (Array.isArray(node)) {- for (let i = 0; i < node.length && slots > 0; i++, slots--) if (i in node) queue.push(node[i])+ let i = 0+ for (; i < node.length && slots > 0; i++, slots--) if (i in node) queue.push(node[i])+ if (i < node.length) truncated = true} else if (typeof node === 'object' && node !== null) {for (const k in node) {- if (slots-- <= 0) break+ if (slots-- <= 0) {+ truncated = true+ break+ }if (!Object.prototype.hasOwnProperty.call(node, k)) continueconst v = (node as Record<string, unknown>)[k]if (typeof v === 'string') queue.push(k + '=' + v)@@ -224,6 +244,8 @@ export function textsOf(input: unknown, limits: TextLimits = {}): string[] {}}}+ if (queue.length > head) truncated = true+ if (truncated) out.push(TRUNCATED)return out}// END SHARED SCREENdiff --git a/plugins/ruflo-security-audit/scripts/smoke.sh b/plugins/ruflo-security-audit/scripts/smoke.shindex 339c42abd8..0d069094c1 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.2 with new keywords"+step "1. plugin.json declares 0.3.3 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.2" ]]; then bad "expected 0.3.2, got '$v'"; else+if [[ "$v" != "0.3.3" ]]; then bad "expected 0.3.3, 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-sparc/.claude-plugin/plugin.json b/plugins/ruflo-sparc/.claude-plugin/plugin.jsonindex 089e48d3b4..07d3562d54 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.2",+ "version": "0.3.3","author": {"name": "ruvnet","url": "https://github.com/ruvnet"diff --git a/plugins/ruflo-sparc/hooks/screen.ts b/plugins/ruflo-sparc/hooks/screen.tsindex e8774e59f6..ccadbf9ed4 100644--- a/plugins/ruflo-sparc/hooks/screen.ts+++ b/plugins/ruflo-sparc/hooks/screen.ts@@ -144,8 +144,15 @@ function matches(name: string, re: RegExp, text: string): boolean {return false}+/**+ * The text textsOf appends when it had to drop input (a node, character or per-string budget ran out). It is never matched against a rule:+ * `names` reports it as a finding of its own, so every guard that asks "is there a secret in these texts" refuses what it could not read in full.+ */+export const TRUNCATED = 'ruflo-screen: input exceeded the screening budget'+export const TRUNCATED_NAME = 'input too large to screen'+/** Names of the rules that match `text` (already bare'd). A rule named 'key assignment' is judged by assignmentSecret, whatever its regex. */-export const names = (rules: Rules, text: string) => rules.filter(([name, re]) => matches(name, re, text)).map(([name]) => name)+export const names = (rules: Rules, text: string) => text === TRUNCATED ? [TRUNCATED_NAME] : rules.filter(([name, re]) => matches(name, re, text)).map(([name]) => name)export type Findings = { readonly secrets: readonly string[]; readonly injection: readonly string[] }@@ -187,33 +194,46 @@ function windows(text: string, out: string[]): void {* breadth-first (siblings before depth, so a long list cannot hide a nested value). A string under an object key comes back as `key=value`,* so a secret-named key is judged with its value; a key whose value is not a string is returned bare. Strings longer than the screen window* come back as overlapping windows; one over `perString` keeps its head and tail. Work is bounded by `nodes` slots and `chars` characters.+ * Anything dropped (slots or characters ran out, or a string lost its middle) is reported by a final TRUNCATED text, which `names` and+ * `hasSecretIn` count as a finding, so the screen fails closed instead of passing what it did not read.*/export function textsOf(input: unknown, limits: TextLimits = {}): string[] {const out: string[] = []let slots = limits.nodes ?? NODESlet chars = limits.chars ?? CHARSconst perString = limits.perString ?? PER_STRING+ let truncated = falseconst take = (text: string): void => {- if (chars <= 0) return+ if (chars <= 0) {+ truncated = true+ return+ }if (text.length <= Math.min(perString, chars)) {chars -= text.lengthwindows(text, out)return}+ truncated = trueconst half = Math.floor(Math.min(perString, chars) / 2)chars -= 2 * halfwindows(text.slice(0, half), out)windows(text.slice(-half), out)}const queue: unknown[] = [input]- for (let head = 0; head < queue.length && chars > 0; head++) {+ let head = 0+ for (; head < queue.length && chars > 0; head++) {const node = queue[head]if (typeof node === 'string') take(node)else if (Array.isArray(node)) {- for (let i = 0; i < node.length && slots > 0; i++, slots--) if (i in node) queue.push(node[i])+ let i = 0+ for (; i < node.length && slots > 0; i++, slots--) if (i in node) queue.push(node[i])+ if (i < node.length) truncated = true} else if (typeof node === 'object' && node !== null) {for (const k in node) {- if (slots-- <= 0) break+ if (slots-- <= 0) {+ truncated = true+ break+ }if (!Object.prototype.hasOwnProperty.call(node, k)) continueconst v = (node as Record<string, unknown>)[k]if (typeof v === 'string') queue.push(k + '=' + v)@@ -224,6 +244,8 @@ export function textsOf(input: unknown, limits: TextLimits = {}): string[] {}}}+ if (queue.length > head) truncated = true+ if (truncated) out.push(TRUNCATED)return out}// END SHARED SCREENdiff --git a/plugins/ruflo-sparc/scripts/smoke.sh b/plugins/ruflo-sparc/scripts/smoke.shindex c8e7991fd1..d6be8d0389 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.2 with new keywords"+step "1. plugin.json declares 0.3.3 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.2" ]]; then bad "expected 0.3.2, got '$v'"; else+if [[ "$v" != "0.3.3" ]]; then bad "expected 0.3.3, 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-workflows/.claude-plugin/plugin.json b/plugins/ruflo-workflows/.claude-plugin/plugin.jsonindex efd54a57ec..0045f94ccb 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.2",+ "version": "0.6.3","author": {"name": "ruvnet","url": "https://github.com/ruvnet"diff --git a/plugins/ruflo-workflows/hooks/screen.ts b/plugins/ruflo-workflows/hooks/screen.tsindex 8ed877f2aa..87cf702ad2 100644--- a/plugins/ruflo-workflows/hooks/screen.ts+++ b/plugins/ruflo-workflows/hooks/screen.ts@@ -144,8 +144,15 @@ function matches(name: string, re: RegExp, text: string): boolean {return false}+/**+ * The text textsOf appends when it had to drop input (a node, character or per-string budget ran out). It is never matched against a rule:+ * `names` reports it as a finding of its own, so every guard that asks "is there a secret in these texts" refuses what it could not read in full.+ */+export const TRUNCATED = 'ruflo-screen: input exceeded the screening budget'+export const TRUNCATED_NAME = 'input too large to screen'+/** Names of the rules that match `text` (already bare'd). A rule named 'key assignment' is judged by assignmentSecret, whatever its regex. */-export const names = (rules: Rules, text: string) => rules.filter(([name, re]) => matches(name, re, text)).map(([name]) => name)+export const names = (rules: Rules, text: string) => text === TRUNCATED ? [TRUNCATED_NAME] : rules.filter(([name, re]) => matches(name, re, text)).map(([name]) => name)export type Findings = { readonly secrets: readonly string[]; readonly injection: readonly string[] }@@ -187,33 +194,46 @@ function windows(text: string, out: string[]): void {* breadth-first (siblings before depth, so a long list cannot hide a nested value). A string under an object key comes back as `key=value`,* so a secret-named key is judged with its value; a key whose value is not a string is returned bare. Strings longer than the screen window* come back as overlapping windows; one over `perString` keeps its head and tail. Work is bounded by `nodes` slots and `chars` characters.+ * Anything dropped (slots or characters ran out, or a string lost its middle) is reported by a final TRUNCATED text, which `names` and+ * `hasSecretIn` count as a finding, so the screen fails closed instead of passing what it did not read.*/export function textsOf(input: unknown, limits: TextLimits = {}): string[] {const out: string[] = []let slots = limits.nodes ?? NODESlet chars = limits.chars ?? CHARSconst perString = limits.perString ?? PER_STRING+ let truncated = falseconst take = (text: string): void => {- if (chars <= 0) return+ if (chars <= 0) {+ truncated = true+ return+ }if (text.length <= Math.min(perString, chars)) {chars -= text.lengthwindows(text, out)return}+ truncated = trueconst half = Math.floor(Math.min(perString, chars) / 2)chars -= 2 * halfwindows(text.slice(0, half), out)windows(text.slice(-half), out)}const queue: unknown[] = [input]- for (let head = 0; head < queue.length && chars > 0; head++) {+ let head = 0+ for (; head < queue.length && chars > 0; head++) {const node = queue[head]if (typeof node === 'string') take(node)else if (Array.isArray(node)) {- for (let i = 0; i < node.length && slots > 0; i++, slots--) if (i in node) queue.push(node[i])+ let i = 0+ for (; i < node.length && slots > 0; i++, slots--) if (i in node) queue.push(node[i])+ if (i < node.length) truncated = true} else if (typeof node === 'object' && node !== null) {for (const k in node) {- if (slots-- <= 0) break+ if (slots-- <= 0) {+ truncated = true+ break+ }if (!Object.prototype.hasOwnProperty.call(node, k)) continueconst v = (node as Record<string, unknown>)[k]if (typeof v === 'string') queue.push(k + '=' + v)@@ -224,6 +244,8 @@ export function textsOf(input: unknown, limits: TextLimits = {}): string[] {}}}+ if (queue.length > head) truncated = true+ if (truncated) out.push(TRUNCATED)return out}// END SHARED SCREENdiff --git a/plugins/ruflo-workflows/scripts/smoke.sh b/plugins/ruflo-workflows/scripts/smoke.shindex 20445a4498..c70d255cb2 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.2 with lifecycle keywords"+step "1. plugin.json declares 0.6.3 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.2" ]]; then bad "expected 0.6.2, got '$v'"; else+if [[ "$v" != "0.6.3" ]]; then bad "expected 0.6.3, 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-x-gateway/.claude-plugin/plugin.json b/plugins/ruflo-x-gateway/.claude-plugin/plugin.jsonindex 8e0ec30bd8..a0b94100e8 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.3",+ "version": "0.9.4","author": {"name": "ruvnet","url": "https://github.com/ruvnet"diff --git a/plugins/ruflo-x-gateway/hooks/screen.ts b/plugins/ruflo-x-gateway/hooks/screen.tsindex 3850675534..5b3b4cf255 100644--- a/plugins/ruflo-x-gateway/hooks/screen.ts+++ b/plugins/ruflo-x-gateway/hooks/screen.ts@@ -144,8 +144,15 @@ function matches(name: string, re: RegExp, text: string): boolean {return false}+/**+ * The text textsOf appends when it had to drop input (a node, character or per-string budget ran out). It is never matched against a rule:+ * `names` reports it as a finding of its own, so every guard that asks "is there a secret in these texts" refuses what it could not read in full.+ */+export const TRUNCATED = 'ruflo-screen: input exceeded the screening budget'+export const TRUNCATED_NAME = 'input too large to screen'+/** Names of the rules that match `text` (already bare'd). A rule named 'key assignment' is judged by assignmentSecret, whatever its regex. */-export const names = (rules: Rules, text: string) => rules.filter(([name, re]) => matches(name, re, text)).map(([name]) => name)+export const names = (rules: Rules, text: string) => text === TRUNCATED ? [TRUNCATED_NAME] : rules.filter(([name, re]) => matches(name, re, text)).map(([name]) => name)export type Findings = { readonly secrets: readonly string[]; readonly injection: readonly string[] }@@ -187,33 +194,46 @@ function windows(text: string, out: string[]): void {* breadth-first (siblings before depth, so a long list cannot hide a nested value). A string under an object key comes back as `key=value`,* so a secret-named key is judged with its value; a key whose value is not a string is returned bare. Strings longer than the screen window* come back as overlapping windows; one over `perString` keeps its head and tail. Work is bounded by `nodes` slots and `chars` characters.+ * Anything dropped (slots or characters ran out, or a string lost its middle) is reported by a final TRUNCATED text, which `names` and+ * `hasSecretIn` count as a finding, so the screen fails closed instead of passing what it did not read.*/export function textsOf(input: unknown, limits: TextLimits = {}): string[] {const out: string[] = []let slots = limits.nodes ?? NODESlet chars = limits.chars ?? CHARSconst perString = limits.perString ?? PER_STRING+ let truncated = falseconst take = (text: string): void => {- if (chars <= 0) return+ if (chars <= 0) {+ truncated = true+ return+ }if (text.length <= Math.min(perString, chars)) {chars -= text.lengthwindows(text, out)return}+ truncated = trueconst half = Math.floor(Math.min(perString, chars) / 2)chars -= 2 * halfwindows(text.slice(0, half), out)windows(text.slice(-half), out)}const queue: unknown[] = [input]- for (let head = 0; head < queue.length && chars > 0; head++) {+ let head = 0+ for (; head < queue.length && chars > 0; head++) {const node = queue[head]if (typeof node === 'string') take(node)else if (Array.isArray(node)) {- for (let i = 0; i < node.length && slots > 0; i++, slots--) if (i in node) queue.push(node[i])+ let i = 0+ for (; i < node.length && slots > 0; i++, slots--) if (i in node) queue.push(node[i])+ if (i < node.length) truncated = true} else if (typeof node === 'object' && node !== null) {for (const k in node) {- if (slots-- <= 0) break+ if (slots-- <= 0) {+ truncated = true+ break+ }if (!Object.prototype.hasOwnProperty.call(node, k)) continueconst v = (node as Record<string, unknown>)[k]if (typeof v === 'string') queue.push(k + '=' + v)@@ -224,6 +244,8 @@ export function textsOf(input: unknown, limits: TextLimits = {}): string[] {}}}+ if (queue.length > head) truncated = true+ if (truncated) out.push(TRUNCATED)return out}// END SHARED SCREENdiff --git a/scripts/probe-mod-guards.known-holes.json b/scripts/probe-mod-guards.known-holes.jsonindex 084e30ff80..0967ef424b 100644--- a/scripts/probe-mod-guards.known-holes.json+++ b/scripts/probe-mod-guards.known-holes.json@@ -1,98 +1 @@-{- "ruflo-adr": [- "over-node-cap-25000"- ],- "ruflo-agent": [- "over-node-cap-25000"- ],- "ruflo-ai-team": [- "over-node-cap-25000"- ],- "ruflo-aidefence": [- "over-node-cap-25000"- ],- "ruflo-autopilot": [- "over-node-cap-25000"- ],- "ruflo-bbs-federation": [- "over-node-cap-25000"- ],- "ruflo-browser": [- "over-node-cap-25000"- ],- "ruflo-daa": [- "over-node-cap-25000"- ],- "ruflo-ddd": [- "over-node-cap-25000"- ],- "ruflo-docs": [- "over-node-cap-25000"- ],- "ruflo-federation": [- "over-node-cap-25000"- ],- "ruflo-goals": [- "over-node-cap-25000"- ],- "ruflo-graph-intelligence": [- "over-node-cap-25000"- ],- "ruflo-intelligence": [- "over-node-cap-25000"- ],- "ruflo-iot-cognitum": [- "over-node-cap-25000"- ],- "ruflo-jujutsu": [- "over-node-cap-25000"- ],- "ruflo-knowledge-graph": [- "over-node-cap-25000"- ],- "ruflo-loop-workers": [- "over-node-cap-25000"- ],- "ruflo-market-data": [- "over-node-cap-25000"- ],- "ruflo-metaharness": [- "over-node-cap-25000"- ],- "ruflo-migrations": [- "over-node-cap-25000"- ],- "ruflo-music": [- "over-node-cap-25000"- ],- "ruflo-neural-trader": [- "over-node-cap-25000"- ],- "ruflo-observability": [- "over-node-cap-25000"- ],- "ruflo-rag-memory": [- "over-node-cap-25000"- ],- "ruflo-ruvector": [- "over-node-cap-25000"- ],- "ruflo-ruvllm": [- "over-node-cap-25000"- ],- "ruflo-rvf": [- "over-node-cap-25000"- ],- "ruflo-security-audit": [- "over-node-cap-25000"- ],- "ruflo-sparc": [- "over-node-cap-25000"- ],- "ruflo-workflows": [- "over-node-cap-25000"- ],- "ruflo-x-gateway": [- "over-node-cap-25000"- ]-}+{}diff --git a/v3/docs/validation/mod-guard-probe-2026-10.md b/v3/docs/validation/mod-guard-probe-2026-10.mdindex a01e2acbee..e68885fb0a 100644--- a/v3/docs/validation/mod-guard-probe-2026-10.md+++ b/v3/docs/validation/mod-guard-probe-2026-10.md@@ -104,7 +104,7 @@ refuse on it, once, in the generator, then shrink the baseline.## Gate-`scripts/probe-mod-guards.known-holes.json` records the current holes (32 `over-node-cap-25000` entries as of cap-r3). `smoke-all-plugins.mjs` runs `--fast --known-holes` last, so a+`scripts/probe-mod-guards.known-holes.json` records the current holes. **Closed in cap-r4**: the shared `textsOf` now appends a `TRUNCATED` marker whenever it drops input (node, character or per-string budget), and `names`/`hasSecretIn` count it as a finding, so every guard refuses what it could not read in full (message never echoes input). The baseline is empty (it held 32 `over-node-cap-25000` entries as of cap-r3). `smoke-all-plugins.mjs` runs `--fast --known-holes` last, so a**new** hole (a regression, or a new guard copied from the capped template) fails the smoke while this backlog does not. Fixed holesprint as "known holes that now pass"; remove them from the baseline. Fix a root cause, rerun `--write-known-holes`, commit the shrink.