Files
ruflo/plugins/ruflo-wasm
ReuvenandRuFlo 02eee0bcdc docs(adr): bulk-update plugin contract ADR statuses (sweep)
- 27 plugins moved Proposed → Accepted (shipped versions, in marketplace)
  - 0 plugins kept as Proposed (all have real versions ≥ 0.2.0)

Per-plugin breakdown:
  ruflo-aidefence    v0.2.0  Accepted — 3-gate pattern, 6 aidefence_* tools
  ruflo-autopilot    v0.2.0  Accepted — 10 autopilot_* tools, /loop integration
  ruflo-core         v0.2.1  Accepted — MCP server contract, plugin-catalog discovery
  ruflo-cost-tracker v0.16.1 Accepted — namespace-routing fix, ADR-097 budget integration
  ruflo-daa          v0.2.0  Accepted — 8 daa_* tools, intelligence-pipeline alignment
  ruflo-ddd          v0.2.0  Accepted — AgentDB domain graph, SPARC Architecture-phase
  ruflo-docs         v0.2.0  Accepted — document worker dispatch, drift detection
  ruflo-federation   v0.2.0  Accepted — ADR-097 Phase 1+2, 3-gate alignment
  ruflo-goals        v0.2.0  Accepted — 6 namespaces, GOAP + dossier ADR-099
  ruflo-iot-cognitum v0.2.0  Accepted — 5-tier trust, 6 background workers
  ruflo-jujutsu      v0.2.0  Accepted — 6 analyze_* tools, ADR-compliance cross-link
  ruflo-knowledge-graph v0.2.0 Accepted — embeddings_generate fix, pathfinder
  ruflo-loop-workers v0.2.0  Accepted — 12 worker triggers, 5 hooks_worker-* tools
  ruflo-market-data  v0.2.0  Accepted — embeddings + namespace-routing bugs fixed
  ruflo-migrations   v0.2.0  Accepted — namespace-routing bug fixed both skills
  ruflo-neural-trader v0.2.0 Accepted — 4 namespaces already compliant
  ruflo-observability v0.2.0 Accepted — namespace-routing bug fixed both skills
  ruflo-plugin-creator v0.2.0 Accepted — scaffolding templates updated with contract
  ruflo-rag-memory   v0.2.0  Accepted — claude-memories reserved namespace consumer
  ruflo-ruvllm       v0.2.0  Accepted — LLM-config + chat-format slice ownership
  ruflo-rvf          v0.2.0  Accepted — portable-memory + session-persistence slice
  ruflo-security-audit v0.2.0 Accepted — 3-gate + audit_1776853149979 regression class
  ruflo-sparc        v0.2.0  Accepted — all 5 SPARC phases cross-linked
  ruflo-swarm        v0.2.0  Accepted — 12 MCP tools (4 swarm_* + 8 agent_*)
  ruflo-testgen      v0.2.0  Accepted — testgaps worker + coverage CLI commands
  ruflo-wasm         v0.2.0  Accepted — 10 wasm_* tools, ADR-070 cross-ref
  ruflo-workflows    v0.2.0  Accepted — 10 workflow_* tools, SPARC phase transitions

Each ADR received: updated: 2026-05-09 in frontmatter + Implementation status
section noting version, marketplace presence, and contract element alignment.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-05-09 15:10:42 -04:00
..

ruflo-wasm

Sandboxed WASM agent creation, execution, and gallery sharing.

Install

/plugin marketplace add ruvnet/ruflo
/plugin install ruflo-wasm@ruflo

Features

  • Sandbox isolation: Agents run in WASM with no host filesystem access
  • Agent lifecycle: Create, prompt, configure tools, export, terminate
  • Community gallery: Browse, search, and publish WASM agents
  • Portable: Export agents that run on any WASM runtime

Commands

  • /wasm -- List running agents and browse gallery

Skills

  • wasm-agent -- Create and manage sandboxed WASM agents
  • wasm-gallery -- Browse and publish agents in the community gallery

Compatibility

  • CLI: pinned to @claude-flow/cli v3.6 major+minor.
  • WASM runtime: built on @ruvector/rvagent-wasm + @ruvector/ruvllm-wasm. Both are declared in @claude-flow/cli's optionalDependencies per ADR-070 (Implemented). Without those packages, runtime falls through to the graceful-degradation path and the MCP tools no-op.
  • Verification: bash plugins/ruflo-wasm/scripts/smoke.sh is the contract.

MCP surface (10 tools)

All defined at v3/@claude-flow/cli/src/mcp-tools/wasm-agent-tools.ts:

Agent lifecycle (7)

Tool Purpose
wasm_agent_create Spin up a sandboxed WASM agent
wasm_agent_prompt Send a prompt to the agent
wasm_agent_tool Invoke a tool inside the sandbox
wasm_agent_list List active WASM agents
wasm_agent_terminate Stop a WASM agent
wasm_agent_files Read/write files in the sandbox
wasm_agent_export Export agent state
Tool Purpose
wasm_gallery_list Browse community-published WASM agents
wasm_gallery_search Search the gallery
wasm_gallery_create Publish a WASM agent to the gallery

Sandbox isolation

WASM agents run with no host filesystem access by default. The wasm_agent_files tool exposes a sandboxed virtual filesystem; the host filesystem is not reachable from inside the WASM module.

For prompt-injection defense inside the sandbox, the ruflo-aidefence 3-gate pattern applies to any output flowing back to the host LLM.

Namespace coordination

This plugin owns the wasm-gallery AgentDB namespace (kebab-case, follows the convention from ruflo-agentdb ADR-0001 §"Namespace convention"). Reserved namespaces (pattern, claude-memories, default) MUST NOT be shadowed.

wasm-gallery indexes published WASM agents (manifest, version, signature, download count). Accessed via memory_* (namespace-routed).

Verification

bash plugins/ruflo-wasm/scripts/smoke.sh
# Expected: "11 passed, 0 failed"

Architecture Decisions

  • ruflo-agentdb — namespace convention owner
  • ruflo-aidefence — 3-gate pattern applies to sandbox output flowing back to the host LLM
  • ruflo-ruvector — the underlying ruvector substrate that ships @ruvector/rvagent-wasm