mirror of
https://github.com/ruvnet/ruflo.git
synced 2026-11-25 22:53:17 +09:00
Closes #1775. Implements ADR-101. Three additive components gated behind a feature flag for the v3.8 alpha cycle. No breaking changes to single-node deployments. - Phase 1 (1f826fb9b): Hybrid Logical Clock — Kulkarni 2014, 30s default skew tolerance, optional 4th constructor arg on WorkStealingService; 16 new tests - Phase 2 (edc39f7da): Vector clocks + federation bridge + federated event store + federated claim repository. Single-seam principle: federation-bridge.ts is the only file in @claude-flow/claims that knows the federation envelope wire format. ConcurrentWriteError → resolved via existing contest mechanism. PII rollback on publish failure. 26 new tests. - Phase 3 (cc6af4b77): claim-event + agent-handoff message types. agent-handoff added to CONSENSUS_REQUIRED_TYPES (cross-trust attestation); claim-event NOT in it (steady-state gossip would deadlock under quorum). 7 new envelope tests. Aggregate validation: - @claude-flow/claims: 203/203 tests pass - @claude-flow/plugin-agent-federation: 373/373 tests pass - Both packages typecheck + build clean - 30/31 CI checks green; the 1 red check (Test V3 Packages) is a pre-existing native-binary infrastructure issue (sharp + onnxruntime) affecting packages this PR does not touch — same failure on main commits0a0a246aandc8827c61before this PR was opened. Co-Authored-By: RuFlo <ruv@ruv.net>
@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.