mirror of
https://github.com/ruvnet/ruflo.git
synced 2026-11-25 14:43:05 +09:00
Same class of bug as iot-cognitum: source existed (325 tests passing) but
unpublished, and ruflo-federation marketplace plugin's skills called
`npx @claude-flow/cli@latest federation <subcmd>` — federation isn't a
CLI subcommand. End result: every federation skill failed.
Plugin source (v3/@claude-flow/plugin-agent-federation):
- New src/bin.ts: standalone CLI shim that bootstraps AgentFederationPlugin
in-memory, parses argv, resolves multi-word commands (federation peers
add, federation peers remove, etc.), aliases short flags, dispatches to
CLICommandDefinition handlers. Loads .env for FEDERATION_NODE_NAME,
FEDERATION_BIND_HOST, FEDERATION_BIND_PORT, FEDERATION_TRUST_LEVEL.
- package.json: add bin {ruflo-federation: dist/bin.js}, files whitelist,
homepage. Move workspace deps to devDependencies (all imports are
`import type`, erased at compile — zero runtime workspace dep).
- New README.md with subcommand reference and .env config.
Marketplace plugin (plugins/ruflo-federation):
- Bulk-rewrote 5 files (3 skills + commands/federation.md +
agents/federation-coordinator.md): now call
`npx -y -p @claude-flow/plugin-agent-federation@latest ruflo-federation <subcmd>`
Other minor fix:
- plugins/ruflo-swarm/README.md: pin `npx @claude-flow/cli swarm` →
`npx @claude-flow/cli@latest swarm` for consistency with the other 31 plugins.
Audit result post-fix: 32/32 plugins use working invocation patterns.
- 12 verbs against @claude-flow/cli@latest (all exist: memory, hooks,
security, neural, swarm, doctor, init, embeddings, status, daemon,
config, plus session)
- @claude-flow/plugin-iot-cognitum (alpha.5 published)
- @claude-flow/plugin-agent-federation (alpha.3 published — this PR)
- neural-trader (2.7.1 on npm)
- ruvector (0.2.25 on npm)
Smoke test: `npx -y -p @claude-flow/plugin-agent-federation@latest
ruflo-federation status` returns Node ID + session count + healthy flag.
Caveat: the 11 plugins that depend on mcp__claude-flow__* MCP tools
(adr, aidefence, autopilot, browser, daa, goals, plugin-creator, ruvllm,
sparc, wasm, workflows) require the MCP server to be connected — not
audited here.
Co-authored-by: Reuven <cohen@ruv-mac-mini.local>
1.4 KiB
1.4 KiB
@claude-flow/plugin-agent-federation
Cross-installation agent federation with zero-trust security, PII-gated data flow, and compliance-grade audit trails.
Install + run
npx -y -p @claude-flow/plugin-agent-federation@latest ruflo-federation --help
Subcommands
| Command | Description |
|---|---|
ruflo-federation init |
Initialize federation on this node (generates keypair) |
ruflo-federation join <peer-url> |
Join a federation by connecting to a peer |
ruflo-federation leave |
Leave the current federation |
ruflo-federation peers |
List known peers and their trust levels |
ruflo-federation peers add <node-id> |
Add a peer to the federation |
ruflo-federation peers remove <node-id> |
Remove a peer |
ruflo-federation status |
Show federation health, sessions, trust levels |
ruflo-federation audit |
Query compliance-grade audit logs |
ruflo-federation trust |
Manage trust scores and tiers |
ruflo-federation config |
Show/update federation config |
Configuration via .env
FEDERATION_NODE_NAME=my-node # default: hostname
FEDERATION_BIND_HOST=0.0.0.0 # default: 0.0.0.0
FEDERATION_BIND_PORT=8443 # default: 8443
FEDERATION_TRUST_LEVEL=untrusted # default: untrusted
Tests
325 unit tests covering audit, routing, discovery, plugin lifecycle.
npm test
License
MIT — Claude Flow Team.