From 64e64df3bdce07db306fe68e287be16b6e92d88f Mon Sep 17 00:00:00 2001 From: soul-probe Date: Wed, 30 Sep 2026 03:57:39 +0200 Subject: [PATCH] Odin test: a refresh before the anchor's binding still records the time disagreement Removing the incoming-claim condition from the clock exemption in reconcile survived: only the admission side was pinned. A refresh has no claim to refuse, so with the clock before the anchor's binding it must still write the correlation carrying the provider-trust-anchor-time disagreement. Co-Authored-By: Claude Sonnet 5.5 --- crates/odin-daemon/src/lib.rs | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/crates/odin-daemon/src/lib.rs b/crates/odin-daemon/src/lib.rs index afdb89e..03867d9 100644 --- a/crates/odin-daemon/src/lib.rs +++ b/crates/odin-daemon/src/lib.rs @@ -2637,6 +2637,31 @@ mod tests { Ok(()) } + /// The clock exemption belongs to a claim being admitted. A refresh has no + /// claim to refuse: with the clock before the binding it still writes the + /// incarnation's correlation, carrying the time disagreement, and neither + /// fails nor is refused. + #[test] + fn a_refresh_before_the_anchors_binding_records_the_time_disagreement() -> Result<()> { + let world = TestWorld::new()?; + let service = world.service("ghostlight", Vec::new(), false)?; + let signed = world + .engine(NOW - 200) + .refresh(&service.incarnation()?)? + .expect("Idunn projects the incarnation"); + let correlation = decode_signed(&signed)?; + assert!( + correlation + .disagreements + .iter() + .any(|disagreement| disagreement.code == PROVIDER_ANCHOR_TIME_CODE), + "{:?}", + correlation.disagreements + ); + assert!(!correlation.ready); + Ok(()) + } + fn snapshot_with_stored_presence( service: &TestService, stored: AdmittedPresence,