Skip to content

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

chore: reformat imports and long lines in test and policy files

Steven Enamakel68051327d911
diff --git a/crates/openhuman-core/src/agent/harness/tool_result_artifacts/mod_tests.rs b/crates/openhuman-core/src/agent/harness/tool_result_artifacts/mod_tests.rs
index 1b185b02a1..1d2c50a245 100644
--- a/crates/openhuman-core/src/agent/harness/tool_result_artifacts/mod_tests.rs
+++ b/crates/openhuman-core/src/agent/harness/tool_result_artifacts/mod_tests.rs
@@ -40,7 +40,10 @@ async fn threshold_persists_outside_the_project_and_reads_back() {
let expected = workspace.join("artifacts/tool-results/session_one/shell/call-1.txt");
let pointer = expected.to_string_lossy().into_owned();
assert!(outcome.persisted);
- assert!(out.contains(&format!("artifact_path: {pointer}\n")), "{out}");
+ assert!(
+ out.contains(&format!("artifact_path: {pointer}\n")),
+ "{out}"
+ );
assert!(out.contains("original_bytes:"));
assert!(out.contains("[preview]"));
assert!(!out.contains("ghp_abcdefghijklmnopqrstuvwxyz123456"));
diff --git a/crates/openhuman-core/src/agent/session_host/artifact_wiring.rs b/crates/openhuman-core/src/agent/session_host/artifact_wiring.rs
index 81638ef9f1..fc014d14f8 100644
--- a/crates/openhuman-core/src/agent/session_host/artifact_wiring.rs
+++ b/crates/openhuman-core/src/agent/session_host/artifact_wiring.rs
@@ -6,7 +6,9 @@
use std::path::{Path, PathBuf};
-use crate::agent::harness::tool_result_artifacts::{legacy_action_dir_store, new_tool_result_store};
+use crate::agent::harness::tool_result_artifacts::{
+ legacy_action_dir_store, new_tool_result_store,
+};
use crate::security::policy::tool_result_artifacts_dir;
use tinyagents_harness::artifacts::tool_results::ToolResultArtifactStore;
diff --git a/crates/openhuman-core/src/agent/session_host/artifact_wiring_tests.rs b/crates/openhuman-core/src/agent/session_host/artifact_wiring_tests.rs
index a180ba1120..b55c690558 100644
--- a/crates/openhuman-core/src/agent/session_host/artifact_wiring_tests.rs
+++ b/crates/openhuman-core/src/agent/session_host/artifact_wiring_tests.rs
@@ -17,7 +17,9 @@ fn stale_session(root: &Path, session: &str) -> PathBuf {
// A directory's own mtime counts toward freshness too.
for d in [dir.as_path(), dir.parent().unwrap()] {
let handle = std::fs::File::open(d).unwrap();
- handle.set_modified(std::time::SystemTime::now() - 2 * DAY).unwrap();
+ handle
+ .set_modified(std::time::SystemTime::now() - 2 * DAY)
+ .unwrap();
}
root.join(session)
}
diff --git a/crates/openhuman-core/src/security/policy/mod.rs b/crates/openhuman-core/src/security/policy/mod.rs
index 0d13b5d47f..d674b209a6 100644
--- a/crates/openhuman-core/src/security/policy/mod.rs
+++ b/crates/openhuman-core/src/security/policy/mod.rs
@@ -11,8 +11,8 @@ mod types;
pub use enforcement::validate_path_within_root;
pub use enforcement::{ensure_openhuman_scratch_dir, openhuman_scratch_dir};
pub use types::{
- ActionTracker, AutonomyLevel, CommandClass, CommandRiskLevel, GateDecision, SecurityPolicy,
- tool_result_artifacts_dir, ToolOperation, TrustedAccess, TrustedRoot, POLICY_BLOCKED_MARKER,
+ tool_result_artifacts_dir, ActionTracker, AutonomyLevel, CommandClass, CommandRiskLevel,
+ GateDecision, SecurityPolicy, ToolOperation, TrustedAccess, TrustedRoot, POLICY_BLOCKED_MARKER,
POLICY_DENIED_MARKER,
};