Expand description
Holding a routine message for an agent whose session has gone cold
(SPEC_JEKT_HOLD_FOR_COLD_SESSIONS_2026_10_25.md). The rules are
backend::cold_hold; the held row and its replay are the durable-jekt
hold (jekt_hold, jekt_held), with the reason idle.
EnumsΒ§
- Decision π
- What to do with a message for a running agent.
StaticsΒ§
- RELAY_
STATE π - The
AppStatethe relay subscriberβs cold hold reads, set once it exists (install).
FunctionsΒ§
- decide π
- The decision for a routine message to a running agent, and the words for why it was not held.
Pure of the controllers:
last_output_msissession_last_outputβs answer. - decide_
why π decide, with the reason: what the log says for a message delivered rather than held.- delivered_
because π - One line in the log for a message the cold hold let through, with the reason.
- hands_
over_ πwork - Whether the message hands
targetwork, so it must not wait: it names a task (#N) that is waiting on the target, or its sender filed the target a task a moment ago. - held_
answer π - The answer to a routine message held because the targetβs session is cold (
Idle), or because quota mode is tight and the target has no turn in flight (Quota). - hold_
decision π - The cold holdβs decision for
req: the row it was kept as, orNoneto deliver it, with the reason logged either way. - hold_
if_ πcold - Hold
reqwhen its target is a running Claude session gone cold, or quota mode is tight and the target has no turn in flight, and the message may wait.Nonedelivers it as usual, which every doubt does. - hold_
relayed π - A message that came by the cloud relay, to an agent here: kept, as a local or LAN one is, when it
is routine, its sender is a proven install of this account and its session has gone cold
(#2263).
truewhen it is kept, so the caller does not inject it. Nothing is held beforeinstallhas run. - install π
- Give the relay subscriber, which has no
AppStateof its own, the cold hold (hold_relayed). - outside_
the_ πhold - Why the cold hold does not look at this message at all, or
Nonewhen it may apply: the hold takes a message with an id, from a named sender that is not cron, that came from a full-key host-tier caller or a peer on another machine that proved who it is (verified_peer). - quota_
holds π - Whether quota mode holds a routine message to a running agent: no turn in flight (a message that
joins a turn costs no new context read), and it does not hand the target work.
activityiscold_hold::session_activityβs answer,Nonewith nothing running. An urgent message is never held.