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§
- Resolved
Peers - 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.