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): cover policy set accepting fields returned by policy get
Steven Enamakelc6b2843c68ae
diff --git a/crates/openhuman-core/src/memory/lifecycle/views_tests.rs b/crates/openhuman-core/src/memory/lifecycle/views_tests.rsindex 9f8b6f5599..e4cb4509f8 100644--- a/crates/openhuman-core/src/memory/lifecycle/views_tests.rs+++ b/crates/openhuman-core/src/memory/lifecycle/views_tests.rs@@ -7,6 +7,16 @@ use crate::memory::lifecycle::hooks::{self, PreTurnInput};use crate::memory::scope::MemoryIdentity;use crate::memory::test_fixtures::{bind_reference, config_in};+#[test]+fn policy_set_accepts_fields_reported_by_policy_get() {+ let _params: PolicySetParams = serde_json::from_value(serde_json::json!({+ "date_hint": true,+ "compaction_timeout_ms": 12_000,+ "build_delay_secs": 900,+ }))+ .unwrap();+}+#[test]fn the_policy_round_trips_and_refuses_out_of_range_values() {let mut config = Config::default();