Skip to content

armgit / ruflo

Public Imported from GitHub
0

🌊 The original agent harness. Deploy intelligent multi-player swarms, coordinate autonomous workflows, and build conversational AI systems. Features adaptive memory, self-learning intelligence, federation, vector RAG integration, and native Claude Code / Codex / Hermes and many more Integrated

fix(plugin-agent-federation): add CLAIMS_FOR_MESSAGE_TYPE entries for ADR-101 Component C

Reuven3ba0b6141186
diff --git a/v3/@claude-flow/plugin-agent-federation/src/application/policy-engine.ts b/v3/@claude-flow/plugin-agent-federation/src/application/policy-engine.ts
index 2c26e05916..aad238016c 100644
--- a/v3/@claude-flow/plugin-agent-federation/src/application/policy-engine.ts
+++ b/v3/@claude-flow/plugin-agent-federation/src/application/policy-engine.ts
@@ -61,6 +61,15 @@ const CLAIMS_FOR_MESSAGE_TYPE: Record<FederationMessageType, FederationClaimType
'handshake-accept': ['federation:connect'],
'handshake-reject': ['federation:connect'],
'session-terminate': ['federation:connect'],
+ // ADR-101 Component C — federated claims operations.
+ // claim-event: broadcasts a ClaimDomainEvent (state mutation across peers),
+ // same authorization shape as task-assignment.
+ 'claim-event': ['federation:write'],
+ // agent-handoff: 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-gated security posture in ADR-101.
+ 'agent-handoff': ['federation:write', 'federation:spawn'],
};
export interface PolicyEngineDeps {