Skip to main content

Module replay

Module replay 

Source
Expand description

One delivery per signed jekt (https://docs.agentmux.ai/internals/jekt-protocol/ §5): a host, cross-channel or LAN signature that this instance has already delivered fails on a second delivery, the same rule the WAN path applies with wan_seen_sigs (muxbus/wan_verify.rs). A signature stays fresh for minutes; within that time it proves its sender for one delivery.

Used by deliver() and by the files path (jekt_files::receive). The check and the reservation are one step under one lock, so two copies arriving together can’t both pass. A message counts once it is delivered to a local agent or held here for one, by whichever copy; when no copy is taken (it is forwarded, or delivery fails), the reservation is dropped, so a forward that comes back here is still delivered once. Entries live longer than any signature’s freshness window.

Structs§

Claim 🔒
What Seen::reserve hands out for a signed message: its key, and whether this copy made the reservation (the first) or found it (a later copy).
Entry 🔒
Reservation 🔒
A claim in this process’s memory, released on drop unless Reservation::delivered is called.
Seen 🔒

Constants§

MAX_ENTRIES 🔒
Entries kept at most. Past this, with every entry still live, a new signed message fails rather than evict one a copy could then pass as.
WINDOW_SECS 🔒
Longer than every freshness window it guards (host and channel 300 s, LAN 600 s, either way), so a signature can’t outlive its entry.

Functions§

reserve 🔒
Seen::reserve against this process’s memory.
seen 🔒

Type Aliases§

Key 🔒