Skip to content

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

refactor(subagent_host): hoist lifecycle submodules into parent module

Steven Enamakel149c5e898cac
diff --git a/crates/openhuman-core/src/agent/subagent_host/lifecycle.rs b/crates/openhuman-core/src/agent/subagent_host/lifecycle.rs
index d37076d816..d93e1b7d68 100644
--- a/crates/openhuman-core/src/agent/subagent_host/lifecycle.rs
+++ b/crates/openhuman-core/src/agent/subagent_host/lifecycle.rs
@@ -31,6 +31,10 @@ use tinyinference_llm::{
};
use tokio::sync::{Mutex as AsyncMutex, Notify};
+#[path = "lifecycle_checkpoint.rs"]
+mod checkpoint;
+#[path = "lifecycle_outcome.rs"]
+mod outcome;
use checkpoint::absolute_checkpoint_dir;
use super::{
diff --git a/crates/openhuman-core/src/agent/subagent_host/lifecycle/driver_adapter.rs b/crates/openhuman-core/src/agent/subagent_host/lifecycle/driver_adapter.rs
index 64affe2b83..072ad147d3 100644
--- a/crates/openhuman-core/src/agent/subagent_host/lifecycle/driver_adapter.rs
+++ b/crates/openhuman-core/src/agent/subagent_host/lifecycle/driver_adapter.rs
@@ -909,9 +909,7 @@ impl tinyagents_orchestration::subagent::SubagentPersistence for OpenHumanPersis
}
}
-#[path = "lifecycle_outcome.rs"]
-mod outcome;
-use outcome::{HostInFlightMap, host_outcome_to_neutral};
+use super::outcome::{HostInFlightMap, host_outcome_to_neutral};
pub(super) fn outcome_to_host(
result: SubagentRunResult,
@@ -1016,5 +1014,3 @@ fn cost_source_of(charged: Option<&ChargedAmount>) -> tinyagents_harness::cost::
}
}
-#[path = "lifecycle_checkpoint.rs"]
-mod checkpoint;