Skip to main content

Module machine

Module machine 

Source
Expand description

The account episodes, as a pure state machine: a scan’s blocked panes in, what to publish, raise and tell out (docs/specs/SPEC_UNRESPONSIVE_AGENTS_2026_10_23.md §6.1, §6.2). No clock, no store: mod.rs scans and applies.

Structs§

BlockedPane 🔒
A pane that is limited or signed_out on an account, as one scan found it.
Episode 🔒
Every pane blocked on one account, from the first until none is.
Episodes 🔒
The open episodes, by account.

Enums§

Effect 🔒
What a scan changed.

Constants§

REOPEN_GRACE_MS 🔒
How long a closed episode is remembered: the same account failing again with the same reset within it reopens the episode as it was (already toasted, its requesters already told) rather than notifying again.
SESSION_WINDOW 🔒
The provider’s name for a session (five-hour) limit window. A session limit raises no toast (spec §13, decision 1).

Functions§

leader_note 🔒
The body of the note a task’s requester gets about its blocked agents (spec §6.2): “Naki-2 is out of quota until Sun 7:00 PM and holds #163. …”. mod.rs quotes it into an [AgentMux] note.
task_list 🔒
“#163”, “#163 and work#2”, “#1, #2 and #3”.
toast_body 🔒
The toast’s body: how many agents, and why. Never the account (spec §6.2).
until_label 🔒
“until Sun 7:00 PM”, in this machine’s time zone.