Advance Idunn plan after Gjallar RUDP health

This commit is contained in:
Meta Vens 2026-06-16 06:32:07 +01:00
commit c5778d78b5
4 changed files with 118 additions and 28 deletions

View file

@ -748,11 +748,11 @@ fn swarm_surgery_plan(
targets: &[DaemonTarget],
updated_at: &str,
) -> IdunnSwarmSurgeryPlanRecord {
let has_nightwing_gjallar = targets
let has_mimir_eve_dashboard = targets
.iter()
.any(|target| target.daemon_id == "nightwing-gjallar");
let next_target = if has_nightwing_gjallar {
"nightwing-gjallar"
.any(|target| target.daemon_id == "mimir-eve-dashboard");
let next_target = if has_mimir_eve_dashboard {
"mimir-eve-dashboard"
} else if let Some(target) = targets.iter().find(|target| target.enabled) {
target.daemon_id.as_str()
} else {
@ -786,11 +786,11 @@ fn swarm_surgery_plan(
"5. Delete or demote compatibility probes once every target has daemon-owned publication and advertised lifecycle authority.".to_string(),
],
current_phase:
"Phase 9: move Nightwing Gjallar framebuffer health from service/status compatibility evidence to daemon-published RUDP state, with Raven Muninn scheduled-task action repair queued as a background-only ops invariant."
"Phase 10: move Mimir Eve dashboard health from local compatibility probes to daemon-published RUDP state, with Raven Muninn scheduled-task action repair queued as a background-only ops invariant."
.to_string(),
next_target: next_target.to_string(),
cut_line:
"Muninn, Idunn, Odin, Stonks, Weksa, and VoidBot now exercise daemon-owned RUDP health locally. Nightwing Gjallar is the next compositor/runtime cut. Live Raven still needs GameCult-Muninn, GameCult-Muninn-Activate, and GameCult-Muninn-VideoProof task actions repaired to execute wscript.exe hidden launchers directly; application is blocked while Raven SSH is unreachable."
"Muninn, Idunn, Odin, Stonks, Weksa, VoidBot, and Nightwing Gjallar now exercise daemon-owned RUDP health. Mimir Eve dashboard is the next local runtime cut. Live Raven still needs GameCult-Muninn, GameCult-Muninn-Activate, and GameCult-Muninn-VideoProof task actions repaired to execute wscript.exe hidden launchers directly; application is blocked while Raven SSH is unreachable."
.to_string(),
verification_layer:
"CultMesh keepalive store records plus live Idunn decision cycles, not process exit codes or chat summaries."
@ -827,6 +827,11 @@ fn daemon_transport_profile(
"partial-rudp-health-live",
"VoidBot stack health is published over CultNet/RUDP from the local orchestrator pulse; provider advertisement and command_boundary publication remain migration debt before the operations probe can be deleted.",
),
"nightwing-gjallar" => (
"daemon-published-rudp-health + compatibility.local-command fallback",
"partial-rudp-health-live",
"Gjallar framebuffer composition health is published over CultNet/RUDP from Nightwing; native CultMesh/RUDP input and provider advertisement remain migration debt before the service/status probe can be deleted.",
),
_ => (
"compatibility.local-command",
"migration-required",
@ -940,19 +945,25 @@ fn daemon_surgery_plan(target: &DaemonTarget, updated_at: &str) -> IdunnDaemonSu
.to_string();
}
"nightwing-gjallar" => {
status = "partial-rudp-health-live";
severity = "critical";
owner = "Gjallar C# runtime plus Odin provider feed";
current_mechanism =
"Gjallar currently proves visible composition through service checks and /var/log/gjallar.status, fed by Odin's WebSocket deck compatibility bridge."
"Nightwing Gjallar publishes gjallar.cultnet-rudp-framebuffer-composition-health over CultNet/RUDP from the C# runtime; the compatibility health script now verifies deployment and the local status witness, while Odin WebSocket deck input remains compatibility transport debt."
.to_string();
intended_authority =
"Gjallar subscribes to Odin/provider deck state over CultNet/RUDP and publishes framebuffer composition health as typed CultMesh/CultNet state."
.to_string();
cut_line =
"Cut Odin WebSocket deck consumption as the compositor truth path; keep it only as a browser/debug lowering if needed."
"Keep the service/status probe as fallback only until Gjallar's native CultMesh/RUDP input path, provider advertisement, command_boundary, and transport_profile records are daemon-owned publications."
.to_string();
blockers
.push("Requires native C# CultNet/RUDP subscription path for Gjallar.".to_string());
steps = vec![
"Keep live gjallar.cultnet-rudp-framebuffer-composition-health publication running from Nightwing's Gjallar service.".to_string(),
"Replace Odin WebSocket deck consumption with a native C# CultMesh/RUDP input path when the deck contract is ready.".to_string(),
"Publish Gjallar provider advertisement, command_boundary, and transport_profile records over cultnet.transport.rudp.v0.".to_string(),
"Teach Odin to prefer Gjallar RUDP/CultMesh compositor records over service/status compatibility ingestion.".to_string(),
"Delete or demote health-nightwing-gjallar.cmd to a manual deployment witness with no lifecycle truth.".to_string(),
];
}
"stonks" => {
status = "partial-rudp-health-live";
@ -1893,7 +1904,7 @@ mod tests {
}
#[test]
fn swarm_surgery_plan_names_gjallar_after_voidbot_cut() {
fn swarm_surgery_plan_names_mimir_after_gjallar_cut() {
let starfire_muninn = DaemonTarget {
daemon_id: "starfire-muninn".to_string(),
verse_id: "starfire.local".to_string(),
@ -1984,22 +1995,37 @@ mod tests {
daemon_id: "nightwing-gjallar".to_string(),
verse_id: "nightwing.local".to_string(),
name: "Nightwing Gjallar framebuffer compositor".to_string(),
health_contract: health_contract("gjallar.cultnet-rudp-framebuffer-health", "failed"),
health_contract: health_contract(
"gjallar.cultnet-rudp-framebuffer-composition-health",
"failed",
),
health_command: Some("health-nightwing-gjallar.cmd".to_string()),
deploy_command: Some("deploy-nightwing-gjallar.cmd".to_string()),
restart_command: Some("restart-nightwing-gjallar.cmd".to_string()),
enabled: true,
interval_seconds: 30,
};
let mimir = DaemonTarget {
daemon_id: "mimir-eve-dashboard".to_string(),
verse_id: "starfire.local".to_string(),
name: "Mimir Eve dashboard".to_string(),
health_contract: health_contract("mimir.cultnet-rudp-provider-health", "failed"),
health_command: Some("health-mimir-eve-dashboard.cmd".to_string()),
deploy_command: None,
restart_command: None,
enabled: true,
interval_seconds: 30,
};
let plan = swarm_surgery_plan(
"starfire-local",
&[
odin,
mimir,
stonks,
weksa.clone(),
voidbot.clone(),
nightwing_gjallar,
nightwing_gjallar.clone(),
starfire_muninn,
nightwing_muninn,
raven_muninn.clone(),
@ -2009,11 +2035,11 @@ mod tests {
assert_eq!(plan.plan_id, "swarm-surgery:starfire-local");
assert_eq!(plan.status, "active-transport-migration");
assert_eq!(plan.next_target, "nightwing-gjallar");
assert!(plan.current_phase.contains("Nightwing Gjallar"));
assert_eq!(plan.next_target, "mimir-eve-dashboard");
assert!(plan.current_phase.contains("Mimir Eve dashboard"));
assert!(
plan.cut_line
.contains("Muninn, Idunn, Odin, Stonks, Weksa, and VoidBot")
.contains("Muninn, Idunn, Odin, Stonks, Weksa, VoidBot, and Nightwing Gjallar")
);
assert!(plan.cut_line.contains("GameCult-Muninn-Activate"));
assert!(plan.cut_line.contains("GameCult-Muninn-VideoProof"));
@ -2082,6 +2108,19 @@ mod tests {
.cut_line
.contains("operations probe as fallback")
);
let gjallar_plan = daemon_surgery_plan(&nightwing_gjallar, "unix:100");
assert_eq!(gjallar_plan.status, "partial-rudp-health-live");
assert!(
gjallar_plan
.current_mechanism
.contains("gjallar.cultnet-rudp-framebuffer-composition-health")
);
assert!(
gjallar_plan
.cut_line
.contains("service/status probe as fallback")
);
}
#[test]
@ -2208,6 +2247,37 @@ mod tests {
);
}
#[test]
fn gjallar_transport_profile_marks_partial_rudp_health() {
let gjallar = DaemonTarget {
daemon_id: "nightwing-gjallar".to_string(),
verse_id: "nightwing.local".to_string(),
name: "Nightwing Gjallar framebuffer compositor".to_string(),
health_contract: health_contract(
"gjallar.cultnet-rudp-framebuffer-composition-health",
"failed",
),
health_command: Some("health-nightwing-gjallar.cmd".to_string()),
deploy_command: Some("deploy-nightwing-gjallar.cmd".to_string()),
restart_command: Some("restart-nightwing-gjallar.cmd".to_string()),
enabled: true,
interval_seconds: 30,
};
let profile = daemon_transport_profile(&gjallar, "unix:100");
assert_eq!(profile.state, "partial-rudp-health-live");
assert_eq!(
profile.current_transport,
"daemon-published-rudp-health + compatibility.local-command fallback"
);
assert!(
profile
.cut_line
.contains("Gjallar framebuffer composition health is published over CultNet/RUDP")
);
}
#[test]
fn runtime_transport_check_proves_rudp_loopback() {
let check = runtime_transport_check("2026-06-15T00:00:00Z");

View file

@ -266,8 +266,9 @@ The local swarm mode owns:
Current plan surface: `idunn.swarm_surgery_plan.v1` for profile
`starfire-local` treats the Muninn Rust lanes, Odin's local provider-health
lane, Stonks daemon health, Weksa daemon health, and VoidBot stack health as
completed local substrate cuts. Muninn's `--health` mode publishes
lane, Stonks daemon health, Weksa daemon health, VoidBot stack health, and
Nightwing Gjallar framebuffer composition health as completed substrate cuts.
Muninn's `--health` mode publishes
`idunn.daemon_health` over RUDP; Starfire publishes to local Idunn, while
Nightwing and Raven publish over WireGuard to
`10.77.0.2:17870` using their target daemon ids and health contracts. Odin
@ -276,19 +277,22 @@ Stonks publishes `stonks.cultnet-rudp-market-health` after each serialized
market refresh. Weksa publishes `weksa.cultnet-rudp-provider-health` after each
serialized provider witness refresh. VoidBot publishes
`voidbot.cultnet-rudp-stack-health` after each GameCult Local Orchestrator
pulse. Live Idunn cycles accept these records before command-probe fallback.
pulse. Gjallar publishes
`gjallar.cultnet-rudp-framebuffer-composition-health` from the C# Nightwing
framebuffer service. Live Idunn cycles accept these records before command-probe fallback.
Raven's Muninn scheduled-task repair is a separate ops invariant:
`GameCult-Muninn`, `GameCult-Muninn-Activate`, and
`GameCult-Muninn-VideoProof` must execute `wscript.exe` hidden launcher actions,
not raw `.cmd` task actions.
Next: move Nightwing Gjallar framebuffer health off service/status compatibility
evidence and onto daemon-owned RUDP state, then continue runtime-by-runtime
until compatibility probes can be deleted or demoted. Stonks, Weksa, and VoidBot
still owe provider advertisement and command-boundary RUDP publication before
their compatibility surfaces can be purely display/debug lowerings. Raven Muninn
task action repair is queued separately and remains blocked while Raven is
unreachable over SSH; the prepared actuator is
Next: move Mimir Eve dashboard health off local compatibility evidence and onto
daemon-owned RUDP state, then continue runtime-by-runtime until compatibility
probes can be deleted or demoted. Stonks, Weksa, VoidBot, and Gjallar still owe
provider advertisement and command-boundary RUDP publication before their
compatibility surfaces can be purely display/debug lowerings; Gjallar also owes
native CultMesh/RUDP deck input to replace the current Odin WebSocket lowering
bridge. Raven Muninn task action repair is queued separately and remains blocked
while Raven is unreachable over SSH; the prepared actuator is
`scripts\repair-raven-muninn-task-actions.ps1`.
No ad hoc JSON manifest, HTTP endpoint, TCP socket, or WebSocket bridge may

View file

@ -1,7 +1,10 @@
param(
[string] $GjallarRoot = "E:\Projects\Gjallar",
[string] $SshTarget = "nwroot",
[string] $RemoteDir = "/opt/gamecult/gjallar"
[string] $RemoteDir = "/opt/gamecult/gjallar",
[string] $IdunnRudpHealth = "10.77.0.2:17870",
[string] $IdunnDaemon = "nightwing-gjallar",
[string] $IdunnHealthContract = "gjallar.cultnet-rudp-framebuffer-composition-health"
)
$ErrorActionPreference = "Stop"
@ -42,7 +45,15 @@ if ($LASTEXITCODE -ne 0) {
throw "scp failed with exit code $LASTEXITCODE"
}
ssh.exe $SshTarget "mkdir -p '$RemoteDir' && tar -xf /tmp/gjallar-publish.tar -C '$RemoteDir' && chmod +x '$RemoteDir/Gjallar' && systemctl restart gjallar.service && systemctl is-active --quiet gjallar.service"
$dropIn = @"
[Service]
Environment=GJALLAR_IDUNN_RUDP_HEALTH=$IdunnRudpHealth
Environment=GJALLAR_IDUNN_DAEMON=$IdunnDaemon
Environment=GJALLAR_IDUNN_HEALTH_CONTRACT=$IdunnHealthContract
"@
$dropInBase64 = [Convert]::ToBase64String([Text.Encoding]::UTF8.GetBytes($dropIn))
ssh.exe $SshTarget "mkdir -p '$RemoteDir' /etc/systemd/system/gjallar.service.d && tar -xf /tmp/gjallar-publish.tar -C '$RemoteDir' && chmod +x '$RemoteDir/Gjallar' && printf '%s' '$dropInBase64' | base64 -d > /etc/systemd/system/gjallar.service.d/idunn-rudp-health.conf && systemctl daemon-reload && systemctl restart gjallar.service && systemctl is-active --quiet gjallar.service"
if ($LASTEXITCODE -ne 0) {
throw "remote deploy or restart failed with exit code $LASTEXITCODE"
}

View file

@ -82,4 +82,9 @@ if ([int]$status.receive.composedProviders -lt $MinComposedProviders) {
Fail-IdunnHealth -State "degraded" -Message "Nightwing Gjallar composed no provider panels: composedProviders=$($status.receive.composedProviders), expected at least $MinComposedProviders."
}
if ($null -eq $status.idunnRudpHealth -or $status.idunnRudpHealth.status -ne "published") {
$detail = if ($null -eq $status.idunnRudpHealth) { "missing idunnRudpHealth status" } else { $status.idunnRudpHealth.error }
Fail-IdunnHealth -State "degraded" -Message "Nightwing Gjallar has not published daemon-owned Idunn RUDP health. $detail"
}
Write-Host "Nightwing Gjallar is active, deployed at $localCommit, and composing $($status.receive.composedProviders)/$($status.receive.catalogProviders) providers."