Skip to main content

Module jekt_hold

Module jekt_hold 

Source
Expand description

Holding a jekt this instance can’t deliver now: its agent is defined here but not running (SPEC_DURABLE_JEKT_DELIVERY_2026_09_24.md), not signed in, or out of quota (SPEC_UNRESPONSIVE_AGENTS_2026_10_23.md §5). The replay is jekt_held. Moved out of reactive.rs, whose deliver calls these.

Functions§

agent_unavailable 🔒
Whether the agent here that target names can’t work now (out of quota, or signed out). false for a name no agent here answers to.
api_is_offline_for 🔒
Whether a message to the agent on block_id would start a turn its offline model API fails (agent_status::decide, spec D2 of SPEC_AGENT_AVAILABILITY_EVERY_PATH_ONE_DECISION_2026_10_31.md). BLOCKING.
give_back_for_unavailable 🔒
A relayed message that is not held (hold_wan_for_unavailable keeps a verified peer’s) to an agent here that can’t work now (out of quota, or signed out): not to be injected, because the turn it starts ends in an error. true tells the caller to give the message back to the relay, which offers it again on a later pull; nothing is stored here, so a message with no proof of its sender never reaches the hold table, whose replay would raise its tier. A periodic cron fire is left to the old path.
held_row 🔒
The row to keep for req: what the recipient would be given, with the verdicts it was accepted with. target_uid is filled in by the caller.
hold_applies 🔒
The conditions under which this instance may hold a jekt at all (durable jekt spec §2.1): a full-key, host-tier request; not a periodic cron fire; and an id to key the row by. A LAN or WAN caller fills the hold only for an agent that can’t work, and only with proof of its sender (hold_applies_to_peer).
hold_applies_to_peer 🔒
hold_applies for a verified message from another machine (verified_peer): the same exclusions (a cron fire, no id to key the row by), without the full-key, host-tier condition. A message with files is held with them: the files route reads them into the attachment store first (peer_files_wait), so the replay finds them.
hold_before_delivery 🔒
What delivery checks before a message reaches a running agent: unavailable (held, or refused where it can’t be held), or a session gone cold (jekt_cold). None delivers.
hold_for_absent_target 🔒
Hold a jekt no tier could take, when every condition of SPEC_DURABLE_JEKT_DELIVERY_2026_09_24.md §2.1 holds: a full-key, host-tier request (a LAN caller never fills the hold); not a periodic cron fire; and a target that is a known agent of this channel — resolved to its row’s UID, so a typo or a name registered later by another block never receives the backlog. None keeps today’s error.
hold_for_refusal_here 🔒
A message an agent of this instance could not take for a reason that passes on its own: its spawn gate refused (not signed in: recoverable, so it is held for sign-in instead of failed, SPEC_JEKT_DELIVERY_STATES_AND_MAILBOX_2026_10_01.md Phase 0 item 4), or its pane is open and its controller is not there yet (AgentMux is starting: held until the controller registers). No other tier can run it either: the agent lives on this instance. None for any other error, and for a starting agent’s message the hold doesn’t apply to, which keeps its error.
hold_for_unavailable 🔒
Hold a message for an agent that can’t work now (unavailable), or, where the hold doesn’t apply (a LAN or cross-channel hop, a cron fire), refuse it with the reason: either way it is not injected into a turn that would fail and lose it. The refusal begins with crate::backend::reactive::UNAVAILABLE_PREFIX.
hold_if_api_offline 🔒
Hold a message to a running agent that is between turns while its model API is offline, until the API answers. It is not injected into a turn that would fail, and it is held under the rules of any hold (a host-tier, full-key sender; never a cron fire or the agent’s own message): a message the hold does not apply to is delivered as before. None delivers.
hold_wan_for_unavailable 🔒
A verified WAN message to an agent here that can’t work: kept for 24 h, as a local one is, and delivered when it can (the cross-machine operations spec, §4.5). true when it is kept, so the caller neither injects it into a turn that would fail nor hands it back to the relay. Its files are already in the attachment store (fetched before this), and the row keeps their list: the replay builds what the agent is given for them, as a delivery now would. Files that were dropped, with a note saying why, are left to the old path: the row has nowhere to keep that note.
hold_with_reason 🔒
hold_for_absent_target, with the reset time of a usage limit for the answer (held_until_ms).
holding_unavailable 🔒
Why messages to the agent on block_id wait now: it is signed out, or out of quota until a known reset. A confirmed sign-in clears auth failures. Limits without a reset still allow turns to discover recovery. While a probe turn runs (limit_probe) the pane counts as working, but its limit still holds until that turn clears it. BLOCKING.
local_target_unavailable 🔒
holding_unavailable for the agent of this instance that target names. None for an agent that can work, and for a target that isn’t registered here (an absent or remote one: the tiers below decide, and the receiving instance checks again).
local_time_label 🔒
“Sun 7:00 PM”: a reset time in this machine’s zone, as the Kanban and Swarm show it (agent_state::Unavailable::reason).
needs_login_refusal 🔒
with_refusal for a spawn gate that refused: the agent is not signed in.
peer_files_wait 🔒
Whether a message with files from another machine, to an agent here that can’t work, waits for it (jekt_files::receive): the files are read within the tier’s limits and kept in the attachment store, and the message is held with them. Not when the files are withheld (the sender’s signature failed), the sender did not prove itself, it is a cron fire, or there is no id to key the row by: those are refused before a byte is read, as they always were.
peer_refused 🔒
Whether a peer’s answer to a forwarded jekt is a refusal by an instance that has the agent (its files refused, the agent out of quota, or the message held), to be returned as is: not a stale route to evict and route around.
verified_peer 🔒
A message from another machine that proved who sent it (the cross-machine operations spec, §4.5): a LAN message whose signature checked out, or a WAN one from an approved install of this account. The LAN key alone proves nothing, and a new install is not enough.
wan_json_of 🔒
The WAN verdict a held message from an approved install keeps, as JSON (‘’ for any other).
with_refusal 🔒
body, the answer to a message refused (not kept) because the agent can’t take it now, with the reason as data: refused_reason (the held_reason strings), retry_when and, when known, until_ms. A sender reads these instead of the wording of error.