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): import progress types from tinyagents_harness
Steven Enamakel8b9730c20ded
diff --git a/crates/openhuman-core/src/agent/agent_turn_progress_release_tests.rs b/crates/openhuman-core/src/agent/agent_turn_progress_release_tests.rsindex 82404f48cb..ee6db7d310 100644--- a/crates/openhuman-core/src/agent/agent_turn_progress_release_tests.rs+++ b/crates/openhuman-core/src/agent/agent_turn_progress_release_tests.rs@@ -35,7 +35,7 @@ async fn clearing_progress_after_a_turn_closes_the_receiver() {while let Some(event) = rx.recv().await {saw_completed |= matches!(event,- crate::agent::progress::AgentProgress::TurnCompleted { .. }+ tinyagents_harness::progress::AgentProgress::TurnCompleted { .. });}assert!(saw_completed, "turn must still report TurnCompleted");diff --git a/crates/openhuman-core/src/agent/bus.rs b/crates/openhuman-core/src/agent/bus.rsindex 2af6756156..4d8b69a5d2 100644--- a/crates/openhuman-core/src/agent/bus.rs+++ b/crates/openhuman-core/src/agent/bus.rs@@ -20,7 +20,7 @@ use std::sync::Arc;use tokio::sync::mpsc;-use crate::agent::progress::AgentProgress;+use tinyagents_harness::progress::AgentProgress;use crate::agent::turn_origin::{self, AgentTurnOrigin};use crate::config::MultimodalConfig;use crate::core::bus::BUS;diff --git a/crates/openhuman-core/src/agent/harness/fork_context.rs b/crates/openhuman-core/src/agent/harness/fork_context.rsindex 33c81818c6..1ba36f18a9 100644--- a/crates/openhuman-core/src/agent/harness/fork_context.rs+++ b/crates/openhuman-core/src/agent/harness/fork_context.rs@@ -13,7 +13,7 @@//! Stashed in `Arc`s so cloning into a child costs a refcount bump//! rather than a full copy.-use crate::agent::progress::AgentProgress;+use tinyagents_harness::progress::AgentProgress;use crate::agent::tinyagents::TurnModelSource;use crate::config::AgentConfig;use std::collections::HashSet;diff --git a/crates/openhuman-core/src/agent/harness/graph.rs b/crates/openhuman-core/src/agent/harness/graph.rsindex b2ed10ef19..2b1d22aeb5 100644--- a/crates/openhuman-core/src/agent/harness/graph.rs+++ b/crates/openhuman-core/src/agent/harness/graph.rs@@ -32,7 +32,7 @@ use std::sync::Arc;use anyhow::Result;use tokio::sync::mpsc::Sender;-use crate::agent::progress::AgentProgress;+use tinyagents_harness::progress::AgentProgress;use crate::agent::tinyagents::TurnModelSource;use crate::agent::tinyagents::TurnSpec;use crate::config::{MultimodalConfig, MultimodalFileConfig};diff --git a/crates/openhuman-core/src/agent/orchestration/delegation.rs b/crates/openhuman-core/src/agent/orchestration/delegation.rsindex e463323e16..33a902bb8d 100644--- a/crates/openhuman-core/src/agent/orchestration/delegation.rs+++ b/crates/openhuman-core/src/agent/orchestration/delegation.rs@@ -18,7 +18,7 @@use std::sync::Arc;use crate::agent::harness::host_definition::AgentDefinition;-use crate::agent::progress::AgentProgress;+use tinyagents_harness::progress::AgentProgress;use crate::agent::subagent_host::{run_subagent_with_parent, SubagentRunOptions, SubagentRunStatus,};diff --git a/crates/openhuman-core/src/agent/orchestration/ops.rs b/crates/openhuman-core/src/agent/orchestration/ops.rsindex 550d926cdc..f40e33dc14 100644--- a/crates/openhuman-core/src/agent/orchestration/ops.rs+++ b/crates/openhuman-core/src/agent/orchestration/ops.rs@@ -27,7 +27,7 @@ use super::types::{};use crate::agent::harness::fork_context::ParentExecutionContext;use crate::agent::harness::host_definition::{AgentDefinition, AgentDefinitionRegistry};-use crate::agent::progress::AgentProgress;+use tinyagents_harness::progress::AgentProgress;use crate::agent::subagent_host::{run_subagent, SubagentRunError, SubagentRunOptions, SubagentRunOutcome, SubagentRunStatus,};diff --git a/crates/openhuman-core/src/agent/orchestration/spawn_parallel/collect.rs b/crates/openhuman-core/src/agent/orchestration/spawn_parallel/collect.rsindex abb83de780..4f1ce8ea9b 100644--- a/crates/openhuman-core/src/agent/orchestration/spawn_parallel/collect.rs+++ b/crates/openhuman-core/src/agent/orchestration/spawn_parallel/collect.rs@@ -5,7 +5,7 @@use serde_json::json;use tokio::sync::mpsc::Sender;-use crate::agent::progress::AgentProgress;+use tinyagents_harness::progress::AgentProgress;use tinyagents_orchestration::parallel::{BranchReport, Collected};use tinytools_std::file_state;diff --git a/crates/openhuman-core/src/agent/orchestration/spawn_parallel/dispatch.rs b/crates/openhuman-core/src/agent/orchestration/spawn_parallel/dispatch.rsindex 3470262afd..59c5ebc194 100644--- a/crates/openhuman-core/src/agent/orchestration/spawn_parallel/dispatch.rs+++ b/crates/openhuman-core/src/agent/orchestration/spawn_parallel/dispatch.rs@@ -14,7 +14,7 @@ use tokio::sync::mpsc::Sender;use crate::agent::harness::fork_context::ParentExecutionContext;use crate::agent::harness::host_definition::AgentDefinition;use crate::agent::orchestration::worktree;-use crate::agent::progress::AgentProgress;+use tinyagents_harness::progress::AgentProgress;use tinyagents_definition::SandboxMode;use super::staging::{diff --git a/crates/openhuman-core/src/agent/orchestration/tools/continue_subagent.rs b/crates/openhuman-core/src/agent/orchestration/tools/continue_subagent.rsindex 76a9341f32..ae03578708 100644--- a/crates/openhuman-core/src/agent/orchestration/tools/continue_subagent.rs+++ b/crates/openhuman-core/src/agent/orchestration/tools/continue_subagent.rs@@ -10,7 +10,7 @@use crate::agent::harness::host_definition::AgentDefinitionRegistry;use crate::agent::orchestration::tools::dispatch::{incomplete_stop, stopped_subagent_result};-use crate::agent::progress::AgentProgress;+use tinyagents_harness::progress::AgentProgress;use crate::agent::subagent_host::{continue_subagent, continue_subagent_with_parent, load_subagent_checkpoint, SubagentRunOptions,SubagentRunStatus,diff --git a/crates/openhuman-core/src/agent/orchestration/tools/dispatch.rs b/crates/openhuman-core/src/agent/orchestration/tools/dispatch.rsindex c0bfc6a94c..3159166fa7 100644--- a/crates/openhuman-core/src/agent/orchestration/tools/dispatch.rs+++ b/crates/openhuman-core/src/agent/orchestration/tools/dispatch.rs@@ -1,7 +1,7 @@//! Subagent dispatch logic shared by all agent delegation tools.use crate::agent::harness::host_definition::AgentDefinitionRegistry;-use crate::agent::progress::AgentProgress;+use tinyagents_harness::progress::AgentProgress;use crate::agent::subagent_host::{run_subagent_with_parent, SubagentRunOptions, SubagentRunStatus,};diff --git a/crates/openhuman-core/src/agent/orchestration/tools/spawn_async_subagent.rs b/crates/openhuman-core/src/agent/orchestration/tools/spawn_async_subagent.rsindex fe8421b4e1..a2613ddbf1 100644--- a/crates/openhuman-core/src/agent/orchestration/tools/spawn_async_subagent.rs+++ b/crates/openhuman-core/src/agent/orchestration/tools/spawn_async_subagent.rs@@ -13,7 +13,7 @@ use crate::agent::orchestration::subagent_sessions::{SubagentSessionUpsert,};use crate::agent::orchestration::tools::dispatch::incomplete_stop;-use crate::agent::progress::AgentProgress;+use tinyagents_harness::progress::AgentProgress;use crate::agent::subagent_host::{run_subagent_with_parent, SubagentRunOptions, SubagentRunStatus,};diff --git a/crates/openhuman-core/src/agent/orchestration/tools/spawn_subagent.rs b/crates/openhuman-core/src/agent/orchestration/tools/spawn_subagent.rsindex 7359c187e0..9327a3adec 100644--- a/crates/openhuman-core/src/agent/orchestration/tools/spawn_subagent.rs+++ b/crates/openhuman-core/src/agent/orchestration/tools/spawn_subagent.rs@@ -14,7 +14,7 @@//!use crate::agent::harness::host_definition::AgentDefinitionRegistry;use crate::agent::orchestration::tools::dispatch::{incomplete_stop, stopped_subagent_result};-use crate::agent::progress::AgentProgress;+use tinyagents_harness::progress::AgentProgress;use crate::agent::subagent_host::{run_subagent_with_parent, SubagentRunOptions, SubagentRunOutcome, SubagentRunStatus,};diff --git a/crates/openhuman-core/src/agent/orchestration/tools/spawn_worker_thread.rs b/crates/openhuman-core/src/agent/orchestration/tools/spawn_worker_thread.rsindex 54f4bfdc25..291aebb704 100644--- a/crates/openhuman-core/src/agent/orchestration/tools/spawn_worker_thread.rs+++ b/crates/openhuman-core/src/agent/orchestration/tools/spawn_worker_thread.rs@@ -396,7 +396,7 @@ impl SpawnWorkerThreadTool {);if let Some(progress) = progress_sink {let _ = progress- .send(crate::agent::progress::AgentProgress::SubagentAwaitingUser {+ .send(tinyagents_harness::progress::AgentProgress::SubagentAwaitingUser {agent_id: outcome.agent_id.clone(),task_id: outcome.task_id.clone(),question: question.clone(),@@ -449,7 +449,7 @@ impl SpawnWorkerThreadTool {);if let Some(progress) = progress_sink {let _ = progress- .send(crate::agent::progress::AgentProgress::SubagentFailed {+ .send(tinyagents_harness::progress::AgentProgress::SubagentFailed {agent_id: outcome.agent_id.clone(),task_id: outcome.task_id.clone(),error: "worker sub-agent was cancelled".into(),diff --git a/crates/openhuman-core/src/agent/orchestration/tools/subagent_abort_report.rs b/crates/openhuman-core/src/agent/orchestration/tools/subagent_abort_report.rsindex 85c1ab060b..37bb4988f0 100644--- a/crates/openhuman-core/src/agent/orchestration/tools/subagent_abort_report.rs+++ b/crates/openhuman-core/src/agent/orchestration/tools/subagent_abort_report.rs@@ -27,7 +27,7 @@use tokio::sync::mpsc::error::TrySendError;use tokio::sync::mpsc::Sender;-use crate::agent::progress::AgentProgress;+use tinyagents_harness::progress::AgentProgress;/// Error text carried by the synthesised `SubagentFailed`.pub(crate) const ABORTED_ERROR: &str = "sub-agent was cancelled";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 d4d4a186f5..02f1c7e86c 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@@ -98,7 +98,7 @@ async fn spawn_subagent_reports_a_stopped_child_as_a_failed_tool_result() {let mut stop = None;while let Ok(event) = progress_rx.try_recv() {- if let crate::agent::progress::AgentProgress::SubagentCompleted { stop: s, .. } = event {+ if let tinyagents_harness::progress::AgentProgress::SubagentCompleted { stop: s, .. } = event {stop = Some(s);}}diff --git a/crates/openhuman-core/src/agent/progress_sink.rs b/crates/openhuman-core/src/agent/progress_sink.rsindex b4fe0b3540..bd7977d93e 100644--- a/crates/openhuman-core/src/agent/progress_sink.rs+++ b/crates/openhuman-core/src/agent/progress_sink.rs@@ -17,7 +17,7 @@//! `set_on_progress` themselves): where both could apply, the **explicitly-set//! sink wins**.-use crate::agent::progress::AgentProgress;+use tinyagents_harness::progress::AgentProgress;/// The channel an embedder hands to a turn, and the same type/// [`OpenHumanSessionHost::set_on_progress`](crate::agent::OpenHumanSessionHost::set_on_progress)diff --git a/crates/openhuman-core/src/agent/progress_tracing/collector/events.rs b/crates/openhuman-core/src/agent/progress_tracing/collector/events.rsindex 44d4b74c83..decaea3efb 100644--- a/crates/openhuman-core/src/agent/progress_tracing/collector/events.rs+++ b/crates/openhuman-core/src/agent/progress_tracing/collector/events.rs@@ -3,7 +3,7 @@use std::collections::BTreeMap;-use crate::agent::progress::AgentProgress;+use tinyagents_harness::progress::AgentProgress;use tinyagents_harness::observability::trace_export::serialize::{json_f64, json_str, json_u32, json_u64, json_usize, status_of, truncate_chars,MAX_ERROR_MESSAGE_CHARS, MAX_MODEL_CONTENT_CHARS,diff --git a/crates/openhuman-core/src/agent/progress_tracing/collector/state.rs b/crates/openhuman-core/src/agent/progress_tracing/collector/state.rsindex 4421bda805..0f402191d8 100644--- a/crates/openhuman-core/src/agent/progress_tracing/collector/state.rs+++ b/crates/openhuman-core/src/agent/progress_tracing/collector/state.rs@@ -113,7 +113,7 @@ pub enum TurnOutcome {},}-/// Pure state machine that folds an [`crate::agent::progress::AgentProgress`]+/// Pure state machine that folds an [`tinyagents_harness::progress::AgentProgress`]/// stream into spans.////// Call [`record`](Self::record) for each event (with a milliseconddiff --git a/crates/openhuman-core/src/agent/progress_tracing/journal_projection.rs b/crates/openhuman-core/src/agent/progress_tracing/journal_projection.rsindex 725adade1e..e97bd115ea 100644--- a/crates/openhuman-core/src/agent/progress_tracing/journal_projection.rs+++ b/crates/openhuman-core/src/agent/progress_tracing/journal_projection.rs@@ -59,7 +59,7 @@ use tinyagents_harness::events::AgentEvent;use tinyagents_harness::observability::AgentObservation;use super::SpanCollector;-use crate::agent::progress::AgentProgress;+use tinyagents_harness::progress::AgentProgress;use replay::{json_content_text, turn_outcome_for_failure, user_message_text, Replay};#[path = "journal_replay.rs"]diff --git a/crates/openhuman-core/src/agent/progress_tracing/journal_replay.rs b/crates/openhuman-core/src/agent/progress_tracing/journal_replay.rsindex 23644afc73..718a465411 100644--- a/crates/openhuman-core/src/agent/progress_tracing/journal_replay.rs+++ b/crates/openhuman-core/src/agent/progress_tracing/journal_replay.rs@@ -3,7 +3,7 @@use tinyagents_harness::terminal::{TerminalClass, TerminalOutcome};-use crate::agent::progress::AgentProgress;+use tinyagents_harness::progress::AgentProgress;use crate::agent::progress_tracing::TurnOutcome;/// One step applied to the [`super::SpanCollector`] while replaying a journal.diff --git a/crates/openhuman-core/src/agent/progress_tracing/progress_tracing_tests.rs b/crates/openhuman-core/src/agent/progress_tracing/progress_tracing_tests.rsindex 3bdd7c8018..a7247e489d 100644--- a/crates/openhuman-core/src/agent/progress_tracing/progress_tracing_tests.rs+++ b/crates/openhuman-core/src/agent/progress_tracing/progress_tracing_tests.rs@@ -1,7 +1,7 @@//! Unit tests for the structured tracing export (issue #3886).use super::*;-use crate::agent::progress::AgentProgress;+use tinyagents_harness::progress::AgentProgress;use crate::config::schema::{AgentTracingBackend, AgentTracingConfig, ObservabilityConfig};fn ctx() -> TraceContext {diff --git a/crates/openhuman-core/src/agent/session_host/driver/grounded_close.rs b/crates/openhuman-core/src/agent/session_host/driver/grounded_close.rsindex b49b402d7a..461bb73686 100644--- a/crates/openhuman-core/src/agent/session_host/driver/grounded_close.rs+++ b/crates/openhuman-core/src/agent/session_host/driver/grounded_close.rs@@ -105,7 +105,7 @@ pub(super) async fn repair_required_output(history: &[tinyinference_llm::message::Message],reply: &str,reply_already_streamed: bool,- progress: Option<&tokio::sync::mpsc::Sender<crate::agent::progress::AgentProgress>>,+ progress: Option<&tokio::sync::mpsc::Sender<tinyagents_harness::progress::AgentProgress>>,iteration: u32,usage: &mut RepairUsage,) -> Option<String> {@@ -152,7 +152,7 @@ pub(super) async fn repair_required_output(let continuation = format!("\n\n{correction}");if let Some(progress) = progress {if let Err(error) = progress- .send(crate::agent::progress::AgentProgress::TextDelta {+ .send(tinyagents_harness::progress::AgentProgress::TextDelta {delta: continuation.clone(),iteration,})diff --git a/crates/openhuman-core/src/agent/session_host/driver/grounded_close_tests.rs b/crates/openhuman-core/src/agent/session_host/driver/grounded_close_tests.rsindex 1b4c474420..f380777e04 100644--- a/crates/openhuman-core/src/agent/session_host/driver/grounded_close_tests.rs+++ b/crates/openhuman-core/src/agent/session_host/driver/grounded_close_tests.rs@@ -301,7 +301,7 @@ async fn timed_out_close_keeps_the_usage_of_finished_calls() {/// accumulator still holds the call.#[tokio::test(start_paused = true)]async fn timed_out_repair_keeps_the_usage_of_its_answered_call() {- use crate::agent::progress::AgentProgress;+ use tinyagents_harness::progress::AgentProgress;let source = crate::agent::tinyagents::TurnModelSource::from_model(std::sync::Arc::new(tinyagents_harness::testkit::ScriptedModel::replies(vec!["no block"]),));diff --git a/crates/openhuman-core/src/agent/session_host/runtime/accessors.rs b/crates/openhuman-core/src/agent/session_host/runtime/accessors.rsindex 28299726c1..ab7bec2f6d 100644--- a/crates/openhuman-core/src/agent/session_host/runtime/accessors.rs+++ b/crates/openhuman-core/src/agent/session_host/runtime/accessors.rs@@ -406,7 +406,7 @@ impl OpenHumanSessionHost {/// iteration updates to the UI. Pass `None` to disable.pub fn set_on_progress(&mut self,- tx: Option<tokio::sync::mpsc::Sender<crate::agent::progress::AgentProgress>>,+ tx: Option<tokio::sync::mpsc::Sender<tinyagents_harness::progress::AgentProgress>>,) {// A warm runtime retains the last turn's prelude. Release its sender// along with the host sender so the finished turn's bridge can draindiff --git a/crates/openhuman-core/src/agent/session_host/runtime_adapter_tests.rs b/crates/openhuman-core/src/agent/session_host/runtime_adapter_tests.rsindex 1ecabc259f..a01c753029 100644--- a/crates/openhuman-core/src/agent/session_host/runtime_adapter_tests.rs+++ b/crates/openhuman-core/src/agent/session_host/runtime_adapter_tests.rs@@ -135,7 +135,7 @@ fn codec_attaches_only_this_agents_own_sidecar_usage_to_atomic_append() {context.append_subagent_usage(crate::agent::tinyagents::host::SubagentUsageEntry {task_id: "child-usage".into(),agent_id: "researcher".into(),- usage: crate::agent::subagent_host::SubagentUsage {+ usage: tinyagents_harness::progress::SubagentUsage {input_tokens: 5,output_tokens: 2,cached_input_tokens: 1,@@ -219,7 +219,7 @@ fn last_turn_usage_reports_the_same_holistic_totals_as_transcript_billing() {.push(crate::agent::tinyagents::host::SubagentUsageEntry {task_id: "child-ui".into(),agent_id: "researcher".into(),- usage: crate::agent::subagent_host::SubagentUsage {+ usage: tinyagents_harness::progress::SubagentUsage {input_tokens: 5,output_tokens: 2,cached_input_tokens: 1,@@ -315,7 +315,7 @@ async fn committed_goal_accounting_uses_direct_and_completed_child_usage() {.push(crate::agent::tinyagents::host::SubagentUsageEntry {task_id: "child-goal".into(),agent_id: "researcher".into(),- usage: crate::agent::subagent_host::SubagentUsage {+ usage: tinyagents_harness::progress::SubagentUsage {input_tokens: 5,output_tokens: 3,..Default::default()diff --git a/crates/openhuman-core/src/agent/session_host/runtime_session.rs b/crates/openhuman-core/src/agent/session_host/runtime_session.rsindex b1cd7352b3..f841929924 100644--- a/crates/openhuman-core/src/agent/session_host/runtime_session.rs+++ b/crates/openhuman-core/src/agent/session_host/runtime_session.rs@@ -97,7 +97,7 @@ struct OpenHumanTurnPrelude {workspace_descriptor: Option<tinytools::WorkspaceDescriptor>,session_key: String,session_parent_prefix: Option<String>,- on_progress: Option<tokio::sync::mpsc::Sender<crate::agent::progress::AgentProgress>>,+ on_progress: Option<tokio::sync::mpsc::Sender<tinyagents_harness::progress::AgentProgress>>,run_queue:Option<Arc<tinyagents_harness::run_queue::RunQueue<crate::agent::queued_turn::QueuedTurn>>>,host_env: crate::agent::turn_env::HostTurnEnv,@@ -542,7 +542,7 @@ pub(super) use usage::{account_committed_turn_against_goal, holistic_last_turn_uimpl OpenHumanSessionHost {pub(super) fn update_runtime_prelude_progress(&mut self,- tx: Option<tokio::sync::mpsc::Sender<crate::agent::progress::AgentProgress>>,+ tx: Option<tokio::sync::mpsc::Sender<tinyagents_harness::progress::AgentProgress>>,) {if let Some(prelude) = self.runtime_statediff --git a/crates/openhuman-core/src/agent/session_host/runtime_session/post_commit_tests.rs b/crates/openhuman-core/src/agent/session_host/runtime_session/post_commit_tests.rsindex d768bb4a33..a96ef93f8f 100644--- a/crates/openhuman-core/src/agent/session_host/runtime_session/post_commit_tests.rs+++ b/crates/openhuman-core/src/agent/session_host/runtime_session/post_commit_tests.rs@@ -1,5 +1,5 @@use super::*;-use crate::agent::progress::AgentProgress;+use tinyagents_harness::progress::AgentProgress;fn user(text: &str) -> Message {Message::user(text)diff --git a/crates/openhuman-core/src/agent/session_host/runtime_session_progress.rs b/crates/openhuman-core/src/agent/session_host/runtime_session_progress.rsindex 3f76e876a0..13c98aa12b 100644--- a/crates/openhuman-core/src/agent/session_host/runtime_session_progress.rs+++ b/crates/openhuman-core/src/agent/session_host/runtime_session_progress.rs@@ -1,6 +1,6 @@//! Post-commit progress delivery for a chat turn.-use crate::agent::progress::AgentProgress;+use tinyagents_harness::progress::AgentProgress;use crate::agent::tinyagents::host::OpenHumanRunContext;use tinyagents_harness::turn_stop::TurnStop;use tinyagents_runtime::CommitReceipt;diff --git a/crates/openhuman-core/src/agent/session_host/runtime_session_tests.rs b/crates/openhuman-core/src/agent/session_host/runtime_session_tests.rsindex 1be4076629..6ea2b59540 100644--- a/crates/openhuman-core/src/agent/session_host/runtime_session_tests.rs+++ b/crates/openhuman-core/src/agent/session_host/runtime_session_tests.rs@@ -7,7 +7,7 @@ use tinytools::ToolSpec;#[tokio::test]async fn committed_progress_uses_each_turns_receipt_sender() {- use crate::agent::progress::AgentProgress;+ use tinyagents_harness::progress::AgentProgress;use tinyagents_runtime::{CommitReceipt, ResumeMode, SessionTurnOutcome, TranscriptTurnOptions,};@@ -61,7 +61,7 @@ async fn committed_progress_uses_each_turns_receipt_sender() {/// completion and nobody can find it.#[tokio::test]async fn committed_progress_carries_the_sidecar_stop_on_turn_completed() {- use crate::agent::progress::AgentProgress;+ use tinyagents_harness::progress::AgentProgress;use tinyagents_harness::turn_stop::TurnStopKind;use tinyagents_runtime::{CommitReceipt, ResumeMode, SessionTurnOutcome, TranscriptTurnOptions,@@ -136,7 +136,7 @@ fn clearing_progress_releases_warm_prelude_sender() {/// an event that was dropped.#[tokio::test]async fn committed_turn_completion_waits_for_a_full_progress_channel() {- use crate::agent::progress::AgentProgress;+ use tinyagents_harness::progress::AgentProgress;let (tx, mut rx) = tokio::sync::mpsc::channel(1);tx.send(AgentProgress::TurnStarted).await.unwrap();@@ -173,7 +173,7 @@ async fn committed_turn_completion_waits_for_a_full_progress_channel() {/// deadline passes, the committed chat response must still be able to return.#[tokio::test(start_paused = true)]async fn committed_turn_completion_is_bounded_when_progress_stalls() {- use crate::agent::progress::AgentProgress;+ use tinyagents_harness::progress::AgentProgress;let (tx, mut rx) = tokio::sync::mpsc::channel(1);tx.send(AgentProgress::TurnStarted).await.unwrap();diff --git a/crates/openhuman-core/src/agent/session_host/runtime_session_usage.rs b/crates/openhuman-core/src/agent/session_host/runtime_session_usage.rsindex a590137891..4e968b5868 100644--- a/crates/openhuman-core/src/agent/session_host/runtime_session_usage.rs+++ b/crates/openhuman-core/src/agent/session_host/runtime_session_usage.rs@@ -1,6 +1,5 @@//! Committed-turn goal accounting and billing projection.-use crate::agent::subagent_host::SubagentUsageExt as _;/// Account only a receipt-backed turn, using the same direct-plus-completed/// child total the codec attached to the atomic transcript append.pub(in crate::agent::session_host) async fn account_committed_turn_against_goal(@@ -37,7 +36,7 @@ pub(in crate::agent::session_host) fn holistic_last_turn_usage(sidecar: &crate::agent::tinyagents::host::run_context::SessionTurnSidecar,) -> crate::agent::tinyagents::host::LastTurnUsage {// Each count is the turn's own plus every synchronous child's.- let tokens = |own: u64, child: fn(&crate::agent::subagent_host::SubagentUsage) -> u64| {+ let tokens = |own: u64, child: fn(&tinyagents_harness::progress::SubagentUsage) -> u64| {sidecar.subagents.iter().fold(own, |total, entry| {total.saturating_add(child(&entry.usage))})diff --git a/crates/openhuman-core/src/agent/session_host/tool_progress.rs b/crates/openhuman-core/src/agent/session_host/tool_progress.rsindex 3a8f8feaa9..2c6f8eea09 100644--- a/crates/openhuman-core/src/agent/session_host/tool_progress.rs+++ b/crates/openhuman-core/src/agent/session_host/tool_progress.rs@@ -9,7 +9,7 @@use async_trait::async_trait;-use crate::agent::progress::AgentProgress;+use tinyagents_harness::progress::AgentProgress;use crate::inference::provider::ProviderDelta;use tinyagents_harness::cost::TurnCost;diff --git a/crates/openhuman-core/src/agent/session_host/turn/graph.rs b/crates/openhuman-core/src/agent/session_host/turn/graph.rsindex d3cafda3ae..a12e1a1b19 100644--- a/crates/openhuman-core/src/agent/session_host/turn/graph.rs+++ b/crates/openhuman-core/src/agent/session_host/turn/graph.rs@@ -28,7 +28,7 @@ use std::sync::Arc;use anyhow::Result;use tokio::sync::mpsc::Sender;-use crate::agent::progress::AgentProgress;+use tinyagents_harness::progress::AgentProgress;use crate::agent::tinyagents::middleware::turn_context::TurnContextMiddleware;use crate::agent::tinyagents::{TinyagentsTurnOutcome, TurnSpec};use crate::inference::provider::AGENT_TURN_MAX_OUTPUT_TOKENS;diff --git a/crates/openhuman-core/src/agent/session_host/types.rs b/crates/openhuman-core/src/agent/session_host/types.rsindex 43f6147b16..f6837827f8 100644--- a/crates/openhuman-core/src/agent/session_host/types.rs+++ b/crates/openhuman-core/src/agent/session_host/types.rs@@ -8,7 +8,7 @@use crate::agent::context::ContextManager;use crate::agent::hooks::PostTurnHook;-use crate::agent::progress::AgentProgress;+use tinyagents_harness::progress::AgentProgress;use crate::agent::prompts::SystemPromptBuilder;use crate::agent::tinyagents::TurnModelSource;use std::sync::Arc;diff --git a/crates/openhuman-core/src/agent/subagent_host/lifecycle.rs b/crates/openhuman-core/src/agent/subagent_host/lifecycle.rsindex eb9bf57820..3df4e33b30 100644--- a/crates/openhuman-core/src/agent/subagent_host/lifecycle.rs+++ b/crates/openhuman-core/src/agent/subagent_host/lifecycle.rs@@ -12,7 +12,6 @@ use std::{sync::{Arc, Mutex},};-use crate::agent::subagent_host::SubagentUsageExt as _;use async_trait::async_trait;use fs2::FileExt;use sha2::{Digest, Sha256};diff --git a/crates/openhuman-core/src/agent/subagent_host/mod.rs b/crates/openhuman-core/src/agent/subagent_host/mod.rsindex bc8e5ddb99..fb0cbd927e 100644--- a/crates/openhuman-core/src/agent/subagent_host/mod.rs+++ b/crates/openhuman-core/src/agent/subagent_host/mod.rs@@ -64,7 +64,7 @@ pub use lifecycle::{pub(crate) use ops::is_safe_task_id;pub use types::{SubagentCheckpointData, SubagentMode, SubagentRunError, SubagentRunOptions, SubagentRunOutcome,- SubagentRunStatus, SubagentUsage, SubagentUsageExt,+ SubagentRunStatus, SubagentUsageExt,};pub(crate) use ops::{append_subagent_role_contract, resolve_subagent_source};diff --git a/crates/openhuman-core/src/agent/subagent_host/ops/graph.rs b/crates/openhuman-core/src/agent/subagent_host/ops/graph.rsindex e627a2b16d..c05e513625 100644--- a/crates/openhuman-core/src/agent/subagent_host/ops/graph.rs+++ b/crates/openhuman-core/src/agent/subagent_host/ops/graph.rs@@ -53,7 +53,7 @@ pub(super) use dispatch::AggregatedUsage;// of the original flat imports now live with the code that uses them, in// `dispatch.rs` / `transcript.rs` / `worker_mirror.rs`).#[cfg(test)]-use crate::agent::progress::AgentProgress;+use tinyagents_harness::progress::AgentProgress;#[cfg(test)]use std::collections::HashSet;#[cfg(test)]diff --git a/crates/openhuman-core/src/agent/subagent_host/ops/graph/dispatch.rs b/crates/openhuman-core/src/agent/subagent_host/ops/graph/dispatch.rsindex 31946d5b59..3d21cd1ecd 100644--- a/crates/openhuman-core/src/agent/subagent_host/ops/graph/dispatch.rs+++ b/crates/openhuman-core/src/agent/subagent_host/ops/graph/dispatch.rs@@ -6,7 +6,7 @@ use crate::agent::subagent_host::ops::checkpoint;use std::collections::HashSet;use std::sync::Arc;-use crate::agent::progress::AgentProgress;+use tinyagents_harness::progress::AgentProgress;use crate::agent::subagent_host::types::SubagentRunError;use crate::agent::tinyagents::{SubagentScope, TurnSpec};use tinyagents_harness::run_queue::RunQueue;diff --git a/crates/openhuman-core/src/agent/subagent_host/ops_tests_model_resolution_tests.rs b/crates/openhuman-core/src/agent/subagent_host/ops_tests_model_resolution_tests.rsindex 9c11cb1b7b..30fcfb505e 100644--- a/crates/openhuman-core/src/agent/subagent_host/ops_tests_model_resolution_tests.rs+++ b/crates/openhuman-core/src/agent/subagent_host/ops_tests_model_resolution_tests.rs@@ -84,7 +84,7 @@ async fn typed_mode_model_override_pins_exact_model_for_spawn() {/// `subagent_tool_result` socket events the parent thread renders.#[tokio::test]async fn typed_mode_emits_child_progress_events_when_sink_attached() {- use crate::agent::progress::AgentProgress;+ use tinyagents_harness::progress::AgentProgress;let provider = ScriptedProvider::new(vec![tool_response("file_read", "{\"path\":\"x\"}"),@@ -167,7 +167,7 @@ async fn typed_mode_emits_child_progress_events_when_sink_attached() {/// `subagent_thinking_delta` socket events the parent thread renders live.#[tokio::test]async fn typed_mode_forwards_child_text_and_thinking_deltas() {- use crate::agent::progress::AgentProgress;+ use tinyagents_harness::progress::AgentProgress;let provider = ScriptedProvider::new(vec![text_response_with_reasoning("the final answer",diff --git a/crates/openhuman-core/src/agent/subagent_host/types.rs b/crates/openhuman-core/src/agent/subagent_host/types.rsindex 43c8f89db5..235f3854f9 100644--- a/crates/openhuman-core/src/agent/subagent_host/types.rs+++ b/crates/openhuman-core/src/agent/subagent_host/types.rs@@ -189,7 +189,7 @@ impl SubagentRunOutcome {/// outcome so the parent turn can fold sub-agent spend into the session-level/// token/cost meters surfaced in the UI footer. The type is TinyAgents'/// (`AgentProgress::SubagentCompleted` carries it).-pub use tinyagents_harness::progress::SubagentUsage;+use tinyagents_harness::progress::SubagentUsage;/// The run's cost as a tally, for folding into a parent's.pub trait SubagentUsageExt {diff --git a/crates/openhuman-core/src/agent/tinyagents/budget_stop_turn_tests.rs b/crates/openhuman-core/src/agent/tinyagents/budget_stop_turn_tests.rsindex 1193724aa5..7fbc0813c7 100644--- a/crates/openhuman-core/src/agent/tinyagents/budget_stop_turn_tests.rs+++ b/crates/openhuman-core/src/agent/tinyagents/budget_stop_turn_tests.rs@@ -111,7 +111,7 @@ fn hosted_base() -> Arc<crate::agent::tinyagents::host::OpenHumanHostBase> {fn root_context(thread_id: &str,workspace: &str,- progress: tokio::sync::mpsc::Sender<crate::agent::progress::AgentProgress>,+ progress: tokio::sync::mpsc::Sender<tinyagents_harness::progress::AgentProgress>,) -> crate::agent::tinyagents::host::OpenHumanRunContext {let mut context = crate::agent::tinyagents::host::OpenHumanRunContext::new();context.origin = Some(crate::agent::turn_origin::AgentTurnOrigin::WebChat {diff --git a/crates/openhuman-core/src/agent/tinyagents/host/progress_sink.rs b/crates/openhuman-core/src/agent/tinyagents/host/progress_sink.rsindex 4e5ddc99f9..de94f7e718 100644--- a/crates/openhuman-core/src/agent/tinyagents/host/progress_sink.rs+++ b/crates/openhuman-core/src/agent/tinyagents/host/progress_sink.rs@@ -109,7 +109,7 @@ use tokio::sync::mpsc::Sender;use tinyagents_harness::host::{ProgressEvent, ProgressSink};-use crate::agent::progress::AgentProgress;+use tinyagents_harness::progress::AgentProgress;/// How long a **lifecycle** event may wait for room on a full channel.///diff --git a/crates/openhuman-core/src/agent/tinyagents/host/run_context.rs b/crates/openhuman-core/src/agent/tinyagents/host/run_context.rsindex 6d45f0535b..5904b5680f 100644--- a/crates/openhuman-core/src/agent/tinyagents/host/run_context.rs+++ b/crates/openhuman-core/src/agent/tinyagents/host/run_context.rs@@ -17,8 +17,8 @@ use std::time::Instant;use tokio::sync::mpsc::Sender;use crate::agent::harness::fork_context::{AgentContextPreparedSource, ParentExecutionContext};-use crate::agent::progress::AgentProgress;-use crate::agent::subagent_host::SubagentUsage;+use tinyagents_harness::progress::AgentProgress;+use tinyagents_harness::progress::SubagentUsage;use crate::agent::tinyagents::{middleware::turn_context::TurnContextMiddleware, turn_policy::ToolPolicyEnforcement,};diff --git a/crates/openhuman-core/src/agent/tinyagents/host/run_context_tests.rs b/crates/openhuman-core/src/agent/tinyagents/host/run_context_tests.rsindex 821af67226..c00f216284 100644--- a/crates/openhuman-core/src/agent/tinyagents/host/run_context_tests.rs+++ b/crates/openhuman-core/src/agent/tinyagents/host/run_context_tests.rs@@ -165,7 +165,7 @@ fn child_ledgers_are_isolated_and_parent_keeps_completed_child_totals() {left.append_subagent_usage(SubagentUsageEntry {task_id: "left-task".into(),agent_id: "researcher".into(),- usage: crate::agent::subagent_host::SubagentUsage {+ usage: tinyagents_harness::progress::SubagentUsage {input_tokens: 3,output_tokens: 2,cached_input_tokens: 1,@@ -178,7 +178,7 @@ fn child_ledgers_are_isolated_and_parent_keeps_completed_child_totals() {left.record_completed_subagent_usage(SubagentUsageEntry {task_id: "completed-child".into(),agent_id: "researcher".into(),- usage: crate::agent::subagent_host::SubagentUsage::default(),+ usage: tinyagents_harness::progress::SubagentUsage::default(),});assert_eq!(root.subagent_usage_entries().len(), 1);assert_eq!(left.subagent_usage_entries().len(), 1);@@ -191,7 +191,7 @@ fn failed_outer_run_promotes_completed_nested_usage_once() {outer.append_subagent_usage(SubagentUsageEntry {task_id: "nested".into(),agent_id: "researcher".into(),- usage: crate::agent::subagent_host::SubagentUsage {+ usage: tinyagents_harness::progress::SubagentUsage {input_tokens: 7,..Default::default()},diff --git a/crates/openhuman-core/src/agent/tinyagents/observability.rs b/crates/openhuman-core/src/agent/tinyagents/observability.rsindex 07705eb3d3..1eadb80d12 100644--- a/crates/openhuman-core/src/agent/tinyagents/observability.rs+++ b/crates/openhuman-core/src/agent/tinyagents/observability.rs@@ -22,7 +22,7 @@ use tinyagents_harness::events::AgentEvent;use tinyinference_llm::usage::Usage;#[cfg(test)]-use crate::agent::progress::AgentProgress;+use tinyagents_harness::progress::AgentProgress;pub(crate) use bridge_types::{ProviderUsageCarry, SubagentScope, ToolFailureMap, ToolNameMap};pub(crate) use event_bridge::OpenhumanEventBridge;diff --git a/crates/openhuman-core/src/agent/tinyagents/observability/bridge_types.rs b/crates/openhuman-core/src/agent/tinyagents/observability/bridge_types.rsindex 6620b7c416..1ed5d20bef 100644--- a/crates/openhuman-core/src/agent/tinyagents/observability/bridge_types.rs+++ b/crates/openhuman-core/src/agent/tinyagents/observability/bridge_types.rs@@ -7,7 +7,7 @@use std::sync::{Arc, Mutex};/// Attribution for child (sub-agent) progress. When present, the bridge routes-/// events to the `Subagent*` [`AgentProgress`](crate::agent::progress::AgentProgress)+/// events to the `Subagent*` [`AgentProgress`](tinyagents_harness::progress::AgentProgress)/// variants (so the parent thread can nest child activity under a live/// subagent row) instead of the top-level ones. Absent = a parent/top-level/// turn.diff --git a/crates/openhuman-core/src/agent/tinyagents/observability/event_bridge.rs b/crates/openhuman-core/src/agent/tinyagents/observability/event_bridge.rsindex 38b9c6f70f..7bb807ac43 100644--- a/crates/openhuman-core/src/agent/tinyagents/observability/event_bridge.rs+++ b/crates/openhuman-core/src/agent/tinyagents/observability/event_bridge.rs@@ -9,7 +9,7 @@ use tokio::sync::mpsc::Sender;use tinyinference_llm::usage::Usage;-use crate::agent::progress::AgentProgress;+use tinyagents_harness::progress::AgentProgress;use crate::inference::provider::BilledUsage;use tinytools::humanize_tool_name;diff --git a/crates/openhuman-core/src/agent/tinyagents/observability/event_projection.rs b/crates/openhuman-core/src/agent/tinyagents/observability/event_projection.rsindex 1ee78ddbbb..042c3277a7 100644--- a/crates/openhuman-core/src/agent/tinyagents/observability/event_projection.rs+++ b/crates/openhuman-core/src/agent/tinyagents/observability/event_projection.rs@@ -6,7 +6,7 @@use tinyagents_harness::cache::CacheLayoutEvent;use tinyagents_harness::events::{AgentEvent, EventListener, EventRecord};-use crate::agent::progress::AgentProgress;+use tinyagents_harness::progress::AgentProgress;use tinytools::humanize_tool_name;use super::event_bridge::OpenhumanEventBridge;diff --git a/crates/openhuman-core/src/agent/tinyagents/observability/tool_progress_projection.rs b/crates/openhuman-core/src/agent/tinyagents/observability/tool_progress_projection.rsindex 5d5f242630..85b0734a8a 100644--- a/crates/openhuman-core/src/agent/tinyagents/observability/tool_progress_projection.rs+++ b/crates/openhuman-core/src/agent/tinyagents/observability/tool_progress_projection.rs@@ -1,7 +1,7 @@//! Projection of `AgentEvent::ToolProgressDetail` onto//! [`AgentProgress::ToolCallProgress`].-use crate::agent::progress::AgentProgress;+use tinyagents_harness::progress::AgentProgress;use super::event_bridge::OpenhumanEventBridge;diff --git a/crates/openhuman-core/src/agent/tinyagents/turn_exec_tests.rs b/crates/openhuman-core/src/agent/tinyagents/turn_exec_tests.rsindex d8959d27f9..09f215c159 100644--- a/crates/openhuman-core/src/agent/tinyagents/turn_exec_tests.rs+++ b/crates/openhuman-core/src/agent/tinyagents/turn_exec_tests.rs@@ -221,7 +221,7 @@ async fn positive_scoped_tool_limit_caps_hosted_runner_inner() {fn root_context(thread_id: &str,workspace: &str,- progress: tokio::sync::mpsc::Sender<crate::agent::progress::AgentProgress>,+ progress: tokio::sync::mpsc::Sender<tinyagents_harness::progress::AgentProgress>,) -> OpenHumanRunContext {let mut context = OpenHumanRunContext::new();context.origin = Some(crate::agent::turn_origin::AgentTurnOrigin::WebChat {@@ -421,9 +421,9 @@ async fn a_streamed_delta_reaches_the_progress_channel_exactly_once() {let mut completed = 0;while let Ok(event) = events.try_recv() {match event {- crate::agent::progress::AgentProgress::TextDelta { delta, .. } => streamed.push(delta),- crate::agent::progress::AgentProgress::TurnStarted => started += 1,- crate::agent::progress::AgentProgress::TurnCompleted { .. } => completed += 1,+ tinyagents_harness::progress::AgentProgress::TextDelta { delta, .. } => streamed.push(delta),+ tinyagents_harness::progress::AgentProgress::TurnStarted => started += 1,+ tinyagents_harness::progress::AgentProgress::TurnCompleted { .. } => completed += 1,_ => {}}}diff --git a/crates/openhuman-core/src/agent/tinyagents/turn_run_finalize.rs b/crates/openhuman-core/src/agent/tinyagents/turn_run_finalize.rsindex cb66dfa3ec..8000792f58 100644--- a/crates/openhuman-core/src/agent/tinyagents/turn_run_finalize.rs+++ b/crates/openhuman-core/src/agent/tinyagents/turn_run_finalize.rs@@ -12,7 +12,7 @@ use tinyagents_harness::middleware::AgentRun;use tinyagents_harness::middleware::{ContextCompressionMiddleware, PromptCacheGuardMiddleware};use tokio::sync::mpsc::Sender;-use crate::agent::progress::AgentProgress;+use tinyagents_harness::progress::AgentProgress;use crate::agent::tinyagents::journal::TurnJournal;use crate::agent::tinyagents::observability::{self, OpenhumanEventBridge, SubagentScope};use crate::agent::tinyagents::turn_outcome::TinyagentsTurnOutcome;diff --git a/crates/openhuman-core/src/channels/runtime/dispatch/host_agent/turn.rs b/crates/openhuman-core/src/channels/runtime/dispatch/host_agent/turn.rsindex 8a942d5227..10c04eef23 100644--- a/crates/openhuman-core/src/channels/runtime/dispatch/host_agent/turn.rs+++ b/crates/openhuman-core/src/channels/runtime/dispatch/host_agent/turn.rs@@ -5,7 +5,7 @@ use tokio::sync::mpsc;use super::posture;use crate::agent::bus::AgentTurnResponse;use crate::agent::host_agents::HostAgent;-use crate::agent::progress::AgentProgress;+use tinyagents_harness::progress::AgentProgress;use crate::agent::turn_origin::AgentTurnOrigin;use tinyagents_session::transcript::TranscriptMessage;diff --git a/crates/openhuman-core/src/channels/runtime/dispatch/processor/bus_turn.rs b/crates/openhuman-core/src/channels/runtime/dispatch/processor/bus_turn.rsindex c25b616558..88b156b6b2 100644--- a/crates/openhuman-core/src/channels/runtime/dispatch/processor/bus_turn.rs+++ b/crates/openhuman-core/src/channels/runtime/dispatch/processor/bus_turn.rs@@ -2,7 +2,7 @@//! to the `agent.run_turn` handler, with the orchestrator's tool scoping.use crate::agent::bus::{AgentTurnRequest, AgentTurnResponse, AGENT_RUN_TURN_METHOD};-use crate::agent::progress::AgentProgress;+use tinyagents_harness::progress::AgentProgress;use crate::agent::turn_origin::AgentTurnOrigin;use crate::channels::context::{ChannelRouteSelection, ChannelRuntimeContext};use crate::core::bus::BUS;diff --git a/crates/openhuman-core/src/channels/runtime/dispatch/processor/turn.rs b/crates/openhuman-core/src/channels/runtime/dispatch/processor/turn.rsindex c83696402d..d32b710cae 100644--- a/crates/openhuman-core/src/channels/runtime/dispatch/processor/turn.rs+++ b/crates/openhuman-core/src/channels/runtime/dispatch/processor/turn.rs@@ -3,7 +3,7 @@//! delivering the draft/final reply.use crate::agent::bus::AgentTurnResponse;-use crate::agent::progress::AgentProgress;+use tinyagents_harness::progress::AgentProgress;use crate::channels::context::{compact_sender_history, is_context_window_overflow_error, ChannelRuntimeContext,};diff --git a/crates/openhuman-core/src/channels/runtime/test_support.rs b/crates/openhuman-core/src/channels/runtime/test_support.rsindex b4aa5f727a..c47e35a454 100644--- a/crates/openhuman-core/src/channels/runtime/test_support.rs+++ b/crates/openhuman-core/src/channels/runtime/test_support.rs@@ -6,7 +6,7 @@ use super::dispatch::{};pub use super::startup::test_support::resolve_yuanbao_app_secret_for_test;use crate::agent::bus::{AgentTurnRequest, AgentTurnResponse, AGENT_RUN_TURN_METHOD};-use crate::agent::progress::AgentProgress;+use tinyagents_harness::progress::AgentProgress;use crate::channels::context::{ChannelRuntimeContext, CHANNEL_MESSAGE_TIMEOUT_SECS};use crate::channels::Channel;use crate::channels::ChannelSystemPrompt;diff --git a/crates/openhuman-core/src/inference/host_runtime/ops/agent_chat.rs b/crates/openhuman-core/src/inference/host_runtime/ops/agent_chat.rsindex a903ce482a..f4ba26c437 100644--- a/crates/openhuman-core/src/inference/host_runtime/ops/agent_chat.rs+++ b/crates/openhuman-core/src/inference/host_runtime/ops/agent_chat.rs@@ -573,7 +573,7 @@ pub async fn agent_chat_reply_for(// turn fell back to unary `invoke`, so time-to-first-token equalled the// full completion latency. Attach a drain-only sink so the call streams;// the task ends when the agent drops its sender.- let (tx, mut rx) = tokio::sync::mpsc::channel::<crate::agent::progress::AgentProgress>(256);+ let (tx, mut rx) = tokio::sync::mpsc::channel::<tinyagents_harness::progress::AgentProgress>(256);tokio::spawn(async move { while rx.recv().await.is_some() {} });agent.set_on_progress(Some(tx));log::debug!(diff --git a/crates/openhuman-core/src/skills/run_log.rs b/crates/openhuman-core/src/skills/run_log.rsindex deba8a785b..fc97ebcc8d 100644--- a/crates/openhuman-core/src/skills/run_log.rs+++ b/crates/openhuman-core/src/skills/run_log.rs@@ -17,7 +17,7 @@ use serde_json::Value;use tokio::sync::mpsc::Receiver;use tokio_util::sync::CancellationToken;-use crate::agent::progress::AgentProgress;+use tinyagents_harness::progress::AgentProgress;// Layout, writers-by-timestamp and readers live in `tinyskills::run_log`;// the host keeps event formatting, the cancel registry and the drain.diff --git a/crates/openhuman-core/src/threads/turn_state/mirror/observe.rs b/crates/openhuman-core/src/threads/turn_state/mirror/observe.rsindex ee0481400f..2f7667716a 100644--- a/crates/openhuman-core/src/threads/turn_state/mirror/observe.rs+++ b/crates/openhuman-core/src/threads/turn_state/mirror/observe.rs@@ -5,7 +5,7 @@//! `tinyagents_session::turn_state::TurnStateMirror`; this is the host-side//! progress projection over it.-use crate::agent::progress::AgentProgress;+use tinyagents_harness::progress::AgentProgress;use crate::threads::turn_state::rpc_types::persisted_tool_failure;use tinyagents_session::turn_state::mirror::caps::{cap_persisted_args, cap_persisted_output};diff --git a/crates/openhuman-core/src/threads/turn_state/mirror_tests.rs b/crates/openhuman-core/src/threads/turn_state/mirror_tests.rsindex 30e9c49c1b..8bd9620d6a 100644--- a/crates/openhuman-core/src/threads/turn_state/mirror_tests.rs+++ b/crates/openhuman-core/src/threads/turn_state/mirror_tests.rs@@ -1,7 +1,7 @@//! Unit tests for [`super::TurnStateMirror`].use super::*;-use crate::agent::progress::AgentProgress;+use tinyagents_harness::progress::AgentProgress;use tempfile::tempdir;fn fresh(thread_id: &str) -> (tempfile::TempDir, TurnStateMirror) {diff --git a/crates/openhuman-core/src/threads/turn_state/mod.rs b/crates/openhuman-core/src/threads/turn_state/mod.rsindex 06684020e6..9c515688b8 100644--- a/crates/openhuman-core/src/threads/turn_state/mod.rs+++ b/crates/openhuman-core/src/threads/turn_state/mod.rs@@ -7,7 +7,7 @@//! unclean shutdown at cold boot.//! `tinyagents_session::turn_state::TurnStateMirror` is the writer — it is driven by//! [`mirror::ObserveProgress`], which translates-//! [`crate::agent::progress::AgentProgress`] events into [`types::TurnState`]+//! [`tinyagents_harness::progress::AgentProgress`] events into [`types::TurnState`]//! mutations and flushes to the store at iteration / tool boundaries (not on//! every streaming delta), keeping `Completed` snapshots so the UI can replay//! a finished turn.diff --git a/crates/openhuman-core/src/voice/realtime_harness.rs b/crates/openhuman-core/src/voice/realtime_harness.rsindex 18e26b790a..2adb53d95b 100644--- a/crates/openhuman-core/src/voice/realtime_harness.rs+++ b/crates/openhuman-core/src/voice/realtime_harness.rs@@ -29,7 +29,7 @@ pub use prompt::extract_prompt;pub use turn_handler::handle_voice_harness_turn;#[cfg(test)]-use crate::agent::progress::AgentProgress;+use tinyagents_harness::progress::AgentProgress;#[cfg(test)]use prompt::{is_answerable_prompt, is_content_free, messages_to_history_pairs, readback_payload,diff --git a/crates/openhuman-core/src/voice/realtime_harness/agent.rs b/crates/openhuman-core/src/voice/realtime_harness/agent.rsindex 8db5d2a115..9a51dadb71 100644--- a/crates/openhuman-core/src/voice/realtime_harness/agent.rs+++ b/crates/openhuman-core/src/voice/realtime_harness/agent.rs@@ -8,7 +8,7 @@ use std::time::Duration;use log::{info, warn};use serde_json::Value;-use crate::agent::progress::AgentProgress;+use tinyagents_harness::progress::AgentProgress;use crate::agent::session_host::OpenHumanSessionHost;use crate::agent::turn_origin::{with_origin, AgentTurnOrigin};diff --git a/crates/openhuman-core/src/voice/realtime_harness/prompt.rs b/crates/openhuman-core/src/voice/realtime_harness/prompt.rsindex ee6fec751f..e09f81854d 100644--- a/crates/openhuman-core/src/voice/realtime_harness/prompt.rs+++ b/crates/openhuman-core/src/voice/realtime_harness/prompt.rs@@ -3,7 +3,7 @@//! (content-free, answerable, read-back), and picking the spoken text out of//! a streamed progress event.-use crate::agent::progress::AgentProgress;+use tinyagents_harness::progress::AgentProgress;use serde_json::Value;/// Instruction prefix used for "speak-back": when a deferred result is ready, thediff --git a/crates/openhuman-core/src/voice/realtime_harness/turn_handler.rs b/crates/openhuman-core/src/voice/realtime_harness/turn_handler.rsindex 204a821acc..5f13b80a9c 100644--- a/crates/openhuman-core/src/voice/realtime_harness/turn_handler.rs+++ b/crates/openhuman-core/src/voice/realtime_harness/turn_handler.rs@@ -11,7 +11,7 @@ use log::{info, warn};use serde_json::{json, Value};use tokio::sync::Semaphore;-use crate::agent::progress::AgentProgress;+use tinyagents_harness::progress::AgentProgress;use super::agent::run_voice_turn;use super::chat_delivery::{diff --git a/crates/openhuman-core/src/web_chat/presentation.rs b/crates/openhuman-core/src/web_chat/presentation.rsindex 21f9f9718d..a945fe6b24 100644--- a/crates/openhuman-core/src/web_chat/presentation.rs+++ b/crates/openhuman-core/src/web_chat/presentation.rs@@ -1,7 +1,6 @@//! Presentation layer for web-channel chat responses: store a finished reply,//! then announce it to the client as one unmodified `chat_done` message.-use crate::agent::subagent_host::SubagentUsageExt as _;use tinychannels_bus::web as bus_web;use crate::agent::tinyagents::host::LastTurnUsage;diff --git a/crates/openhuman-core/src/web_chat/progress.rs b/crates/openhuman-core/src/web_chat/progress.rsindex fc4cabfb97..7e19fcd60b 100644--- a/crates/openhuman-core/src/web_chat/progress.rs+++ b/crates/openhuman-core/src/web_chat/progress.rs@@ -23,7 +23,7 @@ use tinychannels_bus::web::{use super::progress_ledger::{ChildDone, Ledger};use super::progress_map as map;use super::surface::{Surface, TurnIds};-use crate::agent::progress::AgentProgress;+use tinyagents_harness::progress::AgentProgress;use crate::agent::progress_tracing::SpanCollector;use crate::config::Config;use crate::core::runtime::DispatchCtx;diff --git a/crates/openhuman-core/src/web_chat/progress_map.rs b/crates/openhuman-core/src/web_chat/progress_map.rsindex 4db2b630ee..70844fad79 100644--- a/crates/openhuman-core/src/web_chat/progress_map.rs+++ b/crates/openhuman-core/src/web_chat/progress_map.rs@@ -5,7 +5,6 @@//! file builds no `WebChannelEvent`. Payload caps are applied here, before the//! projection, so a multi-megabyte tool result never reaches the socket.-use crate::agent::subagent_host::SubagentUsageExt as _;use serde::Serialize;use serde_json::Value;use tinychannels_bus::module_progressive::{@@ -13,7 +12,7 @@ use tinychannels_bus::module_progressive::{};use tinychannels_bus::web::{cap_web_args, cap_web_output};-use crate::agent::progress::AgentProgress;+use tinyagents_harness::progress::AgentProgress;type Failure = tinytools::status::ClassifiedFailure;@@ -213,7 +212,7 @@ pub(super) fn sub_completed(iterations: u32,output_chars: usize,output: String,- usage: Option<&crate::agent::subagent_host::SubagentUsage>,+ usage: Option<&tinyagents_harness::progress::SubagentUsage>,worktree_path: Option<String>,changed_files: Vec<String>,dirty_status: Option<bool>,diff --git a/crates/openhuman-core/src/web_chat/progress_map_tests.rs b/crates/openhuman-core/src/web_chat/progress_map_tests.rsindex 4c9e020c94..3ade4b1f04 100644--- a/crates/openhuman-core/src/web_chat/progress_map_tests.rs+++ b/crates/openhuman-core/src/web_chat/progress_map_tests.rs@@ -142,7 +142,7 @@ fn a_spawned_subagent_is_attributed_to_the_parents_round_and_call() {#[test]fn a_finished_subagent_carries_its_iterations_result_spend_and_worktree() {- let usage = crate::agent::subagent_host::SubagentUsage {+ let usage = tinyagents_harness::progress::SubagentUsage {input_tokens: 5,output_tokens: 6,cached_input_tokens: 1,@@ -180,7 +180,7 @@ fn a_finished_subagent_carries_its_iterations_result_spend_and_worktree() {#[test]fn an_unknown_cost_reads_as_zero_spend_not_missing_tokens() {- let usage = crate::agent::subagent_host::SubagentUsage {+ let usage = tinyagents_harness::progress::SubagentUsage {input_tokens: 9,..Default::default()};diff --git a/crates/openhuman-core/src/web_chat/progress_tests.rs b/crates/openhuman-core/src/web_chat/progress_tests.rsindex 1775c9ccd9..8754173be9 100644--- a/crates/openhuman-core/src/web_chat/progress_tests.rs+++ b/crates/openhuman-core/src/web_chat/progress_tests.rs@@ -1,5 +1,5 @@use super::*;-use crate::agent::progress::AgentProgress;+use tinyagents_harness::progress::AgentProgress;use crate::config::Config;use crate::web_chat::WebChannelEvent;use std::time::Duration;@@ -105,7 +105,7 @@ async fn tool_call_completed_forwards_real_output_on_tool_result() {crate::core::runtime::DispatchCtx::ambient(),);- tx.send(crate::agent::progress::AgentProgress::ToolCallCompleted {+ tx.send(tinyagents_harness::progress::AgentProgress::ToolCallCompleted {call_id: "call-1".into(),tool_name: "web_search".into(),success: true,diff --git a/crates/openhuman-core/src/web_chat/turn_activity.rs b/crates/openhuman-core/src/web_chat/turn_activity.rsindex 5c824e271d..0f47f26988 100644--- a/crates/openhuman-core/src/web_chat/turn_activity.rs+++ b/crates/openhuman-core/src/web_chat/turn_activity.rs@@ -22,7 +22,7 @@ use std::sync::{Arc, Mutex};use tinyagents_harness::turn_runner::TurnSignal;-use crate::agent::progress::AgentProgress;+use tinyagents_harness::progress::AgentProgress;/// Default idle window for a web-chat turn, in seconds.pub(crate) const DEFAULT_TURN_IDLE_SECS: u64 = 900;diff --git a/crates/openhuman-core/src/web_chat/turn_host.rs b/crates/openhuman-core/src/web_chat/turn_host.rsindex a2af144342..7fa66a7c96 100644--- a/crates/openhuman-core/src/web_chat/turn_host.rs+++ b/crates/openhuman-core/src/web_chat/turn_host.rs@@ -36,7 +36,7 @@ use super::types::WebChatTaskResult;use super::web_errors::{inference_budget_exceeded_user_message, is_inference_budget_exceeded_error,};-use crate::agent::progress::AgentProgress;+use tinyagents_harness::progress::AgentProgress;use crate::agent::queued_turn::QueuedPayload;use crate::agent::turn_origin::{with_origin, AgentTurnOrigin};use crate::core::events::DomainEvent;diff --git a/crates/openhuman-embed/src/lib.rs b/crates/openhuman-embed/src/lib.rsindex b68b7bcb29..cb9d453927 100644--- a/crates/openhuman-embed/src/lib.rs+++ b/crates/openhuman-embed/src/lib.rs@@ -101,7 +101,7 @@ pub use tinytools::{PermissionLevel, Tool, ToolExposure, ToolResult};/// Live agent-turn progress for in-process embedders.pub mod agent_progress {- pub use openhuman_core::agent::progress::AgentProgress;+ pub use openhuman_core::tinyagents_harness::progress::AgentProgress;pub use openhuman_core::agent::progress_sink::ProgressSink;}diff --git a/crates/openhuman-embed/src/turn.rs b/crates/openhuman-embed/src/turn.rsindex 26f99bd4ce..3ee3680e07 100644--- a/crates/openhuman-embed/src/turn.rs+++ b/crates/openhuman-embed/src/turn.rs@@ -42,7 +42,7 @@ use std::path::{Path, PathBuf};use std::sync::Arc;use super::error::CoreError;-use openhuman_core::agent::progress::AgentProgress;+use openhuman_core::tinyagents_harness::progress::AgentProgress;use openhuman_core::agent::turn_origin::AgentTurnOrigin;use openhuman_core::core::runtime::CoreRuntime;use openhuman_core::inference::INFERENCE_AGENT_CHAT as AGENT_CHAT;diff --git a/crates/openhuman-embed/tests/unit/turn_usage.rs b/crates/openhuman-embed/tests/unit/turn_usage.rsindex c116a4f746..aa11dfd207 100644--- a/crates/openhuman-embed/tests/unit/turn_usage.rs+++ b/crates/openhuman-embed/tests/unit/turn_usage.rs@@ -1,6 +1,6 @@//! Provider-root overlays retain session metadata and child spend.use super::overlay_response_usage;-use openhuman_core::agent::subagent_host::SubagentUsage;+use tinyagents_harness::progress::SubagentUsage;use openhuman_core::agent::tinyagents::host::{LastTurnUsage, SubagentUsageEntry};use tinyagents_harness::middleware::ResponseUsage;