Skip to main content

Module former_slug

Module former_slug 

Source
Expand description

Former slugs on this instance’s message routes (docs/specs/SPEC_FORK_SLUG_MIGRATION_2026_10_22.md Phase 1): a slug an agent was renamed from still reaches it, and never speaks for it. So does a display name it was renamed from, by its route (Store::former_name_owner answers for both kinds).

The registries other instances write are keyed by the name an agent runs under now, so a miss on a former slug is looked up again under its current one. The request itself still carries the name it was sent to, because its signatures cover it; the instance that runs the agent resolves the former slug the same way (Handler’s former slug resolver). Every lookup here runs only after the name missed as it was sent.

Functions§

delivery_alias 🔒
The slug a message to name is looked for under when nothing is registered as name: the agent’s whose current display name routes to it (“Naki-2” for “Naki #2”; registries file an agent under the slug it runs as), else the agent’s it is a former name of. A live name here is its holder’s. The request still goes out addressed to name, so its signatures cover what the sender signed (#1459).
may_evict 🔒
Whether a failed forward to an entry found under found_as may evict it: only an entry found under the name as sent. One found under the current slug failed for a name its instance may not know; that says nothing about whether the agent is still there.
owner 🔒
The agent name is a former slug or display name of, unless a live registration here holds name itself (a live name always wins).
refuse_former_sender 🔒
A former slug never speaks (Phase 1, “identity is not aliased”): the handler’s rule (refuse_former_slug_sender), which every delivery also passes through, applied here while verifying so a forwarded request carries the verdict too. true when it refused the claim.
registry_entry 🔒
The same-channel registry entry for target, else for the slug alias it was renamed to, with the name it was found under.
renamed_lookup 🔒
GET /agentmux/reactive/agent?id= for a former slug: the agent’s current name, and only the public key filed under that name — never one left under the former slug — when the agent alone owns it. A peer re-pins under the current name; the former one gets no key to verify against.
shared_entries 🔒
The cross-channel registry’s entries for target, else for alias, with the name they were found under.
signing_key 🔒
The host key a request signed as name is checked with, outside jekt delivery (UI automation’s verified_block_id): none for a former slug, which never signs, whatever key is still filed under it.
transcript_not_found_error 🔒
What a transcript request for agent answers when no pane holds it: an agent that exists but has no open pane (stopped, parked, between restarts) is told apart from a name nobody has. The prefix stays “agent not found”, which the forwarding code keys on.