From 96a55ec870f62e06c7be2e77e70ca5503ed929dc Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Wed, 23 Sep 2026 19:29:24 +0200 Subject: [PATCH] Let an external-operator-binding dependency not block Ready Odin has no incarnation to observe for a provider Idunn admitted from an operator binding, so it can never sign evidence for one, and every such dependency stayed ready: false. A dependent with one (Ghostlight Dungeon's Heimdall command boundary) could never become Ready, and Idunn waited in AwaitingReady indefinitely. Idunn and CultLib already accept the kind. The dependency's own evidence stays ready: false; only its dependent's Ready no longer waits on it, as with optional. The dependent checks that provider itself at use. The rule is now one named function with a test covering managed, optional and external kinds; dropping the external kind fails it. Co-Authored-By: Claude Opus 5.5 --- crates/odin-daemon/src/lib.rs | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/crates/odin-daemon/src/lib.rs b/crates/odin-daemon/src/lib.rs index 0cb4fc3..2219cff 100644 --- a/crates/odin-daemon/src/lib.rs +++ b/crates/odin-daemon/src/lib.rs @@ -774,7 +774,7 @@ where && disagreements.is_empty() && dependencies .iter() - .all(|dependency| dependency.kind == "optional" || dependency.ready); + .all(|dependency| dependency_permits_ready(&dependency.kind, dependency.ready)); let mut correlation = OdinRuntimeTopologyCorrelationRecord { schema_version: ODIN_RUNTIME_TOPOLOGY_CORRELATION_SCHEMA.into(), target: projection.expected.target.clone(), @@ -1159,6 +1159,15 @@ fn managed_dependency_incarnations( .collect() } +/// Whether one dependency lets its dependent be Ready. An optional dependency +/// never blocks. An external-operator-binding provider is one Idunn admitted +/// from the operator's binding: Odin has no incarnation to observe and so can +/// never sign evidence for it, and its own evidence stays `ready: false`. The +/// dependent checks that provider itself at use, so Odin does not gate on it. +fn dependency_permits_ready(kind: &str, ready: bool) -> bool { + matches!(kind, "optional" | "external-operator-binding") || ready +} + fn classify_runtime_authority( projection: &IdunnRuntimeProjection, idunn_anchor: &ServiceIdentityTrustAnchor, @@ -2388,4 +2397,14 @@ mod tests { ); Ok(()) } + + #[test] + fn only_managed_dependencies_without_evidence_block_readiness() { + assert!(!dependency_permits_ready("required", false)); + assert!(!dependency_permits_ready("shared-infrastructure", false)); + assert!(!dependency_permits_ready("private", false)); + assert!(dependency_permits_ready("required", true)); + assert!(dependency_permits_ready("optional", false)); + assert!(dependency_permits_ready("external-operator-binding", false)); + } }