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 session creation in tests
Steven Enamakel2ba5a7d62fd2
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..02a57a4c47 100644--- a/crates/openhuman-core/src/agent/orchestration/running_subagents_tests.rs+++ b/crates/openhuman-core/src/agent/orchestration/running_subagents_tests.rs@@ -348,7 +348,8 @@ 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,).expect("upsert durable session");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..fb44af521e 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,7 +55,8 @@ fn compatible_session_reuses_and_incompatible_shape_spawns_new() {worker_thread_id: Some("worker-1".into()),task_id: "sub-1".into(),lifecycle_key: None,- };+ let upsert = parent_epoch: None,+};let session = upsert_running(&store, upsert, None).unwrap();mark_finished(&store,@@ -89,7 +90,8 @@ 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,).unwrap();@@ -102,7 +104,8 @@ 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),).unwrap();@@ -164,7 +167,8 @@ 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,).unwrap();@@ -194,7 +198,8 @@ 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,).unwrap();@@ -212,7 +217,8 @@ 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,).unwrap();@@ -270,7 +276,8 @@ 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,).unwrap();@@ -311,7 +318,8 @@ 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,).unwrap();@@ -382,7 +390,8 @@ 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,).unwrap();@@ -395,7 +404,8 @@ 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),).unwrap();@@ -425,7 +435,8 @@ 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),).is_err(),@@ -447,7 +458,8 @@ 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),).is_err(),@@ -474,7 +486,8 @@ 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,).unwrap();@@ -519,7 +532,8 @@ fn closed_session_is_not_reusable() {worker_thread_id: None,task_id: "sub-1".into(),lifecycle_key: None,- },+ parent_epoch: None,+},None,).unwrap();@@ -541,7 +555,8 @@ 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,).unwrap();@@ -557,7 +572,8 @@ 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,).unwrap();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..370852b80b 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,8 @@ impl SpawnAsyncSubagentTool {parent_thread_id.clone(),),),- },+ parent_epoch: None,+},reusable.as_ref(),) {Ok(session) => session,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..c8e8c775f1 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,7 +67,8 @@ 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,).unwrap()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..816da662dc 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,7 +235,8 @@ 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),- },+ crate::agent::orchestration::subagent_sessions:: parent_epoch: None,+},None,).expect("seed durable row for the actual paused job");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..9a51e9c135 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,7 +330,8 @@ 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,).expect("seed durable session");