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): hoist policy flags before mutable borrow in views test
Steven Enamakel58042d27fd8f
diff --git a/crates/openhuman-core/src/memory/lifecycle/views_tests.rs b/crates/openhuman-core/src/memory/lifecycle/views_tests.rsindex ee12170014..9f8b6f5599 100644--- a/crates/openhuman-core/src/memory/lifecycle/views_tests.rs+++ b/crates/openhuman-core/src/memory/lifecycle/views_tests.rs@@ -50,9 +50,11 @@ fn the_policy_round_trips_and_refuses_out_of_range_values() {},] {let before = serde_json::to_value(&config).unwrap();+ let log_conversations = !config.memory.conversations.enabled;+ let recall_enabled = !config.memory.recall.enabled;let result = apply_policy_set(&mut config, &PolicySetParams {- log_conversations: Some(!config.memory.conversations.enabled),- recall_enabled: Some(!config.memory.recall.enabled),+ log_conversations: Some(log_conversations),+ recall_enabled: Some(recall_enabled),..bad});assert!(matches!(result, Err(MemoryError::InvalidRequest(_))));