From 692ba1fe4df2e259fcf0888a8b299a64101d41a8 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Fri, 11 Sep 2026 00:35:30 +0200 Subject: [PATCH] An aged-out Odin correlation is absence to wait on, not evidence to refuse Odin re-stamps a correlation only when its facts change, and a live presence changes them every heartbeat, so a correlation older than the trusted window means nothing about that incarnation has arrived lately. Admission and supervise now read that one refusal as nothing-new. It had failed every Heimdall deployment and the first observed Odin deployment at Warming. Verified with cargo test --lib in rust:1.95-bookworm on yggdrasil: 118 passed. Co-Authored-By: Claude Fable 5.1 --- src/control_plane.rs | 31 +++++++++++++++++++++++++++---- 1 file changed, 27 insertions(+), 4 deletions(-) diff --git a/src/control_plane.rs b/src/control_plane.rs index 92ba256..d9f7b34 100644 --- a/src/control_plane.rs +++ b/src/control_plane.rs @@ -3587,13 +3587,19 @@ impl Engine { ¤t.value.activation, )?; let odin_authority = self.current_odin_authority(snapshot)?; - let authenticated = authenticate_odin_runtime_topology_correlation( + let authenticated = match authenticate_odin_runtime_topology_correlation( &received.canonical_bytes, &authority, current.value.leasing.lease_sha256(), &odin_authority.signer_public_key, self.trusted_topology_context(now), - )?; + ) { + Ok(authenticated) => authenticated, + // An aged-out correlation is nothing new about the admitted + // generation, not a rejected observation. + Err(error) if is_stale_observation(&error) => return Ok(false), + Err(error) => return Err(error), + }; let evidence = TopologyEvidence::from_authenticated(&authenticated, now)?; if !sequence_requires_admission( Some(¤t.value.latest_odin_observation), @@ -5284,13 +5290,23 @@ impl Engine { live.envelope == current.envelope, "transaction changed before topology admission" ); - let authenticated = self.authenticate_topology_bytes( + let authenticated = match self.authenticate_topology_bytes( &snapshot, &live.value, &received.canonical_bytes, current_write_lease_sha256, now, - )?; + ) { + Ok(authenticated) => authenticated, + // Odin re-stamps a correlation only when its facts change, and a + // live presence changes them every heartbeat. A correlation that + // has aged out therefore says one thing: nothing about this + // incarnation has arrived lately. That is absence to wait on, not + // evidence to refuse; it failed every Heimdall deployment and the + // first observed Odin deployment as a fault. + Err(error) if is_stale_observation(&error) => return Ok(None), + Err(error) => return Err(error), + }; let evidence = TopologyEvidence::from_authenticated(&authenticated, now)?; if !sequence_requires_admission( live.value.latest_odin_observation.as_ref(), @@ -5991,6 +6007,13 @@ fn route_drain_deadline(promoted_at_unix_millis: u64, drain_seconds: u32) -> Res .context("route drain deadline overflows Unix milliseconds") } +/// CultLib refuses a correlation older than the trusted window with this +/// text. Idunn reads that one refusal as "nothing new", everywhere it waits +/// on Odin's evidence; every other refusal stays a refusal. +fn is_stale_observation(error: &anyhow::Error) -> bool { + format!("{error:#}").contains("outside the trusted observation window") +} + fn route_observation_is_current( observed_at_unix_millis: u64, now_unix_millis: u64,