Skip to main content

Module session

Module session 

Source
Expand description

The live observability-only session implementing aion_integrations::AgentSession. CliSession — a live plain-stdout CLI agent run behind the [AgentSession] seam.

This is the observability-only case (case (b), §3A.1): the agent has no structured control channel at all. One background pump task owns the child’s stdout, reads it line by line, demuxes each line into a neutral [ActivityEvent] (crate::demux), and forwards it to the [AgentSession::events] stream. When stdout closes (end of run) it captures the terminal result (the final stdout line + exit status) and hands it to [AgentSession::wait_result].

The capability set is always empty: [AgentSession::capabilities] returns [InterventionCapabilities::none] and [AgentSession::intervene] rejects every command with [HarnessError::CapabilityNotSupported]. There is no control channel to route a command onto — the empty advertisement is a first-class tier, not a degenerate one, and the server never routes a command to a session that advertises nothing.

Structs§

CliSession
A live plain-stdout CLI agent run for one activity attempt.