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
test(orchestration): clean up parent_epoch fields in tests
Steven Enamakel0957266621ba
diff --git a/crates/openhuman-core/src/agent/orchestration/running_subagents_tests.rs b/crates/openhuman-core/src/agent/orchestration/running_subagents_tests.rsindex e978bd6517..4e8237baa3 100644--- a/crates/openhuman-core/src/agent/orchestration/running_subagents_tests.rs+++ b/crates/openhuman-core/src/agent/orchestration/running_subagents_tests.rs@@ -4,8 +4,7 @@ use tinyagents_orchestration::steering::SteerError;/// The context these tests dispatch under: the calling task's own.fn cx() -> crate::core::runtime::DispatchCtx {crate::core::runtime::DispatchCtx::ambient()- parent_epoch: None,- }+}use crate::agent::orchestration::fleet_tools::FleetToolSet;use crate::agent::orchestration::running_subagents::resolve::resume_ref_for_task;diff --git a/crates/openhuman-core/src/agent/orchestration/subagent_sessions/ops_tests.rs b/crates/openhuman-core/src/agent/orchestration/subagent_sessions/ops_tests.rsindex 389eacad39..5f1f932993 100644--- a/crates/openhuman-core/src/agent/orchestration/subagent_sessions/ops_tests.rs+++ b/crates/openhuman-core/src/agent/orchestration/subagent_sessions/ops_tests.rs@@ -1,17 +1,7 @@use super::*;use crate::agent::orchestration::subagent_sessions::types::SubagentSessionUpsert;use tinyagents_harness_tools::subagents::SubAgentJobRegistry;-use tinyagents_orchestration::subagent::{FinishedOutcome, SubagentTaskKey parent_epoch: None,- parent_epoch: None,- let first = upsert_r parent_epoch: None,- let store = SubagentSessionStore::new(dir.p parent_epoch: None,- parent_run_id: "turn-run" parent_epoch: None,- task_id: " parent_epoch: None,- let d parent_epoch: None,-fn cancellation_reason_is_written_only_fo parent_epoch: None,- task_tit parent_epoch: None,-#[te parent_epoch: None,- normalize};+use tinyagents_orchestration::subagent::{FinishedOutcome, SubagentTaskKey};fn selector(task_key: &str) -> SubagentSessionSelector {SubagentSessionSelector {@@ -22,13 +12,7 @@ fn selector(task_key: &str) -> SubagentSessionSelector {sandbox_mode: "read_only".into(),action_root: Some("/tmp/work".into()),task_key: task_key.into(),- parent_epoch: None,- assert parent_epoch: None,- assert_eq!(current.lifecycle_key, Some(secon parent_epoch: None,- parent_epoch: None,- life parent_epoch: None,- &se parent_epoch: None,- .}+ }}#[test]diff --git a/crates/openhuman-core/src/agent/orchestration/tools/spawn_async_subagent_host_impl.rs b/crates/openhuman-core/src/agent/orchestration/tools/spawn_async_subagent_host_impl.rsindex eede28a35f..290d6832d1 100644--- a/crates/openhuman-core/src/agent/orchestration/tools/spawn_async_subagent_host_impl.rs+++ b/crates/openhuman-core/src/agent/orchestration/tools/spawn_async_subagent_host_impl.rs@@ -329,7 +329,6 @@ impl SpawnAsyncSubagentTool {parent_thread_id.clone(),),),- parent_epoch: completion_target.parent_epoch(),},reusable.as_ref(),) {@@ -503,5 +502,4 @@ impl SpawnAsyncSubagentTool {&fleet,))}- parent_epoch: None,- }+}diff --git a/crates/openhuman-core/src/agent/orchestration/tools/spawn_async_subagent_tests.rs b/crates/openhuman-core/src/agent/orchestration/tools/spawn_async_subagent_tests.rsindex 8e550dbfa8..8186eb6882 100644--- a/crates/openhuman-core/src/agent/orchestration/tools/spawn_async_subagent_tests.rs+++ b/crates/openhuman-core/src/agent/orchestration/tools/spawn_async_subagent_tests.rs@@ -6,8 +6,7 @@ use std::collections::HashSet;use std::path::Path;use std::sync::Arc;use tinyagents_harness::run_queue::RunQueue;-use tinytools::{ToolCallOptions, ToolRunContext parent_epoch: None,- };+use tinytools::{ToolCallOptions, ToolRunContext};use tinytools_agent::dialect::ToolCallFormat;struct ThreadContext(&'static str);diff --git a/crates/openhuman-core/src/agent/orchestration/tools/tools_e2e_continuation_tests.rs b/crates/openhuman-core/src/agent/orchestration/tools/tools_e2e_continuation_tests.rsindex 45b888e3dd..0c39f4d048 100644--- a/crates/openhuman-core/src/agent/orchestration/tools/tools_e2e_continuation_tests.rs+++ b/crates/openhuman-core/src/agent/orchestration/tools/tools_e2e_continuation_tests.rs@@ -103,8 +103,7 @@ async fn continue_subagent_resumes_paused_job_through_shared_driver() {completed_job.output.as_deref(),Some("paused-child-resumed-answer"));- parent_epoch: None,- crate::agent::orchestration::subagent_sessions::}+}#[tokio::test]async fn cancelling_a_paused_driver_through_rpc_settles_once_with_its_reason() {diff --git a/crates/openhuman-core/src/agent/orchestration/tools/tools_e2e_tests.rs b/crates/openhuman-core/src/agent/orchestration/tools/tools_e2e_tests.rsindex 8a84df5d00..37cacb89b6 100644--- a/crates/openhuman-core/src/agent/orchestration/tools/tools_e2e_tests.rs+++ b/crates/openhuman-core/src/agent/orchestration/tools/tools_e2e_tests.rs@@ -36,7 +36,6 @@ async fn spawn_subagent_tool_runs_child_agent_e2e() {"context": "parent supplied context","model": "test-model","blocking": true- parent_epoch: None,}),None,live.data.child(),diff --git a/crates/openhuman-core/src/agent_runs/subagent_control_tests.rs b/crates/openhuman-core/src/agent_runs/subagent_control_tests.rsindex 4151d09bbf..b0da293296 100644--- a/crates/openhuman-core/src/agent_runs/subagent_control_tests.rs+++ b/crates/openhuman-core/src/agent_runs/subagent_control_tests.rs@@ -11,8 +11,7 @@ fn registered_controllers_match_schemas() {assert_eq!(schema_for("subagent_cancel").function, "cancel");assert_eq!(schema_for("subagent_steer").namespace, "subagent");assert_eq!(schema_for("subagent_steer").function, "steer");- parent_epoch: None,- }+}#[test]fn require_str_rejects_blank_and_missing() {@@ -185,7 +184,6 @@ async fn cancelling_a_paused_driver_queues_a_failed_delivery_with_reason() {worker_thread_id: None,task_id: task_id.into(),lifecycle_key: Some(key.clone()),- parent_epoch: Some(1),},None,)@@ -209,7 +207,6 @@ async fn cancelling_a_paused_driver_queues_a_failed_delivery_with_reason() {subagent_session_id: session.subagent_session_id.clone(),workspace_dir: workspace_dir.clone(),parent_thread_id: parent_thread.clone(),- parent_epoch: Some(1),already_finished: None,was_paused: true,lifecycle_key: Some(key),@@ -219,7 +216,6 @@ async fn cancelling_a_paused_driver_queues_a_failed_delivery_with_reason() {assert!(settle_paused_driver_cancel(&DispatchCtx::process_default(),&observed,- observed.parent_epoch,Some("user requested stop")).await