Module state

Module state 

Source

Structs§

PendingHwnd
Phase B.9.1 — transient HWND record held until the reducer can link it to a WindowMirror. See State::pending_hwnds.
ProcessRecord
One process in the launcher’s canonical view. Updated by the reducer; read by IPC handlers + the eventual --diag printer.
State
Top-level launcher state. Single Arc<Mutex> owned by the IPC server; passed into update(state, cmd, conn) for every incoming command.
WindowMirror
Phase B.4 read-only mirror of one host-owned window. The launcher learns about windows via Command::ReportWindowOpened; the host remains authoritative until B.5 flips the direction. opened_at is the launcher’s clock at the time the report arrived (RFC3339) — useful for correlating launcher logs with host logs across version skew.

Enums§

LifecyclePhase
Coarse-grained launcher state. Spec §4: Starting → Running → Quitting → Dead, no other transitions allowed. The reducer in agentmux-launcher::reducer enforces this; a violation panics (Job Object reaps via OS).
ProcessState
Lifecycle of a single process the launcher knows about. The reducer transitions through these in order — there’s no skipping (Spawning → Running → Exited).