pub fn agent_route_name(name: &str) -> StringExpand description
The name an agent is registered and addressed by: AGENTMUX_AGENT_ID, the
registry’s display binding, a message’s target. A valid agent id stays as
it is, natural casing included (Agent2, which PR titles and git authors
carry); anything else gets definition_slug’s rule without lowercasing, so
a fork’s automatic name Loap #3 routes as Loap-3 instead of being
refused (REPORT_FORK_AGENT_ISOLATION_2026_10_12.md F3). A name with an
@ is an address (agent2@narko), not a name: it is left as it is, so it
fails as an id instead of resolving to a local agent called agent2-narko.