Skip to main content

Module jekt_cold

Module jekt_cold 

Source
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 AppState the 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_ms is session_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 target work, 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, or None to deliver it, with the reason logged either way.
hold_if_cold πŸ”’
Hold req when 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. None delivers 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). true when it is kept, so the caller does not inject it. Nothing is held before install has run.
install πŸ”’
Give the relay subscriber, which has no AppState of its own, the cold hold (hold_relayed).
outside_the_hold πŸ”’
Why the cold hold does not look at this message at all, or None when 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. activity is cold_hold::session_activity’s answer, None with nothing running. An urgent message is never held.