The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
test(memory): assert supported phone scrubbing
Steven Enamakel4b9dc84159f3
diff --git a/crates/openhuman-core/src/memory/engine_tests.rs b/crates/openhuman-core/src/memory/engine_tests.rsindex a4f6a4bf7a..885006e80f 100644--- a/crates/openhuman-core/src/memory/engine_tests.rs+++ b/crates/openhuman-core/src/memory/engine_tests.rs@@ -32,13 +32,13 @@ async fn assert_host_scrubbing(reference: &tinymemory_api::conformance::ReferenceEngine,) {const SECRET: &str = "sk-ant-api03-AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA";- const EMAIL: &str = "[email protected]";+ const PHONE: &str = "+15551234567";const BARE_NUMBER: &str = "79927398713";bound.engine.store(tinymemory_api::StoreItem::document(- format!("contact {EMAIL}; key={SECRET}; reference {BARE_NUMBER}"),+ format!("contact {PHONE}; key={SECRET}; reference {BARE_NUMBER}"),tinymemory_api::MemoryMeta::default(),)).await@@ -59,7 +59,7 @@ async fn assert_host_scrubbing(.expect("the corroborated host policy preserves an unqualified number");assert!(!text.contains(SECRET), "credentials are scrubbed before store");- assert!(!text.contains(EMAIL), "personal contact data is scrubbed before store");+ assert!(!text.contains(PHONE), "phone numbers are scrubbed before store");}#[tokio::test]