🌊 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(console): log Claude's refused request when the person's card is waiting; mission-auto why when not wired; document the local-read allowlist
ruv7782ccbf6018
diff --git a/plugins/ruflo-console/hooks/mission-palette.ts b/plugins/ruflo-console/hooks/mission-palette.tsindex 7be82f0e27..888d109ef0 100644--- a/plugins/ruflo-console/hooks/mission-palette.ts+++ b/plugins/ruflo-console/hooks/mission-palette.ts@@ -39,7 +39,7 @@ export function missionPalette(state: State): PaletteEntry[] {{ id: 'mission-cancel', group: 'missions', label: 'cancel the mission and its open tasks (asks first)', run: spec(() => { const mission = activeMission(state); return wired === undefined || mission === null ? null : cancelSpec(state, wired.host, mission, tasks()) }) },{ id: 'mission-aside', group: 'missions', label: 'mission-aside <question>: /btw beside the running task', run: text('mission-aside', value => local('ask aside', () => wired?.actions.aside(value), 'spend')) },{ id: 'mission-guide', group: 'missions', label: 'mission-guide <instruction>: a visible instruction to Claude (screened, asks first)', run: text('mission-guide', value => local('guide Claude', () => wired?.actions.guide(value))) },- { id: 'mission-auto', group: 'missions', label: 'mission-auto on|off: hand over each next ready task without asking', run: { ...text('mission-auto', value => (AUTO_WORD.test(value.trim()) ? local('auto-run', () => wired?.actions.auto(value.trim().toLowerCase() === 'on'), value.trim().toLowerCase() === 'on' ? 'spend' : 'write') : null)), why: () => 'say on or off' } },+ { id: 'mission-auto', group: 'missions', label: 'mission-auto on|off: hand over each next ready task without asking', run: { ...text('mission-auto', value => (AUTO_WORD.test(value.trim()) ? local('auto-run', () => wired?.actions.auto(value.trim().toLowerCase() === 'on'), value.trim().toLowerCase() === 'on' ? 'spend' : 'write') : null)), why: () => (wired === undefined ? why : 'say on or off') } },{ id: 'mission-research', group: 'missions', label: 'research the question typed in Missions: screened, then confirm (a billed turn with web access up to the cap)', run: spec(() => local('start the research', () => wired?.research())) },{ id: 'mission-open', group: 'missions', label: 'open Mission Control', run: { kind: 'view', view: 'missions' } },].map(entry => ({ ...entry, label: mcOf(state) === undefined ? entry.label : entry.label })) as PaletteEntry[]diff --git a/plugins/ruflo-console/hooks/model-tools.ts b/plugins/ruflo-console/hooks/model-tools.tsindex 94e796ff28..4fa5d7de91 100644--- a/plugins/ruflo-console/hooks/model-tools.ts+++ b/plugins/ruflo-console/hooks/model-tools.ts@@ -244,7 +244,11 @@ async function settlePending(deps: ModelToolDeps, tool: string, id: string, askeif (pending === null) return null// A card the person raised while this call ran is theirs: it is never cancelled, confirmed or taken over here (ADR-450 T17).- if (pending.source === 'you') return { status: 'refused', text: `an action is waiting for the person ("${plain(pending.label, 80)}"), so yours was not queued. Do not run another until they answer. Nothing ran.` }+ if (pending.source === 'you') {+ say(state, tool, `${id}: the person's card is waiting`, 'denied', pending.label)++ return { status: 'refused', text: `an action is waiting for the person ("${plain(pending.label, 80)}"), so yours was not queued. Do not run another until they answer. Nothing ran.` }+ }const kind = classOf(pending)@@ -347,7 +351,7 @@ export async function callTool(name: string, input: Record<string, unknown>, depif (chip !== '' && (view.id !== 'settings' || picked === undefined)) return refuse(`open ${view.id} chip`, view.id !== 'settings' ? 'chip applies only to the settings page.' : `no such chip "${plain(chip, 40)}". Chips: ${[...chips.keys()].join(', ')}`)asModel(state, () => control.setView(view.id as ViewId))- await asModel(state, () => control.open(false))+ await control.open(false)if (picked !== undefined) asModel(state, () => control.actions.settings.plugin(picked))say(state, name, `open ${view.id}${picked === undefined ? '' : ` ${chip}`}`, 'ok')diff --git a/plugins/ruflo-console/tests/control-gate.spec.ts b/plugins/ruflo-console/tests/control-gate.spec.tsindex 9a183d4f17..40eedb9937 100644--- a/plugins/ruflo-console/tests/control-gate.spec.ts+++ b/plugins/ruflo-console/tests/control-gate.spec.ts@@ -145,11 +145,16 @@ describe('an ask that resolves late keeps its origin and never replaces a waitinexpect(world.state.pending).toBe(mine)expect(world.state.pending?.label).toBe('store my note')expect(world.seen.prompts).toEqual([])+ // Claude's attempt is on the record (the Room feed and console_state show the control log), as a refusal.+ expect(world.state.control.log.some(entry => entry.outcome === 'denied' && /waiting/.test(entry.summary))).toBe(true)})})/** Local reads whose WORDS sound like an action (doctor, deploy status, installed, join, cleanup dry run): each is a curated read (a Dev Tools `cost: read`, a local list), so it stays instant for Claude. */+// mh-doctor, doc-npm: `doctor --component …` local checks. x-channels: lists the channel keys held on this machine. x-bbs-peers, x-bbs-watch: read the local+// agentbbs peers.json and envelope log (federation_bbs_peers / federation_bbs_watch, v3/@claude-flow/cli/src/mcp-tools/agentbbs-tools.ts), never the relay.+// vec-edge-join: prints how to join. mem-cleanup-plan, dt-cleanup: a dry run. dt-deploy-*, dt-plug-installed, dt-update-history, dt-migrate-*: Dev Tools entries with `cost: read`.const LOCAL_READS = new Set(['mh-doctor', 'x-channels', 'x-bbs-peers', 'x-bbs-watch', 'mem-cleanup-plan', 'doc-npm', 'vec-edge-join', 'dt-deploy-status', 'dt-deploy-history', 'dt-plug-installed', 'dt-cleanup', 'dt-update-history', 'dt-migrate-status', 'dt-migrate-breaking'])describe('no palette entry flagged read-only hides that it acts (#3815 audit)', () => {