Skip to content

Solution for long term memory for agent coding CLIs and to facilitate handoff between different agent vendors

Rust

test(store): accommodate microsecond recency drift in belief test

Vinícius DS Andradeefb70f6bd211
diff --git a/crates/ai-memory-store/tests/suite/belief_authority.rs b/crates/ai-memory-store/tests/suite/belief_authority.rs
index 26c92013..d46ca70a 100644
--- a/crates/ai-memory-store/tests/suite/belief_authority.rs
+++ b/crates/ai-memory-store/tests/suite/belief_authority.rs
@@ -517,9 +517,8 @@ async fn contradiction_to_expired_target_does_not_lower_confidence() {
.find(|(h, _)| h.path.as_str() == "notes/disputed_live.md")
.unwrap();
- assert_eq!(
- disputed_expired.1.confidence.unwrap(),
- clean.1.confidence.unwrap(),
+ assert!(
+ (disputed_expired.1.confidence.unwrap() - clean.1.confidence.unwrap()).abs() < 1e-4,
"expired target contradiction must not lower confidence"
);
assert!(