Expand description
The AgentMux system notes agents get about cloud delivery, and the
per-agent bookkeeping behind the resume note. Pure: times come in as
unix ms, and hhmm is the one place they become wall-clock text.
Every note starts with NOTE_MARKER. Only srv writes one:
reactive::sanitize::neutralize_markers quotes the marker inside any jekt
or forwarded text, the way it quotes [BROADCAST:.
Structs§
- Expired
Item - A message the relay dropped undelivered because it outlived its delivery
window, as
GET /reactive/pending/:agent_idreports it. No message text: it is a pointer to go and look, not something to act on. - Note
- A note for one agent, ready to deliver.
- Note
Book - Which agents were told delivery paused, and which still await their resume note.
- Retry
Queue - Notes whose local delivery failed (the agent’s input was briefly
unavailable, say), retried on later ticks: the
NoteBookhas already counted them as told, so it won’t produce them again.
Enums§
Constants§
- DELAYED_
AFTER_ MS - A message delivered later than this after the relay received it is marked with when it was sent.
- NOTE_
ATTEMPTS - Tries for a note whose local delivery failed (one per tick), before it is given up with a warning.
- NOTE_
MARKER - How every AgentMux system note begins.
- PAUSE_
NOTE_ 🔒START - How every pause note begins (see
pause_note). - RESUME_
NOTE_ GRACE_ MS - How long after delivery resumes an agent waits for its first pull before its resume note goes out without a count.
Functions§
- clean 🔒
- A relay-supplied name as it may appear inside a system note: printable ASCII only, no brackets, bounded. The note is trusted text, so nothing a remote sender chose may add sentences or markers to it.
- delayed_
prefix (sent 14:30, delivered 14:41)for a message delivered more thanDELAYED_AFTER_MSafter the relay received it; empty otherwise.- expired_
note - The note for messages that expired outside a pause.
- expired_
summary - What expired, grouped: notices about pull requests as one list of PRs,
everything else counted per sender.
Nonewhen nothing expired. - hhmm
msas local wall-clock time,HH:MM.- join_
and 🔒 - parse_
created_ at created_at(RFC 3339) as unix ms.- pause_
note - The note an agent gets once cloud delivery has been paused a while.
- plural 🔒
- pr_
label 🔒 - pr_
number_ 🔒or_ string - resume_
note - The note an agent gets when delivery resumes.
deliveredisNonewhen its first pull after resuming didn’t come in time to count.