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
targetnames can’t work now (out of quota, or signed out).falsefor a name no agent here answers to. - api_
is_ 🔒offline_ for - Whether a message to the agent on
block_idwould start a turn its offline model API fails (agent_status::decide, spec D2 ofSPEC_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_unavailablekeeps 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.truetells 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 periodiccronfire 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_uidis 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
cronfire; 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_appliesfor 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).Nonedelivers. - 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 periodiccronfire; 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.Nonekeeps 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.
Nonefor 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 withcrate::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.
Nonedelivers. - 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).
truewhen 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_idwait 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_unavailablefor the agent of this instance thattargetnames.Nonefor 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_refusalfor 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
newinstall 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(theheld_reasonstrings),retry_whenand, when known,until_ms. A sender reads these instead of the wording oferror.