Add live Muninn Move roster smoke

This commit is contained in:
Meta Vens 2026-06-17 10:16:09 +01:00
commit d3d4b14635
3 changed files with 117 additions and 0 deletions

View file

@ -114,6 +114,16 @@ if (args.Any(arg => string.Equals(arg, "--muninn-move-identity-smoke", StringCom
return RunMuninnMoveIdentitySmoke();
}
if (args.Any(arg => string.Equals(arg, "--muninn-move-live-roster-smoke", StringComparison.OrdinalIgnoreCase)))
{
return await RunMuninnMoveLiveRosterSmokeAsync(
ParseRepeatedStringOption(
args,
"--identity-store",
[@"C:\Meta\Odin\state\starfire.muninn.telemetry.cc"]))
.ConfigureAwait(false);
}
if (args.Any(arg => string.Equals(arg, "--muninn-move-cultmesh-stream-smoke", StringComparison.OrdinalIgnoreCase)))
{
return RunMuninnMoveCultMeshStreamSmoke(
@ -421,6 +431,25 @@ static string ParseStringOption(IReadOnlyList<string> args, string name, string
return fallback;
}
static string[] ParseRepeatedStringOption(IReadOnlyList<string> args, string name, string[] fallback)
{
var values = new List<string>();
for (var index = 0; index < args.Count - 1; index++)
{
if (!string.Equals(args[index], name, StringComparison.OrdinalIgnoreCase))
{
continue;
}
values.AddRange(args[index + 1]
.Split([';', ','], StringSplitOptions.TrimEntries | StringSplitOptions.RemoveEmptyEntries));
}
return values.Count > 0
? values.ToArray()
: fallback;
}
static string DescribeBands(IReadOnlyList<MimirChirpletBandResponse> bands)
{
return bands.Count == 0
@ -1721,6 +1750,61 @@ static int RunMuninnMoveIdentitySmoke()
: 1;
}
static async Task<int> RunMuninnMoveLiveRosterSmokeAsync(IReadOnlyList<string> identityStorePaths)
{
var identities = new List<MuninnMoveIdentityDocument>();
var loadedStores = 0;
foreach (var path in identityStorePaths)
{
if (string.IsNullOrWhiteSpace(path))
{
continue;
}
var fullPath = Path.GetFullPath(path);
if (!File.Exists(fullPath))
{
Console.Error.WriteLine($"muninn-move-live-roster-smoke missing-store path={fullPath}");
continue;
}
using var cache = await CultCacheMessagePack.OpenAsync(fullPath, new CultCacheOpenOptions
{
PullOnOpen = true
}).ConfigureAwait(false);
var storeIdentities = cache.GetAll<MuninnMoveIdentityDocument>().ToArray();
identities.AddRange(storeIdentities);
loadedStores++;
Console.WriteLine($"muninn-move-live-roster-smoke store={fullPath} identities={storeIdentities.Length}");
}
var roster = MimirMuninnMoveEvidenceAdapter.BuildIdentityRoster(identities);
foreach (var entry in roster)
{
Console.WriteLine(
$"muninn-move-live-roster-smoke move={entry.MoveId} readiness={entry.PickupReadiness} latest={entry.LatestHostId}/{entry.LatestState} states={entry.StateSummary} usbHosts={string.Join(',', entry.UsbHostIds)} usbBlockingHosts={string.Join(',', entry.UsbBlockingHostIds)} pickupHosts={string.Join(',', entry.BluetoothPickupHostIds)} bluetoothHost={entry.BluetoothHostAddress} sources={string.Join('|', entry.SourcePaths)} observedNs={entry.ObservedAtNs}");
}
var hasIdentityRecords = identities.Count > 0;
var hasRoster = roster.Count > 0;
var readinessIsCoherent = roster.All(entry =>
{
var hasUsbBlocker = entry.UsbBlockingHostIds.Length > 0;
return entry.PickupReadiness == "usb-owned"
? hasUsbBlocker
: !hasUsbBlocker;
});
Console.WriteLine(
$"muninn-move-live-roster-smoke stores={loadedStores}/{identityStorePaths.Count} identities={identities.Count} roster={roster.Count} readinessCoherent={readinessIsCoherent}");
return loadedStores > 0 &&
hasIdentityRecords &&
hasRoster &&
readinessIsCoherent
? 0
: 1;
}
static int RunMuninnMoveCultMeshStreamSmoke(string nativeReservoirPath)
{
if (!File.Exists(nativeReservoirPath))
@ -6377,3 +6461,27 @@ public sealed record ComplexContourChannelModelEvaluationCase(
double DeltaAbsolutePredictionErrorMicroseconds,
double DeltaMeanAbsoluteErrorSamples,
double DeltaMeanAbsolutePhaseErrorRadians);
[CultDocument("gamecult.eve.provider_advertisement", "gamecult.eve.provider_advertisement.v1")]
[MessagePackObject]
public sealed record MimirMuninnStoreProviderAdvertisementCompatDocument;
[CultDocument("muninn.command_boundary", "muninn.command_boundary.v1")]
[MessagePackObject]
public sealed record MimirMuninnStoreCommandBoundaryCompatDocument;
[CultDocument("muninn.obs_stream_catalog", "muninn.obs_stream_catalog.v1")]
[MessagePackObject]
public sealed record MimirMuninnStoreObsStreamCatalogCompatDocument;
[CultDocument("muninn.quest_access", "muninn.quest_access.v1")]
[MessagePackObject]
public sealed record MimirMuninnStoreQuestAccessCompatDocument;
[CultDocument("muninn.telemetry_surface", "muninn.telemetry_surface.v1")]
[MessagePackObject]
public sealed record MimirMuninnStoreTelemetrySurfaceCompatDocument;
[CultDocument("muninn.transport_profile", "muninn.transport_profile.v1")]
[MessagePackObject]
public sealed record MimirMuninnStoreTransportProfileCompatDocument;

View file

@ -393,6 +393,13 @@ public static class MimirMuninnMoveEvidenceAdapter
private static ulong ObservedAtToUnixNs(string observedAt)
{
const string unixPrefix = "unix-";
if (observedAt.StartsWith(unixPrefix, StringComparison.OrdinalIgnoreCase) &&
ulong.TryParse(observedAt[unixPrefix.Length..], out var unixSeconds))
{
return checked(unixSeconds * 1_000_000_000UL);
}
if (!DateTimeOffset.TryParse(observedAt, out var parsed))
{
return 0;

View file

@ -145,3 +145,5 @@
{"ts": "2026-06-16T18:05:56+01:00", "type": "verification", "status": "ok", "note": "Mimir.CultMeshMedia migrated from old CultMesh node/client transport to explicit CultNet RUDP relay/send/recv path; local smoke artifacts/rudp-media-smoke-20260616-180404 proved 32 MPEG-TS chunks reached Starfire-local UDP sink over RUDP (packets=32 bytes=42112)."}
{"ts": "2026-06-17T03:45:44+01:00", "type": "decision", "status": "ok", "note": "Muninn Move identity is now a typed provenance/provisioning lane: Mimir consumes muninn.move_identity.v1 as identity snapshots while controller-state/marker evidence remains the only native reservoir motion evidence. Verified with Mimir.BufferSmoke --muninn-move-identity-smoke and --muninn-move-evidence-smoke."}
{"ts": "2026-06-17T05:33:48+01:00", "type": "implementation", "status": "ok", "note": "Added Mimir Move identity roster projection from muninn.move_identity.v1. The roster groups identity records by physical Move so a blind USB rotation can show Starfire/Nightwing USB witnesses and Nightwing Bluetooth waiting/connected pickup state together while keeping identity-only rows out of the native motion reservoir. Verified with Mimir.BufferSmoke --muninn-move-identity-smoke and Mimir.Runtime build."}
{"ts": "2026-06-17T07:32:58+01:00", "type": "verification", "status": "ok", "note": "2026-06-17 Raven OBS feed owner is actual Muninn. Canonical C:\\Meta\\Odin\\Muninn\\muninn.exe was stale (3853312 bytes) while the working bridge build existed as muninn-fixed4.exe (2020352 bytes). Replacing canonical muninn.exe with the latest release build restored Raven->Starfire SRT delivery: single-target proof on port 5520 produced H.264 1920x1080 video plus AAC stereo in capture.ts, and dual-target proof on ports 5521/5524 delivered 262144-byte MPEG-TS captures to both listeners."}
{"ts": "2026-06-17T10:10:40+01:00", "type": "verification", "status": "ok", "note": "Mimir BufferSmoke now reads live Starfire/Nightwing Muninn CultCache move_identity records with opaque companion schema stubs; live roster smoke saw A8 as usb-owned via Starfire USB plus Nightwing waiting, F5 bluetooth-connected, and A3/A6 pickup-ready."}