Show Move sync frame starvation

This commit is contained in:
Meta Vens 2026-06-03 05:36:23 +01:00
commit bef44778b6
2 changed files with 35 additions and 1 deletions

View file

@ -1355,7 +1355,22 @@ internal static class FensalirDaemonObserver
return new ObservedDaemonStatus(id, name, pid, "stale-pid", $"{pidFile} now belongs to {processName}");
}
return new ObservedDaemonStatus(id, name, pid, "online", $"{pidFile} {processName}");
var detail = $"{pidFile} {processName}";
if (id == "move-sync")
{
var trace = MoveTraceDetail(runDir);
if (!string.IsNullOrWhiteSpace(trace.Detail))
{
detail = $"{detail}; {trace.Detail}";
}
if (trace.WaitingForFrames)
{
return new ObservedDaemonStatus(id, name, pid, "waiting", detail);
}
}
return new ObservedDaemonStatus(id, name, pid, "online", detail);
}
catch (ArgumentException)
{
@ -1369,6 +1384,24 @@ internal static class FensalirDaemonObserver
return new ObservedDaemonStatus(id, name, 0, "missing", "no pid file");
}
private static (bool WaitingForFrames, string Detail) MoveTraceDetail(string runDir)
{
var path = Path.Combine(runDir, "move-sync", "online-sync.jsonl");
if (!File.Exists(path))
{
return (true, "trace missing");
}
var info = new FileInfo(path);
if (info.Length <= 0)
{
return (true, "trace empty");
}
var age = DateTimeOffset.Now - info.LastWriteTime;
return (false, $"trace bytes={info.Length} age={age.TotalSeconds:0}s");
}
}
internal sealed record ObservedDaemonStatus(

View file

@ -374,3 +374,4 @@
{"ts": "2026-06-03T05:20:09+01:00", "type": "implementation", "status": "ok", "note": "Mimir Well shakedown now defaults to the latest monotonic Well run instead of aggregating restarted ledgers; verified 20260602-233914 latest run at 1609 snapshots, 6/6 Ready after 120s and after 300s, recent presentation delay 40 ms. Remaining unavailable sources are source-health/device/network issues, not synchronized-frame collapse."}
{"ts": "2026-06-03T05:25:36+01:00", "type": "implementation", "status": "ok", "note": "Well stream pressure now includes Mimir.Well sender-loop telemetry at the websocket send authority. Live restart of 20260602-233914 reached after-120 readiness 1.0 with 6/6 Ready, recent presentation delay 40 ms, sender queue depth 0, sender max about 10 ms, and no drops; historical enqueue max is not active wire pressure."}
{"ts": "2026-06-03T05:33:56+01:00", "type": "implementation", "status": "ok", "note": "Daemon-status cut: Fensalir now validates pid-file process identity before reporting local daemons online, so reused PIDs surface as stale-pid instead of false health. Move sync remote receiver imports errno, degrades on HID write failures, and bioacoustic render preflight has a timeout. Live supervisor now has relay, recorder, Fensalir, Well, and Move sync resolving to dotnet/exe/python identities; Well remains 6/6 Ready at 40 ms. Current Move sync is online but waiting on Realtek loopback frames, not crashed."}
{"ts": "2026-06-03T05:36:16+01:00", "type": "implementation", "status": "ok", "note": "Fensalir daemon status now marks Move sync as waiting when the process identity is valid but move-sync/online-sync.jsonl is missing or empty. Hot-restarted Fensalir; Eve dashboard reported Online Daemons 5/6 while health stayed caught-up, matching the live state: relay, recorder, Fensalir, Well, and Move worker are alive, but Move score has no Realtek loopback frames yet."}