pub(super) fn verify_cross_channel_signature(
state: &AppState,
req: &mut InjectionRequest,
)Expand description
Cross-channel (same machine, other AgentMux instance) per-agent Ed25519 signature check
(docs/specs/SPEC_JEKT_CROSS_CHANNEL_TRUST_2026_09_02.md §D2, Phase B). Like
verify_lan_signature, but the sender’s public key comes from the host-global shared registry
(AgentEntry::jekt_public_key, published at registration, §D1): a local file read, so it is
synchronous and has no LAN rate-limiter Skipped hazard.
Only for delivery_tier == "channel", the label a same-host forward carries (§D4, set in
handle_reactive_inject’s Tier 2a/2b); channel_verified stays None otherwise.
Ordering (§D2 step 2): a sender this instance holds an HMAC key for is a same-instance agent
that verify_jekt_signature owns entirely, so this returns without touching channel_verified
and the two verifiers can never disagree.
Outcomes:
-
None: no shared-registry entry for the sender, or every entry has an emptyjekt_public_key(written before Phase A: “cannot check”, never “failed”, §6). -
Some(true):channel_sigis present, fresh and verifies against the published key of ANY of the agent’s entries (one name can be live in several channels, §D2 step 5). -
Some(false): a published key was found but the signature was missing, stale or wrong. The §D3 red flag; not escalated in Phase B (seeInjectionRequest::channel_verified).