Skip to main content

Module peers

Module peers 

Source
Expand description

Peer-group runtime resolution.

Given a Config and an agent_alias, produces the effective set of peers that agent should accept inbound messages from on its configured channels. The schema-side primitive is the [peer_groups.<name>] block in zeroclaw-config::multi_agent; this module is the read-side resolver that walks the configured groups, applies the mutual-membership rule, unions external peers, subtracts the per-group ignore lists, and returns the result keyed by channel.

Cross-reference invariants (peer-group members are configured agents, the group’s channel is on each member’s channels list) are upheld at config load. By the time the runtime calls resolve_peer_set, every input is internally consistent.

Structs§

ResolvedPeers
Effective peer set for one agent, keyed by channel type.

Functions§

resolve_peer_set
Build the effective peer set for agent_alias.
should_drop_self_loop
Defense-in-depth self-loop guard for the agent loop entry point.