Skip to main content

Module availability_view

Module availability_view 

Source
Expand description

What a sender may know before sending: the target’s availability and what a routine message from a host-tier sender would do now (docs/specs/SPEC_AGENT_AVAILABILITY_ONE_STATE_2026_10_26.md §3.3). It reads the same fact and asks the same verdict the jekt path applies, and delivers, reserves and logs nothing, so it is safe to call for every agent in a list.

Structs§

AvailabilityQuery 🔒

Enums§

Known 🔒
Stopped 🔒
How a name that no live pane answers to stands in the directory.

Functions§

availability_of_block 🔒
What can be said about the agent on block_id now, or about a defined agent with no live pane (None).
block_of_uid 🔒
The block the agent with this UID runs in, when it is registered here under that UID.
classify_stopped 🔒
describe 🔒
The answer for one agent: its state, when it began (since_ms) and, for a limit, when it lifts (resets_at_ms); would, what a routine message does now (deliver or hold); and, when the agent can’t work, reason and retry_when. A limited agent with no known reset still gets would: deliver (a turn is how it finds out), with reason: usage_limit so the sender knows it may fail.
describe_block 🔒
describe_status for the agent registered in live (None for a defined agent with no live pane). state_block is the block that holds its pane and desired state when that is not live: the parked block of an agent with no process.
describe_status 🔒
describe for a status: what a routine message does now is decide’s answer (so an offline model API reads as a hold), and the status’s pane, wanted and api are named, so a sender sees “parked, running” or “shut down” before it sends.
enqueue_note 🔒
What to tell a sender who filed a task for the agent lookup (a name or a UID) that the agent can’t take up now: its availability (target) and a note saying the task waits, naming the agent name as the sender typed it (lookup when that is empty). None for an agent that can work, a group or unaddressed task, or a name no agent here has, so the answer stays as it was.
handle_availability 🔒
GET /agentmux/reactive/availability?agent=<name|uid>: describe_block for one agent of this instance. 400 without agent, 404 for a name no agent here has, 409 for one that names several.
on_screen 🔒
Whether an open window shows the workspace whose tab holds this block.
reach_of 🔒
The model API of a block’s agent as a pane reads it: tracked and answering, offline, not checked yet, or not tracked.
state_block 🔒
The block whose controller says what the agent is doing: the registered one, else the agent’s own block when a controller holds it. A pane in a closed workspace can run with no registration; reading it as absent made Agents list say stopped for an agent whose runtime state was idle.
state_name 🔒
The wire name of a state: AgentState’s, with a defined agent that has no process as stopped.
status_of 🔒
Everything a path needs to know about an agent: its availability (live, the block it is registered in, if any) and, from block (its live block, or the one that holds its desired state), whether it has a pane, whether it is wanted running, and whether its model API answers (net: one snapshot of the connectivity status, so a list of agents takes it once). Writes nothing.
stop_is_not_an_error 🔒
An agent whose block records a stop (the idle lifecycle, Agents stop, a person’s shut down) is stopped even when its process ended with a non-zero exit code: the stop is a forced kill, which exits that way. error is for a process that ended when nothing asked it to.
usage_of 🔒
How much of each usage window of the account the agent’s run launched on is used, by window (five_hour, seven_day): used_percent, resets_at_ms and the reading’s age_ms. None when the account has no reading that has not reset (a provider that reports none, or nothing has run on it yet): Identity accounts says which.
view_of_agent 🔒
describe_block for the agent agent (a name or a UID) names on this instance.
wait_note 🔒
The sentence for an agent in view that can’t work: limited or signed_out. It says the task is filed and waits for the agent, and when that is expected.
with_note 🔒
body with the fields of enqueue_note, if there is one.