🌊 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(ruflo-console): a person's always-allow answer is no longer Claude's pass around the control level (0.33.2)
ruv7aeead82cbc2
diff --git a/plugins/ruflo-console/.claude-plugin/plugin.json b/plugins/ruflo-console/.claude-plugin/plugin.jsonindex 4fae1545e6..8b708b7f4d 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.1",+ "version": "0.33.2","author": {"name": "ruvnet","url": "https://github.com/ruvnet"diff --git a/plugins/ruflo-console/hooks/model-tools.ts b/plugins/ruflo-console/hooks/model-tools.tsindex 5d64ecb38c..00efdd3229 100644--- a/plugins/ruflo-console/hooks/model-tools.ts+++ b/plugins/ruflo-console/hooks/model-tools.ts@@ -230,6 +230,8 @@ export async function callTool(name: string, input: Record<string, unknown>, depif (state.control.turnCalls > MAX_CALLS_PER_TURN) return refuse(name, `more than ${MAX_CALLS_PER_TURN} console actions in one turn. Summarise for the person and stop.`)+ state.control.viaModel = true+try {if (name === 'console_state') {say(state, name, 'read the console', 'ok')@@ -298,6 +300,7 @@ export async function callTool(name: string, input: Record<string, unknown>, depreturn `Failed: ${plain(error instanceof Error ? error.message : 'the console action failed', 160)}`} finally {+ state.control.viaModel = falsecontrol.host.invalidate()}}diff --git a/plugins/ruflo-console/hooks/runner.ts b/plugins/ruflo-console/hooks/runner.tsindex 70dcefa178..7369bf672c 100644--- a/plugins/ruflo-console/hooks/runner.ts+++ b/plugins/ruflo-console/hooks/runner.ts@@ -131,10 +131,11 @@ export function createRunner(state: State, host: Host, deps: RunnerDeps): Runnerreturn}- // A kind of action the person said never to ask about again runs now, its label saying so.+ // A kind of action the person said never to ask about again runs now, its label saying so. That answer is the person's: an action+ // Claude asked for (ADR-444) still goes through the pending path, where the control level and the confirm mode decide.const kind = rememberKey(spec)- if (kind !== null && state.allowed.has(kind)) {+ if (kind !== null && state.allowed.has(kind) && !state.control.viaModel) {inflight = execute({ ...spec, label: `${spec.label} (remembered: not asked)` })returndiff --git a/plugins/ruflo-console/hooks/state.ts b/plugins/ruflo-console/hooks/state.tsindex 0e8b7dca82..d3ece2173f 100644--- a/plugins/ruflo-console/hooks/state.ts+++ b/plugins/ruflo-console/hooks/state.ts@@ -295,7 +295,7 @@ export type State = {timers: Map<string, Timer>stats: { renders: number[]; refreshes: number[]; frames: number[] }/** Claude's control of the console (ADR-444): paused by the person, the call counts, and the log the dashboard shows. */- control: { paused: boolean; calls: number; turnCalls: number; log: ControlEntry[]; /** Until when Claude counts as driving (a tool call extends it): the console does not spend a second Claude turn on guidance meanwhile. */ drivingUntilMs: number }+ control: { paused: boolean; calls: number; turnCalls: number; log: ControlEntry[]; /** Until when Claude counts as driving (a tool call extends it): the console does not spend a second Claude turn on guidance meanwhile. */ drivingUntilMs: number; /** True while one of Claude's tool calls is running: a person's "always allow" answer must not let Claude's call skip the level and confirm checks (ADR-444). */ viaModel: boolean }}export function newState(raw: PluginOptions | undefined): State {@@ -363,7 +363,7 @@ export function newState(raw: PluginOptions | undefined): State {devtools: { fields: emptyFields(), tmux: 'unknown' },timers: new Map(),stats: { renders: [], refreshes: [], frames: [] },- control: { paused: false, calls: 0, turnCalls: 0, log: [], drivingUntilMs: 0 },+ control: { paused: false, calls: 0, turnCalls: 0, log: [], drivingUntilMs: 0, viaModel: false },}}diff --git a/plugins/ruflo-console/hooks/version.ts b/plugins/ruflo-console/hooks/version.tsindex c282fe8640..1afc8e79d8 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.1'+export const CONSOLE_VERSION = '0.33.2'diff --git a/plugins/ruflo-console/scripts/smoke.sh b/plugins/ruflo-console/scripts/smoke.shindex 26efac8e36..19f0c09c3b 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.1"+step "1. plugin.json declares ruflo-console 0.33.2"grep -q '"name": "ruflo-console"' "$ROOT/.claude-plugin/plugin.json" \- && grep -q '"version": "0.33.1"' "$ROOT/.claude-plugin/plugin.json" && ok || bad "name/version"+ && grep -q '"version": "0.33.2"' "$ROOT/.claude-plugin/plugin.json" && ok || bad "name/version"step "2. hooks.json names exactly one module and no classic hook commands"grep -q '"modules": \["./register.ts"\]' "$HOOKS/hooks.json" && ! grep -q '"command"' "$HOOKS/hooks.json" \diff --git a/plugins/ruflo-console/tests/model-tools.spec.ts b/plugins/ruflo-console/tests/model-tools.spec.tsindex e278eecee6..6ff3ab8c6a 100644--- a/plugins/ruflo-console/tests/model-tools.spec.ts+++ b/plugins/ruflo-console/tests/model-tools.spec.ts@@ -226,6 +226,24 @@ describe('a field that raises its own follow-up (a goal is planned, then guidanc})})+describe('a persons remembered always-allow is not Claudes pass (ADR-444)', () => {+ it('marks the console as driven by the model for the whole tool call, and clears it after (even on a refusal)', async () => {+ const seen: boolean[] = []+ const { deps, state } = setup('write', 'auto', { 'mission-create': { label: 'create the mission and its tasks' } })+ const run = deps.control.runner.runById++ deps.control.runner.runById = (id: string, text: string) => (seen.push(state.control.viaModel), run(id, text))+ await callTool('console_run', { id: 'mission-create' }, deps)+ expect(seen).toEqual([true])+ expect(state.control.viaModel).toBe(false)++ const off = setup('read', 'auto')++ await callTool('console_run', { id: 'mission-create' }, off.deps)+ expect(off.state.control.viaModel).toBe(false)+ })+})+describe('guidance while Claude drives', () => {it('is not offered (no second billed turn) for a goal Claude entered, and is offered again once it stops driving', async () => {const { deps, state } = setup('write', 'auto')diff --git a/plugins/ruflo-console/tests/runner.spec.ts b/plugins/ruflo-console/tests/runner.spec.tsindex b25fe83476..6090cb57b8 100644--- a/plugins/ruflo-console/tests/runner.spec.ts+++ b/plugins/ruflo-console/tests/runner.spec.ts@@ -45,3 +45,25 @@ describe('a confirm after the window', () => {expect(state.events).toEqual([])})})++describe('a remembered always-allow answer (ADR-444)', () => {+ // The kind key of a spec with no argv/run and plain args is its first two words (hooks/remember.ts).+ const spec = (ran: string[]) => ({ label: 'store a note', args: ['memory', 'store'], expect: 'x', note: 'writes one entry', exec: () => ran.push('ran') }) as unknown as ActionSpec++ it('runs a person action at once, with no pending ask', () => {+ const { state, runner } = fake()++ state.allowed.set('memory store', 'store a note')+ runner.ask(spec([]), 'why not')+ expect(state.pending).toBeNull()+ })++ it('never lets an action Claude asked for skip the pending path: the control level and confirm mode decide there', () => {+ const { state, runner } = fake()++ state.allowed.set('memory store', 'store a note')+ state.control.viaModel = true+ runner.ask(spec([]), 'why not')+ expect(state.pending?.label).toBe('store a note')+ })+})