Skip to main content

Module urgent_asks

Module urgent_asks 

Source
Expand description

The urgent-message watch’s record (docs/specs/SPEC_LEADER_TOLD_WHEN_AN_AGENT_GOES_QUIET_2026_11_21.md §2, third row): an urgent message that names a task (#N), from a sender that was proven for that message, is an ask the recipient owes an answer to. quiet_watch reads the asks that are still open and tells the sender when the recipient has gone quiet without answering.

What is kept, and nothing else: the sender’s name, the recipient’s pane, the task numbers the message named and the time. Never the text. Only a delivered, urgent message whose sender was proven for it (host-verified, channel-verified, lan-verified or wan-verified) is kept, so a sender that was not proven (self-declared, network-claimed, unverified, a failed signature) can neither make an agent owe it work nor draw notes to itself. The record is made after the delivery is decided and cannot change it: it takes one lock for a moment, does not fail, and a panic in it is caught.

Structs§

Ask
An urgent message to an agent that named tasks.

Constants§

MAX_AGE_MS
How long an ask is kept (unix ms): a day, then it is forgotten whether or not it was answered.

Functions§

ask_from
The ask a message makes, if it makes one. Pure: every condition is here.
note_delivery
Keep the ask req makes, if it makes one, after response says it was delivered. Called by the handler once the delivery is decided; it changes nothing about it.
open_asks
The asks not yet forgotten at now_ms, oldest first.
settle
Forget the asks for which answered says yes (they are done being watched).