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(session_host): rename stop_summary module to stop_policy
Steven Enamakel60ffc64cb870
diff --git a/crates/openhuman-core/src/agent/session_host/driver.rs b/crates/openhuman-core/src/agent/session_host/driver.rsindex b5892da78f..aef725b1a4 100644--- a/crates/openhuman-core/src/agent/session_host/driver.rs+++ b/crates/openhuman-core/src/agent/session_host/driver.rs@@ -491,7 +491,7 @@ impl SessionDriver<OpenHumanRunContext> for OpenHumanSessionDriver {observed.hit_cap = outcome.hit_cap;observed.wrap_up_injected = outcome.wrap_up_injected;// Preserve the harness stop reason and the wind-down sidecar marker.- observed.stop = crate::agent::session_host::stop_summary::classify_stop_with_cause(+ observed.stop = crate::agent::session_host::stop_policy::classify_stop_with_cause(outcome.breaker_halt.as_deref(),outcome.failure_cause.clone(),observed.wind_down,diff --git a/crates/openhuman-core/src/agent/session_host/driver/grounded_close.rs b/crates/openhuman-core/src/agent/session_host/driver/grounded_close.rsindex 727612261d..c7d0f45c20 100644--- a/crates/openhuman-core/src/agent/session_host/driver/grounded_close.rs+++ b/crates/openhuman-core/src/agent/session_host/driver/grounded_close.rs@@ -16,7 +16,7 @@ use tinytools_agent::dialect::ToolDialect;use tinyagents_harness::middleware::wrap_harness_instruction;use crate::agent::{- session_host::{product_copy, stop_summary},+ session_host::{product_copy, stop_policy},tinyagents::{SupplementalTrace, TinyagentsTurnOutcome, TurnModelSource},};use crate::inference::provider::{BilledUsage, AGENT_TURN_MAX_OUTPUT_TOKENS};@@ -241,7 +241,7 @@ fn classified_halt_close(outcome: &TinyagentsTurnOutcome) -> Option<GroundedClos}let records = product_copy::close_results(&outcome.tool_outcomes);Some(GroundedClose {- output: stop_summary::deterministic_final_summary(&records, Some(reason)),+ output: stop_policy::deterministic_final_summary(&records, Some(reason)),usage: RepairUsage::default(),})}@@ -414,7 +414,7 @@ pub(super) async fn close_if_needed(!records.is_empty(),)} else {- stop_summary::deterministic_final_summary(&records, stop_reason)+ stop_policy::deterministic_final_summary(&records, stop_reason)}};diff --git a/crates/openhuman-core/src/agent/session_host/mod.rs b/crates/openhuman-core/src/agent/session_host/mod.rsindex a378a30b2f..fe1cacb323 100644--- a/crates/openhuman-core/src/agent/session_host/mod.rs+++ b/crates/openhuman-core/src/agent/session_host/mod.rs@@ -46,7 +46,7 @@ mod live_tools;mod resume_bound_session_tests;mod runtime;mod runtime_session;-pub(crate) mod stop_summary;+pub(crate) mod stop_policy;mod types;pub use codec::OpenHumanTranscriptCodec;diff --git a/crates/openhuman-core/src/agent/session_host/product_copy_tests.rs b/crates/openhuman-core/src/agent/session_host/product_copy_tests.rsindex 96a622e4ff..09ce24d02a 100644--- a/crates/openhuman-core/src/agent/session_host/product_copy_tests.rs+++ b/crates/openhuman-core/src/agent/session_host/product_copy_tests.rs@@ -271,7 +271,7 @@ fn the_final_summary_quotes_each_failure_message() {/// raw records. The detailed cases live in `stop_summary_tests.rs`.#[test]fn the_final_summary_of_a_halted_turn_gives_a_reason_and_names_the_tools() {- let out = super::super::stop_summary::deterministic_final_summary(+ let out = super::super::stop_policy::deterministic_final_summary(&[result("install_item", false, "no direct download")],Some(STOP_NOTE),);