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
refactor(modules): widen mark_terminal visibility for tests
Steven Enamakel93d032a1150e
diff --git a/crates/openhuman-core/src/modules/ops.rs b/crates/openhuman-core/src/modules/ops.rsindex 59b5fa5022..11bc9ce2ee 100644--- a/crates/openhuman-core/src/modules/ops.rs+++ b/crates/openhuman-core/src/modules/ops.rs@@ -338,7 +338,7 @@ where}/// Append the terminal-fault sentence to `error` unless it already has it.-fn mark_terminal(error: String) -> String {+pub(super) fn mark_terminal(error: String) -> String {let marker = crate::tools::status::MODULE_FAULT_MARKER;if error.contains(marker) {return error;diff --git a/crates/openhuman-core/src/modules/ops_tests.rs b/crates/openhuman-core/src/modules/ops_tests.rsindex 472d011375..6422578f66 100644--- a/crates/openhuman-core/src/modules/ops_tests.rs+++ b/crates/openhuman-core/src/modules/ops_tests.rs@@ -432,11 +432,11 @@ fn bundled_dir_skips_a_missing_candidate_for_a_valid_later_one() {/// carry the terminal marker the observability classifier demotes on.#[test]fn a_marked_bus_startup_failure_is_classified_as_module_unavailable() {- let marked = mark_terminal("the module bus could not start: no runtime".to_string());+ let marked = ops::mark_terminal("the module bus could not start: no runtime".to_string());assert!(marked.ends_with("restart the app to try again"), "{marked}");assert!(crate::core::observability::is_module_unavailable_message(&marked));// Idempotent: an already-marked error is not annotated twice.- assert_eq!(mark_terminal(marked.clone()), marked);+ assert_eq!(ops::mark_terminal(marked.clone()), marked);}