Track swarm deployment coverage in Idunn

This commit is contained in:
Meta Vens 2026-06-09 15:39:48 +01:00
commit 8d110c3f4b
7 changed files with 178 additions and 0 deletions

View file

@ -53,6 +53,13 @@ Idunn now shares Odin's Rust body:
through `health-muninn.cmd` and `restart-muninn.cmd`, and Nightwing Gjallar
through `health-nightwing-gjallar.cmd`,
`deploy-nightwing-gjallar.cmd`, and `restart-nightwing-gjallar.cmd`.
- `scripts/idunn-deployment-targets.ps1` is the current swarm deployment target
catalog. Every known deployable target is either `enforced`, `blocked`,
`external-owned`, or `not-runtime` with an explicit reason.
- `scripts/health-idunn-swarm-deployment-coverage.ps1` is the coverage probe
that fails when the target catalog becomes incoherent. The local Idunn
launcher runs it as `idunn-swarm-deployment-coverage` so missing deploy
ownership becomes a watched operational fault.
- `scripts/notify-idunn-operator-alarm.ps1` is the local operator crossing:
Idunn invokes it only after raising an operator alarm, and it asks Bifrost to
publish a typed `gamecult.operator_dm_request.v1` CultMesh command document
@ -124,6 +131,12 @@ idunn.operator_alarm.v1
revision, writes `gamecult.gjallar.deployment_manifest.v1`, restarts
`gjallar.service`, and leaves deployment request/result records in its
keepalive `.cc`.
- Swarm-wide deployment ownership means Idunn owns the target catalog and the
freshness contract for the repo swarm. It does not mean Idunn invents deploy
authority for every repo immediately. A target without a safe noninteractive
deploy command must remain `blocked` or `external-owned` with the missing
authority named until a wrapper can produce a deployment manifest and route
through Idunn's typed deployment request/result path.
## First Runtime Direction

View file

@ -0,0 +1,2 @@
@echo off
powershell.exe -NoProfile -ExecutionPolicy Bypass -File E:\Projects\Odin\scripts\health-idunn-swarm-deployment-coverage.ps1

View file

@ -0,0 +1,31 @@
$ErrorActionPreference = "Stop"
. (Join-Path $PSScriptRoot "idunn-deployment-targets.ps1")
$unknown = @($IdunnDeploymentTargets | Where-Object { $_.Status -notin @("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) })
$blockedWithoutReason = @($IdunnDeploymentTargets | Where-Object { $_.Status -in @("blocked", "external-owned") -and [string]::IsNullOrWhiteSpace($_.Reason) })
$issues = @()
if ($unknown.Count) {
$issues += "unknown status: $($unknown.Id -join ', ')"
}
if ($enforcedWithoutDeploy.Count) {
$issues += "enforced target missing deploy command: $($enforcedWithoutDeploy.Id -join ', ')"
}
if ($enforcedWithoutHealth.Count) {
$issues += "enforced target missing health command: $($enforcedWithoutHealth.Id -join ', ')"
}
if ($blockedWithoutReason.Count) {
$issues += "blocked/external target missing reason: $($blockedWithoutReason.Id -join ', ')"
}
if ($issues.Count) {
throw "Idunn deployment target catalog is incoherent: $($issues -join '; ')"
}
$enforced = @($IdunnDeploymentTargets | Where-Object { $_.Status -eq "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."

View file

@ -0,0 +1,101 @@
$repoRoot = Split-Path -Parent $PSScriptRoot
$opsRoot = "E:\Projects\gamecult-ops"
$IdunnDeploymentTargets = @(
[pscustomobject]@{
Id = "nightwing-gjallar"
Repo = "Gjallar"
LocalPath = "E:\Projects\Gjallar"
Host = "nightwing"
Service = "gjallar.service"
Status = "enforced"
Health = "$repoRoot\scripts\health-nightwing-gjallar.cmd"
Deploy = "$repoRoot\scripts\deploy-nightwing-gjallar.cmd"
Restart = "$repoRoot\scripts\restart-nightwing-gjallar.cmd"
Reason = "Nightwing framebuffer compositor has a committed artifact manifest and automatic Idunn deploy lane."
},
[pscustomobject]@{
Id = "yggdrasil-bifrost"
Repo = "Bifrost"
LocalPath = "E:\Projects\Bifrost"
Host = "yggdrasil"
Service = "bifrost.service/bifrost-web"
Status = "blocked"
Health = "$opsRoot\scripts\check-bifrost-alpha.sh"
Deploy = "$opsRoot\scripts\deploy-bifrost-container.ps1"
Restart = $null
Reason = "Deploy authority exists in gamecult-ops, but desired image digest/tag is not yet published as an Idunn deployment target record."
},
[pscustomobject]@{
Id = "yggdrasil-streampixels"
Repo = "StreamPixels"
LocalPath = "E:\Projects\StreamPixels"
Host = "yggdrasil"
Service = "streampixels-service/streampixels-web"
Status = "blocked"
Health = "$opsRoot\scripts\check-streampixels-preview.sh"
Deploy = "$opsRoot\scripts\deploy-streampixels-preview.sh"
Restart = $null
Reason = "Deploy script is remote-root/runbook shaped and needs a committed artifact manifest plus Idunn-safe wrapper before automatic execution."
},
[pscustomobject]@{
Id = "yggdrasil-heimdall"
Repo = "Heimdall"
LocalPath = "E:\Projects\Heimdall"
Host = "yggdrasil"
Service = "heimdall.service"
Status = "blocked"
Health = "$opsRoot\scripts\check-heimdall.sh"
Deploy = "$opsRoot\scripts\deploy-heimdall.sh"
Restart = $null
Reason = "Deploy script uses a workstation-built source tarball; Idunn needs a manifest-producing wrapper before automatic execution."
},
[pscustomobject]@{
Id = "yggdrasil-repixelizer"
Repo = "repixelizer"
LocalPath = "E:\Projects\repixelizer"
Host = "yggdrasil"
Service = "repixelizer-gui.service"
Status = "blocked"
Health = "$opsRoot\scripts\check-repixelizer-gui.sh"
Deploy = "$opsRoot\scripts\deploy-repixelizer-gui.sh"
Restart = $null
Reason = "Deploy script uses a committed source tarball and Python environment mutation; Idunn needs an artifact manifest wrapper before automatic execution."
},
[pscustomobject]@{
Id = "github-pages-gamecult-site"
Repo = "gamecult-site"
LocalPath = "E:\Projects\gamecult-site"
Host = "github-pages"
Service = "gamecult.org/www"
Status = "external-owned"
Health = $null
Deploy = $null
Restart = $null
Reason = "GitHub Actions/Pages owns deployment freshness; Idunn should ingest workflow/deployment status before claiming automatic deploy authority."
},
[pscustomobject]@{
Id = "eve-ipad-evecanvas"
Repo = "Eve"
LocalPath = "E:\Projects\Eve"
Host = "eve-ipad"
Service = "org.gamecult.evecanvas"
Status = "blocked"
Health = $null
Deploy = $null
Restart = $null
Reason = "Jailbroken iPad native app deployment exists only as an operator runbook; no safe noninteractive Idunn deploy command yet."
},
[pscustomobject]@{
Id = "periwinkle-eve-android"
Repo = "Eve"
LocalPath = "E:\Projects\Eve"
Host = "periwinkle"
Service = "Eve Android proof APK"
Status = "blocked"
Health = $null
Deploy = $null
Restart = $null
Reason = "Android USB install requires on-device approval; Idunn must not claim automatic deploy authority until that boundary is solved."
}
)

View file

@ -0,0 +1,8 @@
$ErrorActionPreference = "Stop"
. (Join-Path $PSScriptRoot "idunn-deployment-targets.ps1")
$IdunnDeploymentTargets |
Sort-Object Status, Id |
Select-Object Id, Repo, Host, Service, Status, Reason |
Format-Table -AutoSize -Wrap

View file

@ -62,6 +62,13 @@ $watchdogs = @(
Health = "$repoRoot\scripts\health-muninn.cmd"
Restart = "$repoRoot\scripts\restart-muninn.cmd"
},
[pscustomobject]@{
Id = "idunn-swarm-deployment-coverage"
Name = "Idunn swarm deployment coverage"
Verse = "starfire.local"
Health = "$repoRoot\scripts\health-idunn-swarm-deployment-coverage.cmd"
Restart = $null
},
[pscustomobject]@{
Id = "nightwing-gjallar"
Name = "Nightwing Gjallar framebuffer compositor"

View file

@ -79,6 +79,11 @@ That task starts Idunn loops for Odin, Stonks, and the Nightwing display
services at user logon. The current Mimir dashboard is observed but not
restarted until its restart authority is named.
It also starts `idunn-swarm-deployment-coverage`, which watches the deployment
target catalog in `scripts/idunn-deployment-targets.ps1`. A repo/service is not
allowed to vanish into shrug-space: it is either enforced by Idunn, explicitly
blocked with the missing authority named, external-owned, or not a runtime.
To record a failed health check and request a restart without actuating:
```powershell
@ -117,6 +122,17 @@ Idunn should not guess private service truth. A daemon should publish:
If that information is missing, Idunn should fail closed and create an operator
alarm instead of improvising.
For the repo swarm, deployment ownership begins with catalog coverage. Use:
```powershell
.\scripts\show-idunn-deployment-targets.ps1
.\scripts\health-idunn-swarm-deployment-coverage.cmd
```
The first fully enforced target is Nightwing Gjallar. Other targets remain
blocked or external-owned until their deployment commands can produce manifests
and run safely through Idunn.
## Typed Records
- `idunn.desired_daemon.v1`