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 <noreply@anthropic.com>
This commit is contained in:
parent
5a015d9d9c
commit
96a55ec870
1 changed files with 20 additions and 1 deletions
|
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue