Expand description
Runner lifecycle helpers for background agent execution.
Provides shared implementations for:
- Runner reservation (check existing → create new with cancel token)
- Runner finalization (map execution result to
AgentStatus) - Status mapping
Structs§
- Runner
Reservation - Reservation result from
reserve_runner_core/try_reserve_runner.
Enums§
- Reserve
Outcome - Outcome of the shared reservation core.
Functions§
- finalize_
runner - Update a runner’s terminal status and completion timestamp.
- reserve_
runner_ core - Shared runner-reservation core used by BOTH the server’s
reserve_runnerand the engine’stry_reserve_runner, so the idle-eviction sender re-assert can never drift between the two paths again (#346). - status_
from_ execution_ result - Map an execution result to
AgentStatus. - try_
reserve_ runner - Try to reserve a runner for the given session.