From 7a7f11d8cc2887536570a92bfb356717b2b9efb9 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Fri, 17 Jul 2026 03:23:08 +0100 Subject: [PATCH] Speak Idunn's actual RUDP health contract --- epiphany-core/src/idunn_runtime_health.rs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/epiphany-core/src/idunn_runtime_health.rs b/epiphany-core/src/idunn_runtime_health.rs index 3beb3994..1cd7d031 100644 --- a/epiphany-core/src/idunn_runtime_health.rs +++ b/epiphany-core/src/idunn_runtime_health.rs @@ -15,7 +15,9 @@ pub const EPIPHANY_SIGNED_RUNTIME_HEALTH_SCHEMA_VERSION: &str = "epiphany.idunn_signed_runtime_health.v0"; pub const EPIPHANY_IDUNN_RUNTIME_HEALTH_CONTRACT: &str = "epiphany.cultnet-rudp-runtime-health"; pub const CULTNET_RUDP_PROTOCOL_ID: &str = "cultnet.transport.rudp.v0"; -const IDUNN_HEALTH_RUDP_CONNECTION_ID: u32 = 0x4944_554e; +// Shared Idunn daemon-health RUDP contract. This must match the Idunn ingress +// constant; a private Epiphany connection id cannot complete the handshake. +const IDUNN_HEALTH_RUDP_CONNECTION_ID: u32 = 0x1d0d_0001; #[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)] pub struct IdunnDaemonHealthDocument { @@ -498,4 +500,9 @@ mod tests { .is_err() ); } + + #[test] + fn rudp_publisher_uses_the_idunn_daemon_health_connection_contract() { + assert_eq!(IDUNN_HEALTH_RUDP_CONNECTION_ID, 0x1d0d_0001); + } }