diff --git a/src/Mimir.FensalirDaemon/Program.cs b/src/Mimir.FensalirDaemon/Program.cs index 06e6d14..d5b7506 100644 --- a/src/Mimir.FensalirDaemon/Program.cs +++ b/src/Mimir.FensalirDaemon/Program.cs @@ -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( diff --git a/state/evidence.jsonl b/state/evidence.jsonl index f598314..0c5f97b 100644 --- a/state/evidence.jsonl +++ b/state/evidence.jsonl @@ -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."}