Skip to main content

Module jekt_start

Module jekt_start 

Source
Expand description

Start-then-deliver (docs/specs/SPEC_ALWAYS_AVAILABLE_AGENTS_2026_10_27.md ยงD4, P2b): with agents:always_available on, a message that finds its agent stopped starts it instead of only waiting for someone to open it.

  • A held message (HoldReason::NotRunning): hold_with_reason has already kept the row, and only a host-tier, full-key sender gets that far (hold_applies), so a LAN or WAN peer or an unverified sender never starts an agent. The start runs in the background; the replay delivers the row when the agent registers (jekt_held).
  • An operator Job or cron fire, which is never held: deliver_cron starts the agent first, waits for it to register and then delivers.

Admission, the spawn gate and the lease apply as for agent.open; a start that fails leaves the message held (or the fire missed) exactly as before.

Structsยง

StartSlot ๐Ÿ”’
Holds an agentโ€™s slot in starting until dropped.

Enumsยง

HeldStart ๐Ÿ”’
What became of the start a held message asked for.

Constantsยง

REGISTER_POLL ๐Ÿ”’
REGISTER_WAIT ๐Ÿ”’
How long a Jobโ€™s fire waits for a started agent to register before it is missed.

Functionsยง

deliver_cron ๐Ÿ”’
Deliver a Job or cron fire. With the setting on, a target that is an agent of this instance and runs nowhere is started first and waited for, then the fire goes the normal way: before this, a signed-in instance would have queued the fire to the cloud as delivered while the local agent stayed stopped.
enabled ๐Ÿ”’
Whether a stopped agent is started by a message (the agents:always_available setting).
make_addressable ๐Ÿ”’
A started agent that has never run (no session to resume) has a controller that spawns on its first turn and registers for delivery only then, and there is no pane to send that turn. Register it here, so the replay (or a Jobโ€™s fire) reaches it and the delivery starts that turn.
may_start ๐Ÿ”’
Whether the sender may start an agent: not one whose signature failed (sig_verified is Some(false) only for a sender that has a key and did not prove it). The holdโ€™s own test (hold_applies) has already kept LAN and WAN callers out.
name_the_proof ๐Ÿ”’
Name who a scheduled fire runs for, from the agentโ€™s own record here: the marker shows that name, never one a request carried. An agent that no longer exists here names no one, so the fire goes unproven.
sender_key ๐Ÿ”’
Whose starts per minute a message-started agent counts against: the senderโ€™s uid, which its token attributed (the same key Agents start uses, so one agent has one budget across both paths), else the name it sent as.
start_for_held ๐Ÿ”’
A message was held for the stopped agent target_uid: start it in the background unless a limit would refuse it. The row stays held and the replay delivers it once the agent registers, so a failed start loses nothing.
start_once ๐Ÿ”’
Start the agent uid for sender_key unless it is registered or a start is in flight. A start that goes ahead counts against the senderโ€™s starts per minute (start_rate); a no-op does not.
start_stopped_local_target ๐Ÿ”’
Start the agent target names when it is defined here and runs nowhere (not here, not in another channel on this computer, not by a lease held elsewhere), and wait for it to register.
starting ๐Ÿ”’
Agents with a start in flight, so a burst of messages makes one start.
starts_the_agent ๐Ÿ”’
Whether a message to an agent with no process starts it: the shared decision (Intent::Start) for a stopped agent, allowed being the setting and the sender. Every caller has already found the agent absent (held as NotRunning, or not registered anywhere), so that is the status it is asked about.
wait_registered ๐Ÿ”’