Skip to main content

Crate smix_sim_health

Crate smix_sim_health 

Source
Expand description

§smix-sim-health

Sim-side liveness sense layer.

Watches:

  • SimRenderServer pid (macOS + iOS Simulator)
  • xcodebuild test-host pid
  • Last /health response age (fed by the runner client)
  • Rolling window of simctl io screenshot wall times

State machine: HealthyDegradedDead (and back). Transitions broadcast on a tokio::sync::broadcast channel. Consumers subscribe; the crate itself does not act — actions live in the runner client, the simctl client, and the maestro adapter.

This is a stone crate — business-unaware. Its ABI is stable inside 1.x; additive-only.

Since smix 1.0.4.

Structs§

SimHealthConfig
Config knobs. Defaults match the values in .claude/rfcs/1.0.4-sim-health-and-backpressure.md §D1.
SimHealthEvent
Snapshot published on each real state transition.
SimHealthMonitor
The monitor. Cheap to clone (internally Arc).

Enums§

HealthReason
Reason a transition happened. Reason::None is used for the initial state before any observation arrives.
SimHealthState
Coarse sim health classification.