From ce9336e0039c32e494edffb2642df000c68cf523 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Sun, 14 Jun 2026 13:51:14 +0100 Subject: [PATCH] Expose Muninn runtime liveness in Idunn catalog --- ...health-idunn-swarm-deployment-coverage.ps1 | 7 +++--- scripts/idunn-deployment-targets.ps1 | 24 +++++++++++++++++++ 2 files changed, 28 insertions(+), 3 deletions(-) diff --git a/scripts/health-idunn-swarm-deployment-coverage.ps1 b/scripts/health-idunn-swarm-deployment-coverage.ps1 index 72f3879..62813e0 100644 --- a/scripts/health-idunn-swarm-deployment-coverage.ps1 +++ b/scripts/health-idunn-swarm-deployment-coverage.ps1 @@ -2,9 +2,9 @@ $ErrorActionPreference = "Stop" . (Join-Path $PSScriptRoot "idunn-deployment-targets.ps1") -$unknown = @($IdunnDeploymentTargets | Where-Object { $_.Status -notin @("enforced", "blocked", "external-owned", "not-runtime") }) +$unknown = @($IdunnDeploymentTargets | Where-Object { $_.Status -notin @("enforced", "runtime-enforced", "blocked", "external-owned", "not-runtime") }) $enforcedWithoutDeploy = @($IdunnDeploymentTargets | Where-Object { $_.Status -eq "enforced" -and [string]::IsNullOrWhiteSpace($_.Deploy) }) -$enforcedWithoutHealth = @($IdunnDeploymentTargets | Where-Object { $_.Status -eq "enforced" -and [string]::IsNullOrWhiteSpace($_.Health) }) +$enforcedWithoutHealth = @($IdunnDeploymentTargets | Where-Object { $_.Status -in @("enforced", "runtime-enforced") -and [string]::IsNullOrWhiteSpace($_.Health) }) $blockedWithoutReason = @($IdunnDeploymentTargets | Where-Object { $_.Status -in @("blocked", "external-owned") -and [string]::IsNullOrWhiteSpace($_.Reason) }) $issues = @() @@ -26,6 +26,7 @@ if ($issues.Count) { } $enforced = @($IdunnDeploymentTargets | Where-Object { $_.Status -eq "enforced" }) +$runtimeEnforced = @($IdunnDeploymentTargets | Where-Object { $_.Status -eq "runtime-enforced" }) $blocked = @($IdunnDeploymentTargets | Where-Object { $_.Status -eq "blocked" }) $external = @($IdunnDeploymentTargets | Where-Object { $_.Status -eq "external-owned" }) -Write-Host "Idunn deployment catalog coherent: $($IdunnDeploymentTargets.Count) targets, $($enforced.Count) enforced, $($blocked.Count) blocked, $($external.Count) external-owned." +Write-Host "Idunn deployment catalog coherent: $($IdunnDeploymentTargets.Count) targets, $($enforced.Count) deploy-enforced, $($runtimeEnforced.Count) runtime-enforced, $($blocked.Count) blocked, $($external.Count) external-owned." diff --git a/scripts/idunn-deployment-targets.ps1 b/scripts/idunn-deployment-targets.ps1 index db5a0ac..91204db 100644 --- a/scripts/idunn-deployment-targets.ps1 +++ b/scripts/idunn-deployment-targets.ps1 @@ -1,6 +1,30 @@ $repoRoot = Split-Path -Parent $PSScriptRoot $IdunnDeploymentTargets = @( + [pscustomobject]@{ + Id = "starfire-muninn" + Repo = "Odin" + LocalPath = "E:\Projects\Odin" + Host = "starfire" + Service = "muninn serve --host starfire" + Status = "runtime-enforced" + Health = "$repoRoot\scripts\health-starfire-muninn.cmd" + Deploy = $null + Restart = "$repoRoot\scripts\restart-starfire-muninn.cmd" + Reason = "Central Idunn keeps Starfire-local Muninn alive for Quest access and local telemetry surfaces." + }, + [pscustomobject]@{ + Id = "nightwing-muninn" + Repo = "Odin" + LocalPath = "E:\Projects\Odin" + Host = "nightwing" + Service = "muninn serve --host nightwing" + Status = "runtime-enforced" + Health = "$repoRoot\scripts\health-nightwing-muninn.cmd" + Deploy = $null + Restart = "$repoRoot\scripts\restart-nightwing-muninn.cmd" + Reason = "Central Idunn reaches Nightwing over SSH and keeps the host-local Muninn Move HID daemon alive." + }, [pscustomobject]@{ Id = "nightwing-gjallar" Repo = "Gjallar"