Skip to main content

Module agent_status

Module agent_status 

Source
Expand description

One status for an agent and one decision function for everything that wants to reach it (docs/specs/SPEC_AGENT_AVAILABILITY_EVERY_PATH_ONE_DECISION_2026_10_31.md §4). The status adds three facts to Availability: whether the agent has a pane, whether it is wanted running, and whether its model API answers. decide turns a status and an Intent into one Decision.

A message is still ruled by verdict (the contract is that Intent::Message answers exactly as it does). The other intents say, in one table, what the path that asks them does now; a path moves onto this function in its own change, and the two behaviour changes the spec lists (held input for a limited or signed-out parked agent, a turn-starting message while the API is offline) are marked where they will land. Nothing here reads a store, a controller or the clock.

Structs§

AgentStatus
Everything a path needs to know about an agent before it sends something to it.

Enums§

Decision
What to do.
Intent
What a path wants to do with the agent.
Pane
Whether the agent has a pane to show.
Reach
Whether the agent’s model API answers.
Wanted
What the agent’s own block says it should be doing (agent:desired).

Constants§

RESET_FAR_MS
And how far off its reset must be (or unknown): a limit that lifts within the hour is waited out.
UNAVAILABLE_LEASE_AFTER_MS
How long a holder must have been out of quota or signed out before its lease on a task open to anyone stops being renewed (R5 of SPEC_UNRESPONSIVE_AGENTS_2026_10_23.md).
UNCHECKED_HOLD_MS
How long a model API may stay “not checked yet” before it no longer holds input: the pane’s rule.

Functions§

decide
The decision for intent to the agent in status. hands_over_work is asked only for a routine message to a cold session (verdict’s argument); other intents never call it.