Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

test(memory_context_safety): remove unused test helper

Steven Enamakel1e3edaefe196
diff --git a/crates/openhuman-core/src/agent/harness/memory_context_safety_tests.rs b/crates/openhuman-core/src/agent/harness/memory_context_safety_tests.rs
index 91543e41da..6877f11504 100644
--- a/crates/openhuman-core/src/agent/harness/memory_context_safety_tests.rs
+++ b/crates/openhuman-core/src/agent/harness/memory_context_safety_tests.rs
@@ -1,23 +1,4 @@
use super::*;
-// Only the tests build entries; the predicate itself takes a namespace and
-// a key, which is what decoupled it from either `MemoryEntry` type.
-use crate::memory::MemoryCategory;
-use crate::memory::MemoryEntry;
-
-fn entry(namespace: Option<&str>, key: &str) -> MemoryEntry {
- MemoryEntry {
- id: "test".into(),
- key: key.into(),
- content: "irrelevant".into(),
- namespace: namespace.map(str::to_string),
- category: MemoryCategory::Custom("test".into()),
- timestamp: "2026-05-20T00:00:00Z".into(),
- session_id: None,
- score: None,
- taint: Default::default(),
- }
-}
-
#[test]
fn locally_authored_namespaces_are_trusted() {
for ns in [