Files
ruflo/v3/@claude-flow/plugin-agent-federation
rUv 9d4a9ea968 ADR-101: Federated Claims — cross-node work coordination (Phases 1-3) (#1777)
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
    commits 0a0a246a and c8827c61 before this PR was opened.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-05-05 23:19:21 -04:00
..

@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.