Expand description
§smix-sim-health
Sim-side liveness sense layer.
Watches:
SimRenderServerpid (macOS + iOS Simulator)xcodebuildtest-host pid- Last
/healthresponse age (fed by the runner client) - Rolling window of
simctl io screenshotwall times
State machine: Healthy → Degraded → Dead (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§
- SimHealth
Config - Config knobs. Defaults match the values in
.claude/rfcs/1.0.4-sim-health-and-backpressure.md§D1. - SimHealth
Event - Snapshot published on each real state transition.
- SimHealth
Monitor - The monitor. Cheap to clone (internally
Arc).
Enums§
- Health
Reason - Reason a transition happened.
Reason::Noneis used for the initial state before any observation arrives. - SimHealth
State - Coarse sim health classification.