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(agent): drop subagent steering and wait modules
Steven Enamakel0a0092695512
diff --git a/crates/openhuman-core/src/agent/orchestration/running_subagents.rs b/crates/openhuman-core/src/agent/orchestration/running_subagents.rsindex 101eb35f40..e3f0adc209 100644--- a/crates/openhuman-core/src/agent/orchestration/running_subagents.rs+++ b/crates/openhuman-core/src/agent/orchestration/running_subagents.rs@@ -1,29 +1,14 @@-//! Registry of in-flight async sub-agents that can be **steered** mid-run.+//! Registry of in-flight asynchronous sub-agents and their cancellation lifecycle.//!//! `spawn_subagent` runs a child as a detached `tokio` task. On its own//! that task is opaque: the parent gets a `task_id` back but has no channel into//! the running loop and no way to collect the result inline. This registry//! closes both gaps.//!-//! Each running async sub-agent registers in TinyAgents'-//! [`DetachedTaskRegistry`](tinyagents_tasks::DetachedTaskRegistry),-//! keyed by its `task_id`, with:-//! - an `Arc<RunQueue>` — the same steering channel the steering forwarder in-//! `TurnSpec::run` drains mid-turn, so `steer_subagent` can-//! inject a message when no crate-native steering handle is registered;-//! - a TinyAgents `SteeringHandle` in the process-local-//! `SteeringRegistry` while the child TinyAgents run is active, so-//! steer/collect controls can deliver directly to the crate queue;-//! - a `watch::Receiver<DetachedSubagentStatus>` — so `wait_subagent` can block until the-//! child reaches a terminal status;-//! - an `AbortHandle` — used by `subagent_cancel`/`close_subagent` paths to stop-//! detached work.+//! The registry tracks task metadata, status and abort handles for cancellation.//!//! TinyAgents owns the process-local watch/cancel/abort/steering mechanics.-//! OpenHuman retains product metadata, durable task-store projection, and the-//! legacy `RunQueue` steering fallback. Ownership is enforced by captured profile-//! and parent session; user controls retain the profile without requiring a parent ID.-//! terminal entries are pruned on `wait` and swept at the registry soft cap.+//! OpenHuman retains product metadata and durable task-store projection.//!//! ## Typed lifecycle ledger (issue #4249)//!@@ -45,18 +30,13 @@//! - [`roster`] — read-only snapshots for prompt injection and control tools.//! - [`resolve`] — mapping a durable session id (or bare task id) to the live//! registry entry or a durable fallback record.-//! - [`steering`] — injecting messages and control directives into a running-//! sub-agent.-//! - [`wait`] — blocking collection of a sub-agent's terminal result.//! - [`cancel`] — aborting sub-agents by task, session, thread, or all at once.mod cancel;mod registry;mod resolve;mod roster;-mod steering;mod task_ledger;-mod wait;#[cfg(test)]#[path = "running_subagents_tests.rs"]@@ -79,12 +59,7 @@ pub(crate) use registry::{};pub(crate) use roster::active_subagents_context_block;#[cfg(test)]-pub(crate) use steering::steer;-pub(crate) use steering::steer_control;-#[cfg(test)]pub(crate) use task_ledger::task_records;pub(crate) use task_ledger::{reconcile_orphaned_tasks_on_boot, task_record_for_task_in_workspace, task_store_for_workspace,};-#[cfg(test)]-pub(crate) use wait::wait_in_workspace;diff --git a/crates/openhuman-core/src/agent/orchestration/running_subagents_tests.rs b/crates/openhuman-core/src/agent/orchestration/running_subagents_tests.rsindex 4052436f41..1f6d0489b1 100644--- a/crates/openhuman-core/src/agent/orchestration/running_subagents_tests.rs+++ b/crates/openhuman-core/src/agent/orchestration/running_subagents_tests.rs@@ -1,5 +1,4 @@use super::*;-use tinyagents_orchestration::steering::SteerError;/// The context these tests dispatch under: the calling task's own.fn cx() -> crate::core::runtime::DispatchCtx {@@ -9,15 +8,12 @@ fn cx() -> crate::core::runtime::DispatchCtx {use crate::agent::orchestration::running_subagents::resolve::resume_ref_for_task;use crate::agent::orchestration::running_subagents::resolve::task_id_for_session;use crate::agent::orchestration::running_subagents::roster::snapshot_for_parent;-use crate::agent::orchestration::running_subagents::wait::wait;use crate::agent::queued_turn::QueuedTurn;-use crate::agent::tinyagents::host::steering::shared_steering_registry;use std::path::PathBuf;use std::sync::Arc;use std::time::Duration;use tinyagents_harness::ids::TaskId;-use tinyagents_harness::run_queue::{QueueLane, RunQueue};-use tinyagents_harness::steering::{SteeringCommand, SteeringHandle};+use tinyagents_harness::run_queue::RunQueue;use tinyagents_orchestration::subagent::FinishedOutcome;use tinyagents_orchestration::subagent::{DetachedSubagentStatus, WaitError, WaitOutcome, DETACHED_LEDGER_TIMEOUT_MS,@@ -29,9 +25,6 @@ use tokio::task::AbortHandle;#[path = "running_subagents_cancel_tests.rs"]mod cancel_tests;-#[path = "running_subagents_steering_tests.rs"]-mod steering_tests;-#[path = "running_subagents_wire_tests.rs"]mod wire_tests;