Skip to content

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

chore: files changed crates/openhuman-core/src/memory/lifecycle/views_tests.rs

Steven Enamakel57a519848bde
diff --git a/crates/openhuman-core/src/memory/lifecycle/views_tests.rs b/crates/openhuman-core/src/memory/lifecycle/views_tests.rs
index 2c290416cb..e2c4c20742 100644
--- a/crates/openhuman-core/src/memory/lifecycle/views_tests.rs
+++ b/crates/openhuman-core/src/memory/lifecycle/views_tests.rs
@@ -76,6 +76,19 @@ fn the_policy_round_trips_and_refuses_out_of_range_values() {
assert_eq!(view.recall.build_beliefs_every, 7);
assert_eq!(view.recall.pre_turn_timeout_ms, 5000);
+ apply_policy_set(
+ &mut config,
+ &PolicySetParams {
+ team_limit: Some(0),
+ build_beliefs_every: Some(0),
+ ..PolicySetParams::default()
+ },
+ )
+ .unwrap();
+ let zero_limits = policy_view(&config);
+ assert_eq!(zero_limits.recall.team_limit, 0);
+ assert_eq!(zero_limits.recall.build_beliefs_every, 0);
+
apply_policy_set(
&mut config,
&PolicySetParams {