Skip to main content

resolve_name_to_uid

Function resolve_name_to_uid 

Source
pub(crate) fn resolve_name_to_uid(
    store: &Store,
    registry: &ReactiveHandler,
    typed: &str,
) -> Result<NameResolution, String>
Expand description

Resolve typed to a UID, or to the reasons it cannot be resolved.

registry is the live in-memory registry (get_global_handler() in production; a fresh ReactiveHandler in tests). store is the per-channel object store that holds db_agents.

Err means the store could not be read, and the caller must refuse rather than proceed: None would send the bare name on, and a same-named live agent could then take work or a cron fire meant for a stored agent the fault hid (Codex P1 on #3563).