Skip to main content

Module purpose

Module purpose 

Source
Expand description

Every ambient purpose, in one place: its tag (the second half of an AmbientCallKey, the outcome-log purpose and the token-usage category), how long its CLI call may run, and which queue it waits in. Each caller keeps its OWN purpose: two callers under one purpose cancel each other.

docs/reports/REPORT_AMBIENT_FRAMEWORK_REASSESSMENT_2026_10_08.md section 6.3.

Structs§

Purpose
One kind of ambient call.

Constants§

ACTIVITY_SUMMARY
The per-turn session title the pane requests (session:activity_summary). It reads a digest of the session as well as the message now, and nothing waits on it: the header keeps its last title until the new one is stored. A title call that times out is an evaluation lost and a stale title left standing (one pane’s calls timed out at 30 s several times in a day), so it has the background limit.
ACTIVITY_SUMMARY_PUSHED
A missing session title, recovered by the background sweep (backend::reactive::activity_watcher). Its own purpose so it never cancels, or is cancelled by, the pane’s own title request.
CONTINUITY_STATE
The rolling continuity state (backend::continuity_state): off any user-facing path, and a long multi-section reply, so it may take longer.
DEFINITION_SUMMARY
The once-per-definition conversation preview for the AgentPicker’s “My Agents” list (tasks::generate_definition_activity_summary).
DISPATCH_NAME
A Workflow dispatch’s display name. Separate from SUBAGENT_NAME so the two are counted apart. docs/specs/SPEC_SWARM_DISPATCH_NAMING_AND_ROW_MODEL_2026_07_19.md.
NARRATION
A line narrating an autonomous AgentMux action in the pane’s conversation.
NEXT_PROMPT_SUGGESTION
The composer’s ghost-text next-prompt suggestion. docs/specs/SPEC_AMBIENT_GHOST_TEXT_NEXT_PROMPT_2026_07_03.md.
SUBAGENT_NAME
A subagent’s display name (tasks::generate_subagent_name), when its parent gave no description. One-shot: the name is cached on SubAgent.display_name, so its generation is always 1. The backlog pass runs it as background work.
SUPERVISOR_VERDICT
The Swarm Supervisor’s verdict on a turn that just ended (backend::supervisor): continue the agent, or stop for the user. Background class: nobody is waiting on a reply in a pane, and a burst of agents ending turns together must not hold up a title or a suggestion. 90 s, like the continuity state: a verdict reasons over the whole turn, and took 14 to 27 s on a busy shared login where 45 s timed out (the agent waits idle either way). docs/specs/SPEC_SWARM_SUPERVISOR_2026_10_16.md §3.3.