mirror of
https://github.com/ruvnet/ruflo.git
synced 2026-11-25 22:53:17 +09:00
The two new federation message types added by ADR-101 Component C
('claim-event', 'agent-handoff') were declared in
domain/entities/federation-envelope.ts but never wired into
CLAIMS_FOR_MESSAGE_TYPE in application/policy-engine.ts. TypeScript
caught the omission via Record<FederationMessageType, ...> exhaustiveness
checking, breaking `Build V3` in v3-ci.yml on every commit since the
ADR-101 work landed (3+ days).
Claim mappings chosen to match the operation semantics:
'claim-event' → ['federation:write']
Broadcasts a ClaimDomainEvent (state mutation across peers). Same
authorization shape as task-assignment per ADR-101 §B.
'agent-handoff' → ['federation:write', 'federation:spawn']
Transfers claim ownership to a remote agent. Requires both the
write capability (state mutation) AND spawn-lifecycle authority
(handoff is a sibling of agent-spawn — both reshape who owns
work). Matches the consensus-required security posture in
ADR-101 Component C.
Verified: full v3 workspace builds cleanly (23/23 packages).
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.