Skip to main content

Module lan_v2

Module lan_v2 

Source
Expand description

Identity M4d-6 (SPEC_AGENT_IDENTITY_CARRIED_NOT_DERIVED_2026_09_23.md §6.5.10): the LAN v2 signature, checked once the v1 LAN signature verified. LAN peers are unauthenticated, so a UID it proves is recorded only as claimed by that LAN path: never verified, never matched to a local row. A sender that presents a UID and a v2 signature has made a claim, though: a claim that does not hold up counts as a failed signature, like a name key that does not match its pin.

[sign_at_origin] is the sending half for an agent whose own process signed nothing (SPEC_LAN_JEKT_SIGNED_BY_SRV_2026_10_25.md).

Functions§

channel_sign_at_origin 🔒
The same-machine, other-instance counterpart of [sign_at_origin]: the cross-channel signatures (channel_sig, and channel_sig_v2 when the sender carried no UID of its own) for an agent whose own process signed nothing, so the receiving instance still finds a published key’s signature on it. The conditions are sign_at_origin’s, and a signature already there is never replaced.
claim_uid 🔒
Record source_uid as claimed by this LAN path when the answering peer gave that UID’s key for claimed, the (name, uid) pin matches, and the v2 signature verifies under it. Only once the v1 check passed, so the name pin already matched: the UID pin is set only beside it.
log_receipt 🔒
One INFO line for a request that arrived over the LAN: what was made of its signature. Called for every request deliver takes, so it also tells relay_watch that the sender is reachable.
msgid_and_ts 🔒
The message id and time a signature covers. The MCP sets both; a sender that did not (a shell’s muxsh agent send) gets them here, so the signature has something to cover.
receipt_note 🔒
In a word, what the receiving side made of a LAN request’s signature, for the log line of every LAN receipt: a peer that sees network-claimed on a message can then be told whether nothing was signed or nothing could be checked. None for a request that did not arrive over the LAN.
sign_and_log 🔒
sign_at_origin_why, and one INFO line saying what became of the signature of a request about to go to the LAN peer at peer_url.
sign_at_origin_why 🔒
[sign_at_origin], and in a word what became of the signature: the agent signed it itself, srv signed it, or why neither (for the log line of a LAN forward, so a peer that sees network-claimed can be explained).
uid_key_owed 🔒
The UID key the peer gave beside claimed’s name key: the cached answer, or, when a UID is already pinned under the name and the cache has none, one fresh ask.