Auto: ablegacy-12 — auto-demote on comm failure

Closes #255
This commit is contained in:
Joseph Doherty
2026-04-26 08:44:53 -04:00
parent 8ee65a75d2
commit 1e3053c0d8
18 changed files with 1160 additions and 31 deletions

View File

@@ -138,6 +138,11 @@ public sealed class HostStatusPublisher(
HostState.Running => DriverHostState.Running,
HostState.Stopped => DriverHostState.Stopped,
HostState.Faulted => DriverHostState.Faulted,
// PR ablegacy-12 / #255 — Demoted is a driver-side back-off (skipped reads while
// we wait for a flaky host to recover). The Configuration enum doesn't have a
// dedicated value; surface it as Stopped so the Admin UI lights it up red-ish
// without the publisher needing a schema migration to differentiate.
HostState.Demoted => DriverHostState.Stopped,
_ => DriverHostState.Unknown,
};
}