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/tool_budget_tests.rs,crates/openhuman-core/src

Steven Enamakel6f39a4a40870
diff --git a/crates/openhuman-core/src/memory/tool_budget_tests.rs b/crates/openhuman-core/src/memory/tool_budget_tests.rs
index 5164ff583a..378a5fe06c 100644
--- a/crates/openhuman-core/src/memory/tool_budget_tests.rs
+++ b/crates/openhuman-core/src/memory/tool_budget_tests.rs
@@ -13,9 +13,15 @@ async fn a_slow_memory_call_returns_and_disables_memory_only_for_its_turn() {
.await;
assert!(result.is_error);
assert!(result.text().contains("Continue answering"));
- assert!(!is_budget_refusal(&result), "a timeout is an ordinary tool error");
+ assert!(
+ !is_budget_refusal(&result),
+ "a timeout is an ordinary tool error"
+ );
assert_ne!(
- result.metadata.as_ref().and_then(|metadata| metadata.get("openhuman.memory_budget")),
+ result
+ .metadata
+ .as_ref()
+ .and_then(|metadata| metadata.get("openhuman.memory_budget")),
Some(&serde_json::json!("refused")),
"timeouts must not carry the budget-refusal marker"
);
diff --git a/crates/openhuman-core/src/memory/tools_activity_tests.rs b/crates/openhuman-core/src/memory/tools_activity_tests.rs
index 8b354f6846..4e57b401b6 100644
--- a/crates/openhuman-core/src/memory/tools_activity_tests.rs
+++ b/crates/openhuman-core/src/memory/tools_activity_tests.rs
@@ -52,8 +52,14 @@ async fn memory_activity_carries_the_calling_turns_chat() {
let expected_unrouted_hits = serde_json::from_str::<Value>(&text(&unrouted)).unwrap()["items"]
.as_u64()
.unwrap();
- assert!(expected_routed_hits > 0, "the seeded memory must be recalled");
- assert!(expected_unrouted_hits > 0, "the seeded memory must be recalled");
+ assert!(
+ expected_routed_hits > 0,
+ "the seeded memory must be recalled"
+ );
+ assert!(
+ expected_unrouted_hits > 0,
+ "the seeded memory must be recalled"
+ );
// The bus is process-wide: match our own events by the question text.
let mut seen = std::collections::HashMap::new();
diff --git a/crates/openhuman-core/src/memory/tools_tests.rs b/crates/openhuman-core/src/memory/tools_tests.rs
index ac5679c106..95e7f0e246 100644
--- a/crates/openhuman-core/src/memory/tools_tests.rs
+++ b/crates/openhuman-core/src/memory/tools_tests.rs
@@ -417,10 +417,12 @@ async fn learnings_are_shared_under_a_root_and_a_team_root_is_kept_apart() {
"{}",
forgot.text()
);
- assert!(stored(&engine, MetaFilter::default())
- .await
- .iter()
- .all(|hit| hit.meta.namespace != Namespace::agent("nobody")));
+ assert!(
+ stored(&engine, MetaFilter::default())
+ .await
+ .iter()
+ .all(|hit| hit.meta.namespace != Namespace::agent("nobody"))
+ );
}
/// The reference engine, recording how far each single store waited.