Skip to content

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

test(memory): follow the new recall defaults in the tests that assumed the old

M3gA-Mind26c2cd964a70
diff --git a/crates/openhuman-core/src/memory/lifecycle/mod_tests.rs b/crates/openhuman-core/src/memory/lifecycle/mod_tests.rs
index 93d6fbeee5..d7f43d9401 100644
--- a/crates/openhuman-core/src/memory/lifecycle/mod_tests.rs
+++ b/crates/openhuman-core/src/memory/lifecycle/mod_tests.rs
@@ -9,8 +9,11 @@ fn the_policy_mirrors_the_recall_config() {
let default = policy(&recall);
assert_eq!(
default,
- RecallPolicy::default(),
- "the defaults agree with TinyMemory's"
+ RecallPolicy {
+ team_limit: 0,
+ ..RecallPolicy::default()
+ },
+ "the defaults agree with TinyMemory's, except that OpenHuman leaves the team section out"
);
recall.build_beliefs_every = 0;
diff --git a/crates/openhuman-core/src/memory/sources/sync_tests.rs b/crates/openhuman-core/src/memory/sources/sync_tests.rs
index f1f7486624..a2dc8fcb3d 100644
--- a/crates/openhuman-core/src/memory/sources/sync_tests.rs
+++ b/crates/openhuman-core/src/memory/sources/sync_tests.rs
@@ -387,7 +387,8 @@ async fn github_files_per_repository_only_when_switched_on() {
nodes
};
- // Off (the default): one GitHub source.
+ // Off: one GitHub source.
+ config.memory.split_github_by_repo = false;
sync(config.clone(), vec![issue("acme/api", "off")]).await;
assert_eq!(nodes().await, ["source:github"]);
diff --git a/tests/memory_v2_e2e.rs b/tests/memory_v2_e2e.rs
index 037e715eb6..d737740c16 100644
--- a/tests/memory_v2_e2e.rs
+++ b/tests/memory_v2_e2e.rs
@@ -992,6 +992,8 @@ async fn policy_get_and_set_round_trip() {
assert_eq!(defaults["log_conversations"], json!(true));
assert_eq!(defaults["recall"]["enabled"], json!(true));
assert_eq!(defaults["recall"]["budget_tokens"], json!(1200));
+ // No team section by default: a pack carries the agent's own history.
+ assert_eq!(defaults["recall"]["team_limit"], json!(0));
assert_eq!(defaults["root"], json!("root"));
assert_eq!(defaults["host_bound"], json!(false));