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
chore: files changed crates/openhuman-core/src/agent/prompts/mod_tests_user_files_reflections_tests.
Steven Enamakel8c62fbf09403
diff --git a/crates/openhuman-core/src/agent/prompts/mod_tests_user_files_reflections_tests.rs b/crates/openhuman-core/src/agent/prompts/mod_tests_user_files_reflections_tests.rsindex ee15aee2ce..1ed31e6c05 100644--- a/crates/openhuman-core/src/agent/prompts/mod_tests_user_files_reflections_tests.rs+++ b/crates/openhuman-core/src/agent/prompts/mod_tests_user_files_reflections_tests.rs@@ -44,7 +44,9 @@ fn profile_md_and_memory_md_are_capped_at_user_file_max_chars() {USER_FILE_MAX_CHARS — found:\n{rendered}");// Sanity-check the cap is genuinely tighter than the bootstrap cap.- assert!(USER_FILE_MAX_CHARS < BOOTSTRAP_MAX_CHARS);+ const {+ assert!(USER_FILE_MAX_CHARS < BOOTSTRAP_MAX_CHARS);+ }let _ = std::fs::remove_dir_all(workspace);}diff --git a/crates/openhuman-core/src/agent/tinyagents/tinyagents_tests.rs b/crates/openhuman-core/src/agent/tinyagents/tinyagents_tests.rsindex a894eaee8f..7c45531df1 100644--- a/crates/openhuman-core/src/agent/tinyagents/tinyagents_tests.rs+++ b/crates/openhuman-core/src/agent/tinyagents/tinyagents_tests.rs@@ -279,7 +279,9 @@ fn run_policy_retry_schedule_outlasts_a_throttled_upstream() {retry.jitter,"identical curves keep a saturated upstream saturated");- assert!(JITTER_FRACTION > 0.0, "jitter must actually widen the band");+ const {+ assert!(JITTER_FRACTION > 0.0, "jitter must actually widen the band");+ }// Both ceilings stay bounded — this must not become an unbounded retry// (cf. #6412, the opposite failure in another crate).diff --git a/crates/openhuman-core/src/core/all_tests.rs b/crates/openhuman-core/src/core/all_tests.rsindex c31daee2b7..4f80b43aa3 100644--- a/crates/openhuman-core/src/core/all_tests.rs+++ b/crates/openhuman-core/src/core/all_tests.rs@@ -262,7 +262,9 @@ fn inference_engine_compiled_in_when_feature_on() {#[cfg(not(feature = "inference"))]fn inference_engine_compiled_out_when_feature_off() {use tinycomputer_accessibility::{detect_microphone_permission, PermissionState};- assert!(!crate::inference::INFERENCE_COMPILED_IN);+ const {+ assert!(!crate::inference::INFERENCE_COMPILED_IN);+ }assert_eq!(detect_microphone_permission(),PermissionState::Unknown,@@ -1252,7 +1254,9 @@ fn channels_controllers_absent_when_feature_off() {#[test]#[cfg(feature = "http-server")]fn http_server_compiled_in_when_feature_on() {- assert!(crate::core::http_server_status::HTTP_SERVER_COMPILED_IN);+ const {+ assert!(crate::core::http_server_status::HTTP_SERVER_COMPILED_IN);+ }}/// With the `http-server` feature off, the transport is compiled out: thediff --git a/crates/openhuman-core/src/core/http_server_status_tests.rs b/crates/openhuman-core/src/core/http_server_status_tests.rsindex fbd1c12cac..5786050e91 100644--- a/crates/openhuman-core/src/core/http_server_status_tests.rs+++ b/crates/openhuman-core/src/core/http_server_status_tests.rs@@ -13,7 +13,9 @@ fn reports_the_compiled_gate_state() {#[test]#[cfg(feature = "http-server")]fn is_true_when_the_http_server_feature_is_on() {- assert!(HTTP_SERVER_COMPILED_IN);+ const {+ assert!(HTTP_SERVER_COMPILED_IN);+ }}/// The slim build must report honestly, otherwise the shell's const assertdiff --git a/crates/openhuman-core/src/integrations/task_sources/periodic_tests.rs b/crates/openhuman-core/src/integrations/task_sources/periodic_tests.rsindex e7da6c8688..3fa09a3ec8 100644--- a/crates/openhuman-core/src/integrations/task_sources/periodic_tests.rs+++ b/crates/openhuman-core/src/integrations/task_sources/periodic_tests.rs@@ -33,8 +33,12 @@ fn source_for(id: &str, interval_secs: u64, provider: ProviderSlug) -> TaskSourc#[test]fn tick_seconds_is_sane() {- assert!(TICK_SECONDS >= 60);- assert!(TICK_SECONDS <= 3600);+ const {+ assert!(TICK_SECONDS >= 60);+ }+ const {+ assert!(TICK_SECONDS <= 3600);+ }}#[test]diff --git a/crates/openhuman-core/src/memory/tools/store_tests.rs b/crates/openhuman-core/src/memory/tools/store_tests.rsindex 351534d73e..a53949ed4d 100644--- a/crates/openhuman-core/src/memory/tools/store_tests.rs+++ b/crates/openhuman-core/src/memory/tools/store_tests.rs@@ -324,10 +324,12 @@ fn derive_key_caps_the_stem() {/// writes, and the loser was silently overwritten (review finding).#[test]fn derive_key_suffix_is_wide_enough_to_separate_a_shared_stem() {- assert!(- DERIVED_KEY_HASH_CHARS >= 16,- "a derived key needs at least 64 bits of digest"- );+ const {+ assert!(+ DERIVED_KEY_HASH_CHARS >= 16,+ "a derived key needs at least 64 bits of digest"+ );+ }let a = derive_key("the meeting with sam is about the budget for next quarter");let b = derive_key("the meeting with sam is about the roadmap for next quarter");let stem = |key: &str| key.rsplit_once('_').map(|(s, _)| s.to_string()).unwrap();diff --git a/crates/openhuman-core/src/platform/update/scheduler_tests.rs b/crates/openhuman-core/src/platform/update/scheduler_tests.rsindex 521d81dce9..20842f2c81 100644--- a/crates/openhuman-core/src/platform/update/scheduler_tests.rs+++ b/crates/openhuman-core/src/platform/update/scheduler_tests.rs@@ -6,7 +6,9 @@ fn min_interval_is_at_least_ten_minutes() {// shorter than ~10 minutes will trip the rate limit on a busy// machine. Lock in the floor so a future "let users tick every// minute" change doesn't silently break update visibility.- assert!(MIN_INTERVAL_MINUTES >= 10);+ const {+ assert!(MIN_INTERVAL_MINUTES >= 10);+ }}#[tokio::test]diff --git a/crates/openhuman-core/src/security/credentials/profiles_persistence_migration_tests.rs b/crates/openhuman-core/src/security/credentials/profiles_persistence_migration_tests.rsindex c1b9b9cd87..c89c070431 100644--- a/crates/openhuman-core/src/security/credentials/profiles_persistence_migration_tests.rs+++ b/crates/openhuman-core/src/security/credentials/profiles_persistence_migration_tests.rs@@ -67,7 +67,9 @@ fn clear_lock_if_stale_reclaims_pidless_lock_past_short_grace() {std::fs::write(&lock_path, "garbage without a pid line\n").unwrap();// Past the malformed grace but far below the 30s stale-age threshold —// the old code would have left this in place and blocked ~30s.- assert!(MALFORMED_LOCK_GRACE_MS + 500 < STALE_LOCK_AGE_MS);+ const {+ assert!(MALFORMED_LOCK_GRACE_MS + 500 < STALE_LOCK_AGE_MS);+ }let aged = std::time::SystemTime::now()- std::time::Duration::from_millis(MALFORMED_LOCK_GRACE_MS + 500);std::fs::OpenOptions::new()@@ -86,14 +88,18 @@ fn clear_lock_if_stale_reclaims_pidless_lock_past_short_grace() {#[test]fn lock_timeout_allows_fresh_leaked_locks_to_age_into_stale_reclaim() {- assert!(- LOCK_TIMEOUT_MS > STALE_LOCK_AGE_MS,- "lock timeout must outlive stale-lock age so a fresh leaked lock can be reclaimed"- );- assert!(- LOCK_TIMEOUT_MS - STALE_LOCK_AGE_MS >= 1_000,- "timeout should leave at least one periodic stale recheck after the threshold"- );+ const {+ assert!(+ LOCK_TIMEOUT_MS > STALE_LOCK_AGE_MS,+ "lock timeout must outlive stale-lock age so a fresh leaked lock can be reclaimed"+ );+ }+ const {+ assert!(+ LOCK_TIMEOUT_MS - STALE_LOCK_AGE_MS >= 1_000,+ "timeout should leave at least one periodic stale recheck after the threshold"+ );+ }}/// Sentry OPENHUMAN-TAURI-H8: when `OpenOptions::create_new` fails with