mirror of
https://github.com/ruvnet/ruflo.git
synced 2026-12-04 06:21:59 +09:00
* dream(security): #4633 gate admin-plane trust-change/topology-change below ATTESTED (evaluated) PolicyEngine.evaluateMessage()'s getOperationForMessageType() had no case for trust-change/topology-change (the two federation message types that mutate a peer's trust level or the mesh topology itself) — both fell through to the generic 'send' operation, granted from TrustLevel.ATTESTED, the same floor as ordinary data-plane messages. Unlike write/memory/spawn, there was no SecurityPolicy-configurable threshold for this category. Adds a dedicated 'admin-change' CAPABILITY_GATES entry (TRUSTED+ only) and a new minTrustLevelForAdmin SecurityPolicy field (default TRUSTED), mirroring the write/memory/spawn pattern fixed last night (#4619). The hardcoded floor cannot be bypassed by a loosened policy override, matching the existing defense-in-depth shape for remote-spawn/PRIVILEGED. 7 new tests (4 discriminating, 3 controls). Stash-isolated baseline: 4/17 fail exactly as predicted. Candidate: 17/17 pass. Full package suite: 684/684 (677 existing + 7 new), 0 regressions. tsc --noEmit: unchanged 5 pre-existing unrelated module-resolution errors, 0 in changed files. Independent adversarial critique (fresh context, re-ran stash isolation and the full suite itself): CONFIRMED core bug, PASS shippability. Two non-blocking caveats disclosed: (1) claim-event/agent-handoff still fall through the same default branch — pre-existing, already covered by their separate absence from DEFAULT_SECURITY_POLICY.allowedMessageTypes, not in scope tonight; (2) an uncited editorial comment citing "Identiverse 2026" — trimmed in this commit. Co-Authored-By: RuFlo <ruv@ruv.net> Claude-Session: https://claude.ai/code/session_01ReiDH37Jrnfnkp5K5kF5vf * docs(dream-cycle): 2026-11-01 security gist + ledger row (#4633) Co-Authored-By: RuFlo <ruv@ruv.net> Claude-Session: https://claude.ai/code/session_01ReiDH37Jrnfnkp5K5kF5vf * docs(dream-cycle): record PR #4634 in ledger row Co-Authored-By: RuFlo <ruv@ruv.net> Claude-Session: https://claude.ai/code/session_01ReiDH37Jrnfnkp5K5kF5vf --------- Co-authored-by: Claude <noreply@anthropic.com>
@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=127.0.0.1 # default: 127.0.0.1 (0.0.0.0 accepts other hosts)
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.