pub(super) fn verify_jekt_signature(
state: &AppState,
req: &mut InjectionRequest,
)Expand description
Host-tier jekt sender verification (SPEC_JEKT_TRUST_LAYER_COMPLETION_2026_08_13.md §2.2): sets
req.sig_verified by checking req.jekt_sig against the claimed source_agent’s stored
signing key, inside the freshness window.
Every entry point that builds a host-tier InjectionRequest from client-supplied fields MUST
call this before Handler::inject_message (#2565): messagebus.rs::handle_inject and
websocket.rs’s bus:inject once skipped it and rendered TRUST=self-declared for an
impersonated sender.
Deliberately not gated on delivery_tier == "host" (#2588). delivery_tier is
self-declared by any caller holding the full local auth_key (see resolve_delivery_tier), so
gating on it let a request claiming "lan" or "wan" dodge this check and impersonate a
locally known agent. Ungated, it acts only when agent_jekt_key_load finds a LOCAL key for the
claimed sender: never for a genuine remote LAN/WAN sender, always for an impersonation of an
agent this instance knows.