Skip to main content

source_from_token

Function source_from_token 

Source
pub(crate) fn source_from_token(
    store: &Store,
    caller_uid: &str,
    req: &mut InjectionRequest,
)
Expand description

A caller its token names that sent no source (muxsh agent send in an agent’s shell) is that agent: the source becomes its slug, so tier 4 can relay it and srv can sign it (SPEC_WAN_JEKT_SIGNED_BY_SRV_2026_10_14.md §3.1 rule 2). A source the caller did send is kept, and is signed only if it is the token’s own (wan_signer).