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): add parent_epoch to subagent tests
Steven Enamakel046525d43ed5
diff --git a/crates/openhuman-core/src/agent/orchestration/running_subagents_tests.rs b/crates/openhuman-core/src/agent/orchestration/running_subagents_tests.rsindex 4e8237baa3..1891396924 100644--- a/crates/openhuman-core/src/agent/orchestration/running_subagents_tests.rs+++ b/crates/openhuman-core/src/agent/orchestration/running_subagents_tests.rs@@ -348,6 +348,7 @@ async fn snapshot_and_block_scope_to_parent_and_reflect_live_status() {worker_thread_id: None,task_id: "task-cold-1".into(),lifecycle_key: None,+ parent_epoch: None,},None,)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 5f1f932993..41ce6f76be 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@@ -55,6 +55,7 @@ fn compatible_session_reuses_and_incompatible_shape_spawns_new() {worker_thread_id: Some("worker-1".into()),task_id: "sub-1".into(),lifecycle_key: None,+ parent_epoch: None,};let session = upsert_running(&store, upsert, None).unwrap();mark_finished(@@ -89,6 +90,7 @@ fn stale_completion_cannot_overwrite_reused_or_closed_session() {worker_thread_id: None,task_id: "first-task".into(),lifecycle_key: None,+ parent_epoch: None,},None,)@@ -102,6 +104,7 @@ fn stale_completion_cannot_overwrite_reused_or_closed_session() {worker_thread_id: None,task_id: "second-task".into(),lifecycle_key: None,+ parent_epoch: None,},Some(&first),)@@ -164,6 +167,7 @@ fn driver_task_cancel_reports_legacy_failure_and_refuses_ambiguous_ids() {worker_thread_id: None,task_id: "finished-failed".into(),lifecycle_key: None,+ parent_epoch: None,},None,)@@ -194,6 +198,7 @@ fn driver_task_cancel_reports_legacy_failure_and_refuses_ambiguous_ids() {thread_id: Some("thread-a".into()),task_id: "same-public-id".into(),}),+ parent_epoch: None,},None,)@@ -212,6 +217,7 @@ fn driver_task_cancel_reports_legacy_failure_and_refuses_ambiguous_ids() {thread_id: Some("thread-a".into()),task_id: "same-public-id".into(),}),+ parent_epoch: None,},None,)@@ -270,6 +276,7 @@ fn cancellation_reason_is_written_only_for_the_observed_full_lifecycle() {worker_thread_id: None,task_id: key.task_id.clone(),lifecycle_key: Some(key.clone()),+ parent_epoch: None,},None,)@@ -311,6 +318,7 @@ fn paused_driver_cancel_marks_only_the_observed_session_failed() {worker_thread_id: None,task_id: lifecycle_key.task_id.clone(),lifecycle_key: Some(lifecycle_key.clone()),+ parent_epoch: None,},None,)@@ -382,6 +390,7 @@ fn stale_close_and_reuse_snapshots_cannot_change_a_newer_lifecycle() {worker_thread_id: None,task_id: "same-public-task".into(),lifecycle_key: Some(first_key.clone()),+ parent_epoch: None,},None,)@@ -395,6 +404,7 @@ fn stale_close_and_reuse_snapshots_cannot_change_a_newer_lifecycle() {worker_thread_id: None,task_id: "same-public-task".into(),lifecycle_key: Some(second_key.clone()),+ parent_epoch: None,},Some(&first),)@@ -425,6 +435,7 @@ fn stale_close_and_reuse_snapshots_cannot_change_a_newer_lifecycle() {worker_thread_id: None,task_id: "stale-task".into(),lifecycle_key: None,+ parent_epoch: None,},Some(&first),)@@ -447,6 +458,7 @@ fn stale_close_and_reuse_snapshots_cannot_change_a_newer_lifecycle() {worker_thread_id: None,task_id: "late-task".into(),lifecycle_key: None,+ parent_epoch: None,},Some(&second),)@@ -474,6 +486,7 @@ fn upsert_persists_the_full_lifecycle_key_without_collapsing_to_task_id() {worker_thread_id: None,task_id: "sub-1".into(),lifecycle_key: Some(key.clone()),+ parent_epoch: None,},None,)@@ -519,6 +532,7 @@ fn closed_session_is_not_reusable() {worker_thread_id: None,task_id: "sub-1".into(),lifecycle_key: None,+ parent_epoch: None,},None,)@@ -541,6 +555,7 @@ fn list_for_parent_without_thread_id_does_not_filter_by_thread() {worker_thread_id: None,task_id: "sub-1".into(),lifecycle_key: None,+ parent_epoch: None,},None,)@@ -557,6 +572,7 @@ fn list_for_parent_without_thread_id_does_not_filter_by_thread() {worker_thread_id: None,task_id: "sub-2".into(),lifecycle_key: None,+ parent_epoch: None,},None,)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 290d6832d1..3e938d339d 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,6 +329,7 @@ impl SpawnAsyncSubagentTool {parent_thread_id.clone(),),),+ parent_epoch: None,},reusable.as_ref(),) {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 8186eb6882..de44a972df 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@@ -67,6 +67,7 @@ async fn late_registration_refusal_aborts_the_worker_and_settles_its_durable_sesworker_thread_id: None,task_id: "late-refusal-task".into(),lifecycle_key: None,+ parent_epoch: None,},None,)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 0c39f4d048..abc8f2b27e 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@@ -235,6 +235,7 @@ async fn cancelling_a_paused_driver_through_rpc_settles_once_with_its_reason() {worker_thread_id: None,task_id: task_id.clone(),lifecycle_key: Some(lifecycle_key),+ parent_epoch: None,},None,)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 37cacb89b6..7afbf4eb34 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@@ -330,6 +330,7 @@ async fn continue_subagent_resumes_idle_durable_session_e2e() {worker_thread_id: None,task_id: "sub-earlier-task".into(),lifecycle_key: None,+ parent_epoch: None,},None,)