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
chore: rename `tinyagents` crate references to `tinyagents_harness` and `tinyagents_graph`
Steven Enamakel4c20e8415ce1
diff --git a/src/bin/library_profile/mock.rs b/src/bin/library_profile/mock.rsindex 1bc7468dae..c3b011051b 100644--- a/src/bin/library_profile/mock.rs+++ b/src/bin/library_profile/mock.rs@@ -7,9 +7,9 @@ use std::time::Duration;use async_trait::async_trait;use openhuman_core::openhuman::inference::provider::types::{ChatResponse, ToolCall};-use tinyagents::harness::message::{AssistantMessage, ContentBlock, Message};-use tinyagents::harness::model::{ChatModel, ModelRequest, ModelResponse};-use tinyagents::harness::tool::ToolCall as TinyAgentsToolCall;+use tinyagents_harness::message::{AssistantMessage, ContentBlock, Message};+use tinyagents_harness::model::{ChatModel, ModelRequest, ModelResponse};+use tinyagents_harness::tool::ToolCall as TinyAgentsToolCall;/// A plain `ChatResponse` carrying only text (no tool calls).pub fn response(text: &str) -> ChatResponse {diff --git a/src/bin/rss_bench.rs b/src/bin/rss_bench.rsindex 4c5230968b..e9ecd02693 100644--- a/src/bin/rss_bench.rs+++ b/src/bin/rss_bench.rs@@ -41,7 +41,7 @@ use std::process::Stdio;use std::sync::Arc;use std::time::Duration;use tempfile::TempDir;-use tinyagents::harness::model::{ChatModel, ModelRequest, ModelResponse};+use tinyagents_harness::model::{ChatModel, ModelRequest, ModelResponse};/// Roster sizes measured by default: the 1-agent baseline and the/// representative 8-agent company roster from #5046.diff --git a/src/core/jsonrpc.rs b/src/core/jsonrpc.rsindex 23f7d22cc2..9667265dc5 100644--- a/src/core/jsonrpc.rs+++ b/src/core/jsonrpc.rs@@ -2382,7 +2382,7 @@ pub async fn bootstrap_core_runtime(// the finalizer never settled it. Stamp such rows `interrupted` so they stop// rendering as perpetual "running" timeline entries on thread reopen.if agent_enabled {- match tinyagents::session::run_ledger::interrupt_orphaned_agent_runs(&cfg.workspace_dir) {+ match tinyagents_session::run_ledger::interrupt_orphaned_agent_runs(&cfg.workspace_dir) {Ok(0) => {}Ok(count) => log::info!("[runtime] settled {count} orphaned agent run(s) on startup"),Err(err) => log::warn!("[runtime] failed to settle orphaned agent runs: {err}"),diff --git a/src/openhuman/agent/agent_tests.rs b/src/openhuman/agent/agent_tests.rsindex d171bc65eb..454280938d 100644--- a/src/openhuman/agent/agent_tests.rs+++ b/src/openhuman/agent/agent_tests.rs@@ -36,7 +36,7 @@ use crate::openhuman::tools::{Tool, ToolResult};use anyhow::Result;use async_trait::async_trait;use std::sync::{Arc, Mutex};-use tinyagents::harness::model::{ChatModel, ModelProfile, ModelRequest, ModelResponse};+use tinyagents_harness::model::{ChatModel, ModelProfile, ModelRequest, ModelResponse};use tinymemory_core::store as memory_store;// ═══════════════════════════════════════════════════════════════════════════diff --git a/src/openhuman/agent/bus_tests.rs b/src/openhuman/agent/bus_tests.rsindex ae47d11d34..3dd62fdf3b 100644--- a/src/openhuman/agent/bus_tests.rs+++ b/src/openhuman/agent/bus_tests.rs@@ -5,8 +5,8 @@ use tinybus::NativeRegistry;/// in these tests, so the provider trait object is never actually/// invoked — an empty native scripted model only satisfies the type.fn test_request() -> AgentTurnRequest {- let model: Arc<dyn tinyagents::harness::model::ChatModel<()>> =- Arc::new(tinyagents::harness::testkit::ScriptedModel::new(Vec::new()));+ let model: Arc<dyn tinyagents_harness::model::ChatModel<()>> =+ Arc::new(tinyagents_harness::testkit::ScriptedModel::new(Vec::new()));AgentTurnRequest {turn_model_source: crate::openhuman::agent::tinyagents::TurnModelSource::from_model(model),history: vec![diff --git a/src/openhuman/agent/dispatcher.rs b/src/openhuman/agent/dispatcher.rsindex c263fb8c9d..f13cd559bc 100644--- a/src/openhuman/agent/dispatcher.rs+++ b/src/openhuman/agent/dispatcher.rs@@ -1,5 +1,5 @@//! Tool dialects — OpenHuman's adapter over-//! [`tinyagents::harness::tool_calling::dialect`].+//! [`tinyagents_harness::tool_calling::dialect`].//!//! The dialects themselves moved to the crate: how a model is told to ask for a//! tool, how it is parsed when it does, how results are rendered back, and how@@ -15,12 +15,12 @@//! named and shaped for ~190 call sites across the harness, and//! [`ConversationMessage`] is the durable JSONL record existing installations//! already have on disk. The crate speaks its own thin-//! [`TranscriptEntry`](tinyagents::harness::tool_calling::dialect::TranscriptEntry)+//! [`TranscriptEntry`](tinyagents_harness::tool_calling::dialect::TranscriptEntry)//! instead, so the conversions below are the seam — a handful of field-wise//! maps that keep the wire bytes identical while the logic lives upstream.//!//! Second, the **[`Tool`] trait object**. The crate takes-//! [`ToolSchema`](tinyagents::harness::tool::ToolSchema)s, never a host's tool+//! [`ToolSchema`](tinyagents_harness::tool::ToolSchema)s, never a host's tool//! type, for the reason the parse seam already documents: a crate that depended//! on OpenHuman's `Tool` could not be used by a second host. So//! [`ToolDispatcher::prompt_instructions`] reads names and schemas off the@@ -39,8 +39,8 @@ use crate::openhuman::agent::pformat::PFormatRegistry;use crate::openhuman::inference::provider::{ChatResponse, ToolCall};use crate::openhuman::tools::{Tool, ToolSpec};use serde_json::Value;-use tinyagents::harness::tool::ToolSchema;-use tinyagents::harness::tool_calling::dialect::{+use tinyagents_harness::tool::ToolSchema;+use tinyagents_harness::tool_calling::dialect::{DialectMessage, DialectResponse, DialectRole, NativeDialect, NativeToolCall, PFormatDialect,ToolDialect, ToolOutcome, ToolResultEntry, TranscriptEntry, XmlDialect,};@@ -143,7 +143,7 @@ fn from_native_call(call: &NativeToolCall) -> ToolCall {}fn from_parsed_calls(- calls: Vec<tinyagents::harness::tool_calling::ParsedToolCall>,+ calls: Vec<tinyagents_harness::tool_calling::ParsedToolCall>,) -> Vec<ParsedToolCall> {calls.into_iter()@@ -265,9 +265,9 @@ fn schemas_from_tools(tools: &[Box<dyn Tool>]) -> Vec<ToolSchema> {}fn from_format(- format: tinyagents::harness::tool_calling::dialect::ToolCallFormat,+ format: tinyagents_harness::tool_calling::dialect::ToolCallFormat,) -> ToolCallFormat {- use tinyagents::harness::tool_calling::dialect::ToolCallFormat as Crate;+ use tinyagents_harness::tool_calling::dialect::ToolCallFormat as Crate;match format {Crate::PFormat => ToolCallFormat::PFormat,Crate::Json => ToolCallFormat::Json,@@ -420,7 +420,7 @@ impl ToolDispatcher for PFormatToolDispatcher {/// models that might "forget" to use the structured API, and drops half-finished/// tool cycles while serializing so a bisected transcript cannot trip the/// provider's 400 (TAURI-RUST-7) — see-/// [`pair_tool_cycles`](tinyagents::harness::tool_calling::dialect::pair_tool_cycles).+/// [`pair_tool_cycles`](tinyagents_harness::tool_calling::dialect::pair_tool_cycles).pub struct NativeToolDispatcher;impl ToolDispatcher for NativeToolDispatcher {diff --git a/src/openhuman/agent/harness/agent_graph.rs b/src/openhuman/agent/harness/agent_graph.rsindex 636344f671..377560b4db 100644--- a/src/openhuman/agent/harness/agent_graph.rs+++ b/src/openhuman/agent/harness/agent_graph.rs@@ -22,7 +22,7 @@ use std::path::PathBuf;use std::pin::Pin;use std::sync::Arc;-use tinyagents::harness::workspace::WorkspaceDescriptor;+use tinyagents_harness::workspace::WorkspaceDescriptor;use tokio::sync::mpsc::Sender;use crate::openhuman::agent::harness::run_queue::RunQueue;diff --git a/src/openhuman/agent/harness/artifact_offload/artifact_offload_tests.rs b/src/openhuman/agent/harness/artifact_offload/artifact_offload_tests.rsindex f264d48fb0..0ae27c1b9c 100644--- a/src/openhuman/agent/harness/artifact_offload/artifact_offload_tests.rs+++ b/src/openhuman/agent/harness/artifact_offload/artifact_offload_tests.rs@@ -1,6 +1,6 @@//! Tests for OpenHuman's half of the artifact-offload convention (#3883).//!-//! The mechanics moved to `tinyagents::harness::artifacts` and are tested+//! The mechanics moved to `tinyagents_harness::artifacts` and are tested//! there — path resolution, thresholds, abstracts, pointer parsing, the//! symlink re-check. What is tested here is what stayed://!@@ -17,7 +17,7 @@ use std::sync::Arc;use super::*;use crate::openhuman::security::{AutonomyLevel, SecurityPolicy, TrustedAccess, TrustedRoot};-use tinyagents::harness::artifacts::ArtifactPathPolicy;+use tinyagents_harness::artifacts::ArtifactPathPolicy;/// Policy with disjoint action/workspace roots, the shipped default layout/// (`~/OpenHuman/projects` vs `~/.openhuman/users/<id>/workspace`).diff --git a/src/openhuman/agent/harness/artifact_offload/contract.rs b/src/openhuman/agent/harness/artifact_offload/contract.rsindex b3ddeba7c8..3c58f97ed3 100644--- a/src/openhuman/agent/harness/artifact_offload/contract.rs+++ b/src/openhuman/agent/harness/artifact_offload/contract.rs@@ -5,7 +5,7 @@use std::collections::HashSet;-use tinyagents::harness::artifacts::{OUTPUTS_DIR, SCRATCH_DIR};+use tinyagents_harness::artifacts::{OUTPUTS_DIR, SCRATCH_DIR};/// Approximate token budget quoted to the model as the offload trigger./// Mirrors [`super::types::DEFAULT_OFFLOAD_THRESHOLD_BYTES`] at the harness-widediff --git a/src/openhuman/agent/harness/artifact_offload/mod.rs b/src/openhuman/agent/harness/artifact_offload/mod.rsindex f212f27a96..a2d6ce8f9d 100644--- a/src/openhuman/agent/harness/artifact_offload/mod.rs+++ b/src/openhuman/agent/harness/artifact_offload/mod.rs@@ -2,7 +2,7 @@//! (#3883).//!//! **The mechanics now live in-//! [`tinyagents::harness::artifacts`]** — thresholds, path resolution, pointer+//! [`tinyagents_harness::artifacts`]** — thresholds, path resolution, pointer//! rendering, the symlink re-check, and the writer itself. This module is what//! `plan-agents.md` Phase 5 leaves behind: the wiring, plus the two halves that//! are genuinely OpenHuman's.@@ -51,7 +51,7 @@ pub mod policy;use std::path::PathBuf;use std::sync::Arc;-use tinyagents::harness::artifacts::ArtifactOffload;+use tinyagents_harness::artifacts::ArtifactOffload;use crate::openhuman::security::SecurityPolicy;@@ -60,7 +60,7 @@ pub use contract::{OFFLOAD_WRITE_TOOL,};pub use policy::{SanitizingRedactor, WorkspaceGuard};-pub use tinyagents::harness::artifacts::{+pub use tinyagents_harness::artifacts::{build_abstract, effective_offload_threshold, extract_artifact_paths, note_artifact_handoff,relative_to_root as relative_to_action_dir, render_artifact_pointer, resolve_artifact_path,sanitize_component, should_offload, ArtifactKind, ArtifactOffload as Offload, OffloadError,@@ -113,7 +113,7 @@ pub async fn offload_oversized_result(offload: &ArtifactOffload,threshold_bytes: usize,) -> (String, Option<OffloadedArtifact>) {- tinyagents::harness::artifacts::offload_oversized_result(+ tinyagents_harness::artifacts::offload_oversized_result(output,offload,threshold_bytes,diff --git a/src/openhuman/agent/harness/artifact_offload/policy.rs b/src/openhuman/agent/harness/artifact_offload/policy.rsindex 9b9ee5be19..ada08807bf 100644--- a/src/openhuman/agent/harness/artifact_offload/policy.rs+++ b/src/openhuman/agent/harness/artifact_offload/policy.rs@@ -1,6 +1,6 @@//! OpenHuman's implementations of the two artifact-offload host policies.//!-//! `tinyagents::harness::artifacts` owns the mechanics — thresholds, path+//! `tinyagents_harness::artifacts` owns the mechanics — thresholds, path//! resolution, pointer rendering, the symlink re-check. It deliberately knows//! nothing about `SecurityPolicy` or about which byte patterns are credentials,//! because neither has any meaning in a redistributed crate. Those two@@ -13,7 +13,7 @@use std::path::Path;use std::sync::Arc;-use tinyagents::harness::artifacts::{ArtifactPathPolicy, ArtifactRedactor, Redacted};+use tinyagents_harness::artifacts::{ArtifactPathPolicy, ArtifactRedactor, Redacted};use crate::openhuman::memory::safety::sanitize_text;use crate::openhuman::security::SecurityPolicy;diff --git a/src/openhuman/agent/harness/fork_context.rs b/src/openhuman/agent/harness/fork_context.rsindex 212a25027a..1238142329 100644--- a/src/openhuman/agent/harness/fork_context.rs+++ b/src/openhuman/agent/harness/fork_context.rs@@ -19,7 +19,7 @@ use crate::openhuman::tools::{Tool, ToolSpec};use std::collections::HashSet;use std::path::PathBuf;use std::sync::Arc;-use tinyagents::harness::workspace::WorkspaceDescriptor;+use tinyagents_harness::workspace::WorkspaceDescriptor;// ─────────────────────────────────────────────────────────────────────────────// Parent execution contextdiff --git a/src/openhuman/agent/harness/graph_tests.rs b/src/openhuman/agent/harness/graph_tests.rsindex 98989e9695..63d811279c 100644--- a/src/openhuman/agent/harness/graph_tests.rs+++ b/src/openhuman/agent/harness/graph_tests.rs@@ -1,10 +1,10 @@use super::*;use crate::openhuman::tools::ToolResult;use async_trait::async_trait;-use tinyagents::harness::message::AssistantMessage;-use tinyagents::harness::model::{ChatModel, ModelProfile, ModelResponse};-use tinyagents::harness::testkit::ScriptedModel;-use tinyagents::harness::tool::ToolCall;+use tinyagents_harness::message::AssistantMessage;+use tinyagents_harness::model::{ChatModel, ModelProfile, ModelResponse};+use tinyagents_harness::testkit::ScriptedModel;+use tinyagents_harness::tool::ToolCall;struct PingTool;#[async_trait]diff --git a/src/openhuman/agent/harness/parse.rs b/src/openhuman/agent/harness/parse.rsindex 92596b9f65..7087b37a3e 100644--- a/src/openhuman/agent/harness/parse.rs+++ b/src/openhuman/agent/harness/parse.rs@@ -1,5 +1,5 @@//! Tool-call parsing — OpenHuman's adapter over-//! [`tinyagents::harness::tool_calling`].+//! [`tinyagents_harness::tool_calling`].//!//! The parsers themselves moved to the crate: `<tool_call>` tags in their//! several spellings, fenced blocks, bare JSON, Anthropic-style `<invoke>` XML,@@ -12,7 +12,7 @@//! fixtures its own tests assert against, and they never compiled into a//! production build even before the move.-pub(crate) use tinyagents::harness::tool_calling::{+pub(crate) use tinyagents_harness::tool_calling::{extract_json_values, parse_tool_calls, parse_tool_calls_with_pformat,};@@ -21,7 +21,7 @@ pub(crate) use tinyagents::harness::tool_calling::{// site — gated so a non-test build doesn't warn (and fail `-D warnings`) on// them.#[cfg(test)]-pub(crate) use tinyagents::harness::tool_calling::{+pub(crate) use tinyagents_harness::tool_calling::{parse_arguments_value, parse_glm_style_tool_calls, parse_tool_call_value,parse_tool_calls_from_json_value,};@@ -31,7 +31,7 @@ use crate::openhuman::inference::provider::ToolCall;#[cfg(test)]use crate::openhuman::tools::Tool;#[cfg(test)]-use tinyagents::harness::tool_calling::ParsedToolCall;+use tinyagents_harness::tool_calling::ParsedToolCall;#[cfg(test)]pub(crate) fn parse_structured_tool_calls(tool_calls: &[ToolCall]) -> Vec<ParsedToolCall> {diff --git a/src/openhuman/agent/harness/parse_tests.rs b/src/openhuman/agent/harness/parse_tests.rsindex 9e177dfbb0..787e1afcbd 100644--- a/src/openhuman/agent/harness/parse_tests.rs+++ b/src/openhuman/agent/harness/parse_tests.rs@@ -1,7 +1,7 @@//! Tests for the OpenHuman-specific half of tool-call parsing.//!//! The parser tests moved with the parsers, to-//! `tinyagents::harness::tool_calling`. What is exercised here is the wire+//! `tinyagents_harness::tool_calling`. What is exercised here is the wire//! vocabulary that stayed: OpenHuman's `ToolCall`, its native-history JSON//! (including the Gemini `thought_signature` round-trip), and its OpenAI//! function-calling payload.diff --git a/src/openhuman/agent/harness/required_output.rs b/src/openhuman/agent/harness/required_output.rsindex ae07f49fd5..8f2f9ad6da 100644--- a/src/openhuman/agent/harness/required_output.rs+++ b/src/openhuman/agent/harness/required_output.rs@@ -19,7 +19,7 @@//! provider call and reconcile with streaming; keeping the logic here pure keeps//! it unit-testable without a provider.-use tinyagents::harness::config::RequiredOutput;+use tinyagents_harness::config::RequiredOutput;/// Whether `text` satisfies `contract`: it contains a JSON object carrying every/// required key with a non-null value, in the expected leading position. Andiff --git a/src/openhuman/agent/harness/run_queue/mod.rs b/src/openhuman/agent/harness/run_queue/mod.rsindex 8e01c6b348..9b03752a33 100644--- a/src/openhuman/agent/harness/run_queue/mod.rs+++ b/src/openhuman/agent/harness/run_queue/mod.rs@@ -15,9 +15,9 @@mod types;use std::sync::Arc;-use tinyagents::harness::run_queue::{QueueLane, RunQueue as TinyAgentsRunQueue};+use tinyagents_harness::run_queue::{QueueLane, RunQueue as TinyAgentsRunQueue};-pub use tinyagents::harness::run_queue::QueueStatus;+pub use tinyagents_harness::run_queue::QueueStatus;pub use types::{QueueMode, QueuedMessage};/// Thread-safe run queue with three lanes. Wrapped in `Arc` for shareddiff --git a/src/openhuman/agent/harness/session/builder/factory.rs b/src/openhuman/agent/harness/session/builder/factory.rsindex cdf36843f3..d25eb6c3a5 100644--- a/src/openhuman/agent/harness/session/builder/factory.rs+++ b/src/openhuman/agent/harness/session/builder/factory.rs@@ -666,7 +666,7 @@ impl Agent {// For cloud reflection, wrap the provider in an Arc.// For local, no provider needed.let reflection_provider: Option<- Arc<dyn tinyagents::harness::model::ChatModel<()>>,+ Arc<dyn tinyagents_harness::model::ChatModel<()>>,> = if config.learning.reflection_source== crate::openhuman::config::ReflectionSource::Cloud{@@ -1448,7 +1448,7 @@ mod provider_role_tests;/// descriptor. Shared by [`Agent::build_session_agent_inner`] and its unit tests/// so the two can never drift.///-/// Returns a [`WorkspaceDescriptor`](tinyagents::harness::workspace::WorkspaceDescriptor)+/// Returns a [`WorkspaceDescriptor`](tinyagents_harness::workspace::WorkspaceDescriptor)/// rooted at `<action_dir>/profiles/<id>` when `profile` opts into/// `dedicated_workspace` and its id passes validation (via/// [`dedicated_workspace_dir`](crate::openhuman::agent::profiles::dedicated_workspace_dir)),@@ -1460,7 +1460,7 @@ mod provider_role_tests;pub(crate) fn derive_profile_workspace_descriptor(action_dir: &std::path::Path,profile: Option<&crate::openhuman::agent::profiles::AgentProfile>,-) -> Option<tinyagents::harness::workspace::WorkspaceDescriptor> {+) -> Option<tinyagents_harness::workspace::WorkspaceDescriptor> {let (profile_id, dir) = profile.and_then(|p| {crate::openhuman::agent::profiles::dedicated_workspace_dir(action_dir, p).map(|dir| (p.id.clone(), dir))@@ -1483,7 +1483,7 @@ pub(crate) fn derive_profile_workspace_descriptor("[profiles] session bound to dedicated workspace as default cwd");Some(- tinyagents::harness::workspace::WorkspaceDescriptor::new(dir).with_policy_id(+ tinyagents_harness::workspace::WorkspaceDescriptor::new(dir).with_policy_id(crate::openhuman::agent::profiles::workspace_policy_id(&profile_id),),)@@ -1493,7 +1493,7 @@ pub(crate) fn derive_profile_workspace_descriptor(/// per-turn root an embedder scoped via/// [`turn_workspace::with_workspace`](crate::openhuman::agent::turn_workspace::with_workspace).///-/// Returns a [`WorkspaceDescriptor`](tinyagents::harness::workspace::WorkspaceDescriptor)+/// Returns a [`WorkspaceDescriptor`](tinyagents_harness::workspace::WorkspaceDescriptor)/// rooted at the scoped directory so this turn's acting tools (shell, file,/// git) resolve their default cwd there instead of the shared `action_dir`./// `None` — every caller that scoped nothing — leaves the shared-`action_dir`@@ -1507,7 +1507,7 @@ pub(crate) fn derive_profile_workspace_descriptor(////// The policy id is a fixed label rather than the path: it is surfaced in tool/// logs, and a host's checkout path is not something to spread through them.-fn derive_turn_workspace_descriptor() -> Option<tinyagents::harness::workspace::WorkspaceDescriptor>+fn derive_turn_workspace_descriptor() -> Option<tinyagents_harness::workspace::WorkspaceDescriptor>{let root = crate::openhuman::agent::turn_workspace::current()?;if !root.is_dir() {@@ -1523,7 +1523,7 @@ fn derive_turn_workspace_descriptor() -> Option<tinyagents::harness::workspace::"[turn_workspace] turn bound to the embedder's per-turn root as default cwd");Some(- tinyagents::harness::workspace::WorkspaceDescriptor::new(root)+ tinyagents_harness::workspace::WorkspaceDescriptor::new(root).with_policy_id("turn-workspace"),)}diff --git a/src/openhuman/agent/harness/session/builder/setters.rs b/src/openhuman/agent/harness/session/builder/setters.rsindex ed0136a740..3a614cc03a 100644--- a/src/openhuman/agent/harness/session/builder/setters.rs+++ b/src/openhuman/agent/harness/session/builder/setters.rs@@ -63,7 +63,7 @@ impl AgentBuilder {/// Sets an already-constructed TinyAgents chat model. This is the native/// injection seam for tests and embedders; no legacy `Provider` adapter is/// constructed.- pub fn chat_model(mut self, model: Arc<dyn tinyagents::harness::model::ChatModel<()>>) -> Self {+ pub fn chat_model(mut self, model: Arc<dyn tinyagents_harness::model::ChatModel<()>>) -> Self {self.turn_model_source =Some(crate::openhuman::agent::tinyagents::TurnModelSource::from_model(model));self@@ -191,7 +191,7 @@ impl AgentBuilder {/// tools resolve their default cwd to the profile's dedicated workspace.pub fn workspace_descriptor(mut self,- descriptor: Option<tinyagents::harness::workspace::WorkspaceDescriptor>,+ descriptor: Option<tinyagents_harness::workspace::WorkspaceDescriptor>,) -> Self {self.workspace_descriptor = descriptor;selfdiff --git a/src/openhuman/agent/harness/session/runtime_impl_01_part_01.rs b/src/openhuman/agent/harness/session/runtime_impl_01_part_01.rsindex 7f1f191a80..0a9ac14ea7 100644--- a/src/openhuman/agent/harness/session/runtime_impl_01_part_01.rs+++ b/src/openhuman/agent/harness/session/runtime_impl_01_part_01.rs@@ -107,7 +107,7 @@ impl Agent {self.runtime_config.is_some()}- /// OpenHuman's [`AgentMemory`](tinyagents::harness::host::AgentMemory)+ /// OpenHuman's [`AgentMemory`](tinyagents_harness::host::AgentMemory)/// capability over this session's memory backend.////// Built on demand rather than stored: it is a thin adapter over an `Arc`@@ -120,7 +120,7 @@ impl Agent {crate::openhuman::agent::tinyagents::host::OpenHumanAgentMemory::new(self.memory_arc())}- /// OpenHuman's [`ExperienceStore`](tinyagents::harness::host::ExperienceStore)+ /// OpenHuman's [`ExperienceStore`](tinyagents_harness::host::ExperienceStore)/// capability, scoped to this session's agent profile.////// Writes go to this session's own `memory`; recall additionally consults@@ -312,7 +312,7 @@ impl Agent {/// from a config whose `action_dir` already permits it.pub fn set_workspace_descriptor(&mut self,- descriptor: Option<tinyagents::harness::workspace::WorkspaceDescriptor>,+ descriptor: Option<tinyagents_harness::workspace::WorkspaceDescriptor>,) {self.workspace_descriptor = descriptor;}diff --git a/src/openhuman/agent/harness/session/runtime_tests.rs b/src/openhuman/agent/harness/session/runtime_tests.rsindex 8b3bf5b058..b2eb22e577 100644--- a/src/openhuman/agent/harness/session/runtime_tests.rs+++ b/src/openhuman/agent/harness/session/runtime_tests.rs@@ -9,7 +9,7 @@ use anyhow::anyhow;use async_trait::async_trait;use parking_lot::Mutex;use std::sync::Arc;-use tinyagents::harness::model::{+use tinyagents_harness::model::{ChatModel, ModelRequest, ModelResponse, ModelStream, ModelStreamItem,};use tokio::sync::Mutex as AsyncMutex;@@ -408,7 +408,7 @@ fn helper_paths_cover_no_overlap_native_calls_and_truncation() {/// too, not just behind the factory.#[tokio::test]async fn memory_backed_host_capabilities_build_from_session_state() {- use tinyagents::harness::host::{AgentMemory, ExperienceStore};+ use tinyagents_harness::host::{AgentMemory, ExperienceStore};let model: Arc<dyn ChatModel<()>> = Arc::new(StaticModel {response: Mutex::new(None),@@ -419,7 +419,7 @@ async fn memory_backed_host_capabilities_build_from_session_state() {// the accessor is that the runtime can hold `dyn AgentMemory`.let memory: &dyn AgentMemory = &agent.host_agent_memory();let recalled = memory- .recall(tinyagents::harness::host::RecallRequest::new("anything"))+ .recall(tinyagents_harness::host::RecallRequest::new("anything")).await.expect("recall must succeed against an empty backend");assert!(diff --git a/src/openhuman/agent/harness/session/session_tests.rs b/src/openhuman/agent/harness/session/session_tests.rsindex c297d1561a..baa68a9ecf 100644--- a/src/openhuman/agent/harness/session/session_tests.rs+++ b/src/openhuman/agent/harness/session/session_tests.rs@@ -16,8 +16,8 @@ use anyhow::Result;use async_trait::async_trait;use parking_lot::Mutex;use std::sync::Arc;-use tinyagents::harness::message::Message;-use tinyagents::harness::model::{+use tinyagents_harness::message::Message;+use tinyagents_harness::model::{ChatModel, ModelProfile, ModelRequest, ModelResponse, ModelStream, ModelStreamItem,};@@ -359,7 +359,7 @@ impl crate::openhuman::agent::harness::session::transcript_history::SessionHisto}#[async_trait]-impl tinyagents::harness::memory::ChatHistory for FakeSessionHistory {+impl tinyagents_harness::memory::ChatHistory for FakeSessionHistory {async fn messages(&self, _thread_id: &str) -> tinyagents::Result<Vec<Message>> {Ok(vec![])}diff --git a/src/openhuman/agent/harness/session/transcript_history.rs b/src/openhuman/agent/harness/session/transcript_history.rsindex 88c5ec886d..6fe223395b 100644--- a/src/openhuman/agent/harness/session/transcript_history.rs+++ b/src/openhuman/agent/harness/session/transcript_history.rs@@ -2,7 +2,7 @@//!//! This is the seam chosen in `docs/specs/2026-07-28-agent-session-transcript-to-tinyagents-design.md`//! §4 Option A: the harness talks to the crate's-//! [`tinyagents::harness::memory::ChatHistory`] trait, while OpenHuman keeps+//! [`tinyagents_harness::memory::ChatHistory`] trait, while OpenHuman keeps//! ownership of the on-disk format. Nothing about `session_raw` moves, so//! there is no on-disk change and no migration risk — the previous parallel//! abstraction is what goes away.@@ -152,8 +152,8 @@ use std::path::{Path, PathBuf};use std::sync::Arc;use async_trait::async_trait;-use tinyagents::harness::memory::ChatHistory;-use tinyagents::harness::message::Message;+use tinyagents_harness::memory::ChatHistory;+use tinyagents_harness::message::Message;use tinyagents::{Result as TaResult, TinyAgentsError};use crate::openhuman::agent::message_convert::{history_to_messages, message_to_chat_message};diff --git a/src/openhuman/agent/harness/session/transcript_history_tests.rs b/src/openhuman/agent/harness/session/transcript_history_tests.rsindex 6592c2392d..ee007299e9 100644--- a/src/openhuman/agent/harness/session/transcript_history_tests.rs+++ b/src/openhuman/agent/harness/session/transcript_history_tests.rs@@ -42,8 +42,8 @@ fn history(dir: &TempDir) -> SessionTranscriptHistory {}fn user(text: &str) -> Message {- Message::User(tinyagents::harness::message::UserMessage {- content: vec![tinyagents::harness::message::ContentBlock::Text(+ Message::User(tinyagents_harness::message::UserMessage {+ content: vec![tinyagents_harness::message::ContentBlock::Text(text.to_string(),)],})@@ -375,9 +375,9 @@ async fn trait_path_loses_the_provenance_that_append_turn_preserves() {.replace("thread-1",vec![Message::Assistant(- tinyagents::harness::message::AssistantMessage {+ tinyagents_harness::message::AssistantMessage {id: None,- content: vec![tinyagents::harness::message::ContentBlock::Text(+ content: vec![tinyagents_harness::message::ContentBlock::Text("72F and sunny.".into(),)],tool_calls: vec![],diff --git a/src/openhuman/agent/harness/session/turn/core_turn.rs b/src/openhuman/agent/harness/session/turn/core_turn.rsindex b4a10e5b12..b5747b5c01 100644--- a/src/openhuman/agent/harness/session/turn/core_turn.rs+++ b/src/openhuman/agent/harness/session/turn/core_turn.rs@@ -409,7 +409,7 @@ impl Agent {}};if let Some(ref goal) = active_goal {- if let Some(block) = tinyagents::graph::goals::active_goal_context_block(goal) {+ if let Some(block) = tinyagents_graph::goals::active_goal_context_block(goal) {log::info!("[thread_goals] injecting active_goal block status={} budget={:?} ({} chars)",goal.status.as_str(),diff --git a/src/openhuman/agent/harness/session/turn/graph.rs b/src/openhuman/agent/harness/session/turn/graph.rsindex 272d6666f6..7b95702f9f 100644--- a/src/openhuman/agent/harness/session/turn/graph.rs+++ b/src/openhuman/agent/harness/session/turn/graph.rs@@ -79,7 +79,7 @@ pub(crate) struct ChatTurnGraph {/// workspace — acting tools then resolve their default cwd to/// `<action_dir>/profiles/<id>` via `ToolExecutionContext.workspace`. `None`/// (the common case) keeps the shared-`action_dir` cwd behaviour.- pub workspace_descriptor: Option<tinyagents::harness::workspace::WorkspaceDescriptor>,+ pub workspace_descriptor: Option<tinyagents_harness::workspace::WorkspaceDescriptor>,/// Declared sandbox mode for the top-level agent. The chat path scopes it/// around the shared harness so acting tools see the same mode as workers.pub sandbox_mode: SandboxMode,diff --git a/src/openhuman/agent/harness/session/turn/session_io.rs b/src/openhuman/agent/harness/session/turn/session_io.rsindex 7f440a88da..6027f595ea 100644--- a/src/openhuman/agent/harness/session/turn/session_io.rs+++ b/src/openhuman/agent/harness/session/turn/session_io.rs@@ -13,6 +13,6 @@ use crate::openhuman::inference::provider::{ChatResponse, UsageInfo, AGENT_TURN_MAX_OUTPUT_TOKENS,};use futures::StreamExt;-use tinyagents::harness::model::{ModelRequest, ModelStreamItem};+use tinyagents_harness::model::{ModelRequest, ModelStreamItem};include!("session_io_impl_01_part_01.rs");include!("session_io_impl_01_part_02.rs");diff --git a/src/openhuman/agent/harness/session/turn/session_io_impl_01_part_01.rs b/src/openhuman/agent/harness/session/turn/session_io_impl_01_part_01.rsindex f4d15e6be1..ca2eb9c484 100644--- a/src/openhuman/agent/harness/session/turn/session_io_impl_01_part_01.rs+++ b/src/openhuman/agent/harness/session/turn/session_io_impl_01_part_01.rs@@ -322,7 +322,7 @@ impl Agent {pub(in super::super) async fn enforce_required_output(&self,reply: &str,- contract: &tinyagents::harness::config::RequiredOutput,+ contract: &tinyagents_harness::config::RequiredOutput,effective_model: &str,iteration_for_stream: u32,) -> Option<(String, Option<UsageInfo>)> {diff --git a/src/openhuman/agent/harness/session/turn_tests.rs b/src/openhuman/agent/harness/session/turn_tests.rsindex c169733ebe..a65fb1cad1 100644--- a/src/openhuman/agent/harness/session/turn_tests.rs+++ b/src/openhuman/agent/harness/session/turn_tests.rs@@ -19,8 +19,8 @@ use async_trait::async_trait;use std::collections::HashSet;use std::sync::atomic::{AtomicUsize, Ordering};use std::sync::Arc;-use tinyagents::harness::message::Message;-use tinyagents::harness::model::{+use tinyagents_harness::message::Message;+use tinyagents_harness::model::{ChatModel, ModelProfile, ModelRequest, ModelResponse, ModelStream, ModelStreamItem,};use tokio::sync::Mutex as AsyncMutex;diff --git a/src/openhuman/agent/harness/session/turn_tests_part_01_tests.rs b/src/openhuman/agent/harness/session/turn_tests_part_01_tests.rsindex 106f894811..295f6a416c 100644--- a/src/openhuman/agent/harness/session/turn_tests_part_01_tests.rs+++ b/src/openhuman/agent/harness/session/turn_tests_part_01_tests.rs@@ -111,7 +111,7 @@ fn build_parent_context_propagates_own_descriptor_on_root_turn() {// reaches subagents spawned via spawn_subagent/spawn_async_subagent, and they// silently fall back to the shared action_dir instead of// `<action_dir>/profiles/<id>`.- let descriptor = tinyagents::harness::workspace::WorkspaceDescriptor::new(+ let descriptor = tinyagents_harness::workspace::WorkspaceDescriptor::new(std::path::PathBuf::from("/tmp/act/profiles/alice"),).with_policy_id("openhuman.profile:alice");diff --git a/src/openhuman/agent/harness/session/types.rs b/src/openhuman/agent/harness/session/types.rsindex d0eb089051..ad0a343a82 100644--- a/src/openhuman/agent/harness/session/types.rs+++ b/src/openhuman/agent/harness/session/types.rs@@ -120,7 +120,7 @@ pub struct Agent {/// turn so acting tools (shell/file/git) resolve their default cwd to/// `<action_dir>/profiles/<id>` instead of the shared `action_dir`. `None`/// (the common case) preserves the shared-cwd behaviour unchanged.- pub(super) workspace_descriptor: Option<tinyagents::harness::workspace::WorkspaceDescriptor>,+ pub(super) workspace_descriptor: Option<tinyagents_harness::workspace::WorkspaceDescriptor>,pub(super) workflows: Vec<crate::openhuman::skills::Workflow>,/// Agent workflows discovered at session start.pub(super) auto_save: bool,@@ -498,7 +498,7 @@ pub struct AgentBuilder {pub(super) action_dir: Option<std::path::PathBuf>,/// Optional per-profile workspace descriptor forwarded to [`Agent`] at build/// time. Defaults to `None` (shared `action_dir` cwd).- pub(super) workspace_descriptor: Option<tinyagents::harness::workspace::WorkspaceDescriptor>,+ pub(super) workspace_descriptor: Option<tinyagents_harness::workspace::WorkspaceDescriptor>,pub(super) workflows: Option<Vec<crate::openhuman::skills::Workflow>>,/// Agent workflows to surface in the prompt. Populated from `load_workflows`/// at session start; defaults to empty when not explicitly set.diff --git a/src/openhuman/agent/harness/subagent_runner/extract_tool.rs b/src/openhuman/agent/harness/subagent_runner/extract_tool.rsindex a432c96af2..6fe8856eea 100644--- a/src/openhuman/agent/harness/subagent_runner/extract_tool.rs+++ b/src/openhuman/agent/harness/subagent_runner/extract_tool.rs@@ -26,7 +26,7 @@ use std::sync::{Arc, Mutex as StdMutex};use async_trait::async_trait;use serde_json::{json, Value};-use tinyagents::graph::parallel::{map_reduce, FailurePolicy, ParallelOptions};+use tinyagents_graph::parallel::{map_reduce, FailurePolicy, ParallelOptions};use super::handoff::{chunk_content, ResultHandoffCache, HANDOFF_MAX_ENTRIES};use crate::openhuman::agent::harness::session::transcript::{@@ -35,8 +35,8 @@ use crate::openhuman::agent::harness::session::transcript::{use crate::openhuman::agent::messages::ChatMessage;use crate::openhuman::agent::tinyagents::TurnModelSource;use crate::openhuman::tools::{Tool, ToolCategory, ToolResult};-use tinyagents::harness::message::Message;-use tinyagents::harness::model::ModelRequest;+use tinyagents_harness::message::Message;+use tinyagents_harness::model::ModelRequest;// ── Tunables ──────────────────────────────────────────────────────────@@ -265,7 +265,7 @@ impl Tool for ExtractFromResultTool {// Map stage: each chunk extracts items matching `query` from// ITS OWN slice only. Dispatched through the shared bounded fan-out- // (`tinyagents::graph::parallel::map_reduce`), which keeps at most+ // (`tinyagents_graph::parallel::map_reduce`), which keeps at most// `MAP_CONCURRENCY` calls in flight and hands results back in input// order. Fully parallel `join_all` was generating 504-gateway-timeout// storms from the staging proxy when 7+ concurrent calls piled onto thediff --git a/src/openhuman/agent/harness/subagent_runner/handoff.rs b/src/openhuman/agent/harness/subagent_runner/handoff.rsindex a5c0c427a5..5c29321e44 100644--- a/src/openhuman/agent/harness/subagent_runner/handoff.rs+++ b/src/openhuman/agent/harness/subagent_runner/handoff.rs@@ -3,7 +3,7 @@//! ## Where the implementation lives//!//! The cache, placeholder renderer, and content-hygiene helpers are-//! **TinyAgents'** ([`tinyagents::harness::handoff`]): host-agnostic and+//! **TinyAgents'** ([`tinyagents_harness::handoff`]): host-agnostic and//! re-exported here under their historical OpenHuman names so call sites//! and the RPC/tool surface are unchanged. See that module's docs for the//! full picture — typed sub-agents (integrations_agent in particular)@@ -34,7 +34,7 @@// itself) but are kept re-exported here for surface parity with the// pre-migration module and in case a future caller needs them directly.#[allow(unused_imports)]-pub(crate) use tinyagents::harness::handoff::{+pub(crate) use tinyagents_harness::handoff::{build_handoff_placeholder, chunk_content, clean_tool_output, CachedResult, ResultHandoffCache,HANDOFF_MAX_ENTRIES, HANDOFF_OVERSIZE_THRESHOLD_TOKENS, HANDOFF_PREVIEW_CHARS,};@@ -43,7 +43,7 @@ pub(crate) use tinyagents::harness::handoff::{/// effective oversize threshold from `OPENHUMAN_TEST_HANDOFF_THRESHOLD_TOKENS`/// when set, falling back to [`HANDOFF_OVERSIZE_THRESHOLD_TOKENS`] otherwise,/// then delegates the cache/placeholder logic to-/// [`tinyagents::harness::handoff::apply_handoff`].+/// [`tinyagents_harness::handoff::apply_handoff`].pub(crate) fn apply_handoff(cache: &ResultHandoffCache,tool_name: &str,@@ -55,7 +55,7 @@ pub(crate) fn apply_handoff(.ok().and_then(|v| v.parse::<usize>().ok()).unwrap_or(HANDOFF_OVERSIZE_THRESHOLD_TOKENS);- tinyagents::harness::handoff::apply_handoff(+ tinyagents_harness::handoff::apply_handoff(cache,tool_name,task_id,diff --git a/src/openhuman/agent/harness/subagent_runner/mod.rs b/src/openhuman/agent/harness/subagent_runner/mod.rsindex 365e2b6774..17d687ce42 100644--- a/src/openhuman/agent/harness/subagent_runner/mod.rs+++ b/src/openhuman/agent/harness/subagent_runner/mod.rs@@ -24,7 +24,7 @@//! worker-thread transcript mirroring.//!//! It **stays host-owned**. The generic contract it would map onto already-//! exists as `tinyagents::harness::host::HostCapabilities` — `ContextComposer`,+//! exists as `tinyagents_harness::host::HostCapabilities` — `ContextComposer`,//! `DefinitionRegistry`, `SecurityGate`, `ModelResolver` are exactly the phases//! named above. So the open question is not whether to relocate this pipeline//! into the crate (that would push product policy across the GPL boundary) butdiff --git a/src/openhuman/agent/harness/subagent_runner/ops/checkpoint.rs b/src/openhuman/agent/harness/subagent_runner/ops/checkpoint.rsindex 19482c25e3..7fccca1d3b 100644--- a/src/openhuman/agent/harness/subagent_runner/ops/checkpoint.rs+++ b/src/openhuman/agent/harness/subagent_runner/ops/checkpoint.rs@@ -7,8 +7,8 @@use crate::openhuman::inference::provider::UsageInfo;use std::sync::Arc;-use tinyagents::harness::message::Message;-use tinyagents::harness::model::{ChatModel, ModelRequest};+use tinyagents_harness::message::Message;+use tinyagents_harness::model::{ChatModel, ModelRequest};/// A checkpoint result. `usage`, when present, is the provider usage from the/// summary call so the caller can fold it into sub-agent token/cost accounting.diff --git a/src/openhuman/agent/harness/subagent_runner/ops/graph_part_01.rs b/src/openhuman/agent/harness/subagent_runner/ops/graph_part_01.rsindex 4b379b4067..407c7bf9cd 100644--- a/src/openhuman/agent/harness/subagent_runner/ops/graph_part_01.rs+++ b/src/openhuman/agent/harness/subagent_runner/ops/graph_part_01.rs@@ -10,7 +10,7 @@ use crate::openhuman::agent::progress::AgentProgress;use crate::openhuman::agent::tinyagents::{run_turn_via_tinyagents_shared, SubagentScope};use crate::openhuman::inference::tokenjuice::AgentTokenjuiceCompression;use crate::openhuman::tools::{Tool, ToolSpec};-use tinyagents::harness::workspace::WorkspaceDescriptor;+use tinyagents_harness::workspace::WorkspaceDescriptor;/// Cumulative usage stats gathered across a sub-agent graph run.#[derive(Debug, Clone, Default)]diff --git a/src/openhuman/agent/harness/subagent_runner/ops/graph_tests.rs b/src/openhuman/agent/harness/subagent_runner/ops/graph_tests.rsindex 230c72bb59..1282721389 100644--- a/src/openhuman/agent/harness/subagent_runner/ops/graph_tests.rs+++ b/src/openhuman/agent/harness/subagent_runner/ops/graph_tests.rs@@ -2,11 +2,11 @@ use super::*;use crate::openhuman::tools::ToolResult;use async_trait::async_trait;use std::sync::atomic::{AtomicUsize, Ordering};-use tinyagents::harness::message::{AssistantMessage, MessageDelta};-use tinyagents::harness::model::{+use tinyagents_harness::message::{AssistantMessage, MessageDelta};+use tinyagents_harness::model::{ChatModel, ModelProfile, ModelRequest, ModelResponse, ModelStream, ModelStreamItem,};-use tinyagents::harness::tool::ToolCall;+use tinyagents_harness::tool::ToolCall;fn native_tool_profile() -> &'static ModelProfile {static PROFILE: std::sync::LazyLock<ModelProfile> = std::sync::LazyLock::new(|| ModelProfile {diff --git a/src/openhuman/agent/harness/subagent_runner/ops/runner.rs b/src/openhuman/agent/harness/subagent_runner/ops/runner.rsindex f7efab9ed2..92d4d02f67 100644--- a/src/openhuman/agent/harness/subagent_runner/ops/runner.rs+++ b/src/openhuman/agent/harness/subagent_runner/ops/runner.rs@@ -46,8 +46,8 @@ use crate::openhuman::inference::provider::AGENT_TURN_MAX_OUTPUT_TOKENS;use crate::openhuman::memory::api::provider::retrieval::{FastRetrieveQuery, RetrievalResponse};use crate::openhuman::memory::source_scope::as_bus_scope;use crate::openhuman::tools::{Tool, ToolCategory, ToolSpec};-use tinyagents::harness::tool::SandboxMode as TinyagentsSandboxMode;-use tinyagents::harness::workspace::WorkspaceDescriptor;+use tinyagents_harness::tool::SandboxMode as TinyagentsSandboxMode;+use tinyagents_harness::workspace::WorkspaceDescriptor;use super::prompt::{append_artifact_offload_contract, append_subagent_role_contract, dedup_tool_specs_by_name,diff --git a/src/openhuman/agent/harness/subagent_runner/ops_tests.rs b/src/openhuman/agent/harness/subagent_runner/ops_tests.rsindex fc438a3375..268154aaf3 100644--- a/src/openhuman/agent/harness/subagent_runner/ops_tests.rs+++ b/src/openhuman/agent/harness/subagent_runner/ops_tests.rs@@ -74,11 +74,11 @@ use crate::openhuman::agent::harness::fork_context::with_parent_context;use crate::openhuman::agent::harness::run_queue::{QueueMode, QueuedMessage, RunQueue};use parking_lot::Mutex;use std::sync::Arc;-use tinyagents::harness::message::{AssistantMessage, ContentBlock, Message, MessageDelta};-use tinyagents::harness::model::{+use tinyagents_harness::message::{AssistantMessage, ContentBlock, Message, MessageDelta};+use tinyagents_harness::model::{ChatModel, ModelProfile, ModelRequest, ModelResponse, ModelStream, ModelStreamItem,};-use tinyagents::harness::tool::ToolCall;+use tinyagents_harness::tool::ToolCall;/// Mock provider whose response queue can be inspected by the test/// to verify the bytes that arrive at the model.diff --git a/src/openhuman/agent/harness/subagent_runner/types.rs b/src/openhuman/agent/harness/subagent_runner/types.rsindex aa0dfc1721..2a0bd82f69 100644--- a/src/openhuman/agent/harness/subagent_runner/types.rs+++ b/src/openhuman/agent/harness/subagent_runner/types.rs@@ -6,7 +6,7 @@use std::path::PathBuf;use std::time::Duration;use thiserror::Error;-use tinyagents::harness::workspace::WorkspaceDescriptor;+use tinyagents_harness::workspace::WorkspaceDescriptor;use crate::openhuman::agent::harness::definition::AgentTier;use crate::openhuman::agent::messages::ChatMessage;diff --git a/src/openhuman/agent/harness/tool_filter.rs b/src/openhuman/agent/harness/tool_filter.rsindex 73f05a8896..3837699cb5 100644--- a/src/openhuman/agent/harness/tool_filter.rs+++ b/src/openhuman/agent/harness/tool_filter.rs@@ -1,7 +1,7 @@//! Host adapter for the fuzzy toolkit-action ranker.//!//! The algorithm lives upstream in-//! [`tinyagents::harness::tool::select`] — ranking a large tool catalogue+//! [`tinyagents_harness::tool::select`] — ranking a large tool catalogue//! against a task prompt is not an OpenHuman concern, and a second host would//! want the same five-stage pipeline. What stays here is the one thing that is//! ours: turning a [`ConnectedIntegrationTool`] (Composio's action shape) into@@ -10,16 +10,16 @@//! The historical OpenHuman names are re-exported so the single call site in//! `subagent_runner/ops/runner.rs` keeps reading the way it did.-use tinyagents::harness::tool::SelectableTool;+use tinyagents_harness::tool::SelectableTool;use crate::openhuman::agent::context::prompt::ConnectedIntegrationTool;-pub use tinyagents::harness::tool::MIN_CONFIDENT_HITS;+pub use tinyagents_harness::tool::MIN_CONFIDENT_HITS;/// Rank `actions` against `prompt` and return indices for the top/// `max_results` matches, ordered best-first.///-/// Thin adapter over [`tinyagents::harness::tool::rank_tools_by_prompt`];+/// Thin adapter over [`tinyagents_harness::tool::rank_tools_by_prompt`];/// see that function for the ranking rules and for why a result shorter than/// [`MIN_CONFIDENT_HITS`] should be treated as no result at all.pub fn filter_actions_by_prompt(@@ -31,7 +31,7 @@ pub fn filter_actions_by_prompt(.iter().map(|a| SelectableTool::new(&a.name, &a.description)).collect();- tinyagents::harness::tool::rank_tools_by_prompt(prompt, &candidates, max_results)+ tinyagents_harness::tool::rank_tools_by_prompt(prompt, &candidates, max_results)}#[cfg(test)]diff --git a/src/openhuman/agent/harness/tool_filter_tests.rs b/src/openhuman/agent/harness/tool_filter_tests.rsindex 4492c6d6c7..7b35823175 100644--- a/src/openhuman/agent/harness/tool_filter_tests.rs+++ b/src/openhuman/agent/harness/tool_filter_tests.rs@@ -1,7 +1,7 @@//! Host-side coverage for the tool-filter adapter.//!//! The ranking algorithm itself is tested upstream in-//! `tinyagents::harness::tool::select`, against synthetic catalogues. What is+//! `tinyagents_harness::tool::select`, against synthetic catalogues. What is//! tested here is the half that stayed: the `ConnectedIntegrationTool`//! adapter, exercised against the real Composio tool-list dumps in//! `tests/fixtures/` (1000 actions across nine toolkits). Those fixtures arediff --git a/src/openhuman/agent/harness/tool_result_artifacts/mod.rs b/src/openhuman/agent/harness/tool_result_artifacts/mod.rsindex 79c93401cd..6c81256df8 100644--- a/src/openhuman/agent/harness/tool_result_artifacts/mod.rs+++ b/src/openhuman/agent/harness/tool_result_artifacts/mod.rs@@ -13,7 +13,7 @@ use crate::openhuman::agent::dispatcher::ToolExecutionResult;use crate::openhuman::memory::safety::{sanitize_text, SanitizationReport};use async_trait::async_trait;use serde_json::Value;-use tinyagents::harness::store::Store;+use tinyagents_harness::store::Store;const ARTIFACT_ROOT: &str = "artifacts/tool-results";const AGGREGATE_PREVIEW_BUDGET_BYTES: usize = 512;diff --git a/src/openhuman/agent/harness/turn_dispatch_guard.rs b/src/openhuman/agent/harness/turn_dispatch_guard.rsindex 2c9ca2a52e..891e7f3fdd 100644--- a/src/openhuman/agent/harness/turn_dispatch_guard.rs+++ b/src/openhuman/agent/harness/turn_dispatch_guard.rs@@ -39,7 +39,7 @@//! * **Serial delegation** (`spawn_subagent` → `run_subagent`) runs inline on//! the turn's task and is covered.//! * **Parallel fan-out is also covered.** `spawn_parallel_agents` drives its-//! workers through `tinyagents::graph::parallel::map_reduce`, which bounds+//! workers through `tinyagents_graph::parallel::map_reduce`, which bounds//! concurrency with `futures`' `buffer_unordered`//! (`vendor/tinyagents/src/graph/parallel/mod.rs:86`) rather than//! `tokio::spawn`. `buffer_unordered` polls every worker on the **caller's**diff --git a/src/openhuman/agent/harness/turn_subagent_usage_tests.rs b/src/openhuman/agent/harness/turn_subagent_usage_tests.rsindex 1026c8bb6d..5b79800d98 100644--- a/src/openhuman/agent/harness/turn_subagent_usage_tests.rs+++ b/src/openhuman/agent/harness/turn_subagent_usage_tests.rs@@ -32,7 +32,7 @@ async fn collects_entries_within_scope() {#[tokio::test]async fn map_reduce_fanout_preserves_scope() {- use tinyagents::graph::parallel::{map_reduce, FailurePolicy, ParallelOptions};+ use tinyagents_graph::parallel::{map_reduce, FailurePolicy, ParallelOptions};let (result, entries) = with_turn_collector(async {map_reduce(diff --git a/src/openhuman/agent/learning/linkedin_enrichment_part_01.rs b/src/openhuman/agent/learning/linkedin_enrichment_part_01.rsindex 4483ebac2b..0ca9329cdf 100644--- a/src/openhuman/agent/learning/linkedin_enrichment_part_01.rs+++ b/src/openhuman/agent/learning/linkedin_enrichment_part_01.rs@@ -330,8 +330,8 @@ Rules:\n\"[linkedin_enrichment] sending profile to LLM for summarisation");- use tinyagents::harness::message::Message;- use tinyagents::harness::model::ModelRequest;+ use tinyagents_harness::message::Message;+ use tinyagents_harness::model::ModelRequest;let summary = model_chat.invoke(&(),diff --git a/src/openhuman/agent/learning/reflection.rs b/src/openhuman/agent/learning/reflection.rsindex 329b4a4978..60f22b1ec0 100644--- a/src/openhuman/agent/learning/reflection.rs+++ b/src/openhuman/agent/learning/reflection.rs@@ -44,7 +44,7 @@ pub struct ReflectionHook {config: LearningConfig,full_config: Arc<Config>,memory: Arc<dyn Memory>,- provider: Option<Arc<dyn tinyagents::harness::model::ChatModel<()>>>,+ provider: Option<Arc<dyn tinyagents_harness::model::ChatModel<()>>>,/// Per-session reflection counts for throttling. Key is session_id (or "__global__").session_counts: Mutex<HashMap<String, usize>>,}@@ -56,11 +56,11 @@ pub struct ReflectionHook {/// user turn with no per-request overrides — the [`ChatModel`] equivalent of the/// former `simple_chat(prompt, "hint:reasoning", 0.3)`.async fn invoke_cloud_reflection(- provider: &Arc<dyn tinyagents::harness::model::ChatModel<()>>,+ provider: &Arc<dyn tinyagents_harness::model::ChatModel<()>>,prompt: &str,) -> anyhow::Result<String> {- use tinyagents::harness::message::Message;- use tinyagents::harness::model::ModelRequest;+ use tinyagents_harness::message::Message;+ use tinyagents_harness::model::ModelRequest;Ok(provider.invoke(&(),@@ -75,7 +75,7 @@ impl ReflectionHook {config: LearningConfig,full_config: Arc<Config>,memory: Arc<dyn Memory>,- provider: Option<Arc<dyn tinyagents::harness::model::ChatModel<()>>>,+ provider: Option<Arc<dyn tinyagents_harness::model::ChatModel<()>>>,) -> Self {Self {config,diff --git a/src/openhuman/agent/learning/reflection_tests.rs b/src/openhuman/agent/learning/reflection_tests.rsindex 962c34222f..78df16af27 100644--- a/src/openhuman/agent/learning/reflection_tests.rs+++ b/src/openhuman/agent/learning/reflection_tests.rs@@ -357,7 +357,7 @@ async fn on_turn_complete_dedupes_reflections_across_heuristic_and_llm_paths() {let memory_impl = Arc::new(MockMemory::default());let memory: Arc<dyn Memory> = memory_impl.clone();- let stub_model = Arc::new(tinyagents::harness::testkit::ScriptedModel::replies(vec![+ let stub_model = Arc::new(tinyagents_harness::testkit::ScriptedModel::replies(vec![r#"{"observations":[],"patterns":[],"user_preferences":[],"user_reflections":["Going forward I want concise replies"]}"#,]));@@ -535,7 +535,7 @@ async fn on_turn_complete_emits_style_candidates_from_llm_preferences() {use crate::openhuman::agent::learning::candidate::{self, FacetClass};let memory: Arc<dyn Memory> = Arc::new(MockMemory::default());- let stub_model = Arc::new(tinyagents::harness::testkit::ScriptedModel::replies(vec![+ let stub_model = Arc::new(tinyagents_harness::testkit::ScriptedModel::replies(vec![r#"{"observations":[],"patterns":[],"user_preferences":["verbosity=terse"],"user_reflections":[]}"#,]));let hook = ReflectionHook::new(diff --git a/src/openhuman/agent/message_convert.rs b/src/openhuman/agent/message_convert.rsindex 7bb369e716..e6aef2cd3a 100644--- a/src/openhuman/agent/message_convert.rs+++ b/src/openhuman/agent/message_convert.rs@@ -6,7 +6,7 @@//! - openhuman `ChatMessage` is `{ role: String, content: String }` — tool//! calls and tool-result correlation ids are not first-class fields; the//! legacy loop threads them through provider-native encoding instead.-//! - `tinyagents::harness::message::Message` is a typed enum+//! - `tinyagents_harness::message::Message` is a typed enum//! (`System`/`User`/`Assistant`/`Tool`) whose `Assistant` arm carries//! structured `tool_calls` and whose `Tool` arm carries a `tool_call_id`.//!@@ -14,10 +14,10 @@//! resulting transcript back out, so a turn can run on the `tinyagents`//! agent-loop while callers keep speaking openhuman's `ChatMessage` vocabulary.-use tinyagents::harness::message::{+use tinyagents_harness::message::{AssistantMessage, ContentBlock, ImageRef, Message, SystemMessage, ToolMessage, UserMessage,};-use tinyagents::harness::tool::ToolCall as TaToolCall;+use tinyagents_harness::tool::ToolCall as TaToolCall;use crate::openhuman::agent::messages::{ChatMessage, ConversationMessage, ToolResultMessage};diff --git a/src/openhuman/agent/messages.rs b/src/openhuman/agent/messages.rsindex a466b8ab9b..cd1b0148cb 100644--- a/src/openhuman/agent/messages.rs+++ b/src/openhuman/agent/messages.rs@@ -1,6 +1,6 @@//! Durable OpenHuman transcript records.//!-//! Runtime model calls use [`tinyagents::harness::message::Message`]. These+//! Runtime model calls use [`tinyagents_harness::message::Message`]. These//! compact records preserve the stable JSONL/thread storage contract used by//! existing installations and carry OpenHuman-only message metadata.diff --git a/src/openhuman/agent/multimodal.rs b/src/openhuman/agent/multimodal.rsindex 3923d8711a..2f7b023735 100644--- a/src/openhuman/agent/multimodal.rs+++ b/src/openhuman/agent/multimodal.rs@@ -2,7 +2,7 @@//!//! The pipeline itself — marker parsing, `data:` URI decoding, MIME detection,//! size and count limits, the rendered payload — lives in-//! [`tinyagents::harness::multimodal`]. What is left here is everything that+//! [`tinyagents_harness::multimodal`]. What is left here is everything that//! depends on *this* host rather than on any host://!//! | Kept here | Why it cannot be generic |@@ -40,7 +40,7 @@ use crate::openhuman::config::{build_runtime_proxy_client_with_timeouts, MultimodalConfig, MultimodalFileConfig,};-use tinyagents::harness::multimodal::{+use tinyagents_harness::multimodal::{self as mm,config::{FileLimits, ImageLimits},markers, mime as mm_mime,@@ -48,7 +48,7 @@ use tinyagents::harness::multimodal::{resolve::{resolve_file, resolve_image, TextExtractor},};-pub use tinyagents::harness::multimodal::{FilePayload, MultimodalError};+pub use tinyagents_harness::multimodal::{FilePayload, MultimodalError};/// Hard upper bound on how long the `tinydocs` module may spend extracting a/// PDF's text layer before the attempt is abandoned and the file degrades to adiff --git a/src/openhuman/agent/orchestration/agent_teams/graph.rs b/src/openhuman/agent/orchestration/agent_teams/graph.rsindex 23047102f2..7887ee6980 100644--- a/src/openhuman/agent/orchestration/agent_teams/graph.rs+++ b/src/openhuman/agent/orchestration/agent_teams/graph.rs@@ -31,8 +31,8 @@use std::future::Future;use std::sync::Arc;-use tinyagents::graph::export::GraphTopology;-use tinyagents::graph::{+use tinyagents_graph::export::GraphTopology;+use tinyagents_graph::{ClosureStateReducer, Command, CompiledGraph, GraphBuilder, NodeContext, NodeResult,};diff --git a/src/openhuman/agent/orchestration/agent_teams/mod.rs b/src/openhuman/agent/orchestration/agent_teams/mod.rsindex d944f4fbdc..de3ff3bc2a 100644--- a/src/openhuman/agent/orchestration/agent_teams/mod.rs+++ b/src/openhuman/agent/orchestration/agent_teams/mod.rs@@ -3,7 +3,7 @@//! A first-class, restart-survivable model for a lead agent coordinating a team//! of worker agents: teams, members, dependency-aware tasks with race-safe//! atomic claiming, and teammate messaging. All durable state lives in-//! `tinyagents::session::run_ledger` (the `agent_teams` / `agent_team_members` /+//! `tinyagents_session::run_ledger` (the `agent_teams` / `agent_team_members` ///! `agent_team_tasks` tables, plus the shared run-event log for messages),//! never in the main chat context — so a coordination session can be listed,//! inspected, and resumed.diff --git a/src/openhuman/agent/orchestration/agent_teams/ops.rs b/src/openhuman/agent/orchestration/agent_teams/ops.rsindex 1fcbb4c0f5..907d22e592 100644--- a/src/openhuman/agent/orchestration/agent_teams/ops.rs+++ b/src/openhuman/agent/orchestration/agent_teams/ops.rs@@ -1,6 +1,6 @@//! Business logic for durable agent-team coordination (#3374).//!-//! Thin orchestration over `tinyagents::session::run_ledger`: create teams + members,+//! Thin orchestration over `tinyagents_session::run_ledger`: create teams + members,//! assign dependency-aware tasks (with self/unknown/cycle validation reusing//! the same Kahn's-algorithm shape as `workflow_runs`), atomically claim tasks,//! and exchange teammate messages. Messaging rides the run-ledger event stream@@ -14,8 +14,8 @@ use serde_json::json;use uuid::Uuid;use crate::openhuman::config::Config;-use tinyagents::graph::dag::{has_cycle, DagNode};-use tinyagents::session::run_ledger::{+use tinyagents_graph::dag::{has_cycle, DagNode};+use tinyagents_session::run_ledger::{self, AgentTeam, AgentTeamListRequest, AgentTeamListResponse, AgentTeamMemberStatus,AgentTeamMemberUpsert, AgentTeamStatus, AgentTeamTask, AgentTeamTaskStatus,AgentTeamTaskUpsert, AgentTeamUpsert, ClaimOutcome, CompletionOutcome, RunEvent,@@ -393,7 +393,7 @@ fn team_view(config: &Config, team_id: &str) -> Result<TeamView> {/// introduce a cycle. The self and unknown checks stay here because they are/// scoped to the *new* task: a pre-existing task carrying a dangling edge is/// not this caller's fault and must not block the assignment. The cycle check-/// delegates to `tinyagents::graph::dag`.+/// delegates to `tinyagents_graph::dag`.fn validate_dependencies(new_task_id: &str,depends_on: &[String],@@ -422,7 +422,7 @@ fn validate_dependencies(}/// Cycle check over the task dependency graph (existing tasks plus the-/// candidate new task), delegating to `tinyagents::graph::dag::has_cycle`.+/// candidate new task), delegating to `tinyagents_graph::dag::has_cycle`.////// Edge `dep -> task` means `task` depends on `dep`. Edges pointing at unknown/// ids are ignored by the shared validator (they are rejected separately).diff --git a/src/openhuman/agent/orchestration/agent_teams/ops_tests.rs b/src/openhuman/agent/orchestration/agent_teams/ops_tests.rsindex b39137057a..58fab15eea 100644--- a/src/openhuman/agent/orchestration/agent_teams/ops_tests.rs+++ b/src/openhuman/agent/orchestration/agent_teams/ops_tests.rs@@ -81,7 +81,7 @@ fn assign_task_rejects_self_unknown_and_cycle() {// `assign_task`, which only ever creates new tasks and can never make// an existing one depend on something newer) with a synthetic fixture// list. Using ids distinct from every existing task matters here:- // `tinyagents::graph::dag::has_cycle` deliberately processes only the+ // `tinyagents_graph::dag::has_cycle` deliberately processes only the// *first* declaration of a repeated id and ignores the rest (see its// doc comment on `DagIssue::DuplicateNode`), so reusing `a.id` for the// new candidate — as this test previously did — is silently ignoreddiff --git a/src/openhuman/agent/orchestration/agent_teams/runtime.rs b/src/openhuman/agent/orchestration/agent_teams/runtime.rsindex 48695f7d84..b9b1f94ede 100644--- a/src/openhuman/agent/orchestration/agent_teams/runtime.rs+++ b/src/openhuman/agent/orchestration/agent_teams/runtime.rs@@ -35,7 +35,7 @@ use crate::openhuman::agent::orchestration::{AgentOrchestrationSession, OrchestrationTaskStatus, SpawnAgentRequest, WaitAgentOptions,};use crate::openhuman::config::Config;-use tinyagents::session::run_ledger::{+use tinyagents_session::run_ledger::{self, AgentTeamMemberStatus, AgentTeamTask, AgentTeamTaskStatus, ClaimOutcome, RunEvent,RunEventAppend, RunEventListRequest,};diff --git a/src/openhuman/agent/orchestration/agent_teams/runtime_tests.rs b/src/openhuman/agent/orchestration/agent_teams/runtime_tests.rsindex 88b232b729..52ae1dc160 100644--- a/src/openhuman/agent/orchestration/agent_teams/runtime_tests.rs+++ b/src/openhuman/agent/orchestration/agent_teams/runtime_tests.rs@@ -21,8 +21,8 @@ use crate::openhuman::agent::harness::fork_context::{with_parent_context, Parentuse crate::openhuman::config::{AgentConfig, Config};use crate::openhuman::memory::{Memory, MemoryCategory, MemoryEntry, NamespaceSummary, RecallOpts};use crate::openhuman::tools::{Tool, ToolSpec};-use tinyagents::harness::model::{ChatModel, ModelRequest, ModelResponse};-use tinyagents::session::run_ledger::{+use tinyagents_harness::model::{ChatModel, ModelRequest, ModelResponse};+use tinyagents_session::run_ledger::{self, AgentTeamMemberStatus, AgentTeamMemberUpsert, AgentTeamStatus, AgentTeamTaskStatus,AgentTeamTaskUpsert, AgentTeamUpsert,};diff --git a/src/openhuman/agent/orchestration/agent_teams/schemas.rs b/src/openhuman/agent/orchestration/agent_teams/schemas.rsindex 932aac19f1..8c83ca2303 100644--- a/src/openhuman/agent/orchestration/agent_teams/schemas.rs+++ b/src/openhuman/agent/orchestration/agent_teams/schemas.rs@@ -13,7 +13,7 @@ use crate::core::all::{ControllerFuture, RegisteredController};use crate::core::{ControllerSchema, FieldSchema, TypeSchema};use crate::openhuman::config::rpc as config_rpc;use crate::rpc::RpcOutcome;-use tinyagents::session::run_ledger::AgentTeamListRequest;+use tinyagents_session::run_ledger::AgentTeamListRequest;use super::ops::{self, NewMember};use super::runtime;diff --git a/src/openhuman/agent/orchestration/agent_teams/types.rs b/src/openhuman/agent/orchestration/agent_teams/types.rsindex e1a5cb0180..43862b974e 100644--- a/src/openhuman/agent/orchestration/agent_teams/types.rs+++ b/src/openhuman/agent/orchestration/agent_teams/types.rs@@ -1,13 +1,13 @@//! Aggregate + validation types for durable agent-team coordination (#3374).//!//! The durable row types ([`AgentTeam`], [`AgentTeamMember`], [`AgentTeamTask`],-//! [`ClaimOutcome`]) live in `tinyagents::session::run_ledger`. This module adds the+//! [`ClaimOutcome`]) live in `tinyagents_session::run_ledger`. This module adds the//! read-aggregate view returned by the controllers and the validation error//! surface used by `ops::assign_task`.use serde::Serialize;-use tinyagents::session::run_ledger::{AgentTeam, AgentTeamMember, AgentTeamTask};+use tinyagents_session::run_ledger::{AgentTeam, AgentTeamMember, AgentTeamTask};/// A team plus its members and tasks — the shape returned by `get`.#[derive(Debug, Clone, PartialEq, Serialize)]diff --git a/src/openhuman/agent/orchestration/command_center/control.rs b/src/openhuman/agent/orchestration/command_center/control.rsindex 4550ba80b7..adafac761a 100644--- a/src/openhuman/agent/orchestration/command_center/control.rs+++ b/src/openhuman/agent/orchestration/command_center/control.rs@@ -2,7 +2,7 @@//!//! The read-only projection in [`super::ops`] shows what background agent work//! is in flight; these verbs let a reviewer *act* on a single row. Each verb is-//! a durable transition on the run ledger (`tinyagents::session::run_ledger`):+//! a durable transition on the run ledger (`tinyagents_session::run_ledger`)://!//! - **stop** — cancel a non-terminal run (→ `cancelled`).//! - **retry** — re-queue a finished-with-error run (`failed` / `cancelled` /@@ -23,14 +23,14 @@//! unit-tested without a database, mirroring [`super::ops::build_view`].//!//! [`AgentOrchestrationSession`]: crate::openhuman::agent::orchestration::ops::AgentOrchestrationSession-//! [`transition_agent_run_status`]: tinyagents::session::run_ledger::transition_agent_run_status+//! [`transition_agent_run_status`]: tinyagents_session::run_ledger::transition_agent_run_statususe chrono::{DateTime, Utc};use serde_json::json;use thiserror::Error;use crate::openhuman::config::Config;-use tinyagents::session::run_ledger::{+use tinyagents_session::run_ledger::{append_run_event, get_agent_run, transition_agent_run_status, AgentRunStatus, RunEventAppend,};diff --git a/src/openhuman/agent/orchestration/command_center/control_tests.rs b/src/openhuman/agent/orchestration/command_center/control_tests.rsindex 198b7a581a..e2a40bfb8d 100644--- a/src/openhuman/agent/orchestration/command_center/control_tests.rs+++ b/src/openhuman/agent/orchestration/command_center/control_tests.rs@@ -1,7 +1,7 @@use super::*;use serde_json::json;use tempfile::TempDir;-use tinyagents::session::run_ledger::{+use tinyagents_session::run_ledger::{list_recent_run_events, upsert_agent_run, AgentRunKind, AgentRunUpsert, RunEventListRequest,};diff --git a/src/openhuman/agent/orchestration/command_center/mod.rs b/src/openhuman/agent/orchestration/command_center/mod.rsindex 8ca682166d..c7b3ee017b 100644--- a/src/openhuman/agent/orchestration/command_center/mod.rs+++ b/src/openhuman/agent/orchestration/command_center/mod.rs@@ -1,7 +1,7 @@//! Background agent command center (issue #3373).//!//! A read-only product surface over the durable run ledger-//! (`tinyagents::session::run_ledger`): it lists recent background agent runs grouped by+//! (`tinyagents_session::run_ledger`): it lists recent background agent runs grouped by//! a normalized status model (needs-input / working / completed / failed ///! stopped) so users can see what is in flight, what is blocked on them, and//! what finished. Live run state already persists to the ledger via the spawndiff --git a/src/openhuman/agent/orchestration/command_center/ops.rs b/src/openhuman/agent/orchestration/command_center/ops.rsindex fe4963d132..350a94ac8b 100644--- a/src/openhuman/agent/orchestration/command_center/ops.rs+++ b/src/openhuman/agent/orchestration/command_center/ops.rs@@ -1,7 +1,7 @@//! Read-only command-center projection over the durable run ledger.//!//! [`list_agent_work`] fetches recent background agent runs from-//! `tinyagents::session::run_ledger` and projects them into a [`CommandCenterView`]+//! `tinyagents_session::run_ledger` and projects them into a [`CommandCenterView`]//! grouped by normalized [`AgentWorkBucket`]. The projection is split so the//! pure grouping logic ([`build_view`]) is unit-testable without a database,//! while [`list_agent_work`] owns the one ledger read.@@ -10,7 +10,7 @@ use anyhow::Result;use crate::openhuman::agent::harness::definition::AgentDefinitionRegistry;use crate::openhuman::config::Config;-use tinyagents::session::run_ledger::{+use tinyagents_session::run_ledger::{list_agent_runs, AgentRun, AgentRunListRequest, AgentRunStatus,};diff --git a/src/openhuman/agent/orchestration/command_center/ops_tests.rs b/src/openhuman/agent/orchestration/command_center/ops_tests.rsindex a1d29956a3..138ca0e829 100644--- a/src/openhuman/agent/orchestration/command_center/ops_tests.rs+++ b/src/openhuman/agent/orchestration/command_center/ops_tests.rs@@ -5,7 +5,7 @@ use serde_json::json;fn run_with(id: &str, status: AgentRunStatus, updated_secs: i64) -> AgentRun {AgentRun {id: id.to_string(),- kind: tinyagents::session::run_ledger::AgentRunKind::Subagent,+ kind: tinyagents_session::run_ledger::AgentRunKind::Subagent,parent_run_id: None,parent_thread_id: Some("thread-1".to_string()),agent_id: Some("researcher".to_string()),diff --git a/src/openhuman/agent/orchestration/command_center/types.rs b/src/openhuman/agent/orchestration/command_center/types.rsindex a3ea72dc31..b3aa22db84 100644--- a/src/openhuman/agent/orchestration/command_center/types.rs+++ b/src/openhuman/agent/orchestration/command_center/types.rs@@ -1,6 +1,6 @@//! Command-center view types for the background agent surface (issue #3373).//!-//! The durable run ledger (`tinyagents::session::run_ledger`) stores fine-grained+//! The durable run ledger (`tinyagents_session::run_ledger`) stores fine-grained//! `AgentRunStatus` values for every background agent run. The background//! agent command center groups that work into five user-facing buckets so a//! reviewer can see, at a glance, what needs input, what is still working, and@@ -57,7 +57,7 @@ impl AgentWorkBucket {/// Kept deliberately lean — transcripts and checkpoints stay in the ledger //// thread stores and are fetched on demand when a user opens a row.///-/// [`AgentRun`]: tinyagents::session::run_ledger::AgentRun+/// [`AgentRun`]: tinyagents_session::run_ledger::AgentRun#[derive(Debug, Clone, PartialEq, Serialize)]#[serde(rename_all = "camelCase")]pub struct AgentWorkRow {diff --git a/src/openhuman/agent/orchestration/delegation.rs b/src/openhuman/agent/orchestration/delegation.rsindex 9b2006448a..c8d2ed15ad 100644--- a/src/openhuman/agent/orchestration/delegation.rs+++ b/src/openhuman/agent/orchestration/delegation.rs@@ -8,7 +8,7 @@//! through [`run_subagent`] (the same dispatch path `spawn_subagent` uses), and//! the run is made durable/resumable by checkpointing the typed//! [`DelegationState`] through the crate-//! [`SqliteCheckpointer`](tinyagents::graph::SqliteCheckpointer) at a dedicated+//! [`SqliteCheckpointer`](tinyagents_graph::SqliteCheckpointer) at a dedicated//! `graph_checkpoints.db` under the workspace.//!//! Layering: the delegation *graph* lives in the `tinyagents` adapter seam; this@@ -26,9 +26,9 @@ use crate::openhuman::agent::tinyagents::delegation::{DelegationState,};use crate::openhuman::config::Config;-use tinyagents::graph::checkpoint::Checkpointer;-use tinyagents::graph::SqliteCheckpointer;-use tinyagents::harness::workspace::WorkspaceDescriptor;+use tinyagents_graph::checkpoint::Checkpointer;+use tinyagents_graph::SqliteCheckpointer;+use tinyagents_harness::workspace::WorkspaceDescriptor;use tinyagents::CancellationToken;const LOG_TARGET: &str = "agent_orchestration::delegation";diff --git a/src/openhuman/agent/orchestration/mod.rs b/src/openhuman/agent/orchestration/mod.rsindex c30d9d1b4b..7fe6f5ddab 100644--- a/src/openhuman/agent/orchestration/mod.rs+++ b/src/openhuman/agent/orchestration/mod.rs@@ -9,7 +9,7 @@//! phase DAGs on a graph engine, [`agent_teams`] runs members through a//! conditional-routing graph, [`delegation`] wires the durable//! plan→execute⇄review→finalize graph, and parallel fanout goes through-//! `tinyagents::graph::parallel::map_reduce`. What stays here is the product+//! `tinyagents_graph::parallel::map_reduce`. What stays here is the product//! layer: durable SQL/JSON run ledgers, validation, cancellation semantics,//! compatibility events, and JSON-RPC/tool response formatting.//! [`running_subagents`] mirrors detached-sub-agent lifecycle into adiff --git a/src/openhuman/agent/orchestration/ops_tests.rs b/src/openhuman/agent/orchestration/ops_tests.rsindex ce8ff254cf..fa1784500c 100644--- a/src/openhuman/agent/orchestration/ops_tests.rs+++ b/src/openhuman/agent/orchestration/ops_tests.rs@@ -11,7 +11,7 @@ use std::sync::{atomic::{AtomicUsize, Ordering},Arc,};-use tinyagents::harness::model::{ChatModel, ModelProfile, ModelRequest, ModelResponse};+use tinyagents_harness::model::{ChatModel, ModelProfile, ModelRequest, ModelResponse};use tokio::time::Duration;#[derive(Default)]diff --git a/src/openhuman/agent/orchestration/run_ledger_finalize.rs b/src/openhuman/agent/orchestration/run_ledger_finalize.rsindex 304a1c75b5..7be254e89a 100644--- a/src/openhuman/agent/orchestration/run_ledger_finalize.rs+++ b/src/openhuman/agent/orchestration/run_ledger_finalize.rs@@ -32,7 +32,7 @@ use async_trait::async_trait;use crate::core::bus::BUS;use crate::core::events::DomainEvent;use crate::openhuman::config::Config;-use tinyagents::session::run_ledger::{transition_agent_run_status, AgentRunStatus};+use tinyagents_session::run_ledger::{transition_agent_run_status, AgentRunStatus};use tinybus::EventHandler;const LOG_PREFIX: &str = "[run_ledger][finalize]";diff --git a/src/openhuman/agent/orchestration/run_ledger_finalize_tests.rs b/src/openhuman/agent/orchestration/run_ledger_finalize_tests.rsindex daa311358e..545d7726dc 100644--- a/src/openhuman/agent/orchestration/run_ledger_finalize_tests.rs+++ b/src/openhuman/agent/orchestration/run_ledger_finalize_tests.rs@@ -5,7 +5,7 @@ use super::*;use serde_json::json;use tempfile::TempDir;-use tinyagents::session::run_ledger::{+use tinyagents_session::run_ledger::{get_agent_run, upsert_agent_run, AgentRunKind, AgentRunStatus, AgentRunUpsert,};use tinybus::EventHandler;diff --git a/src/openhuman/agent/orchestration/running_subagents_part_01.rs b/src/openhuman/agent/orchestration/running_subagents_part_01.rsindex 5afe912671..162ac7815b 100644--- a/src/openhuman/agent/orchestration/running_subagents_part_01.rs+++ b/src/openhuman/agent/orchestration/running_subagents_part_01.rs@@ -14,8 +14,8 @@ use crate::openhuman::agent::tinyagents::orchestration::{OrchestrationTaskResult, OrchestrationTaskSpec, OrchestrationTaskStatus, SteeringCommand,SteeringCommandKind, TaskStore, TaskStoreRegistry,};-use tinyagents::harness::ids::TaskId;-use tinyagents::harness::message::Message as TaMessage;+use tinyagents_harness::ids::TaskId;+use tinyagents_harness::message::Message as TaMessage;use tinyagents::CancellationToken;/// Where a workspace's detached-task ledger lives.diff --git a/src/openhuman/agent/orchestration/running_subagents_part_02.rs b/src/openhuman/agent/orchestration/running_subagents_part_02.rsindex 89fc3b9178..69b1e394f6 100644--- a/src/openhuman/agent/orchestration/running_subagents_part_02.rs+++ b/src/openhuman/agent/orchestration/running_subagents_part_02.rs@@ -226,7 +226,7 @@ fn steering_command_for_mode(mode: QueueMode, text: String) -> Option<SteeringCo}fn send_registered_steering(- handle: &tinyagents::harness::steering::SteeringHandle,+ handle: &tinyagents_harness::steering::SteeringHandle,text: String,mode: QueueMode,) -> bool {diff --git a/src/openhuman/agent/orchestration/spawn_parallel_graph.rs b/src/openhuman/agent/orchestration/spawn_parallel_graph.rsindex 835a9923ca..babd14f238 100644--- a/src/openhuman/agent/orchestration/spawn_parallel_graph.rs+++ b/src/openhuman/agent/orchestration/spawn_parallel_graph.rs@@ -10,7 +10,7 @@//! an OpenHuman decision — it reads sandbox mode, tool permissions and the//! isolation request. Whether the claims of a whole batch can be granted//! together is not, and goes through-//! [`plan_shared_workspace_dispatch`](tinyagents::graph::parallel::plan_shared_workspace_dispatch).+//! [`plan_shared_workspace_dispatch`](tinyagents_graph::parallel::plan_shared_workspace_dispatch).//! The rejection sentences stay here, which is why the crate reports conflicts//! as data.diff --git a/src/openhuman/agent/orchestration/spawn_parallel_graph_part_01.rs b/src/openhuman/agent/orchestration/spawn_parallel_graph_part_01.rsindex f3d3b20e19..28906d1c4d 100644--- a/src/openhuman/agent/orchestration/spawn_parallel_graph_part_01.rs+++ b/src/openhuman/agent/orchestration/spawn_parallel_graph_part_01.rs@@ -4,16 +4,16 @@ use std::path::{Path, PathBuf};use std::pin::Pin;use std::sync::Arc;-use tinyagents::graph::export::GraphTopology;-use tinyagents::graph::parallel::{+use tinyagents_graph::export::GraphTopology;+use tinyagents_graph::parallel::{map_reduce, parse_relative_claim_paths, plan_shared_workspace_dispatch, ClaimConflict,ClaimPathError, DispatchMode, FailurePolicy, ParallelOptions, WorkspaceClaim,};-use tinyagents::graph::{+use tinyagents_graph::{ClosureStateReducer, CompiledGraph, GraphBuilder, NodeContext, NodeResult,};-use tinyagents::harness::retry::RetryPolicy;-use tinyagents::harness::workspace::{WorkspaceDescriptor, WorkspaceIsolation};+use tinyagents_harness::retry::RetryPolicy;+use tinyagents_harness::workspace::{WorkspaceDescriptor, WorkspaceIsolation};use tinyagents::{CancellationToken, TinyAgentsError};use crate::openhuman::agent::file_state;@@ -312,9 +312,9 @@ async fn create_spawn_parallel_worktree(ParallelWorktreeRequest::Isolated { base_ref } => match action_root {Some(repo_root) => {let sandbox = match definition.sandbox_mode {- SandboxMode::Sandboxed => tinyagents::harness::tool::SandboxMode::Required,+ SandboxMode::Sandboxed => tinyagents_harness::tool::SandboxMode::Required,SandboxMode::None | SandboxMode::ReadOnly => {- tinyagents::harness::tool::SandboxMode::Inherit+ tinyagents_harness::tool::SandboxMode::Inherit}};let isolation = worktree::OpenHumanWorktreeIsolation::new(repo_root)diff --git a/src/openhuman/agent/orchestration/tools/agent_prepare_context_part_01.rs b/src/openhuman/agent/orchestration/tools/agent_prepare_context_part_01.rsindex e298fecb72..0933fc9337 100644--- a/src/openhuman/agent/orchestration/tools/agent_prepare_context_part_01.rs+++ b/src/openhuman/agent/orchestration/tools/agent_prepare_context_part_01.rs@@ -13,7 +13,7 @@ use crate::openhuman::tools::traits::{PermissionLevel, Tool, ToolCallOptions, Touse async_trait::async_trait;use serde_json::json;use std::fmt::Write as _;-use tinyagents::harness::workspace::WorkspaceDescriptor;+use tinyagents_harness::workspace::WorkspaceDescriptor;use tinytools::ToolRunContext;/// The sub-agent archetype this tool drives.diff --git a/src/openhuman/agent/orchestration/tools/close_subagent_tests.rs b/src/openhuman/agent/orchestration/tools/close_subagent_tests.rsindex 0d9377a53c..0e32823caa 100644--- a/src/openhuman/agent/orchestration/tools/close_subagent_tests.rs+++ b/src/openhuman/agent/orchestration/tools/close_subagent_tests.rs@@ -102,8 +102,8 @@ fn selector(parent_thread_id: &str) -> subagent_sessions::SubagentSessionSelecto}fn parent_context(workspace_dir: &Path) -> ParentExecutionContext {- let model: Arc<dyn tinyagents::harness::model::ChatModel<()>> =- Arc::new(tinyagents::harness::testkit::ScriptedModel::new(Vec::new()));+ let model: Arc<dyn tinyagents_harness::model::ChatModel<()>> =+ Arc::new(tinyagents_harness::testkit::ScriptedModel::new(Vec::new()));ParentExecutionContext {workspace_descriptor: None,agent_definition_id: "orchestrator".into(),diff --git a/src/openhuman/agent/orchestration/tools/spawn_async_subagent_tests.rs b/src/openhuman/agent/orchestration/tools/spawn_async_subagent_tests.rsindex 0e76ed605b..d26a3a09ca 100644--- a/src/openhuman/agent/orchestration/tools/spawn_async_subagent_tests.rs+++ b/src/openhuman/agent/orchestration/tools/spawn_async_subagent_tests.rs@@ -320,7 +320,7 @@ fn parent_context(workspace_dir: &Path) -> ParentExecutionContext {agent_definition_id: "orchestrator".into(),allowed_subagent_ids: HashSet::from(["researcher".to_string()]),turn_model_source: crate::openhuman::agent::tinyagents::TurnModelSource::from_model(- Arc::new(tinyagents::harness::testkit::ScriptedModel::replies(vec![+ Arc::new(tinyagents_harness::testkit::ScriptedModel::replies(vec!["done",])),),diff --git a/src/openhuman/agent/orchestration/tools/spawn_parallel_agents_tests.rs b/src/openhuman/agent/orchestration/tools/spawn_parallel_agents_tests.rsindex 7dc58e4ebf..0dc3392af0 100644--- a/src/openhuman/agent/orchestration/tools/spawn_parallel_agents_tests.rs+++ b/src/openhuman/agent/orchestration/tools/spawn_parallel_agents_tests.rs@@ -24,9 +24,9 @@ use std::sync::{atomic::{AtomicUsize, Ordering},Arc,};-use tinyagents::harness::message::{AssistantMessage, Message};-use tinyagents::harness::model::{ChatModel, ModelProfile, ModelRequest, ModelResponse};-use tinyagents::harness::tool::ToolCall;+use tinyagents_harness::message::{AssistantMessage, Message};+use tinyagents_harness::model::{ChatModel, ModelProfile, ModelRequest, ModelResponse};+use tinyagents_harness::tool::ToolCall;use tokio::time::{sleep, timeout, Duration};const PARENT_PROMPT_CANARY: &str = "parallel-fanout-e2e-canary";@@ -107,8 +107,8 @@ fn parent_context(max_parallel_tools: usize) -> ParentExecutionContext {max_parallel_tools,..Default::default()};- let model: Arc<dyn tinyagents::harness::model::ChatModel<()>> =- Arc::new(tinyagents::harness::testkit::ScriptedModel::replies(vec![+ let model: Arc<dyn tinyagents_harness::model::ChatModel<()>> =+ Arc::new(tinyagents_harness::testkit::ScriptedModel::replies(vec!["ok",]));ParentExecutionContext {diff --git a/src/openhuman/agent/orchestration/tools/spawn_worker_thread_tests.rs b/src/openhuman/agent/orchestration/tools/spawn_worker_thread_tests.rsindex 09c7613fc6..43d5daf230 100644--- a/src/openhuman/agent/orchestration/tools/spawn_worker_thread_tests.rs+++ b/src/openhuman/agent/orchestration/tools/spawn_worker_thread_tests.rs@@ -62,8 +62,8 @@ impl crate::openhuman::memory::Memory for MockMemory {}fn test_parent_ctx(workspace_dir: PathBuf) -> ParentExecutionContext {- let model: Arc<dyn tinyagents::harness::model::ChatModel<()>> =- Arc::new(tinyagents::harness::testkit::ScriptedModel::replies(vec![+ let model: Arc<dyn tinyagents_harness::model::ChatModel<()>> =+ Arc::new(tinyagents_harness::testkit::ScriptedModel::replies(vec!["done",]));ParentExecutionContext {diff --git a/src/openhuman/agent/orchestration/tools/tools_e2e_tests.rs b/src/openhuman/agent/orchestration/tools/tools_e2e_tests.rsindex 75270fb3dc..b225d250af 100644--- a/src/openhuman/agent/orchestration/tools/tools_e2e_tests.rs+++ b/src/openhuman/agent/orchestration/tools/tools_e2e_tests.rs@@ -12,8 +12,8 @@ use parking_lot::Mutex;use serde_json::json;use std::path::Path;use std::sync::Arc;-use tinyagents::harness::message::Message;-use tinyagents::harness::model::{ChatModel, ModelProfile, ModelRequest, ModelResponse};+use tinyagents_harness::message::Message;+use tinyagents_harness::model::{ChatModel, ModelProfile, ModelRequest, ModelResponse};use tinycortex::memory::conversations;const SPAWN_SUBAGENT_CANARY: &str = "tool-e2e-spawn-subagent-canary";diff --git a/src/openhuman/agent/orchestration/types.rs b/src/openhuman/agent/orchestration/types.rsindex df432f2f86..a6635ce1a7 100644--- a/src/openhuman/agent/orchestration/types.rs+++ b/src/openhuman/agent/orchestration/types.rs@@ -9,7 +9,7 @@use serde::{Deserialize, Serialize};use std::collections::BTreeMap;-pub use tinyagents::graph::orchestration::OrchestrationTaskStatus;+pub use tinyagents_graph::orchestration::OrchestrationTaskStatus;/// Request to spawn a child agent from the current parent agent turn.#[derive(Debug, Clone, Default, Serialize, Deserialize)]diff --git a/src/openhuman/agent/orchestration/workflow_runs/engine_part_01.rs b/src/openhuman/agent/orchestration/workflow_runs/engine_part_01.rsindex f705d41acd..e0da13abb2 100644--- a/src/openhuman/agent/orchestration/workflow_runs/engine_part_01.rs+++ b/src/openhuman/agent/orchestration/workflow_runs/engine_part_01.rs@@ -4,12 +4,12 @@ use std::sync::{Arc, Mutex, OnceLock};use anyhow::{anyhow, Context, Result};use serde_json::{json, Value};-use tinyagents::graph::parallel::{map_reduce, FailurePolicy, ParallelOptions};+use tinyagents_graph::parallel::{map_reduce, FailurePolicy, ParallelOptions};use tinyagents::{CancellationToken, TinyAgentsError};use crate::openhuman::agent::orchestration::parent_context::with_root_parent;use crate::openhuman::config::Config;-use tinyagents::session::run_ledger::{+use tinyagents_session::run_ledger::{get_workflow_run, upsert_workflow_run, WorkflowRun, WorkflowRunStatus, WorkflowRunUpsert,};diff --git a/src/openhuman/agent/orchestration/workflow_runs/engine_tests.rs b/src/openhuman/agent/orchestration/workflow_runs/engine_tests.rsindex 389b39b6c1..8752dc65cd 100644--- a/src/openhuman/agent/orchestration/workflow_runs/engine_tests.rs+++ b/src/openhuman/agent/orchestration/workflow_runs/engine_tests.rs@@ -30,8 +30,8 @@ use crate::openhuman::agent::harness::fork_context::{with_parent_context, Parentuse crate::openhuman::config::{AgentConfig, Config};use crate::openhuman::memory::{Memory, MemoryCategory, MemoryEntry, NamespaceSummary, RecallOpts};use crate::openhuman::tools::{Tool, ToolSpec};-use tinyagents::harness::model::{ChatModel, ModelProfile, ModelRequest, ModelResponse};-use tinyagents::session::run_ledger::{get_workflow_run, upsert_workflow_run, WorkflowRunUpsert};+use tinyagents_harness::model::{ChatModel, ModelProfile, ModelRequest, ModelResponse};+use tinyagents_session::run_ledger::{get_workflow_run, upsert_workflow_run, WorkflowRunUpsert};use super::super::types::{WorkflowDefinition, WorkflowPhase, WorkflowSafetyTier};diff --git a/src/openhuman/agent/orchestration/workflow_runs/graph.rs b/src/openhuman/agent/orchestration/workflow_runs/graph.rsindex 6c7e3946d3..4c5f88c1e9 100644--- a/src/openhuman/agent/orchestration/workflow_runs/graph.rs+++ b/src/openhuman/agent/orchestration/workflow_runs/graph.rs@@ -19,14 +19,14 @@ use std::sync::Arc;use anyhow::{anyhow, Result};use serde_json::Value;-use tinyagents::graph::export::GraphTopology;-use tinyagents::graph::recursion::RecursionPolicy;-use tinyagents::graph::{+use tinyagents_graph::export::GraphTopology;+use tinyagents_graph::recursion::RecursionPolicy;+use tinyagents_graph::{ClosureStateReducer, Command, CompiledGraph, GraphBuilder, NodeContext, NodeResult,};use crate::openhuman::config::Config;-use tinyagents::session::run_ledger::get_workflow_run;+use tinyagents_session::run_ledger::get_workflow_run;use super::engine::{execute_phase, select_next_phase, PhaseExecOutcome, PhaseSelection};use super::types::{WorkflowDefinition, WorkflowPhase};diff --git a/src/openhuman/agent/orchestration/workflow_runs/mod.rs b/src/openhuman/agent/orchestration/workflow_runs/mod.rsindex 22974e5cb9..3de9d6eadf 100644--- a/src/openhuman/agent/orchestration/workflow_runs/mod.rs+++ b/src/openhuman/agent/orchestration/workflow_runs/mod.rs@@ -2,7 +2,7 @@//!//! A first-class, repeatable multi-agent orchestration model: a declarative//! [`WorkflowDefinition`] (phase graph) coordinates many child agents, and each-//! run's durable state lives in `tinyagents::session::run_ledger` (the `workflow_runs`+//! run's durable state lives in `tinyagents_session::run_ledger` (the `workflow_runs`//! table) rather than the main chat context, so runs can be listed, inspected,//! and — once the engine lands — stopped and resumed.//!diff --git a/src/openhuman/agent/orchestration/workflow_runs/ops.rs b/src/openhuman/agent/orchestration/workflow_runs/ops.rsindex 47ba5c94cc..c2a3a5f9fc 100644--- a/src/openhuman/agent/orchestration/workflow_runs/ops.rs+++ b/src/openhuman/agent/orchestration/workflow_runs/ops.rs@@ -2,15 +2,15 @@//!//! PR1 scope: expose the builtin [`WorkflowDefinition`]s, validate them//! (structure + agent existence), and read durable [`WorkflowRun`]s from-//! `tinyagents::session::run_ledger`. No execution engine yet — starting / stopping /+//! `tinyagents_session::run_ledger`. No execution engine yet — starting / stopping ///! resuming runs lands in a follow-up PR.use anyhow::Result;use crate::openhuman::agent::harness::definition::AgentDefinitionRegistry;use crate::openhuman::config::Config;-use tinyagents::graph::dag::{validate_dag, DagIssue, DagNode};-use tinyagents::session::run_ledger::{+use tinyagents_graph::dag::{validate_dag, DagIssue, DagNode};+use tinyagents_session::run_ledger::{get_workflow_run, list_workflow_runs, WorkflowRun, WorkflowRunListRequest,WorkflowRunListResponse,};@@ -108,7 +108,7 @@ pub fn validate_structure(def: &WorkflowDefinition) -> Vec<DefinitionError> {}// Unique names, landed `depends_on` edges and acyclicity are the shared- // dependency-DAG question; `tinyagents::graph::dag` owns the algorithm and+ // dependency-DAG question; `tinyagents_graph::dag` owns the algorithm and// this maps its structural issues back onto the host's error vocabulary.// A self-dependency arrives as `DagIssue::Cycle`, which is what the// hand-rolled Kahn pass here reported too.diff --git a/src/openhuman/agent/orchestration/workflow_runs/schemas.rs b/src/openhuman/agent/orchestration/workflow_runs/schemas.rsindex 1aefdd9cad..18aec860c0 100644--- a/src/openhuman/agent/orchestration/workflow_runs/schemas.rs+++ b/src/openhuman/agent/orchestration/workflow_runs/schemas.rs@@ -11,7 +11,7 @@ use crate::core::all::{ControllerFuture, RegisteredController};use crate::core::{ControllerSchema, FieldSchema, TypeSchema};use crate::openhuman::config::rpc as config_rpc;use crate::rpc::RpcOutcome;-use tinyagents::session::run_ledger::WorkflowRunListRequest;+use tinyagents_session::run_ledger::WorkflowRunListRequest;/// Controller schemas exposed by the workflow-runs module.pub fn all_controller_schemas() -> Vec<ControllerSchema> {diff --git a/src/openhuman/agent/orchestration/workflow_runs/types.rs b/src/openhuman/agent/orchestration/workflow_runs/types.rsindex b8bc7d93bc..337503f5c4 100644--- a/src/openhuman/agent/orchestration/workflow_runs/types.rs+++ b/src/openhuman/agent/orchestration/workflow_runs/types.rs@@ -8,7 +8,7 @@//! execution.//!//! This PR ships the definition model + the read surface (list definitions,-//! list/get durable runs from `tinyagents::session::run_ledger`). The live execution+//! list/get durable runs from `tinyagents_session::run_ledger`). The live execution//! engine is deferred to a follow-up.use serde::Serialize;diff --git a/src/openhuman/agent/orchestration/worktree.rs b/src/openhuman/agent/orchestration/worktree.rsindex 192bb27bbb..cb16734f13 100644--- a/src/openhuman/agent/orchestration/worktree.rs+++ b/src/openhuman/agent/orchestration/worktree.rs@@ -10,7 +10,7 @@//! ## Where the implementation lives//!//! The git plumbing itself is **TinyAgents'**-//! ([`tinyagents::harness::workspace::git`]): worktree create/list/status/diff/+//! ([`tinyagents_harness::workspace::git`]): worktree create/list/status/diff///! remove, repo-root validation, run-id sanitizing, and cross-worker overlap//! detection are host-agnostic and are re-exported here under their historical//! OpenHuman names so call sites and the RPC surface are unchanged.@@ -39,8 +39,8 @@use std::path::{Path, PathBuf};-use tinyagents::harness::tool::SandboxMode;-use tinyagents::harness::workspace::{+use tinyagents_harness::tool::SandboxMode;+use tinyagents_harness::workspace::{GitWorktreeIsolation, WorkspaceDescriptor, WorkspaceIsolation,};@@ -53,7 +53,7 @@ use crate::core::events::DomainEvent;// change. `WorktreeStatus` in particular is serialized straight to the desktop// UI; it is field- and `serde`-identical to the crate type, pinned by// `worktree_status_serializes_with_stable_camel_case_keys`.-pub use tinyagents::harness::workspace::{+pub use tinyagents_harness::workspace::{create_git_worktree as create, detect_worktree_overlaps as detect_overlaps,git_worktree_diff_summary as diff_summary, git_worktree_status as status,list_git_worktrees as list, remove_git_worktree as remove, GitWorktreeBaseRef as BaseRef,@@ -206,7 +206,7 @@ impl WorkspaceIsolation for OpenHumanWorktreeIsolation {/// observability + fail-closed signal keyed on the descriptor the isolated run/// carries.///-/// [`EventSink`]: tinyagents::harness::events::EventSink+/// [`EventSink`]: tinyagents_harness::events::EventSinkpub fn enforce_workspace_path(descriptor: &WorkspaceDescriptor,path: &Path,diff --git a/src/openhuman/agent/pformat.rs b/src/openhuman/agent/pformat.rsindex ee2c20f5f6..1d5dd8cd5d 100644--- a/src/openhuman/agent/pformat.rs+++ b/src/openhuman/agent/pformat.rs@@ -1,5 +1,5 @@//! P-format tool calls — OpenHuman's adapter over-//! [`tinyagents::harness::tool_calling::pformat`].+//! [`tinyagents_harness::tool_calling::pformat`].//!//! The format itself — the positional `name[arg|arg]` grammar, the schema-driven//! argument reconstruction, the type coercion, the escape handling — lives in the@@ -20,7 +20,7 @@use crate::openhuman::tools::Tool;-pub use tinyagents::harness::tool_calling::{+pub use tinyagents_harness::tool_calling::{parse_call, render_signature, render_signature_from_schema, PFormatParamType, PFormatRegistry,PFormatToolParams,};@@ -37,7 +37,7 @@ pub use tinyagents::harness::tool_calling::{/// exist. A registry built from anything other than the agent's real tools/// would widen that.pub fn build_registry(tools: &[Box<dyn Tool>]) -> PFormatRegistry {- tinyagents::harness::tool_calling::build_registry(+ tinyagents_harness::tool_calling::build_registry(tools.iter().map(|t| (t.name(), t.parameters_schema())),)}diff --git a/src/openhuman/agent/profiles/guard.rs b/src/openhuman/agent/profiles/guard.rsindex 899c55120e..db3afbae10 100644--- a/src/openhuman/agent/profiles/guard.rs+++ b/src/openhuman/agent/profiles/guard.rs@@ -4,7 +4,7 @@//!//! 1. **Identity plumbing (1a).** When a dedicated-workspace profile is active,//! its id is carried to the tool layer inside the-//! [`WorkspaceDescriptor`](tinyagents::harness::workspace::WorkspaceDescriptor)'s+//! [`WorkspaceDescriptor`](tinyagents_harness::workspace::WorkspaceDescriptor)'s//! `policy_id` field as `openhuman.profile:<id>`. [`workspace_policy_id`] and//! [`profile_id_from_policy_id`] are the single encode/decode pair so the//! session builder and the tool gates can never drift on the wire format.diff --git a/src/openhuman/agent/progress_tracing.rs b/src/openhuman/agent/progress_tracing.rsindex 54847bdee6..c210c52e74 100644--- a/src/openhuman/agent/progress_tracing.rs+++ b/src/openhuman/agent/progress_tracing.rs@@ -556,8 +556,8 @@ pub(crate) async fn export_run_trace(config: &Config, spans: &[TraceSpan]) {pub(crate) async fn export_run_trace_from_journal(config: &Config,trace_ctx: &TraceContext,- observations: &[tinyagents::harness::observability::AgentObservation],- run_telemetry: Option<&tinyagents::session::run_ledger::RunTelemetry>,+ observations: &[tinyagents_harness::observability::AgentObservation],+ run_telemetry: Option<&tinyagents_session::run_ledger::RunTelemetry>,live_spans: &[TraceSpan],) {if observations.is_empty() && live_spans.is_empty() {diff --git a/src/openhuman/agent/progress_tracing/journal_projection.rs b/src/openhuman/agent/progress_tracing/journal_projection.rsindex 20d278839d..6a1a3f37de 100644--- a/src/openhuman/agent/progress_tracing/journal_projection.rs+++ b/src/openhuman/agent/progress_tracing/journal_projection.rs@@ -22,8 +22,8 @@//! subagent spans carry lifecycle/timing and child tool/model structure but//! empty delegated prompt/final output until a richer journal event exists.-use tinyagents::harness::events::AgentEvent;-use tinyagents::harness::observability::AgentObservation;+use tinyagents_harness::events::AgentEvent;+use tinyagents_harness::observability::AgentObservation;use super::{SpanCollector, TraceContext, TraceSpan};use crate::openhuman::agent::progress::AgentProgress;diff --git a/src/openhuman/agent/progress_tracing/journal_projection_tests.rs b/src/openhuman/agent/progress_tracing/journal_projection_tests.rsindex 0c30ed24de..577e9b2ffe 100644--- a/src/openhuman/agent/progress_tracing/journal_projection_tests.rs+++ b/src/openhuman/agent/progress_tracing/journal_projection_tests.rs@@ -1,9 +1,9 @@use super::journal_projection::spans_from_observations;use super::{SpanKind, SpanStatus, TraceContext};-use tinyagents::harness::events::AgentEvent;-use tinyagents::harness::ids::{CallId, EventId, RunId};-use tinyagents::harness::observability::AgentObservation;-use tinyagents::harness::usage::Usage;+use tinyagents_harness::events::AgentEvent;+use tinyagents_harness::ids::{CallId, EventId, RunId};+use tinyagents_harness::observability::AgentObservation;+use tinyagents_harness::usage::Usage;/// Wraps an event as a journalled observation stamped at `ts`.fn obs(offset: u64, ts: u64, event: AgentEvent) -> AgentObservation {diff --git a/src/openhuman/agent/progress_tracing/langfuse_part_01.rs b/src/openhuman/agent/progress_tracing/langfuse_part_01.rsindex 7e6e6d80a6..a49a8b91f9 100644--- a/src/openhuman/agent/progress_tracing/langfuse_part_01.rs+++ b/src/openhuman/agent/progress_tracing/langfuse_part_01.rs@@ -2,14 +2,14 @@ use std::borrow::Cow;use std::time::Duration;use serde_json::{json, Map, Value};-use tinyagents::harness::events::AgentEvent;-use tinyagents::harness::observability::{AgentObservation, LangfuseClient, LangfuseTraceConfig};+use tinyagents_harness::events::AgentEvent;+use tinyagents_harness::observability::{AgentObservation, LangfuseClient, LangfuseTraceConfig};use crate::api::config::effective_backend_api_url;use crate::api::jwt::bearer_authorization_value;use crate::openhuman::config::Config;use crate::openhuman::security::credentials::session_support::require_live_session_token;-use tinyagents::session::run_ledger::RunTelemetry;+use tinyagents_session::run_ledger::RunTelemetry;use super::{SpanStatus, TraceContext, TraceSpan};diff --git a/src/openhuman/agent/progress_tracing/langfuse_tests.rs b/src/openhuman/agent/progress_tracing/langfuse_tests.rsindex fac13548cc..f083f5b6c8 100644--- a/src/openhuman/agent/progress_tracing/langfuse_tests.rs+++ b/src/openhuman/agent/progress_tracing/langfuse_tests.rs@@ -2,8 +2,8 @@ use super::*;use std::collections::BTreeMap;use crate::openhuman::agent::progress_tracing::SpanKind;-use tinyagents::harness::ids::{CallId, EventId, RunId};-use tinyagents::harness::usage::Usage;+use tinyagents_harness::ids::{CallId, EventId, RunId};+use tinyagents_harness::usage::Usage;fn span(trace: &str,diff --git a/src/openhuman/agent/prompts/sections.rs b/src/openhuman/agent/prompts/sections.rsindex e66a8825b6..deb37272ba 100644--- a/src/openhuman/agent/prompts/sections.rs+++ b/src/openhuman/agent/prompts/sections.rs@@ -12,8 +12,8 @@ use super::render_helpers::{use super::types::*;use anyhow::Result;use std::fmt::Write;-use tinyagents::harness::tool::ToolSchema;-use tinyagents::harness::tool_calling::dialect::render_pformat_catalogue;+use tinyagents_harness::tool::ToolSchema;+use tinyagents_harness::tool_calling::dialect::render_pformat_catalogue;// ─────────────────────────────────────────────────────────────────────────────// Special sections (archetype, dynamic, reflection)diff --git a/src/openhuman/agent/registry/agents/researcher/graph.rs b/src/openhuman/agent/registry/agents/researcher/graph.rsindex c6b49b4bf1..25f0efe55e 100644--- a/src/openhuman/agent/registry/agents/researcher/graph.rs+++ b/src/openhuman/agent/registry/agents/researcher/graph.rs@@ -10,8 +10,8 @@ use std::future::Future;use std::pin::Pin;use std::sync::Arc;-use tinyagents::graph::export::GraphTopology;-use tinyagents::graph::{+use tinyagents_graph::export::GraphTopology;+use tinyagents_graph::{ClosureStateReducer, CompiledGraph, GraphBuilder, NodeContext, NodeResult,};use tokio::sync::Mutex;diff --git a/src/openhuman/agent/schemas.rs b/src/openhuman/agent/schemas.rsindex 4bf26a094c..0aceed067c 100644--- a/src/openhuman/agent/schemas.rs+++ b/src/openhuman/agent/schemas.rs@@ -553,7 +553,7 @@ fn local_catalog_models_from_config(fn handle_registry_snapshot(_params: Map<String, Value>) -> ControllerFuture {Box::pin(async {- use tinyagents::registry::{ComponentKind, ComponentMetadata, RegistrySnapshot};+ use tinyagents_registry::{ComponentKind, ComponentMetadata, RegistrySnapshot};let mut components: Vec<ComponentMetadata> = Vec::new();diff --git a/src/openhuman/agent/session_db/mod.rs b/src/openhuman/agent/session_db/mod.rsindex 110c190e00..772237221b 100644--- a/src/openhuman/agent/session_db/mod.rs+++ b/src/openhuman/agent/session_db/mod.rs@@ -7,7 +7,7 @@//! `RpcOutcome` shape are host concerns the runtime crate has no business//! knowing about.//!-//! Call the store directly (`tinyagents::session::…`) rather+//! Call the store directly (`tinyagents_session::…`) rather//! than through this module; it deliberately re-exports no storage API.//!//! Every store entry point takes the workspace root, so handlers passdiff --git a/src/openhuman/agent/session_db/schemas.rs b/src/openhuman/agent/session_db/schemas.rsindex 21a3bd1973..b944c345d0 100644--- a/src/openhuman/agent/session_db/schemas.rs+++ b/src/openhuman/agent/session_db/schemas.rs@@ -7,8 +7,8 @@ use crate::core::{ControllerSchema, FieldSchema, TypeSchema};use crate::openhuman::config::rpc as config_rpc;use crate::rpc::RpcOutcome;-use tinyagents::session::run_ledger::{AgentRunListRequest, RunEventListRequest};-use tinyagents::session::types::SessionSearchParams;+use tinyagents_session::run_ledger::{AgentRunListRequest, RunEventListRequest};+use tinyagents_session::types::SessionSearchParams;pub fn all_controller_schemas() -> Vec<ControllerSchema> {vec![@@ -230,7 +230,7 @@ fn handle_session_db_list(params: Map<String, Value>) -> ControllerFuture {.and_then(|v| v.as_str()).map(String::from);- let result = tinyagents::session::list_sessions(+ let result = tinyagents_session::list_sessions(&config.workspace_dir,limit,offset,@@ -262,7 +262,7 @@ fn handle_session_db_get(params: Map<String, Value>) -> ControllerFuture {.and_then(|v| v.as_str()).ok_or_else(|| "missing required param: id".to_string())?;- let session = tinyagents::session::get_session(&config.workspace_dir, id).map_err(|e| {+ let session = tinyagents_session::get_session(&config.workspace_dir, id).map_err(|e| {let s = e.to_string();log::warn!(target: "session_db_rpc", "[session_db_rpc][{cid}] get.error id={id} err={s}");s@@ -292,7 +292,7 @@ fn handle_session_db_search(params: Map<String, Value>) -> ControllerFuture {})?};- let result = tinyagents::session::search_sessions(+ let result = tinyagents_session::search_sessions(&config.workspace_dir,&search_params,)@@ -325,7 +325,7 @@ fn handle_session_db_get_messages(params: Map<String, Value>) -> ControllerFutur.and_then(|v| v.as_u64()).map(|v| v as u32);- let messages = tinyagents::session::list_messages(&config.workspace_dir, session_id, limit).map_err(|e| {+ let messages = tinyagents_session::list_messages(&config.workspace_dir, session_id, limit).map_err(|e| {let s = e.to_string();log::warn!(target: "session_db_rpc", "[session_db_rpc][{cid}] get_messages.error err={s}");s@@ -354,7 +354,7 @@ fn handle_session_db_get_tool_calls(params: Map<String, Value>) -> ControllerFut.and_then(|v| v.as_u64()).map(|v| v as u32);- let tool_calls = tinyagents::session::list_tool_calls(&config.workspace_dir, session_id, limit).map_err(|e| {+ let tool_calls = tinyagents_session::list_tool_calls(&config.workspace_dir, session_id, limit).map_err(|e| {let s = e.to_string();log::warn!(target: "session_db_rpc", "[session_db_rpc][{cid}] get_tool_calls.error err={s}");s@@ -379,7 +379,7 @@ fn handle_session_db_get_children(params: Map<String, Value>) -> ControllerFutur.and_then(|v| v.as_str()).ok_or_else(|| "missing required param: sessionId".to_string())?;- let children = tinyagents::session::list_children(&config.workspace_dir, session_id).map_err(|e| {+ let children = tinyagents_session::list_children(&config.workspace_dir, session_id).map_err(|e| {let s = e.to_string();log::warn!(target: "session_db_rpc", "[session_db_rpc][{cid}] get_children.error err={s}");s@@ -407,7 +407,7 @@ fn handle_run_ledger_list(params: Map<String, Value>) -> ControllerFuture {s})?};- let response = tinyagents::session::run_ledger::list_agent_runs(+ let response = tinyagents_session::run_ledger::list_agent_runs(&config.workspace_dir,&request,)@@ -431,7 +431,7 @@ fn handle_run_ledger_get(params: Map<String, Value>) -> ControllerFuture {.get("id").and_then(|v| v.as_str()).ok_or_else(|| "missing required param: id".to_string())?;- let run = tinyagents::session::run_ledger::get_agent_run(&config.workspace_dir, id).map_err(|e| {+ let run = tinyagents_session::run_ledger::get_agent_run(&config.workspace_dir, id).map_err(|e| {let s = e.to_string();log::warn!(target: "run_ledger_rpc", "[run_ledger_rpc][{cid}] get.error id={id} err={s}");s@@ -453,7 +453,7 @@ fn handle_run_ledger_events(params: Map<String, Value>) -> ControllerFuture {log::warn!(target: "run_ledger_rpc", "[run_ledger_rpc][{cid}] events.bad_params err={s}");s})?;- let response = tinyagents::session::run_ledger::list_recent_run_events(+ let response = tinyagents_session::run_ledger::list_recent_run_events(&config.workspace_dir,&request,)diff --git a/src/openhuman/agent/session_import/live.rs b/src/openhuman/agent/session_import/live.rsindex e7520c0502..ceaa07f809 100644--- a/src/openhuman/agent/session_import/live.rs+++ b/src/openhuman/agent/session_import/live.rs@@ -22,7 +22,7 @@ use std::path::Path;use std::sync::Arc;use anyhow::{Context, Result};-use tinyagents::harness::store::{AppendStore, Store};+use tinyagents_harness::store::{AppendStore, Store};use crate::openhuman::agent::harness::session::transcript::SessionTranscript;diff --git a/src/openhuman/agent/session_import/live_tests.rs b/src/openhuman/agent/session_import/live_tests.rsindex e4299501dc..04a431261b 100644--- a/src/openhuman/agent/session_import/live_tests.rs+++ b/src/openhuman/agent/session_import/live_tests.rs@@ -11,7 +11,7 @@use std::path::Path;use tempfile::TempDir;-use tinyagents::harness::store::{AppendStore, FileStore, JsonlAppendStore, Store};+use tinyagents_harness::store::{AppendStore, FileStore, JsonlAppendStore, Store};use super::convert::{sanitize_store_name, stream_name};use super::live::{diff --git a/src/openhuman/agent/session_import/ops.rs b/src/openhuman/agent/session_import/ops.rsindex 36e4aee99f..bc7e72c8af 100644--- a/src/openhuman/agent/session_import/ops.rs+++ b/src/openhuman/agent/session_import/ops.rs@@ -15,7 +15,7 @@ use std::path::{Path, PathBuf};use anyhow::{Context, Result};use serde_json::json;use sha2::{Digest, Sha256};-use tinyagents::harness::store::{AppendStore, FileStore, JsonlAppendStore, Store};+use tinyagents_harness::store::{AppendStore, FileStore, JsonlAppendStore, Store};use crate::openhuman::agent::harness::session::transcript::{read_transcript, read_transcript_legacy_md, SessionTranscript,diff --git a/src/openhuman/agent/session_import/ops_tests.rs b/src/openhuman/agent/session_import/ops_tests.rsindex 86e0f27238..2b7306f0d0 100644--- a/src/openhuman/agent/session_import/ops_tests.rs+++ b/src/openhuman/agent/session_import/ops_tests.rs@@ -5,7 +5,7 @@ use std::fs;use std::path::{Path, PathBuf};use tempfile::TempDir;-use tinyagents::harness::store::{AppendStore, FileStore, JsonlAppendStore, Store};+use tinyagents_harness::store::{AppendStore, FileStore, JsonlAppendStore, Store};use super::convert::sanitize_store_name;use super::ops::{run_import, store_root};diff --git a/src/openhuman/agent/task_board.rs b/src/openhuman/agent/task_board.rsindex f8cdf4c14b..6fa74b82af 100644--- a/src/openhuman/agent/task_board.rs+++ b/src/openhuman/agent/task_board.rs@@ -1,11 +1,11 @@//! Persistent per-thread task board used by the agent kanban UI.//!-//! **Crate-backed.** Boards now live in the vendored `tinyagents::graph::todos`+//! **Crate-backed.** Boards now live in the vendored `tinyagents_graph::todos`//! crate KV store (`<workspace>/tinyagents_store/kv/graph.todos/<hex(thread_id)>`),//! not the retired `<workspace>/agent_task_boards/<hex(thread_id)>.json`//! file-JSON tree. [`TaskBoardStore`] is a thin adapter that preserves the//! historical `get`/`put`/`delete` surface every consumer uses and forwards each-//! operation directly to `tinyagents::graph::todos`.+//! operation directly to `tinyagents_graph::todos`.//!//! The agent updates boards through the `todo` tool; the UI can fetch or replace//! them through the `threads.task_board_*` and granular `openhuman.todos_*` RPC@@ -14,8 +14,8 @@use std::path::{Path, PathBuf};use chrono::{TimeZone, Utc};-use tinyagents::graph::todos::store as crate_todos;-pub use tinyagents::graph::todos::{+use tinyagents_graph::todos::store as crate_todos;+pub use tinyagents_graph::todos::{normalise_board, TaskApprovalMode, TaskBoard, TaskBoardCard, TaskCardStatus,};diff --git a/src/openhuman/agent/task_board_tests.rs b/src/openhuman/agent/task_board_tests.rsindex 6f75da51cd..edd634ccbd 100644--- a/src/openhuman/agent/task_board_tests.rs+++ b/src/openhuman/agent/task_board_tests.rs@@ -203,7 +203,7 @@ async fn board_for_thread_returns_empty_board_when_file_is_missing() {/// operation cannot replace the authoritative row with an empty board.#[tokio::test]async fn undecodable_board_value_returns_error_without_overwriting_row() {- use tinyagents::graph::todos::store::TODOS_NAMESPACE;+ use tinyagents_graph::todos::store::TODOS_NAMESPACE;let dir = tempdir().expect("tempdir");let store = todos_store(dir.path());diff --git a/src/openhuman/agent/task_dispatcher/poller.rs b/src/openhuman/agent/task_dispatcher/poller.rsindex 99672238a3..54b5e12b52 100644--- a/src/openhuman/agent/task_dispatcher/poller.rs+++ b/src/openhuman/agent/task_dispatcher/poller.rs@@ -7,7 +7,7 @@use std::sync::OnceLock;use std::time::Duration;-use tinyagents::graph::todos::dispatch::select;+use tinyagents_graph::todos::dispatch::select;use crate::openhuman::agent::task_board::{TaskApprovalMode, TaskBoardCard};use crate::openhuman::config::Config;@@ -33,7 +33,7 @@ const POLLER_MAX_BACKOFF_SECONDS: u64 = 15 * 60;const POLLER_IDLE_GRACE_TICKS: u32 = 2;/// The backoff curve itself lives in the crate-/// ([`select::PollCadence`](tinyagents::graph::todos::dispatch::select::PollCadence));+/// ([`select::PollCadence`](tinyagents_graph::todos::dispatch::select::PollCadence));/// this is OpenHuman's tuning of it (issue #4090).const POLLER_CADENCE: select::PollCadence = select::PollCadence {base: Duration::from_secs(POLLER_TICK_SECONDS),@@ -225,7 +225,7 @@ async fn poll_board(location: &BoardLocation, agent_assigned_only: bool) -> Resu/// agent-generated tasks and never picks up a human's manually-created card.////// The selection policy itself is-/// [`select::pick_next_card`](tinyagents::graph::todos::dispatch::select::pick_next_card).+/// [`select::pick_next_card`](tinyagents_graph::todos::dispatch::select::pick_next_card).pub(super) fn pick_next_todo(cards: &[TaskBoardCard],agent_assigned_only: bool,@@ -244,7 +244,7 @@ pub(super) fn pick_next_todo(/// plan would execute before the user ever saw the review card.////// The rule itself is-/// [`select::requires_plan_approval`](tinyagents::graph::todos::dispatch::select::requires_plan_approval).+/// [`select::requires_plan_approval`](tinyagents_graph::todos::dispatch::select::requires_plan_approval).pub(super) fn requires_plan_approval(global_required: bool,approval_mode: Option<&TaskApprovalMode>,diff --git a/src/openhuman/agent/task_dispatcher/prompt.rs b/src/openhuman/agent/task_dispatcher/prompt.rsindex bc3d52af44..1d49053e36 100644--- a/src/openhuman/agent/task_dispatcher/prompt.rs+++ b/src/openhuman/agent/task_dispatcher/prompt.rs@@ -1,5 +1,5 @@//! Task prompt construction — a thin binding of-//! [`tinyagents::graph::todos::dispatch::prompt`] to OpenHuman's tool names.+//! [`tinyagents_graph::todos::dispatch::prompt`] to OpenHuman's tool names.//!//! The crate owns the rendering (objective, plan, acceptance criteria, source//! provenance, and the "block rather than guess" progress addendum). All this@@ -9,8 +9,8 @@use std::sync::LazyLock;-use tinyagents::graph::todos::dispatch::prompt as crate_prompt;-use tinyagents::graph::todos::dispatch::TaskPromptTools;+use tinyagents_graph::todos::dispatch::prompt as crate_prompt;+use tinyagents_graph::todos::dispatch::TaskPromptTools;use crate::openhuman::agent::task_board::TaskBoardCard;diff --git a/src/openhuman/agent/task_dispatcher/registry.rs b/src/openhuman/agent/task_dispatcher/registry.rsindex 5bf2e560a2..c759429a87 100644--- a/src/openhuman/agent/task_dispatcher/registry.rs+++ b/src/openhuman/agent/task_dispatcher/registry.rs@@ -5,14 +5,14 @@//! web-channel turns.//!//! The map itself is-//! [`ActiveRunRegistry`](tinyagents::graph::todos::dispatch::ActiveRunRegistry),+//! [`ActiveRunRegistry`](tinyagents_graph::todos::dispatch::ActiveRunRegistry),//! which owns the race-free removal that decides who writes a run's terminal//! card state. What stays here is the OpenHuman side of a cancel: the board//! write-back and the terminal chat event.use std::sync::OnceLock;-use tinyagents::graph::todos::dispatch::ActiveRunRegistry;+use tinyagents_graph::todos::dispatch::ActiveRunRegistry;use crate::openhuman::threads::todos::ops::BoardLocation;diff --git a/src/openhuman/agent/task_dispatcher/types.rs b/src/openhuman/agent/task_dispatcher/types.rsindex 754730703a..779e31f41e 100644--- a/src/openhuman/agent/task_dispatcher/types.rs+++ b/src/openhuman/agent/task_dispatcher/types.rs@@ -8,13 +8,13 @@ use crate::openhuman::threads::todos::ops::BoardLocation;/// are invisible to the web channel's own in-flight registry — which is why the/// chat **Cancel** button (which calls `channel_web_cancel`) couldn't stop them./// Registering the run's [`AbortHandle`](tokio::task::AbortHandle) in the-/// crate's [`ActiveRunRegistry`](tinyagents::graph::todos::dispatch::ActiveRunRegistry)+/// crate's [`ActiveRunRegistry`](tinyagents_graph::todos::dispatch::ActiveRunRegistry)/// lets [`cancel_session`](super::registry::cancel_session) abort it from that/// same cancel path.////// The `context` the crate carries for us is the run's [`BoardLocation`], which/// the canceller needs to write the card back to a terminal state.-pub(super) type ActiveRun = tinyagents::graph::todos::dispatch::ActiveRun<BoardLocation>;+pub(super) type ActiveRun = tinyagents_graph::todos::dispatch::ActiveRun<BoardLocation>;/// A resolved executor: which built-in agent definition to build, an optional/// system-prompt suffix carrying a personality identity or skill guidelines,diff --git a/src/openhuman/agent/tinyagents/config.rs b/src/openhuman/agent/tinyagents/config.rsindex 5a44c45e3f..f3c9379d09 100644--- a/src/openhuman/agent/tinyagents/config.rs+++ b/src/openhuman/agent/tinyagents/config.rs@@ -1,5 +1,5 @@//! Maps OpenHuman's config schema into the crate-owned-//! [`tinyagents::harness::config`] structs.+//! [`tinyagents_harness::config`] structs.//!//! This is the host half of `docs/specs/plan-agents.md` Phase 3. The agent//! runtime is being made generic over its host, so it cannot read@@ -17,7 +17,7 @@//! `apply_*` functions layer the narrower pins on top in the order the runtime//! resolves them: team pins first, then the specific delegate's overrides.-use tinyagents::harness::config::{+use tinyagents_harness::config::{MemoryLimits, RequiredOutput, SessionConfig, ToolConfig, ToolDispatcher, TurnConfig,};diff --git a/src/openhuman/agent/tinyagents/convert.rs b/src/openhuman/agent/tinyagents/convert.rsindex 01cdb1fdf9..fc72dbda09 100644--- a/src/openhuman/agent/tinyagents/convert.rs+++ b/src/openhuman/agent/tinyagents/convert.rs@@ -4,7 +4,7 @@//! OpenHuman transcript record it adapts. This module remains until WP-4//! decides the host tool-trait boundary.-use tinyagents::harness::tool::ToolSchema;+use tinyagents_harness::tool::ToolSchema;use crate::openhuman::tools::ToolSpec;diff --git a/src/openhuman/agent/tinyagents/delegation.rs b/src/openhuman/agent/tinyagents/delegation.rsindex ec6ccb4814..6d339e5131 100644--- a/src/openhuman/agent/tinyagents/delegation.rs+++ b/src/openhuman/agent/tinyagents/delegation.rs@@ -1,5 +1,5 @@//! Multi-stage sub-agent delegation — the OpenHuman-facing seam onto-//! [`tinyagents::graph::delegation`] (issue #4249, #27/#28).+//! [`tinyagents_graph::delegation`] (issue #4249, #27/#28).//!//! The graph itself — the plan→execute⇄review→finalize state machine, its//! revision budget, checkpoint/resume classification, durable human-approval@@ -50,7 +50,7 @@ use serde_json::Value;use super::observability::GraphTracingSink;// The surface the core imports today, under its historical spellings.-pub(crate) use tinyagents::graph::delegation::{+pub(crate) use tinyagents_graph::delegation::{delegation_graph_topology, DelegationConfig, DelegationOutcome, DelegationStage,DelegationStageOutput, DelegationState,};@@ -64,7 +64,7 @@ pub(crate) use tinyagents::graph::delegation::{// the wrappers that attach the tracing sink — rather than calling the crate// directly and silently losing the journal.#[allow(unused_imports)]-pub(crate) use tinyagents::graph::delegation::{+pub(crate) use tinyagents_graph::delegation::{deny_decision, PendingApproval, StepRecord, CURRENT_SCHEMA_VERSION,};@@ -86,7 +86,7 @@ fn with_tracing_sink(mut config: DelegationConfig) -> DelegationConfig {/// Run the plan→execute⇄review→finalize delegation graph, invoking `run_stage`/// for each stage. Returns the final [`DelegationState`].///-/// See [`tinyagents::graph::delegation::run_delegation`].+/// See [`tinyagents_graph::delegation::run_delegation`].#[allow(dead_code)]pub(crate) async fn run_delegation<F, Fut>(config: DelegationConfig,@@ -96,13 +96,13 @@ whereF: Fn(DelegationStage, DelegationState) -> Fut + Clone + Send + Sync + 'static,Fut: Future<Output = Result<DelegationStageOutput, String>> + Send + 'static,{- tinyagents::graph::delegation::run_delegation(with_tracing_sink(config), run_stage).await+ tinyagents_graph::delegation::run_delegation(with_tracing_sink(config), run_stage).await}/// Run the delegation graph and report whether it finalized or parked on a/// durable human-approval interrupt.///-/// See [`tinyagents::graph::delegation::run_delegation_durable`].+/// See [`tinyagents_graph::delegation::run_delegation_durable`].#[allow(dead_code)]pub(crate) async fn run_delegation_durable<F, Fut>(config: DelegationConfig,@@ -112,7 +112,7 @@ whereF: Fn(DelegationStage, DelegationState) -> Fut + Clone + Send + Sync + 'static,Fut: Future<Output = Result<DelegationStageOutput, String>> + Send + 'static,{- tinyagents::graph::delegation::run_delegation_durable(with_tracing_sink(config), run_stage)+ tinyagents_graph::delegation::run_delegation_durable(with_tracing_sink(config), run_stage).await}@@ -123,7 +123,7 @@ where/// `approve_always_for_tool` / `deny`), so the existing decision contract routes/// into the resume unchanged. TTL expiry → pass [`deny_decision`].///-/// See [`tinyagents::graph::delegation::resume_delegation`].+/// See [`tinyagents_graph::delegation::resume_delegation`].#[allow(dead_code)]pub(crate) async fn resume_delegation<F, Fut>(config: DelegationConfig,@@ -134,7 +134,7 @@ whereF: Fn(DelegationStage, DelegationState) -> Fut + Clone + Send + Sync + 'static,Fut: Future<Output = Result<DelegationStageOutput, String>> + Send + 'static,{- tinyagents::graph::delegation::resume_delegation(with_tracing_sink(config), decision, run_stage)+ tinyagents_graph::delegation::resume_delegation(with_tracing_sink(config), decision, run_stage).await}@@ -142,7 +142,7 @@ where/// configured thread has a live, compatible, non-terminal checkpoint, else/// starting fresh.///-/// See [`tinyagents::graph::delegation::run_or_resume_delegation`].+/// See [`tinyagents_graph::delegation::run_or_resume_delegation`].pub(crate) async fn run_or_resume_delegation<F, Fut>(config: DelegationConfig,run_stage: F,@@ -151,7 +151,7 @@ whereF: Fn(DelegationStage, DelegationState) -> Fut + Clone + Send + Sync + 'static,Fut: Future<Output = Result<DelegationStageOutput, String>> + Send + 'static,{- tinyagents::graph::delegation::run_or_resume_delegation(with_tracing_sink(config), run_stage)+ tinyagents_graph::delegation::run_or_resume_delegation(with_tracing_sink(config), run_stage).await}diff --git a/src/openhuman/agent/tinyagents/delegation_tests.rs b/src/openhuman/agent/tinyagents/delegation_tests.rsindex ef383514f1..d7b35958f1 100644--- a/src/openhuman/agent/tinyagents/delegation_tests.rs+++ b/src/openhuman/agent/tinyagents/delegation_tests.rs@@ -2,7 +2,7 @@ use super::*;/// The graph mechanics, the revision budget, checkpoint/resume/// classification and the on-disk state shape are all tested upstream in-/// `tinyagents::graph::delegation`. What is testable *here* is the only+/// `tinyagents_graph::delegation`. What is testable *here* is the only/// behaviour this file adds: that a run gets OpenHuman's tracing sink/// attached, and that an explicit one is never overridden.#[test]@@ -16,8 +16,8 @@ fn tracing_sink_is_attached_when_the_caller_supplies_none() {#[test]fn an_explicit_sink_is_not_overridden() {- let mine: Arc<dyn tinyagents::graph::stream::GraphEventSink> =- Arc::new(tinyagents::graph::stream::CollectingSink::default());+ let mine: Arc<dyn tinyagents_graph::stream::GraphEventSink> =+ Arc::new(tinyagents_graph::stream::CollectingSink::default());let config = with_tracing_sink(DelegationConfig {event_sink: Some(mine.clone()),..DelegationConfig::default()diff --git a/src/openhuman/agent/tinyagents/embeddings.rs b/src/openhuman/agent/tinyagents/embeddings.rsindex cecebc4946..30b4320025 100644--- a/src/openhuman/agent/tinyagents/embeddings.rs+++ b/src/openhuman/agent/tinyagents/embeddings.rs@@ -6,8 +6,8 @@//! (rate-limit + retry). This adapter is a **thin seam**: it wraps an//! `Arc<dyn EmbeddingProvider>` and re-exposes it as the crate's provider-neutral//! [`EmbeddingModel`] so the harness's retrieval surface-//! ([`Retriever`](tinyagents::harness::embeddings::Retriever) /-//! [`VectorStore`](tinyagents::harness::embeddings::VectorStore)) can drive+//! ([`Retriever`](tinyagents_harness::embeddings::Retriever) /+//! [`VectorStore`](tinyagents_harness::embeddings::VectorStore)) can drive//! OpenHuman embeddings without cloning provider logic.//!//! The only real work here is bridging the batch signature: the crate trait@@ -22,7 +22,7 @@use std::sync::Arc;use async_trait::async_trait;-use tinyagents::harness::embeddings::EmbeddingModel as TaEmbeddingModel;+use tinyagents_harness::embeddings::EmbeddingModel as TaEmbeddingModel;use tinyagents::{Result as TaResult, TinyAgentsError};use crate::openhuman::inference::embeddings::EmbeddingProvider;diff --git a/src/openhuman/agent/tinyagents/host/agent_memory.rs b/src/openhuman/agent/tinyagents/host/agent_memory.rsindex 2df3a710b4..e366aa5ffb 100644--- a/src/openhuman/agent/tinyagents/host/agent_memory.rs+++ b/src/openhuman/agent/tinyagents/host/agent_memory.rs@@ -84,9 +84,9 @@use std::sync::Arc;use async_trait::async_trait;-use tinyagents::error::{Result as TaResult, TinyAgentsError};-use tinyagents::harness::host::{AgentMemory, MemoryId, MemoryItem, NewMemory, RecallRequest};-use tinyagents::harness::ids::ThreadId;+use tinyagents_harness::error::{Result as TaResult, TinyAgentsError};+use tinyagents_harness::host::{AgentMemory, MemoryId, MemoryItem, NewMemory, RecallRequest};+use tinyagents_harness::ids::ThreadId;use crate::openhuman::memory::agent::memory_loader::MemoryCitation;use crate::openhuman::memory::safety::sanitize_text;diff --git a/src/openhuman/agent/tinyagents/host/budget_gate.rs b/src/openhuman/agent/tinyagents/host/budget_gate.rsindex 0bc3b7e0d3..843f38f482 100644--- a/src/openhuman/agent/tinyagents/host/budget_gate.rs+++ b/src/openhuman/agent/tinyagents/host/budget_gate.rs@@ -61,11 +61,11 @@ use std::sync::Arc;use async_trait::async_trait;use parking_lot::RwLock;-use tinyagents::error::{Result, TinyAgentsError};-use tinyagents::harness::host::budget_gate::{+use tinyagents_harness::error::{Result, TinyAgentsError};+use tinyagents_harness::host::budget_gate::{BudgetGate, CallEstimate, CompressionHint, ContextState, Permit,};-use tinyagents::harness::usage::Usage;+use tinyagents_harness::usage::Usage;use crate::openhuman::config::{Config, DEFAULT_MODEL};use crate::openhuman::cron::scheduler_gate;diff --git a/src/openhuman/agent/tinyagents/host/context_composer.rs b/src/openhuman/agent/tinyagents/host/context_composer.rsindex ea3473020c..bd94f3f5bc 100644--- a/src/openhuman/agent/tinyagents/host/context_composer.rs+++ b/src/openhuman/agent/tinyagents/host/context_composer.rs@@ -1,4 +1,4 @@-//! Host adapter: [`tinyagents::harness::host::ContextComposer`] backed by+//! Host adapter: [`tinyagents_harness::host::ContextComposer`] backed by//! OpenHuman's prompt pipeline.//!//! # Which OpenHuman domains this adapts@@ -69,9 +69,9 @@ use std::collections::HashSet;use std::sync::Arc;use async_trait::async_trait;-use tinyagents::error::{Result as TinyAgentsResult, TinyAgentsError};-use tinyagents::harness::host::{ContextComposer, TurnContextRequest};-use tinyagents::harness::message::Message;+use tinyagents_harness::error::{Result as TinyAgentsResult, TinyAgentsError};+use tinyagents_harness::host::{ContextComposer, TurnContextRequest};+use tinyagents_harness::message::Message;use crate::openhuman::agent::prompts::{load_agents_md_layers, render_connected_identities, AgentsMdContent, ConnectedIntegration,diff --git a/src/openhuman/agent/tinyagents/host/definition_registry.rs b/src/openhuman/agent/tinyagents/host/definition_registry.rsindex 865be8c578..e479a41b70 100644--- a/src/openhuman/agent/tinyagents/host/definition_registry.rs+++ b/src/openhuman/agent/tinyagents/host/definition_registry.rs@@ -1,7 +1,7 @@//! Host implementation of the TinyAgents **agent catalogue** seam.//!//! Adapts two OpenHuman domains onto-//! [`tinyagents::harness::host::DefinitionRegistry`]:+//! [`tinyagents_harness::host::DefinitionRegistry`]://!//! * [`crate::openhuman::agent::harness::definition::AgentDefinitionRegistry`] —//! the harness registry of built-in ([`load_builtins`](crate::openhuman::agent::registry::agents::load_builtins)-parsed@@ -76,8 +76,8 @@ use std::collections::HashSet;use std::sync::Arc;use async_trait::async_trait;-use tinyagents::error::Result;-use tinyagents::harness::host::{AgentDefinition, DefinitionRegistry};+use tinyagents_harness::error::Result;+use tinyagents_harness::host::{AgentDefinition, DefinitionRegistry};use crate::openhuman::agent::harness::definition::{AgentDefinition as HostAgentDefinition, AgentDefinitionRegistry, AgentTier, ModelSpec,diff --git a/src/openhuman/agent/tinyagents/host/experience_store.rs b/src/openhuman/agent/tinyagents/host/experience_store.rsindex 5ecbd85845..4a057681b8 100644--- a/src/openhuman/agent/tinyagents/host/experience_store.rs+++ b/src/openhuman/agent/tinyagents/host/experience_store.rs@@ -1,4 +1,4 @@-//! Host adapter: [`tinyagents::harness::host::ExperienceStore`] backed by+//! Host adapter: [`tinyagents_harness::host::ExperienceStore`] backed by//! OpenHuman's `agent_experience` domain.//!//! This is `docs/specs/plan-agents.md` Phase 4. The crate's runtime records what@@ -62,8 +62,8 @@use std::sync::Arc;use async_trait::async_trait;-use tinyagents::error::{Result, TinyAgentsError};-use tinyagents::harness::host::{Experience, ExperienceStore};+use tinyagents_harness::error::{Result, TinyAgentsError};+use tinyagents_harness::host::{Experience, ExperienceStore};use crate::openhuman::agent::experience::store::{retrieve_across_stores, AgentExperienceStore, ExperienceQuery,diff --git a/src/openhuman/agent/tinyagents/host/learning_sink.rs b/src/openhuman/agent/tinyagents/host/learning_sink.rsindex 3675acbdbb..610f526d02 100644--- a/src/openhuman/agent/tinyagents/host/learning_sink.rs+++ b/src/openhuman/agent/tinyagents/host/learning_sink.rs@@ -1,4 +1,4 @@-//! Host adapter for [`tinyagents::harness::host::LearningSink`] — the seam the+//! Host adapter for [`tinyagents_harness::host::LearningSink`] — the seam the//! generic agent runtime uses to hand a finished turn to OpenHuman's//! self-learning subsystem.//!@@ -42,7 +42,7 @@//!//! **2. `thread_id` vs `session_id`.** `TurnContext.session_id` is populated//! host-side from the harness' `event_session_id`; a [`TurnSummary`] only-//! carries a [`tinyagents::harness::ids::ThreadId`]. The thread id is the+//! carries a [`tinyagents_harness::ids::ThreadId`]. The thread id is the//! closest available correlation key, so it is mapped through. The visible//! consequence is that `ReflectionHook`'s `max_reflections_per_session` throttle//! becomes per-thread rather than per-session on this path — a slightly@@ -72,8 +72,8 @@use std::sync::Arc;use async_trait::async_trait;-use tinyagents::error::Result;-use tinyagents::harness::host::{LearningSink, TurnSummary};+use tinyagents_harness::error::Result;+use tinyagents_harness::host::{LearningSink, TurnSummary};use crate::openhuman::agent::hooks::{self, PostTurnHook, TurnContext};use crate::openhuman::agent::learning::{ToolTrackerHook, UserProfileHook};@@ -152,7 +152,7 @@ impl OpenHumanLearningSink {// generic runtime, the fix is upstream — the crate would need a// richer per-tool record (name + outcome class + duration, still no// arguments or results), most likely alongside- // `tinyagents::harness::host::ToolOutcomeClassifier`, which already+ // `tinyagents_harness::host::ToolOutcomeClassifier`, which already// owns the "did this tool call succeed" judgement host-side. It is// not something this adapter can synthesize.tool_calls: Vec::new(),diff --git a/src/openhuman/agent/tinyagents/host/mod.rs b/src/openhuman/agent/tinyagents/host/mod.rsindex 3b40d00642..de1551cff1 100644--- a/src/openhuman/agent/tinyagents/host/mod.rs+++ b/src/openhuman/agent/tinyagents/host/mod.rs@@ -1,7 +1,7 @@//! OpenHuman's implementations of the TinyAgents host capability traits.//!//! Each module here adapts one crate trait-//! ([`tinyagents::harness::host`]) onto the OpenHuman domains that actually+//! ([`tinyagents_harness::host`]) onto the OpenHuman domains that actually//! provide the behaviour. This is `docs/specs/plan-agents.md` **Phase 4**: the//! agent runtime stops reaching into 45 domains directly and instead asks ten//! capabilities, each of which is implemented here.diff --git a/src/openhuman/agent/tinyagents/host/model_resolver.rs b/src/openhuman/agent/tinyagents/host/model_resolver.rsindex 5312619c44..2f2a2ed4f7 100644--- a/src/openhuman/agent/tinyagents/host/model_resolver.rs+++ b/src/openhuman/agent/tinyagents/host/model_resolver.rs@@ -1,6 +1,6 @@//! Host capability: **which** model answers a turn.//!-//! Adapts [`tinyagents::harness::host::ModelResolver`] onto OpenHuman's+//! Adapts [`tinyagents_harness::host::ModelResolver`] onto OpenHuman's//! inference domain — `crate::openhuman::inference::provider` (the per-role//! provider factory: [`create_chat_model_with_model_id`], `provider_for_role`,//! [`role_for_model_tier`]) driven by a [`Config`] snapshot.@@ -67,9 +67,9 @@ use std::collections::HashMap;use std::sync::{Arc, Mutex};use async_trait::async_trait;-use tinyagents::error::TinyAgentsError;-use tinyagents::harness::host::{ModelResolveRequest, ModelResolver};-use tinyagents::harness::model::{+use tinyagents_harness::error::TinyAgentsError;+use tinyagents_harness::host::{ModelResolveRequest, ModelResolver};+use tinyagents_harness::model::{ChatModel, ModelProfile, ModelRequest, ModelResponse, ModelStream,};use tinyagents::Result as TaResult;diff --git a/src/openhuman/agent/tinyagents/host/progress_sink.rs b/src/openhuman/agent/tinyagents/host/progress_sink.rsindex 519ae486e5..a6cdeef3a1 100644--- a/src/openhuman/agent/tinyagents/host/progress_sink.rs+++ b/src/openhuman/agent/tinyagents/host/progress_sink.rs@@ -2,7 +2,7 @@//! OpenHuman's richer [`AgentProgress`] events.//!//! Adapts `crate::openhuman::agent::progress` (the `AgentProgress` UI contract)-//! for `tinyagents::harness::host::ProgressSink`. This is Phase 4 of+//! for `tinyagents_harness::host::ProgressSink`. This is Phase 4 of//! `docs/specs/plan-agents.md`.//!//! # Why this file is the boundary@@ -107,7 +107,7 @@ use async_trait::async_trait;use tokio::sync::mpsc::error::TrySendError;use tokio::sync::mpsc::Sender;-use tinyagents::harness::host::{ProgressEvent, ProgressSink};+use tinyagents_harness::host::{ProgressEvent, ProgressSink};use crate::openhuman::agent::progress::AgentProgress;diff --git a/src/openhuman/agent/tinyagents/host/progress_sink_tests.rs b/src/openhuman/agent/tinyagents/host/progress_sink_tests.rsindex c6997b6fc2..c60b7f4ac4 100644--- a/src/openhuman/agent/tinyagents/host/progress_sink_tests.rs+++ b/src/openhuman/agent/tinyagents/host/progress_sink_tests.rs@@ -1,7 +1,7 @@use super::*;use std::sync::Arc;-use tinyagents::harness::ids::{CallId, RunId, ThreadId};-use tinyagents::harness::usage::Usage;+use tinyagents_harness::ids::{CallId, RunId, ThreadId};+use tinyagents_harness::usage::Usage;use tokio::sync::mpsc;fn run() -> RunId {diff --git a/src/openhuman/agent/tinyagents/host/security_gate.rs b/src/openhuman/agent/tinyagents/host/security_gate.rsindex 146906f545..64195a1de7 100644--- a/src/openhuman/agent/tinyagents/host/security_gate.rs+++ b/src/openhuman/agent/tinyagents/host/security_gate.rs@@ -79,8 +79,8 @@ use std::collections::HashMap;use std::sync::{Arc, Mutex};use async_trait::async_trait;-use tinyagents::error::{Result as TaResult, TinyAgentsError};-use tinyagents::harness::host::security_gate::{+use tinyagents_harness::error::{Result as TaResult, TinyAgentsError};+use tinyagents_harness::host::security_gate::{ContentOrigin, GateDecision, ScreenOutcome, SecurityGate, ToolCallRequest,};diff --git a/src/openhuman/agent/tinyagents/host/tool_outcome_classifier.rs b/src/openhuman/agent/tinyagents/host/tool_outcome_classifier.rsindex b58f85848e..24f350575b 100644--- a/src/openhuman/agent/tinyagents/host/tool_outcome_classifier.rs+++ b/src/openhuman/agent/tinyagents/host/tool_outcome_classifier.rs@@ -73,8 +73,8 @@ use std::borrow::Cow;use std::collections::HashSet;use std::sync::Arc;-use tinyagents::harness::host::{OutcomeClass, ToolOutcomeClassifier};-use tinyagents::harness::tool::ToolResult;+use tinyagents_harness::host::{OutcomeClass, ToolOutcomeClassifier};+use tinyagents_harness::tool::ToolResult;use crate::openhuman::tools::status::{classify, ToolFailureClass};diff --git a/src/openhuman/agent/tinyagents/journal.rs b/src/openhuman/agent/tinyagents/journal.rsindex f3b00d3646..9bcc9ceabd 100644--- a/src/openhuman/agent/tinyagents/journal.rs+++ b/src/openhuman/agent/tinyagents/journal.rs@@ -43,7 +43,7 @@//! threading) — wired in 05.2/05.3. This slice threads `thread_id` (from the//! sub-agent task scope) so [`FileStatusStore::list_by_thread`] answers.//!-//! [`EventSink::with_stream_id`]: tinyagents::harness::events::EventSink::with_stream_id+//! [`EventSink::with_stream_id`]: tinyagents_harness::events::EventSink::with_stream_iduse std::collections::HashMap;use std::path::PathBuf;@@ -52,14 +52,14 @@ use std::sync::{Arc, Mutex};use async_trait::async_trait;use once_cell::sync::Lazy;-use tinyagents::error::Result as TaResult;-use tinyagents::harness::events::{EventSink, HarnessRunStatus};-use tinyagents::harness::ids::{ComponentId, HarnessPhase, RunId, ThreadId};-use tinyagents::harness::observability::{+use tinyagents_harness::error::Result as TaResult;+use tinyagents_harness::events::{EventSink, HarnessRunStatus};+use tinyagents_harness::ids::{ComponentId, HarnessPhase, RunId, ThreadId};+use tinyagents_harness::observability::{AgentObservation, FanOutSink, HarnessEventJournal, HarnessStatusStore, JournalSink,RedactingSink, StoreEventJournal,};-use tinyagents::harness::store::{FileStore, Store};+use tinyagents_harness::store::{FileStore, Store};use crate::openhuman::agent::session_import::ops::open_session_stores;@@ -84,7 +84,7 @@ static REQUEST_JOURNAL_RUNS: Lazy<Mutex<HashMap<String, String>>> =/// seeds the sink stream prefix and the durable journal/status — see/// [`attach_turn_journal`].///-/// [`EventSink::with_stream_id`]: tinyagents::harness::events::EventSink::with_stream_id+/// [`EventSink::with_stream_id`]: tinyagents_harness::events::EventSink::with_stream_idpub(crate) fn mint_run_id() -> RunId {RunId::new(format!("run.{}", uuid::Uuid::new_v4().simple()))}@@ -241,7 +241,7 @@ impl HarnessStatusStore for FileStatusStore {}async fn list_active(&self) -> TaResult<Vec<HarnessRunStatus>> {- use tinyagents::harness::ids::ExecutionStatus;+ use tinyagents_harness::ids::ExecutionStatus;Ok(self.all().await?@@ -334,7 +334,7 @@ impl TurnJournal {/// and unobserved turns alike: it does not depend on `on_progress`.////// [`OpenhumanEventBridge`]: crate::openhuman::agent::tinyagents::observability::OpenhumanEventBridge-/// [`EventSink::with_stream_id`]: tinyagents::harness::events::EventSink::with_stream_id+/// [`EventSink::with_stream_id`]: tinyagents_harness::events::EventSink::with_stream_idpub(crate) async fn attach_turn_journal(events: &EventSink,model: &str,diff --git a/src/openhuman/agent/tinyagents/journal_tests.rs b/src/openhuman/agent/tinyagents/journal_tests.rsindex 9ff4ed4e1d..19a3dcd56a 100644--- a/src/openhuman/agent/tinyagents/journal_tests.rs+++ b/src/openhuman/agent/tinyagents/journal_tests.rs@@ -1,6 +1,6 @@use super::*;-use tinyagents::harness::events::AgentEvent;-use tinyagents::harness::ids::ExecutionStatus;+use tinyagents_harness::events::AgentEvent;+use tinyagents_harness::ids::ExecutionStatus;/// The full 05.1 acceptance in miniature: emit events through a sink with a/// durable journal attached, then reconstruct the timeline + terminal statusdiff --git a/src/openhuman/agent/tinyagents/middleware.rs b/src/openhuman/agent/tinyagents/middleware.rsindex 98727a9ae1..85266c5b24 100644--- a/src/openhuman/agent/tinyagents/middleware.rs+++ b/src/openhuman/agent/tinyagents/middleware.rs@@ -10,7 +10,7 @@//! - [`MicrocompactMiddleware`] (`before_model`) — clear the bodies of older//! tool-result messages (keeping the N most recent) so a long tool-heavy//! thread stays cheap without dropping chat history. This is now the crate-//! [`tinyagents::harness::middleware::MicrocompactMiddleware`], constructed+//! [`tinyagents_harness::middleware::MicrocompactMiddleware`], constructed//! with OpenHuman's [`CLEARED_PLACEHOLDER`] wording; the in-house copy was//! upstreamed (see `99-deletion-ledger.md`).//! - [`ToolOutputMiddleware`] (`after_tool`) — apply the per-tool-result bytediff --git a/src/openhuman/agent/tinyagents/middleware_part_01.rs b/src/openhuman/agent/tinyagents/middleware_part_01.rsindex ddf908f8de..f93be5dafa 100644--- a/src/openhuman/agent/tinyagents/middleware_part_01.rs+++ b/src/openhuman/agent/tinyagents/middleware_part_01.rs@@ -5,21 +5,21 @@ use std::sync::Arc;use async_trait::async_trait;use sha2::{Digest, Sha256};-use tinyagents::error::Result as TaResult;-use tinyagents::harness::context::RunContext;-use tinyagents::harness::events::AgentEvent;-use tinyagents::harness::message::{ContentBlock, Message as TaMessage};-use tinyagents::harness::middleware::{+use tinyagents_harness::error::Result as TaResult;+use tinyagents_harness::context::RunContext;+use tinyagents_harness::events::AgentEvent;+use tinyagents_harness::message::{ContentBlock, Message as TaMessage};+use tinyagents_harness::middleware::{AgentRun, BudgetTracker, ContextualToolSelectionMiddleware, MicrocompactMiddleware, Middleware,MiddlewareToolOutcome, ToolAllowlistMiddleware, ToolHandler, ToolMiddleware,};-use tinyagents::harness::model::{ModelRequest, ModelResponse, PromptSegment, SegmentRole};-use tinyagents::harness::no_progress::{+use tinyagents_harness::model::{ModelRequest, ModelResponse, PromptSegment, SegmentRole};+use tinyagents_harness::no_progress::{NoProgress, NoProgressTracker, SuccessfulRepeat, SuccessfulRepeatTracker, ToolAttempt,};-use tinyagents::harness::runtime::AgentHarness;-use tinyagents::harness::steering::{SteeringCommand, SteeringHandle};-use tinyagents::harness::tool::{+use tinyagents_harness::runtime::AgentHarness;+use tinyagents_harness::steering::{SteeringCommand, SteeringHandle};+use tinyagents_harness::tool::{ToolCall as TaToolCall, ToolPolicy as TaToolPolicy, ToolResult as TaToolResult, ToolSchema,};@@ -490,7 +490,7 @@ fn stable_prefix_fingerprint(value: &serde_json::Value) -> String {/// **content-fingerprint ids**: an unchanged system prompt + full tool-schema set/// yields a stable prefix, while an injected timestamp/uuid/etc. or changed tool/// schema flips it and the guard records a-/// [`CacheLayoutEvent`](tinyagents::harness::cache::CacheLayoutEvent). This is+/// [`CacheLayoutEvent`](tinyagents_harness::cache::CacheLayoutEvent). This is/// the structured, crate-native replacement for the deleted warn-only/// `CacheAlignMiddleware` volatile-token scan (C3): the crate/// `PromptCacheGuardMiddleware` now owns KV-cache-prefix drift detection viadiff --git a/src/openhuman/agent/tinyagents/middleware_part_03.rs b/src/openhuman/agent/tinyagents/middleware_part_03.rsindex 8c152d7b76..525c60e61d 100644--- a/src/openhuman/agent/tinyagents/middleware_part_03.rs+++ b/src/openhuman/agent/tinyagents/middleware_part_03.rs@@ -176,7 +176,7 @@ impl Middleware<()> for EmbedderToolHooksMiddleware {context.arguments = arguments;}crate::openhuman::agent::hooks::ToolHookDecision::Deny(reason) => {- return Err(tinyagents::error::TinyAgentsError::Tool(format!(+ return Err(tinyagents_harness::error::TinyAgentsError::Tool(format!("tool hook '{}' denied {}: {reason}",hook.name(),context.tool_name@@ -194,7 +194,7 @@ impl Middleware<()> for EmbedderToolHooksMiddleware {"[tinyagents::mw] tool hook requested approval; denying in a \non-interactive middleware");- return Err(tinyagents::error::TinyAgentsError::Tool(format!(+ return Err(tinyagents_harness::error::TinyAgentsError::Tool(format!("tool hook '{}' requires approval for {}: {reason}",hook.name(),context.tool_namediff --git a/src/openhuman/agent/tinyagents/middleware_part_04.rs b/src/openhuman/agent/tinyagents/middleware_part_04.rsindex 62a3d66bab..1dfd95707a 100644--- a/src/openhuman/agent/tinyagents/middleware_part_04.rs+++ b/src/openhuman/agent/tinyagents/middleware_part_04.rs@@ -15,7 +15,7 @@////// When built with [`with_shadow`](Self::with_shadow), this middleware is ALSO a/// divergence-logging shadow over the observe-only crate-/// [`BudgetMiddleware`](tinyagents::harness::middleware::BudgetMiddleware). It+/// [`BudgetMiddleware`](tinyagents_harness::middleware::BudgetMiddleware). It/// keeps enforcing exactly as before, but at `after_agent` it compares the/// crate `BudgetMiddleware`'s shared [`BudgetTracker`] accumulation against the/// authoritative runtime [`AgentRun::usage`] and logs `[budget_shadow]` paritydiff --git a/src/openhuman/agent/tinyagents/middleware_part_05.rs b/src/openhuman/agent/tinyagents/middleware_part_05.rsindex dac6326eb8..53483b98e2 100644--- a/src/openhuman/agent/tinyagents/middleware_part_05.rs+++ b/src/openhuman/agent/tinyagents/middleware_part_05.rs@@ -107,7 +107,7 @@ pub(crate) fn is_repeat_call_exempt(tool: &str) -> bool {/// Extract the assistant's visible text (concatenated [`ContentBlock::Text`]/// blocks) from a model response message, for the repeat-output signature.-fn assistant_visible_text(message: &tinyagents::harness::message::AssistantMessage) -> String {+fn assistant_visible_text(message: &tinyagents_harness::message::AssistantMessage) -> String {let mut out = String::new();for block in &message.content {if let ContentBlock::Text(t) = block {diff --git a/src/openhuman/agent/tinyagents/middleware_tests.rs b/src/openhuman/agent/tinyagents/middleware_tests.rsindex 14aef32a4e..3f1ecc928d 100644--- a/src/openhuman/agent/tinyagents/middleware_tests.rs+++ b/src/openhuman/agent/tinyagents/middleware_tests.rs@@ -1,8 +1,8 @@use super::*;use serde_json::json;-use tinyagents::harness::context::{RunConfig, RunContext};-use tinyagents::harness::model::ModelRequest;-use tinyagents::harness::no_progress::{+use tinyagents_harness::context::{RunConfig, RunContext};+use tinyagents_harness::model::ModelRequest;+use tinyagents_harness::no_progress::{DEFAULT_REPEAT_CALL_THRESHOLD, DEFAULT_REPEAT_OUTPUT_THRESHOLD,};@@ -269,7 +269,7 @@ fn body_failure_result(name: &str, extra: serde_json::Value) -> TaToolResult {fn repeated_success_response(tool: &str, args: serde_json::Value) -> ModelResponse {ModelResponse {- message: tinyagents::harness::message::AssistantMessage {+ message: tinyagents_harness::message::AssistantMessage {id: None,content: vec![ContentBlock::Text("working".to_string())],tool_calls: vec![TaToolCall::new("repeat-1", tool, args)],diff --git a/src/openhuman/agent/tinyagents/middleware_tests_part_01_tests.rs b/src/openhuman/agent/tinyagents/middleware_tests_part_01_tests.rsindex a75ca9f424..f40e635a51 100644--- a/src/openhuman/agent/tinyagents/middleware_tests_part_01_tests.rs+++ b/src/openhuman/agent/tinyagents/middleware_tests_part_01_tests.rs@@ -341,13 +341,13 @@ fn tool_char_cap_reads_the_tools_own_declared_cap() {let mut tool_policies = HashMap::new();tool_policies.insert("big".to_string(),- TaToolPolicy::classified().with_runtime(tinyagents::harness::tool::ToolRuntime {+ TaToolPolicy::classified().with_runtime(tinyagents_harness::tool::ToolRuntime {timeout_ms: None,- timeout: tinyagents::harness::tool::ToolTimeout::Inherit,+ timeout: tinyagents_harness::tool::ToolTimeout::Inherit,max_retries: None,idempotent: false,cancelable: true,- sandbox: tinyagents::harness::tool::SandboxMode::Inherit,+ sandbox: tinyagents_harness::tool::SandboxMode::Inherit,max_result_bytes: Some(10),streaming: false,}),@@ -377,13 +377,13 @@ async fn an_unavailable_notice_survives_a_tool_cap_shorter_than_itself() {let mut tool_policies = HashMap::new();tool_policies.insert("terse".to_string(),- TaToolPolicy::classified().with_runtime(tinyagents::harness::tool::ToolRuntime {+ TaToolPolicy::classified().with_runtime(tinyagents_harness::tool::ToolRuntime {timeout_ms: None,- timeout: tinyagents::harness::tool::ToolTimeout::Inherit,+ timeout: tinyagents_harness::tool::ToolTimeout::Inherit,max_retries: None,idempotent: false,cancelable: true,- sandbox: tinyagents::harness::tool::SandboxMode::Inherit,+ sandbox: tinyagents_harness::tool::SandboxMode::Inherit,// Far shorter than the ~165-char notice.max_result_bytes: Some(12),streaming: false,@@ -436,13 +436,13 @@ async fn tool_output_honors_a_tools_own_cap() {let mut tool_policies = HashMap::new();tool_policies.insert("capped".to_string(),- TaToolPolicy::classified().with_runtime(tinyagents::harness::tool::ToolRuntime {+ TaToolPolicy::classified().with_runtime(tinyagents_harness::tool::ToolRuntime {timeout_ms: None,- timeout: tinyagents::harness::tool::ToolTimeout::Inherit,+ timeout: tinyagents_harness::tool::ToolTimeout::Inherit,max_retries: None,idempotent: false,cancelable: true,- sandbox: tinyagents::harness::tool::SandboxMode::Inherit,+ sandbox: tinyagents_harness::tool::SandboxMode::Inherit,max_result_bytes: Some(20),streaming: false,}),diff --git a/src/openhuman/agent/tinyagents/middleware_tests_part_02_tests.rs b/src/openhuman/agent/tinyagents/middleware_tests_part_02_tests.rsindex 72cb46ffa2..c9bcc368e3 100644--- a/src/openhuman/agent/tinyagents/middleware_tests_part_02_tests.rs+++ b/src/openhuman/agent/tinyagents/middleware_tests_part_02_tests.rs@@ -75,7 +75,7 @@ async fn cost_budget_is_a_noop_without_a_global_tracker() {/// must be inert (no panic, `Ok`) when no shadow tracker is installed.#[tokio::test]async fn cost_budget_shadow_after_agent_never_fails_the_run() {- use tinyagents::harness::usage::Usage;+ use tinyagents_harness::usage::Usage;// No shadow tracker: after_agent is a silent no-op.let plain = CostBudgetMiddleware::new();@@ -257,7 +257,7 @@ async fn repeated_tool_failure_nudges_change_of_strategy_before_the_halt() {use crate::openhuman::agent::tinyagents::orchestration::{openhuman_steering_handle, SteeringRunClass,};- use tinyagents::harness::steering::SteeringCommandKind;+ use tinyagents_harness::steering::SteeringCommandKind;// #4089: before the same-strategy retry cap, the breaker must feed a// structured "no progress since step X" corrective back into the loop sodiff --git a/src/openhuman/agent/tinyagents/mod_part_01.rs b/src/openhuman/agent/tinyagents/mod_part_01.rsindex 7fa53d2e25..f8904fd678 100644--- a/src/openhuman/agent/tinyagents/mod_part_01.rs+++ b/src/openhuman/agent/tinyagents/mod_part_01.rs@@ -8,21 +8,21 @@ use std::sync::Arc;use anyhow::Result;use futures::StreamExt;-use tinyagents::harness::agent_loop::AgentStreamItem;-use tinyagents::harness::cache::InMemoryResponseCache;-use tinyagents::harness::context::{RunConfig, RunContext};-use tinyagents::harness::events::EventSink;-use tinyagents::harness::middleware::{+use tinyagents_harness::agent_loop::AgentStreamItem;+use tinyagents_harness::cache::InMemoryResponseCache;+use tinyagents_harness::context::{RunConfig, RunContext};+use tinyagents_harness::events::EventSink;+use tinyagents_harness::middleware::{BudgetLimits, BudgetMiddleware, ContextCompressionMiddleware, PromptCacheGuardMiddleware,ToolPolicyMiddleware as TaToolPolicyMiddleware,};-use tinyagents::harness::model::CapabilitySet;-use tinyagents::harness::retry::RetryPolicy;-use tinyagents::harness::runtime::{AgentHarness, InvalidArgsPolicy, RunPolicy, UnknownToolPolicy};-use tinyagents::harness::steering::SteeringHandle;-use tinyagents::harness::store::StoreRegistry;-use tinyagents::harness::workspace::WorkspaceDescriptor;-use tinyagents::registry::{+use tinyagents_harness::model::CapabilitySet;+use tinyagents_harness::retry::RetryPolicy;+use tinyagents_harness::runtime::{AgentHarness, InvalidArgsPolicy, RunPolicy, UnknownToolPolicy};+use tinyagents_harness::steering::SteeringHandle;+use tinyagents_harness::store::StoreRegistry;+use tinyagents_harness::workspace::WorkspaceDescriptor;+use tinyagents_registry::{CapabilityRegistry, ComponentKind, DiagnosticSeverity, RegistryDiagnostic, RegistrySnapshot,};@@ -211,7 +211,7 @@ fn run_policy_for(max_iterations: usize, response_cache_enabled: bool) -> RunPol// already persists full conversations + tool output), and the Langfuse// exporter withholds all content unless// `observability.agent_tracing.capture_content` is on.- policy.capture = tinyagents::harness::runtime::PayloadCapture::all();+ policy.capture = tinyagents_harness::runtime::PayloadCapture::all();policy}diff --git a/src/openhuman/agent/tinyagents/mod_part_02.rs b/src/openhuman/agent/tinyagents/mod_part_02.rsindex 922fe074b4..f3dfe4fa72 100644--- a/src/openhuman/agent/tinyagents/mod_part_02.rs+++ b/src/openhuman/agent/tinyagents/mod_part_02.rs@@ -293,7 +293,7 @@ pub(crate) async fn run_turn_via_tinyagents_shared(// a 05.2/05.3 follow-up).let journal_thread_id = subagent_scope.as_ref()- .map(|scope| tinyagents::harness::ids::ThreadId::new(scope.task_id.clone()));+ .map(|scope| tinyagents_harness::ids::ThreadId::new(scope.task_id.clone()));let turn_journal = match &events {Some(events) => {journal::attach_turn_journal(events, model, journal_run_id.clone(), journal_thread_id)diff --git a/src/openhuman/agent/tinyagents/mod_part_03.rs b/src/openhuman/agent/tinyagents/mod_part_03.rsindex 06e800a018..39913f9424 100644--- a/src/openhuman/agent/tinyagents/mod_part_03.rs+++ b/src/openhuman/agent/tinyagents/mod_part_03.rs@@ -16,7 +16,7 @@ fn tinyagents_depth_error(}}-/// The per-turn crate [`ChatModel`](tinyagents::harness::model::ChatModel) set,+/// The per-turn crate [`ChatModel`](tinyagents_harness::model::ChatModel) set,/// built once from an openhuman [`Provider`] by [`build_turn_models`] — the/// single place a turn's `native model adapters are constructed (issue #4249, Phase 5).///@@ -251,7 +251,7 @@ impl TurnModelSource {/// does not expose (common for deterministic scripted tests).pub(crate) fn from_model_with_profile(model: TurnChatModel,- profile: tinyagents::harness::model::ModelProfile,+ profile: tinyagents_harness::model::ModelProfile,) -> Self {Self::from_model(Arc::new(ProfileOverrideModel::new(model, profile)))}@@ -429,7 +429,7 @@ impl TurnModelSource {Err(anyhow::anyhow!("turn model source is missing a model"))}- /// Build a standalone summarizer [`ChatModel`](tinyagents::harness::model::ChatModel)+ /// Build a standalone summarizer [`ChatModel`](tinyagents_harness::model::ChatModel)/// over this source's provider — a fresh adapter (own error slot) for one-off/// summary calls outside the main turn (e.g. the sub-agent cap-hit checkpoint),/// so the caller can `invoke` without naming the `Provider` trait. The output@@ -438,7 +438,7 @@ impl TurnModelSource {&self,model: &str,temperature: f64,- ) -> anyhow::Result<Arc<dyn tinyagents::harness::model::ChatModel<()>>> {+ ) -> anyhow::Result<Arc<dyn tinyagents_harness::model::ChatModel<()>>> {if let Some(direct) = &self.direct_model {let profile = direct.profile().cloned().unwrap_or_default();return Ok(Arc::new(@@ -512,7 +512,7 @@ struct AssembledTurnHarness {tool_result_artifact_index: Option<Arc<ToolResultArtifactIndexStore>>,/// Concrete handle to the installed [`ContextCompressionMiddleware`], when the/// summarization step is active. Drained after the run to surface each- /// compaction's [`CompressionProvenance`][tinyagents::harness::summarization::CompressionProvenance]+ /// compaction's [`CompressionProvenance`][tinyagents_harness::summarization::CompressionProvenance]/// (source ids + before/after token estimates) via the observability path.compression_mw: Option<Arc<ContextCompressionMiddleware>>,/// Crate prompt-cache guard (issue #4249, 03.2). Records a `CacheLayoutEvent`diff --git a/src/openhuman/agent/tinyagents/model.rs b/src/openhuman/agent/tinyagents/model.rsindex 8d0c99724a..57eb036c31 100644--- a/src/openhuman/agent/tinyagents/model.rs+++ b/src/openhuman/agent/tinyagents/model.rs@@ -3,12 +3,12 @@use std::sync::{Arc, Mutex};use async_trait::async_trait;-use tinyagents::harness::message::{AssistantMessage, ContentBlock, MessageDelta};-use tinyagents::harness::model::{+use tinyagents_harness::message::{AssistantMessage, ContentBlock, MessageDelta};+use tinyagents_harness::model::{ChatModel, ModelProfile, ModelRequest, ModelResponse, ModelStream, ModelStreamItem,};-use tinyagents::harness::tool::{ToolCall as TaToolCall, ToolDelta};-use tinyagents::harness::usage::Usage;+use tinyagents_harness::tool::{ToolCall as TaToolCall, ToolDelta};+use tinyagents_harness::usage::Usage;use tokio::sync::mpsc::UnboundedSender;use crate::openhuman::agent::messages::ChatMessage;@@ -200,7 +200,7 @@ pub(crate) fn prompt_guided_text_response(text: String, request: &ModelRequest)}let response =- tinyagents::harness::tool::apply_prompt_tool_calls(ModelResponse::assistant(text.clone()));+ tinyagents_harness::tool::apply_prompt_tool_calls(ModelResponse::assistant(text.clone()));if !response.message.tool_calls.is_empty() {return response;}diff --git a/src/openhuman/agent/tinyagents/model_g1_usage_tests_tests.rs b/src/openhuman/agent/tinyagents/model_g1_usage_tests_tests.rsindex 1af59d55b5..7286900e5b 100644--- a/src/openhuman/agent/tinyagents/model_g1_usage_tests_tests.rs+++ b/src/openhuman/agent/tinyagents/model_g1_usage_tests_tests.rs@@ -110,7 +110,7 @@ fn tool_enabled_response_still_extracts_tool_call_markup() {fn tool_request() -> ModelRequest {ModelRequest {- tools: vec![tinyagents::harness::tool::ToolSchema::new(+ tools: vec![tinyagents_harness::tool::ToolSchema::new("lookup","looks up a record",serde_json::json!({diff --git a/src/openhuman/agent/tinyagents/observability_part_01.rs b/src/openhuman/agent/tinyagents/observability_part_01.rsindex a60353d617..f8673dec33 100644--- a/src/openhuman/agent/tinyagents/observability_part_01.rs+++ b/src/openhuman/agent/tinyagents/observability_part_01.rs@@ -3,11 +3,11 @@ use std::sync::{Arc, Mutex};use tokio::sync::mpsc::Sender;-use tinyagents::graph::stream::{GraphEvent, GraphEventSink};-use tinyagents::harness::cache::CacheLayoutEvent;-use tinyagents::harness::events::{AgentEvent, EventListener, EventRecord};-use tinyagents::harness::steering::{SteeringCommand, SteeringHandle};-use tinyagents::harness::usage::Usage;+use tinyagents_graph::stream::{GraphEvent, GraphEventSink};+use tinyagents_harness::cache::CacheLayoutEvent;+use tinyagents_harness::events::{AgentEvent, EventListener, EventRecord};+use tinyagents_harness::steering::{SteeringCommand, SteeringHandle};+use tinyagents_harness::usage::Usage;use crate::openhuman::agent::harness::turn_dispatch_guard::TurnDispatchState;use crate::openhuman::agent::progress::AgentProgress;diff --git a/src/openhuman/agent/tinyagents/observability_tests.rs b/src/openhuman/agent/tinyagents/observability_tests.rsindex 69fd59ddbb..dda17d48af 100644--- a/src/openhuman/agent/tinyagents/observability_tests.rs+++ b/src/openhuman/agent/tinyagents/observability_tests.rs@@ -1,5 +1,5 @@use super::*;-use tinyagents::harness::events::EventSink;+use tinyagents_harness::events::EventSink;#[tokio::test]async fn bridge_forwards_tool_and_cost_progress() {diff --git a/src/openhuman/agent/tinyagents/orchestration.rs b/src/openhuman/agent/tinyagents/orchestration.rsindex 7a88bb2d03..4eafe6d66c 100644--- a/src/openhuman/agent/tinyagents/orchestration.rs+++ b/src/openhuman/agent/tinyagents/orchestration.rs@@ -22,19 +22,19 @@ use std::sync::OnceLock;// Re-export the tinyagents task-orchestration primitives so the detached// sub-agent control plane imports lifecycle types from one openhuman path.-pub(crate) use tinyagents::graph::orchestration::OrchestrationTaskStatus;+pub(crate) use tinyagents_graph::orchestration::OrchestrationTaskStatus;#[allow(unused_imports)]-pub(crate) use tinyagents::graph::orchestration::SteeringRegistry;-pub(crate) use tinyagents::graph::orchestration::{+pub(crate) use tinyagents_graph::orchestration::SteeringRegistry;+pub(crate) use tinyagents_graph::orchestration::{open_jsonl_task_store_or_memory, reconcile_orphaned_tasks, DetachedTaskRegistry,DetachedTaskRegistryError, DetachedTaskWaitOutcome, InMemoryTaskStore, OrchestrationTaskFilter,OrchestrationTaskKind, OrchestrationTaskRecord, OrchestrationTaskResult, OrchestrationTaskSpec,TaskStore, TaskStoreRegistry,};#[allow(unused_imports)]-pub(crate) use tinyagents::harness::ids::TaskId;+pub(crate) use tinyagents_harness::ids::TaskId;#[allow(unused_imports)]-pub(crate) use tinyagents::harness::steering::{+pub(crate) use tinyagents_harness::steering::{SteeringCommand, SteeringCommandKind, SteeringHandle, SteeringPolicy,};diff --git a/src/openhuman/agent/tinyagents/payload_summarizer.rs b/src/openhuman/agent/tinyagents/payload_summarizer.rsindex b068359cc6..4ca1158e8b 100644--- a/src/openhuman/agent/tinyagents/payload_summarizer.rs+++ b/src/openhuman/agent/tinyagents/payload_summarizer.rs@@ -56,9 +56,9 @@ use anyhow::{anyhow, Result};use async_trait::async_trait;use std::collections::HashSet;use std::sync::{Arc, Mutex};-use tinyagents::harness::context::RunContext;-use tinyagents::harness::runtime::{AgentHarness, InvalidArgsPolicy, RunPolicy, UnknownToolPolicy};-use tinyagents::harness::subagent::SubAgent;+use tinyagents_harness::context::RunContext;+use tinyagents_harness::runtime::{AgentHarness, InvalidArgsPolicy, RunPolicy, UnknownToolPolicy};+use tinyagents_harness::subagent::SubAgent;use tracing::{debug, info, warn};use crate::openhuman::agent::harness::definition::{AgentDefinition, PromptSource};diff --git a/src/openhuman/agent/tinyagents/payload_summarizer_tests.rs b/src/openhuman/agent/tinyagents/payload_summarizer_tests.rsindex a7bc380b15..c5be2fdf80 100644--- a/src/openhuman/agent/tinyagents/payload_summarizer_tests.rs+++ b/src/openhuman/agent/tinyagents/payload_summarizer_tests.rs@@ -46,7 +46,7 @@ const TEST_THRESHOLD_TOKENS: usize = 500_000;const TEST_MAX_TOKENS: usize = 2_000_000;fn dummy_parent_ctx() -> RunContext<()> {- RunContext::new(tinyagents::harness::context::RunConfig::new("test"), ())+ RunContext::new(tinyagents_harness::context::RunConfig::new("test"), ())}#[tokio::test]diff --git a/src/openhuman/agent/tinyagents/replay/ops.rs b/src/openhuman/agent/tinyagents/replay/ops.rsindex 9fcbb733cc..9b78e39cbe 100644--- a/src/openhuman/agent/tinyagents/replay/ops.rs+++ b/src/openhuman/agent/tinyagents/replay/ops.rs@@ -11,9 +11,9 @@use std::path::Path;-use tinyagents::harness::events::HarnessRunStatus;-use tinyagents::harness::ids::ExecutionStatus;-use tinyagents::harness::observability::{+use tinyagents_harness::events::HarnessRunStatus;+use tinyagents_harness::ids::ExecutionStatus;+use tinyagents_harness::observability::{AgentObservation, HarnessEventJournal, HarnessStatusStore, StoreEventJournal,};diff --git a/src/openhuman/agent/tinyagents/replay/ops_tests.rs b/src/openhuman/agent/tinyagents/replay/ops_tests.rsindex db80c8a60d..d01fb5adda 100644--- a/src/openhuman/agent/tinyagents/replay/ops_tests.rs+++ b/src/openhuman/agent/tinyagents/replay/ops_tests.rs@@ -1,9 +1,9 @@use super::*;use std::sync::Arc;-use tinyagents::harness::events::{AgentEvent, EventSink};-use tinyagents::harness::ids::{ComponentId, HarnessPhase, ThreadId};-use tinyagents::harness::observability::{FanOutSink, JournalSink, StoreEventJournal};+use tinyagents_harness::events::{AgentEvent, EventSink};+use tinyagents_harness::ids::{ComponentId, HarnessPhase, ThreadId};+use tinyagents_harness::observability::{FanOutSink, JournalSink, StoreEventJournal};use crate::openhuman::agent::tinyagents::journal::mint_run_id;diff --git a/src/openhuman/agent/tinyagents/replay/schemas.rs b/src/openhuman/agent/tinyagents/replay/schemas.rsindex 4519389412..ac14d77133 100644--- a/src/openhuman/agent/tinyagents/replay/schemas.rs+++ b/src/openhuman/agent/tinyagents/replay/schemas.rs@@ -32,8 +32,8 @@use serde::{Deserialize, Serialize};use serde_json::{Map, Value};-use tinyagents::harness::events::HarnessRunStatus;-use tinyagents::harness::observability::AgentObservation;+use tinyagents_harness::events::HarnessRunStatus;+use tinyagents_harness::observability::AgentObservation;use crate::core::all::{ControllerFuture, RegisteredController};use crate::core::{ControllerSchema, FieldSchema, TypeSchema};diff --git a/src/openhuman/agent/tinyagents/retriever.rs b/src/openhuman/agent/tinyagents/retriever.rsindex cd9c36ae95..96eb6e99dd 100644--- a/src/openhuman/agent/tinyagents/retriever.rs+++ b/src/openhuman/agent/tinyagents/retriever.rs@@ -43,10 +43,10 @@ use std::collections::HashSet;use std::sync::{Arc, OnceLock};use serde_json::json;-use tinyagents::harness::embeddings::{+use tinyagents_harness::embeddings::{EmbeddingModel as TaEmbeddingModel, InMemoryVectorStore, Retriever, ScoredDoc,};-use tinyagents::harness::events::{AgentEvent, EventSink};+use tinyagents_harness::events::{AgentEvent, EventSink};use super::ProviderEmbeddingModel;use crate::openhuman::inference::embeddings::EmbeddingProvider;@@ -56,7 +56,7 @@ use crate::openhuman::memory::{Memory, MemoryEntry, RecallOpts};/// onto.////// OpenHuman assembles its recall/context block *before* the tinyagents-/// [`RunContext`](tinyagents::harness::context::RunContext) (and its per-run+/// [`RunContext`](tinyagents_harness::context::RunContext) (and its per-run/// `EventSink`) exist — the block is prepended to the user message that then/// seeds the harness turn. There is therefore no run-scoped sink in scope at/// recall time, so memory loading has historically emitted **zero**diff --git a/src/openhuman/agent/tinyagents/retriever_tests.rs b/src/openhuman/agent/tinyagents/retriever_tests.rsindex 4daaff695f..4f6ab86622 100644--- a/src/openhuman/agent/tinyagents/retriever_tests.rs+++ b/src/openhuman/agent/tinyagents/retriever_tests.rs@@ -1,6 +1,6 @@use super::*;use async_trait::async_trait;-use tinyagents::harness::events::{EventListener, EventRecord};+use tinyagents_harness::events::{EventListener, EventRecord};use crate::openhuman::memory::{MemoryCategory, MemoryEntry, NamespaceSummary};diff --git a/src/openhuman/agent/tinyagents/routes.rs b/src/openhuman/agent/tinyagents/routes.rsindex 415a8b86fd..62adbac504 100644--- a/src/openhuman/agent/tinyagents/routes.rs+++ b/src/openhuman/agent/tinyagents/routes.rs@@ -3,12 +3,12 @@use std::sync::LazyLock;use async_trait::async_trait;-use tinyagents::harness::context::RunContext;-use tinyagents::harness::events::AgentEvent;-use tinyagents::harness::middleware::{MiddlewareModelOutcome, ModelHandler, ModelMiddleware};-use tinyagents::harness::model::{CapabilitySet, ModelRequest};-use tinyagents::harness::retry::FallbackPolicy;-use tinyagents::registry::{ModelRouter, WorkloadRoute};+use tinyagents_harness::context::RunContext;+use tinyagents_harness::events::AgentEvent;+use tinyagents_harness::middleware::{MiddlewareModelOutcome, ModelHandler, ModelMiddleware};+use tinyagents_harness::model::{CapabilitySet, ModelRequest};+use tinyagents_harness::retry::FallbackPolicy;+use tinyagents_registry::{ModelRouter, WorkloadRoute};use crate::openhuman::config::{MODEL_AGENTIC_V1, MODEL_BURST_V1, MODEL_CHAT_V1, MODEL_CODING_V1, MODEL_REASONING_V1,@@ -34,7 +34,7 @@ pub(super) const WORKLOAD_ROUTE_TIERS: &[&str] = &[];/// The OpenHuman workload-tier routing table as a crate-/// [`ModelRouter`](tinyagents::registry::ModelRouter) — the single declarative+/// [`ModelRouter`](tinyagents_registry::ModelRouter) — the single declarative/// source for cross-route **fallback chains** and per-tier **required-capability/// gates** (issue #4249, Phase 3 routing consolidation).///@@ -167,12 +167,12 @@ pub(super) fn route_fallback_policy(model: &str) -> Option<FallbackPolicy> {}/// Around-model middleware that makes the crate's registry-backed-/// [`RunPolicy::fallback`][tinyagents::harness::runtime::RunPolicy] traversal+/// [`RunPolicy::fallback`][tinyagents_harness::runtime::RunPolicy] traversal/// **event-visible** (issue #4249, Workstream 02.2).////// The harness performs the cross-route fallback swap inside its model-resolving/// core (`agent_loop::invoke_model_resolving`) but — unlike the-/// [`ModelFallbackMiddleware`][tinyagents::harness::middleware::ModelFallbackMiddleware]+/// [`ModelFallbackMiddleware`][tinyagents_harness::middleware::ModelFallbackMiddleware]/// primitive — that native path emits **no**/// [`AgentEvent::FallbackSelected`]. This observer wraps the resolving core, and/// on success compares the response's `resolved_model` against the turn's primarydiff --git a/src/openhuman/agent/tinyagents/steering_forwarder.rs b/src/openhuman/agent/tinyagents/steering_forwarder.rsindex b8438a0aa9..e7f078a8dd 100644--- a/src/openhuman/agent/tinyagents/steering_forwarder.rs+++ b/src/openhuman/agent/tinyagents/steering_forwarder.rs@@ -28,8 +28,8 @@ use std::sync::atomic::{AtomicUsize, Ordering};use std::sync::Arc;use std::time::Duration;-use tinyagents::harness::message::Message as TaMessage;-use tinyagents::harness::steering::{SteeringCommand, SteeringHandle};+use tinyagents_harness::message::Message as TaMessage;+use tinyagents_harness::steering::{SteeringCommand, SteeringHandle};use crate::core::bus::BUS;use crate::core::events::DomainEvent;diff --git a/src/openhuman/agent/tinyagents/stop_hooks.rs b/src/openhuman/agent/tinyagents/stop_hooks.rsindex 4b5516d5e6..e4f08d997d 100644--- a/src/openhuman/agent/tinyagents/stop_hooks.rs+++ b/src/openhuman/agent/tinyagents/stop_hooks.rs@@ -25,10 +25,10 @@ use std::sync::atomic::{AtomicBool, AtomicU32, Ordering};use std::sync::{Arc, Mutex};use async_trait::async_trait;-use tinyagents::harness::context::RunContext;-use tinyagents::harness::middleware::Middleware;-use tinyagents::harness::model::ModelResponse;-use tinyagents::harness::steering::{SteeringCommand, SteeringHandle};+use tinyagents_harness::context::RunContext;+use tinyagents_harness::middleware::Middleware;+use tinyagents_harness::model::ModelResponse;+use tinyagents_harness::steering::{SteeringCommand, SteeringHandle};use crate::openhuman::agent::cost::TurnCost;use crate::openhuman::agent::stop_hooks::{StopDecision, StopHook, TurnState};diff --git a/src/openhuman/agent/tinyagents/summarize.rs b/src/openhuman/agent/tinyagents/summarize.rsindex cce254002b..1ffd227088 100644--- a/src/openhuman/agent/tinyagents/summarize.rs+++ b/src/openhuman/agent/tinyagents/summarize.rs@@ -2,15 +2,15 @@//! (issue #4249).//!//! The harness historically only **front-trimmed** a long transcript-//! ([`tinyagents::harness::middleware::MessageTrimMiddleware`] with-//! [`TrimStrategy::MaxTokens`][tinyagents::harness::summarization::TrimStrategy]),+//! ([`tinyagents_harness::middleware::MessageTrimMiddleware`] with+//! [`TrimStrategy::MaxTokens`][tinyagents_harness::summarization::TrimStrategy]),//! dropping the oldest turns wholesale once the thread neared the model's//! context window. That is lossy: the dropped turns vanish.//!//! This module supplies the missing **summarization step** the per-folder graphs//! install: an LLM-backed [`Summarizer`] that condenses the older slice of the//! transcript into a single system message, driven by the crate's-//! [`ContextCompressionMiddleware`][tinyagents::harness::middleware::ContextCompressionMiddleware]+//! [`ContextCompressionMiddleware`][tinyagents_harness::middleware::ContextCompressionMiddleware]//! and a context-window-aware [`SummarizationPolicy`]. The policy only fires once//! the running token estimate crosses [`SUMMARIZE_THRESHOLD_FRACTION`] of the//! **current model's** context window — so the trigger is keyed to "whatever@@ -27,14 +27,14 @@ use std::sync::{Arc, Mutex};use async_trait::async_trait;-use tinyagents::error::{Result as TaResult, TinyAgentsError};-use tinyagents::harness::message::Message as TaMessage;-use tinyagents::harness::summarization::{+use tinyagents_harness::error::{Result as TaResult, TinyAgentsError};+use tinyagents_harness::message::Message as TaMessage;+use tinyagents_harness::summarization::{estimate_tokens, CompressionProvenance, SummarizationPolicy, Summarizer, SummaryRecord,};-use tinyagents::harness::message::Message as HarnessMessage;-use tinyagents::harness::model::{ChatModel, ModelRequest};+use tinyagents_harness::message::Message as HarnessMessage;+use tinyagents_harness::model::{ChatModel, ModelRequest};/// Fraction of the model's context window at which summarization fires.///@@ -182,7 +182,7 @@ struct CachedSummary {/// Fault-tolerant, per-turn-caching [`Summarizer`] adapter (issue #4461).////// Wraps the real (LLM-backed) [`ModelSummarizer`] the turn hands the-/// crate [`ContextCompressionMiddleware`][tinyagents::harness::middleware::ContextCompressionMiddleware]+/// crate [`ContextCompressionMiddleware`][tinyagents_harness::middleware::ContextCompressionMiddleware]/// and hardens two regressions the crate introduced versus the legacy engine:////// 1. **Failure no longer aborts the turn.** The crate's `before_model` does@@ -253,8 +253,8 @@ impl FaultTolerantCachingSummarizer {/// Deterministic, LLM-free fallback: front-drop the oldest messages until the/// remaining slice fits [`fallback_trim_budget`][Self::fallback_trim_budget]/// tokens (the same front-drop semantics as- /// [`MessageTrimMiddleware`][tinyagents::harness::middleware::MessageTrimMiddleware]- /// with [`TrimStrategy::MaxTokens`][tinyagents::harness::summarization::TrimStrategy]),+ /// [`MessageTrimMiddleware`][tinyagents_harness::middleware::MessageTrimMiddleware]+ /// with [`TrimStrategy::MaxTokens`][tinyagents_harness::summarization::TrimStrategy]),/// then render the survivors into a single system checkpoint message. Never/// fails, spends no tokens, and produces the same [`SummaryRecord`] shape the/// LLM path does so provenance still surfaces downstream.@@ -386,7 +386,7 @@ impl Summarizer for FaultTolerantCachingSummarizer {/// `context_window * `[`SUMMARIZE_THRESHOLD_FRACTION`] and keeps the most recent/// [`SUMMARIZE_KEEP_LAST`] non-system messages (plus all system messages)/// verbatim. Pair it with [`ModelSummarizer`] via-/// [`ContextCompressionMiddleware::with_summarizer`][tinyagents::harness::middleware::ContextCompressionMiddleware::with_summarizer].+/// [`ContextCompressionMiddleware::with_summarizer`][tinyagents_harness::middleware::ContextCompressionMiddleware::with_summarizer].pub(super) fn summarization_policy(context_window: u64) -> SummarizationPolicy {let mut policy = SummarizationPolicy::default().with_context_window(context_window)diff --git a/src/openhuman/agent/tinyagents/tinyagents_tests.rs b/src/openhuman/agent/tinyagents/tinyagents_tests.rsindex bda4657122..867ad15490 100644--- a/src/openhuman/agent/tinyagents/tinyagents_tests.rs+++ b/src/openhuman/agent/tinyagents/tinyagents_tests.rs@@ -72,8 +72,8 @@ fn crate_native_text_mode_disables_native_tools_on_workload_fallbacks() {#[test]fn direct_model_turn_source_builds_without_provider_adapter() {- let model: Arc<dyn tinyagents::harness::model::ChatModel<()>> =- Arc::new(tinyagents::harness::testkit::ScriptedModel::replies(vec![+ let model: Arc<dyn tinyagents_harness::model::ChatModel<()>> =+ Arc::new(tinyagents_harness::testkit::ScriptedModel::replies(vec!["done",]));let source = TurnModelSource::from_model(model);diff --git a/src/openhuman/agent/tinyagents/todos.rs b/src/openhuman/agent/tinyagents/todos.rsindex 18f2ffb9b4..3032c9f559 100644--- a/src/openhuman/agent/tinyagents/todos.rs+++ b/src/openhuman/agent/tinyagents/todos.rs@@ -3,8 +3,8 @@use std::path::Path;use std::sync::{Arc, OnceLock};-use tinyagents::graph::todos::{store as todos, TaskBoard};-use tinyagents::harness::store::{InMemoryStore, Store};+use tinyagents_graph::todos::{store as todos, TaskBoard};+use tinyagents_harness::store::{InMemoryStore, Store};use crate::openhuman::agent::session_import::ops::open_session_stores;diff --git a/src/openhuman/agent/tinyagents/todos_tests.rs b/src/openhuman/agent/tinyagents/todos_tests.rsindex 4222efeade..1cab23f62d 100644--- a/src/openhuman/agent/tinyagents/todos_tests.rs+++ b/src/openhuman/agent/tinyagents/todos_tests.rs@@ -10,7 +10,7 @@ async fn legacy_migration_copies_once_without_replacing_tinyagents_data() {let mut legacy = TaskBoard::empty("thread-1");legacy.cards- .push(tinyagents::graph::todos::TaskBoardCard::new("legacy"));+ .push(tinyagents_graph::todos::TaskBoardCard::new("legacy"));tokio::fs::write(legacy_dir.join("thread-1.json"),serde_json::to_vec(&legacy).expect("encode legacy"),diff --git a/src/openhuman/agent/tinyagents/tools.rs b/src/openhuman/agent/tinyagents/tools.rsindex 4621b44d36..69fb652f37 100644--- a/src/openhuman/agent/tinyagents/tools.rs+++ b/src/openhuman/agent/tinyagents/tools.rs@@ -9,8 +9,8 @@use std::sync::{Arc, Mutex, PoisonError};use async_trait::async_trait;-use tinyagents::harness::steering::{SteeringCommand, SteeringHandle};-use tinyagents::harness::tool::{+use tinyagents_harness::steering::{SteeringCommand, SteeringHandle};+use tinyagents_harness::tool::{SandboxMode, Tool, ToolAccess, ToolCall as TaToolCall, ToolExecutionContext, ToolPolicy,ToolResult as TaToolResult, ToolRuntime, ToolSchema, ToolSideEffects,ToolTimeout as TaToolTimeout, WorkspaceAccess,diff --git a/src/openhuman/agent/tinyagents/topology.rs b/src/openhuman/agent/tinyagents/topology.rsindex 94dc57b109..de5d94963b 100644--- a/src/openhuman/agent/tinyagents/topology.rs+++ b/src/openhuman/agent/tinyagents/topology.rs@@ -7,7 +7,7 @@//! UI / debug endpoint can render the orchestration graphs as JSON or Mermaid//! and surface any structural defects.-use tinyagents::graph::export::{self, GraphTopology};+use tinyagents_graph::export::{self, GraphTopology};/// A rendered topology for one graph.pub(crate) struct GraphTopologyReport {diff --git a/src/openhuman/agent/tools/delegate.rs b/src/openhuman/agent/tools/delegate.rsindex 50720d43eb..445a96811c 100644--- a/src/openhuman/agent/tools/delegate.rs+++ b/src/openhuman/agent/tools/delegate.rs@@ -11,8 +11,8 @@ use serde_json::json;use std::collections::HashMap;use std::sync::Arc;use std::time::Duration;-use tinyagents::harness::message::Message;-use tinyagents::harness::model::{ChatModel, ModelRequest};+use tinyagents_harness::message::Message;+use tinyagents_harness::model::{ChatModel, ModelRequest};/// Tool that delegates a subtask to a named agent with a different/// provider/model configuration. Enables multi-agent workflows wherediff --git a/src/openhuman/agent/triage/evaluator_tests.rs b/src/openhuman/agent/triage/evaluator_tests.rsindex 76e95ce63a..976b88acab 100644--- a/src/openhuman/agent/triage/evaluator_tests.rs+++ b/src/openhuman/agent/triage/evaluator_tests.rs@@ -25,8 +25,8 @@ fn arm_error_label(err: &ArmError) -> &'static str {// `provider_name` we inspect to disambiguate.fn unused_model_source() -> crate::openhuman::agent::tinyagents::TurnModelSource {- let model: StdArc<dyn tinyagents::harness::model::ChatModel<()>> =- StdArc::new(tinyagents::harness::testkit::ScriptedModel::new(Vec::new()));+ let model: StdArc<dyn tinyagents_harness::model::ChatModel<()>> =+ StdArc::new(tinyagents_harness::testkit::ScriptedModel::new(Vec::new()));crate::openhuman::agent::tinyagents::TurnModelSource::from_model(model)}diff --git a/src/openhuman/agent/turn_workspace.rs b/src/openhuman/agent/turn_workspace.rsindex 0c123aadda..c2d451b9f5 100644--- a/src/openhuman/agent/turn_workspace.rs+++ b/src/openhuman/agent/turn_workspace.rs@@ -18,7 +18,7 @@//! * the session builder//! ([`Agent::from_config`](crate::openhuman::agent::Agent::from_config)),//! which turns it into the turn's-//! [`WorkspaceDescriptor`](tinyagents::harness::workspace::WorkspaceDescriptor)+//! [`WorkspaceDescriptor`](tinyagents_harness::workspace::WorkspaceDescriptor)//! so acting tools (shell, file, git) resolve their default cwd there; and//! * [`SecurityPolicy::is_within_trusted_root`](crate::openhuman::security::SecurityPolicy::is_within_trusted_root),//! which treats the scoped root as a read/write trusted root for the@@ -68,7 +68,7 @@ pub async fn with_workspace<F: std::future::Future>(root: PathBuf, fut: F) -> F:/// The workspace root scoped for the current turn, when an embedder set one.////// `None` — the default everywhere — means "no per-turn root": the session-/// binds no [`WorkspaceDescriptor`](tinyagents::harness::workspace::WorkspaceDescriptor)+/// binds no [`WorkspaceDescriptor`](tinyagents_harness::workspace::WorkspaceDescriptor)/// of its own and the path policy grants nothing beyond its configured roots.pub fn current() -> Option<PathBuf> {AGENT_TURN_WORKSPACE.try_with(|root| root.clone()).ok()diff --git a/src/openhuman/channels/context_tests.rs b/src/openhuman/channels/context_tests.rsindex 278a253651..d3c588125d 100644--- a/src/openhuman/channels/context_tests.rs+++ b/src/openhuman/channels/context_tests.rs@@ -40,8 +40,8 @@ fn memory_entry(key: &str, content: &str, score: Option<f64>) -> MemoryEntry {}fn runtime_context() -> ChannelRuntimeContext {- let model: Arc<dyn tinyagents::harness::model::ChatModel<()>> =- Arc::new(tinyagents::harness::testkit::ScriptedModel::replies(vec![+ let model: Arc<dyn tinyagents_harness::model::ChatModel<()>> =+ Arc::new(tinyagents_harness::testkit::ScriptedModel::replies(vec!["ok",]));ChannelRuntimeContext {diff --git a/src/openhuman/channels/routes_tests.rs b/src/openhuman/channels/routes_tests.rsindex d0c0cd66e7..edf715371b 100644--- a/src/openhuman/channels/routes_tests.rs+++ b/src/openhuman/channels/routes_tests.rs@@ -117,8 +117,8 @@ impl Channel for RecordingChannel {}fn runtime_context(workspace_dir: PathBuf) -> ChannelRuntimeContext {- let model: Arc<dyn tinyagents::harness::model::ChatModel<()>> =- Arc::new(tinyagents::harness::testkit::ScriptedModel::replies(vec![+ let model: Arc<dyn tinyagents_harness::model::ChatModel<()>> =+ Arc::new(tinyagents_harness::testkit::ScriptedModel::replies(vec!["ok",]));ChannelRuntimeContext {diff --git a/src/openhuman/channels/runtime/test_support.rs b/src/openhuman/channels/runtime/test_support.rsindex 63b323ea93..ab8d41e2d0 100644--- a/src/openhuman/channels/runtime/test_support.rs+++ b/src/openhuman/channels/runtime/test_support.rs@@ -24,7 +24,7 @@ use std::collections::HashMap;use std::sync::atomic::{AtomicUsize, Ordering};use std::sync::{Arc, Mutex};use std::time::Duration;-use tinyagents::harness::model::{ChatModel, ModelRequest, ModelResponse};+use tinyagents_harness::model::{ChatModel, ModelRequest, ModelResponse};use tinymemory_api::types::{MemoryCategory, MemoryEntry};#[derive(Debug, Clone)]diff --git a/src/openhuman/channels/tests/common.rs b/src/openhuman/channels/tests/common.rsindex d62e165377..9c6c7722b4 100644--- a/src/openhuman/channels/tests/common.rs+++ b/src/openhuman/channels/tests/common.rs@@ -5,9 +5,9 @@ use std::sync::atomic::{AtomicUsize, Ordering};use std::sync::{Arc, Mutex};use std::time::Duration;use tempfile::TempDir;-use tinyagents::harness::message::{AssistantMessage, Message};-use tinyagents::harness::model::{ChatModel, ModelProfile, ModelRequest, ModelResponse};-use tinyagents::harness::tool::ToolCall;+use tinyagents_harness::message::{AssistantMessage, Message};+use tinyagents_harness::model::{ChatModel, ModelProfile, ModelRequest, ModelResponse};+use tinyagents_harness::tool::ToolCall;fn message_role(message: &Message) -> &'static str {match message {diff --git a/src/openhuman/channels/tests/discord_integration.rs b/src/openhuman/channels/tests/discord_integration.rsindex 2ac829ef05..d4feebcc90 100644--- a/src/openhuman/channels/tests/discord_integration.rs+++ b/src/openhuman/channels/tests/discord_integration.rs@@ -34,7 +34,7 @@ use crate::openhuman::agent::bus::{mock_agent_run_turn, AgentTurnResponse};use std::collections::HashMap;use std::sync::atomic::{AtomicUsize, Ordering};use std::sync::{Arc, Mutex};-use tinyagents::harness::model::{ChatModel, ModelRequest, ModelResponse};+use tinyagents_harness::model::{ChatModel, ModelRequest, ModelResponse};// ── Test helpers ────────────────────────────────────────────────────────────diff --git a/src/openhuman/channels/tests/runtime_tool_calls.rs b/src/openhuman/channels/tests/runtime_tool_calls.rsindex d097a40b27..19e8133c4d 100644--- a/src/openhuman/channels/tests/runtime_tool_calls.rs+++ b/src/openhuman/channels/tests/runtime_tool_calls.rs@@ -12,7 +12,7 @@ use crate::openhuman::inference::provider;use std::collections::HashMap;use std::sync::atomic::Ordering;use std::sync::{Arc, Mutex};-use tinyagents::harness::model::ChatModel;+use tinyagents_harness::model::ChatModel;#[tokio::test]async fn process_channel_message_executes_native_tool_calls() {diff --git a/src/openhuman/channels/tests/telegram_integration.rs b/src/openhuman/channels/tests/telegram_integration.rsindex 2ad1ac0b4e..cfec6ae3f8 100644--- a/src/openhuman/channels/tests/telegram_integration.rs+++ b/src/openhuman/channels/tests/telegram_integration.rs@@ -17,7 +17,7 @@ use std::collections::HashMap;use std::sync::atomic::{AtomicUsize, Ordering};use std::sync::{Arc, Mutex};use std::time::Duration;-use tinyagents::harness::model::{ChatModel, ModelRequest, ModelResponse};+use tinyagents_harness::model::{ChatModel, ModelRequest, ModelResponse};// ── Test helpers ────────────────────────────────────────────────────────────diff --git a/src/openhuman/flows/tinyflows/caps/llm.rs b/src/openhuman/flows/tinyflows/caps/llm.rsindex 4c9122345f..79500af989 100644--- a/src/openhuman/flows/tinyflows/caps/llm.rs+++ b/src/openhuman/flows/tinyflows/caps/llm.rs@@ -15,7 +15,7 @@ use tinyflows::error::{EngineError, Result};use super::*;use crate::openhuman::config::Config;use crate::openhuman::inference::provider::{create_chat_model_with_model_id, role_for_model_tier};-use tinyagents::harness::model::ModelRequest;+use tinyagents_harness::model::ModelRequest;/// [`LlmProvider`] adapter over OpenHuman's inference stack/// (`src/openhuman/inference/provider/`).diff --git a/src/openhuman/flows/tinyflows/caps/ops_tests_part_03_tests.rs b/src/openhuman/flows/tinyflows/caps/ops_tests_part_03_tests.rsindex 830fd2b10d..aa62d0e7b3 100644--- a/src/openhuman/flows/tinyflows/caps/ops_tests_part_03_tests.rs+++ b/src/openhuman/flows/tinyflows/caps/ops_tests_part_03_tests.rs@@ -166,10 +166,10 @@ fn resolve_completion_model_leaves_managed_tier_and_hint_node_models_untouched()#[test]fn crate_model_response_preserves_flow_completion_contract() {- use tinyagents::harness::message::{AssistantMessage, ContentBlock};- use tinyagents::harness::model::ModelResponse;- use tinyagents::harness::tool::ToolCall;- use tinyagents::harness::usage::Usage;+ use tinyagents_harness::message::{AssistantMessage, ContentBlock};+ use tinyagents_harness::model::ModelResponse;+ use tinyagents_harness::tool::ToolCall;+ use tinyagents_harness::usage::Usage;let usage = Usage::new(11, 7);let response = ModelResponse {diff --git a/src/openhuman/flows/tinyflows/caps/prompt.rs b/src/openhuman/flows/tinyflows/caps/prompt.rsindex f42eb183d5..d2f534ddf5 100644--- a/src/openhuman/flows/tinyflows/caps/prompt.rs+++ b/src/openhuman/flows/tinyflows/caps/prompt.rs@@ -38,7 +38,7 @@ pub(crate) fn usage_to_json(usage: &Option<UsageInfo>) -> Value {}pub(crate) fn model_response_to_completion_value(- response: &tinyagents::harness::model::ModelResponse,+ response: &tinyagents_harness::model::ModelResponse,) -> Value {json!({"text": response.text(),diff --git a/src/openhuman/flows/tinyflows/checkpoint_compat_tests_tests.rs b/src/openhuman/flows/tinyflows/checkpoint_compat_tests_tests.rsindex 0203fb8f2d..732e7b6a2e 100644--- a/src/openhuman/flows/tinyflows/checkpoint_compat_tests_tests.rs+++ b/src/openhuman/flows/tinyflows/checkpoint_compat_tests_tests.rs@@ -17,7 +17,7 @@ use tinyflows_sqlite::checkpoint::SqliteCheckpointer;fn schema_is_identical_to_the_backend_it_replaced() {assert_eq!(SqliteCheckpointer::<serde_json::Value>::schema_sql(),- tinyagents::graph::SqliteCheckpointer::<serde_json::Value>::schema_sql(),+ tinyagents_graph::SqliteCheckpointer::<serde_json::Value>::schema_sql(),"the ported schema drifted from the tinyagents backend that wrote every \checkpoints.db in the field — an existing database would stop resuming");@@ -36,16 +36,16 @@ async fn reads_a_database_written_by_the_previous_backend() {// importing both here would make every call in this file ambiguous.use tinyagents::Checkpointer as LegacyCheckpointer;- let old = tinyagents::graph::SqliteCheckpointer::<serde_json::Value>::open(&db).unwrap();- let written = tinyagents::graph::Checkpoint {+ let old = tinyagents_graph::SqliteCheckpointer::<serde_json::Value>::open(&db).unwrap();+ let written = tinyagents_graph::Checkpoint {thread_id: "flow:f1:run-a".to_string(),checkpoint_id: "cp-1".to_string(),run_id: Some("run-1".to_string()),parent_checkpoint_id: None,namespace: Vec::new(),state: json!({ "counter": 7 }),- next_nodes: vec![tinyagents::harness::ids::NodeId::new("next")],- completed_tasks: vec![tinyagents::harness::ids::NodeId::new("done")],+ next_nodes: vec![tinyagents_harness::ids::NodeId::new("next")],+ completed_tasks: vec![tinyagents_harness::ids::NodeId::new("done")],pending_writes: Vec::new(),interrupts: Vec::new(),pending_activations: None,diff --git a/src/openhuman/inference/embeddings/README.md b/src/openhuman/inference/embeddings/README.mdindex d23f993109..7d23e3e006 100644--- a/src/openhuman/inference/embeddings/README.md+++ b/src/openhuman/inference/embeddings/README.md@@ -2,7 +2,7 @@Host policy and RPC surface for vector embeddings. Concrete OpenAI-compatible,Cohere, Voyage, Ollama, cloud-transport, retry, and rate-limit implementations-live in `tinyagents::harness::embeddings`; this domain selects and adapts those+live in `tinyagents_harness::embeddings`; this domain selects and adapts thosemodels for OpenHuman.## Host-owned responsibilitiesdiff --git a/src/openhuman/inference/embeddings/cloud_adapter.rs b/src/openhuman/inference/embeddings/cloud_adapter.rsindex eef96bdd86..462b82b3e1 100644--- a/src/openhuman/inference/embeddings/cloud_adapter.rs+++ b/src/openhuman/inference/embeddings/cloud_adapter.rs@@ -4,7 +4,7 @@ use std::path::PathBuf;use std::sync::Arc;use async_trait::async_trait;-use tinyagents::harness::embeddings::{+use tinyagents_harness::embeddings::{BearerResolver, CloudEmbeddingModel, DEFAULT_CLOUD_DIMENSIONS, DEFAULT_CLOUD_MODEL,};diff --git a/src/openhuman/inference/embeddings/factory.rs b/src/openhuman/inference/embeddings/factory.rsindex 3726485860..e56645c38f 100644--- a/src/openhuman/inference/embeddings/factory.rs+++ b/src/openhuman/inference/embeddings/factory.rs@@ -8,7 +8,7 @@ use super::cloud::{};use super::provider_trait::{EmbeddingProvider, TinyAgentsEmbeddingProvider};use crate::openhuman::config::Config;-use tinyagents::harness::embeddings::{+use tinyagents_harness::embeddings::{CohereEmbeddingModel, NoopEmbeddingModel, OllamaEmbeddingModel, OpenAiEmbeddingModel,VoyageEmbeddingModel,};@@ -77,7 +77,7 @@ pub fn create_embedding_provider("",model,dims,- tinyagents::harness::embeddings::VOYAGE_API_BASE,+ tinyagents_harness::embeddings::VOYAGE_API_BASE,),)),"ollama" => {@@ -133,7 +133,7 @@ pub fn create_embedding_provider_with_credentials(api_key,model,dims,- tinyagents::harness::embeddings::VOYAGE_API_BASE,+ tinyagents_harness::embeddings::VOYAGE_API_BASE,),)),"ollama" => {diff --git a/src/openhuman/inference/embeddings/mod.rs b/src/openhuman/inference/embeddings/mod.rsindex 85c26eab4f..37164aab09 100644--- a/src/openhuman/inference/embeddings/mod.rs+++ b/src/openhuman/inference/embeddings/mod.rs@@ -19,17 +19,17 @@ mod factory;pub mod noop;mod provider_trait;pub mod rate_limit {- pub use tinyagents::harness::embeddings::{+ pub use tinyagents_harness::embeddings::{rate_limit as embedding_rate_limit, set_rate_limit as set_embedding_rate_limit,DEFAULT_REQUESTS_PER_MINUTE as DEFAULT_EMBEDDING_RATE_LIMIT_PER_MIN,};pub async fn acquire_embedding_slot(base_url: &str) {- tinyagents::harness::embeddings::acquire(base_url).await;+ tinyagents_harness::embeddings::acquire(base_url).await;}}pub mod retry_after {- pub use tinyagents::harness::embeddings::{+ pub use tinyagents_harness::embeddings::{backoff_ms_for_attempt, parse_retry_after_ms, BASE_BACKOFF_MS, MAX_BACKOFF_MS,MAX_RETRIES as MAX_429_RETRIES,};@@ -63,7 +63,7 @@ pub use schemas::{all_controller_schemas as all_embeddings_controller_schemas,all_registered_controllers as all_embeddings_registered_controllers,};-pub use tinyagents::harness::embeddings::{+pub use tinyagents_harness::embeddings::{DEFAULT_OLLAMA_DIMENSIONS, DEFAULT_OLLAMA_MODEL, DEFAULT_OLLAMA_URL,};diff --git a/src/openhuman/inference/embeddings/provider_trait.rs b/src/openhuman/inference/embeddings/provider_trait.rsindex 44bb7116f0..764e08a3b7 100644--- a/src/openhuman/inference/embeddings/provider_trait.rs+++ b/src/openhuman/inference/embeddings/provider_trait.rs@@ -27,7 +27,7 @@//!//! The engine keeps its own copy for its own factory. That is not duplication of//! *state*: the adapter is a stateless newtype over a boxed trait object, both-//! sides wrap the same `tinyagents::harness::embeddings::EmbeddingModel` (one+//! sides wrap the same `tinyagents_harness::embeddings::EmbeddingModel` (one//! crate — the root `[patch.crates-io]` points every consumer at//! `vendor/tinyagents`), and both produce the same//! `tinymemory_api::host::EmbeddingProvider`. Nothing reads the other's output,@@ -39,7 +39,7 @@//! before this move and one written after land in the same embedding space.use async_trait::async_trait;-use tinyagents::harness::embeddings::EmbeddingModel;+use tinyagents_harness::embeddings::EmbeddingModel;pub use tinymemory_api::host::{format_embedding_signature, EmbeddingProvider};diff --git a/src/openhuman/inference/http/server.rs b/src/openhuman/inference/http/server.rsindex 3179620ff7..35e80f41d0 100644--- a/src/openhuman/inference/http/server.rs+++ b/src/openhuman/inference/http/server.rs@@ -33,8 +33,8 @@ use serde_json::json;use std::collections::HashSet;use std::sync::atomic::{AtomicBool, Ordering};use std::sync::Arc;-use tinyagents::harness::message::Message;-use tinyagents::harness::model::{ModelRequest, ModelStreamItem};+use tinyagents_harness::message::Message;+use tinyagents_harness::model::{ModelRequest, ModelStreamItem};use tracing::{debug, warn};use super::types::{diff --git a/src/openhuman/inference/local/model_requirements.rs b/src/openhuman/inference/local/model_requirements.rsindex 9c1e26a7d4..40406bac0a 100644--- a/src/openhuman/inference/local/model_requirements.rs+++ b/src/openhuman/inference/local/model_requirements.rs@@ -2,7 +2,7 @@//!//! The memory tree's embedder (`bge-m3`) is requested with//! `num_ctx = 8192` (see-//! [`tinyagents::harness::embeddings::RECOMMENDED_OLLAMA_CONTEXT_TOKENS`])+//! [`tinyagents_harness::embeddings::RECOMMENDED_OLLAMA_CONTEXT_TOKENS`])//! and the summariser hard-caps its output to fit that 8192-token embed//! ceiling. A local model whose native context window is below this floor//! silently truncates chunks/summaries and corrupts recall, so we refuse@@ -21,7 +21,7 @@ use serde::Serialize;/// time. Changing the embedder's context request automatically moves the/// acceptance floor with it.pub const MIN_CONTEXT_TOKENS: u64 =- tinyagents::harness::embeddings::RECOMMENDED_OLLAMA_CONTEXT_TOKENS as u64;+ tinyagents_harness::embeddings::RECOMMENDED_OLLAMA_CONTEXT_TOKENS as u64;/// Verdict for a single model's context window against/// [`MIN_CONTEXT_TOKENS`]. Serialized into the diagnostics payload so thediff --git a/src/openhuman/inference/local/model_requirements_tests.rs b/src/openhuman/inference/local/model_requirements_tests.rsindex 9cff0c5f8d..3081ca7022 100644--- a/src/openhuman/inference/local/model_requirements_tests.rs+++ b/src/openhuman/inference/local/model_requirements_tests.rs@@ -6,7 +6,7 @@ fn min_context_tracks_embedder_request() {// requests; this guards against the two drifting apart.assert_eq!(MIN_CONTEXT_TOKENS,- tinyagents::harness::embeddings::RECOMMENDED_OLLAMA_CONTEXT_TOKENS as u64+ tinyagents_harness::embeddings::RECOMMENDED_OLLAMA_CONTEXT_TOKENS as u64);assert_eq!(MIN_CONTEXT_TOKENS, 8_192);}diff --git a/src/openhuman/inference/local/ops_part_01.rs b/src/openhuman/inference/local/ops_part_01.rsindex ac635903d5..f1c3cba51b 100644--- a/src/openhuman/inference/local/ops_part_01.rs+++ b/src/openhuman/inference/local/ops_part_01.rs@@ -216,7 +216,7 @@ pub async fn agent_chat(// that read `ToolExecutionContext::workspace` (shell) resolve their// default cwd here, and so spawned sub-agents inherit the same root.agent.set_workspace_descriptor(Some(- tinyagents::harness::workspace::WorkspaceDescriptor::new(root.clone()),+ tinyagents_harness::workspace::WorkspaceDescriptor::new(root.clone()),));agent}@@ -294,8 +294,8 @@ pub async fn agent_chat_simple();let run = model.invoke(&(),- tinyagents::harness::model::ModelRequest::new(vec![- tinyagents::harness::message::Message::user(message.to_string()),+ tinyagents_harness::model::ModelRequest::new(vec![+ tinyagents_harness::message::Message::user(message.to_string()),]).with_model(default_model.clone()).with_temperature(effective.default_temperature),diff --git a/src/openhuman/inference/local/service/model_rpc.rs b/src/openhuman/inference/local/service/model_rpc.rsindex fa6218fab1..51b909e75b 100644--- a/src/openhuman/inference/local/service/model_rpc.rs+++ b/src/openhuman/inference/local/service/model_rpc.rs@@ -10,9 +10,9 @@ use crate::openhuman::inference::local::ollama::{ollama_base_url_from_config, redact_ollama_base_url,};use crate::openhuman::inference::local::provider::{provider_from_config, LocalAiProvider};-use tinyagents::harness::message::Message;-use tinyagents::harness::model::{ChatModel, ModelRequest};-use tinyagents::harness::providers::openai::OpenAiModel;+use tinyagents_harness::message::Message;+use tinyagents_harness::model::{ChatModel, ModelRequest};+use tinyagents_harness::providers::openai::OpenAiModel;pub(super) struct ModelRpcOutcome {pub reply: String,@@ -126,7 +126,7 @@ pub(super) async fn invoke(}fn model_outcome(- response: tinyagents::harness::model::ModelResponse,+ response: tinyagents_harness::model::ModelResponse,allow_empty: bool,) -> Result<ModelRpcOutcome, String> {let mut reply = response.text();@@ -136,7 +136,7 @@ fn model_outcome(.content.iter().filter_map(|block| match block {- tinyagents::harness::message::ContentBlock::Thinking { text, .. } => {+ tinyagents_harness::message::ContentBlock::Thinking { text, .. } => {Some(text.as_str())}_ => None,diff --git a/src/openhuman/inference/local/service/model_rpc_tests.rs b/src/openhuman/inference/local/service/model_rpc_tests.rsindex 6356285ecf..96907564a6 100644--- a/src/openhuman/inference/local/service/model_rpc_tests.rs+++ b/src/openhuman/inference/local/service/model_rpc_tests.rs@@ -1,8 +1,8 @@use super::{local_model, model_outcome, throughput};use crate::openhuman::config::Config;-use tinyagents::harness::message::{AssistantMessage, ContentBlock};-use tinyagents::harness::model::ModelResponse;-use tinyagents::harness::usage::Usage;+use tinyagents_harness::message::{AssistantMessage, ContentBlock};+use tinyagents_harness::model::ModelResponse;+use tinyagents_harness::usage::Usage;#[test]fn throughput_reads_ollama_timing_metadata() {diff --git a/src/openhuman/inference/local/service/public_infer.rs b/src/openhuman/inference/local/service/public_infer.rsindex 0fd4dbc196..a034776ea6 100644--- a/src/openhuman/inference/local/service/public_infer.rs+++ b/src/openhuman/inference/local/service/public_infer.rs@@ -1,7 +1,7 @@use crate::openhuman::config::Config;use crate::openhuman::inference::model_ids;use crate::openhuman::inference::parse::sanitize_inline_completion;-use tinyagents::harness::message::Message;+use tinyagents_harness::message::Message;use super::LocalAiService;diff --git a/src/openhuman/inference/local/service/vision_embed.rs b/src/openhuman/inference/local/service/vision_embed.rsindex 393017e083..7b0b05c30c 100644--- a/src/openhuman/inference/local/service/vision_embed.rs+++ b/src/openhuman/inference/local/service/vision_embed.rs@@ -7,7 +7,7 @@ use crate::openhuman::inference::local::ollama::{use crate::openhuman::inference::model_ids;use crate::openhuman::inference::presets::{self, VisionMode};use crate::openhuman::inference::types::LocalAiEmbeddingResult;-use tinyagents::harness::embeddings::{+use tinyagents_harness::embeddings::{EmbeddingModel, OllamaEmbeddingModel, DEFAULT_OLLAMA_DIMENSIONS,RECOMMENDED_OLLAMA_CONTEXT_TOKENS,};diff --git a/src/openhuman/inference/model_context.rs b/src/openhuman/inference/model_context.rsindex aea4837b67..dc7d0f6289 100644--- a/src/openhuman/inference/model_context.rs+++ b/src/openhuman/inference/model_context.rs@@ -74,7 +74,7 @@ pub fn context_window_for_model(model: &str) -> Option<u64> {return Some(u64::from(price.context_window));}- if let Some(window) = tinyagents::harness::model::context_window_for_model_id(normalized) {+ if let Some(window) = tinyagents_harness::model::context_window_for_model_id(normalized) {tracing::debug!(model = normalized,context_window = window,diff --git a/src/openhuman/inference/ops.rs b/src/openhuman/inference/ops.rsindex 7eae57381d..b14640f2ac 100644--- a/src/openhuman/inference/ops.rs+++ b/src/openhuman/inference/ops.rs@@ -9,8 +9,8 @@ use crate::openhuman::inference::{device, presets, sentiment, SentimentResult};use crate::openhuman::inference::{LocalAiEmbeddingResult, LocalAiStatus};use crate::rpc::RpcOutcome;use serde_json::{json, Value};-use tinyagents::harness::message::Message;-use tinyagents::harness::model::ModelRequest;+use tinyagents_harness::message::Message;+use tinyagents_harness::model::ModelRequest;use tracing::{debug, error, warn};const LOG_PREFIX: &str = "[inference::ops]";diff --git a/src/openhuman/inference/provider/chat_template.rs b/src/openhuman/inference/provider/chat_template.rsindex bde0938fc7..aea3a88dec 100644--- a/src/openhuman/inference/provider/chat_template.rs+++ b/src/openhuman/inference/provider/chat_template.rs@@ -5,4 +5,4 @@//! reusable recognition of LM Studio, llama.cpp, and Ollama template-engine//! failures belongs to the default inference driver.-pub use tinyagents::harness::providers::openai::is_chat_template_rejection_message;+pub use tinyagents_harness::providers::openai::is_chat_template_rejection_message;diff --git a/src/openhuman/inference/provider/claude_agent_sdk/subprocess.rs b/src/openhuman/inference/provider/claude_agent_sdk/subprocess.rsindex 06dd42c95a..bfae1b4d17 100644--- a/src/openhuman/inference/provider/claude_agent_sdk/subprocess.rs+++ b/src/openhuman/inference/provider/claude_agent_sdk/subprocess.rs@@ -2,10 +2,10 @@use anyhow::Context;use async_trait::async_trait;-use tinyagents::error::TinyAgentsError;-use tinyagents::harness::message::Message;-use tinyagents::harness::model::{ChatModel, ModelProfile, ModelRequest, ModelResponse};-use tinyagents::harness::tool::{coalesce_prompt_tool_results, with_prompt_tool_instructions};+use tinyagents_harness::error::TinyAgentsError;+use tinyagents_harness::message::Message;+use tinyagents_harness::model::{ChatModel, ModelProfile, ModelRequest, ModelResponse};+use tinyagents_harness::tool::{coalesce_prompt_tool_results, with_prompt_tool_instructions};use tokio::io::{AsyncBufReadExt, AsyncWriteExt, BufReader};use tokio::process::Command;use tokio::time::{timeout, Duration};diff --git a/src/openhuman/inference/provider/claude_agent_sdk/subprocess_tests.rs b/src/openhuman/inference/provider/claude_agent_sdk/subprocess_tests.rsindex a1605d3eeb..9d79ebfbd3 100644--- a/src/openhuman/inference/provider/claude_agent_sdk/subprocess_tests.rs+++ b/src/openhuman/inference/provider/claude_agent_sdk/subprocess_tests.rs@@ -136,7 +136,7 @@ async fn provider_spawn_error_includes_the_os_source() {#[tokio::test]async fn chat_model_uses_prompt_guided_protocol_and_model_override() {use std::os::unix::fs::PermissionsExt;- use tinyagents::harness::tool::ToolSchema;+ use tinyagents_harness::tool::ToolSchema;let dir = tempfile::tempdir().expect("tempdir");let script = dir.path().join("claude");diff --git a/src/openhuman/inference/provider/claude_code/mod.rs b/src/openhuman/inference/provider/claude_code/mod.rsindex 80444b08e8..35f41e9f78 100644--- a/src/openhuman/inference/provider/claude_code/mod.rs+++ b/src/openhuman/inference/provider/claude_code/mod.rs@@ -23,8 +23,8 @@ use std::path::PathBuf;use std::sync::Arc;use async_trait::async_trait;-use tinyagents::error::TinyAgentsError;-use tinyagents::harness::model::{+use tinyagents_harness::error::TinyAgentsError;+use tinyagents_harness::model::{ChatModel, ModelProfile, ModelRequest, ModelResponse, ModelStream, ModelStreamItem,};use tokio::sync::Semaphore;diff --git a/src/openhuman/inference/provider/crate_openai.rs b/src/openhuman/inference/provider/crate_openai.rsindex 10d9ff561c..70350a9e62 100644--- a/src/openhuman/inference/provider/crate_openai.rs+++ b/src/openhuman/inference/provider/crate_openai.rs@@ -20,8 +20,8 @@use std::sync::Arc;-use tinyagents::harness::model::ChatModel;-use tinyagents::harness::providers::openai::{AuthStyle as CrateAuthStyle, OpenAiModel};+use tinyagents_harness::model::ChatModel;+use tinyagents_harness::providers::openai::{AuthStyle as CrateAuthStyle, OpenAiModel};use super::auth::AuthStyle as HostAuthStyle;diff --git a/src/openhuman/inference/provider/error_classify.rs b/src/openhuman/inference/provider/error_classify.rsindex c4e00bc91f..025763fbb7 100644--- a/src/openhuman/inference/provider/error_classify.rs+++ b/src/openhuman/inference/provider/error_classify.rs@@ -1,6 +1,6 @@//! OpenHuman-specific policy layered on TinyAgents' provider-neutral retry classifier.-use tinyagents::harness::retry::{+use tinyagents_harness::retry::{classify_provider_failure, parse_retry_after_ms as parse_tinyagents_retry_after,ProviderFailureClass,};diff --git a/src/openhuman/inference/provider/factory_part_01.rs b/src/openhuman/inference/provider/factory_part_01.rsindex bc80be8901..cf8e32ac30 100644--- a/src/openhuman/inference/provider/factory_part_01.rs+++ b/src/openhuman/inference/provider/factory_part_01.rs@@ -10,7 +10,7 @@ use crate::openhuman::inference::provider::openhuman_backend_model::OpenHumanBacuse crate::openhuman::inference::provider::ProviderRuntimeOptions;use crate::openhuman::security::credentials::AuthService;use std::sync::Arc;-use tinyagents::harness::model::{ChatModel, ModelRequest, ModelResponse, ModelStream};+use tinyagents_harness::model::{ChatModel, ModelRequest, ModelResponse, ModelStream};/// Sentinel meaning "use the OpenHuman backend session JWT".pub const PROVIDER_OPENHUMAN: &str = "openhuman";diff --git a/src/openhuman/inference/provider/factory_part_02.rs b/src/openhuman/inference/provider/factory_part_02.rsindex 4ac468907d..84137333b1 100644--- a/src/openhuman/inference/provider/factory_part_02.rs+++ b/src/openhuman/inference/provider/factory_part_02.rs@@ -213,7 +213,7 @@ struct DefaultTemperatureChatModel {#[async_trait::async_trait]impl ChatModel<()> for DefaultTemperatureChatModel {- fn profile(&self) -> Option<&tinyagents::harness::model::ModelProfile> {+ fn profile(&self) -> Option<&tinyagents_harness::model::ModelProfile> {self.inner.profile()}@@ -563,11 +563,11 @@ pub(crate) fn make_openhuman_backend_model(role: &str,config: &Config,) -> anyhow::Result<(- std::sync::Arc<dyn tinyagents::harness::model::ChatModel<()>>,+ std::sync::Arc<dyn tinyagents_harness::model::ChatModel<()>>,String,)> {let (model_client, model) = resolve_managed_backend(role, config)?;- let chat: std::sync::Arc<dyn tinyagents::harness::model::ChatModel<()>> =+ let chat: std::sync::Arc<dyn tinyagents_harness::model::ChatModel<()>> =std::sync::Arc::new(model_client);Ok((chat, model))}diff --git a/src/openhuman/inference/provider/factory_test_provider_override_tests.rs b/src/openhuman/inference/provider/factory_test_provider_override_tests.rsindex 9e836ec90c..278c231313 100644--- a/src/openhuman/inference/provider/factory_test_provider_override_tests.rs+++ b/src/openhuman/inference/provider/factory_test_provider_override_tests.rs@@ -1,5 +1,5 @@use std::sync::{Arc, Mutex, OnceLock};-use tinyagents::harness::model::ChatModel;+use tinyagents_harness::model::ChatModel;static OVERRIDE: OnceLock<Mutex<Option<Arc<dyn ChatModel<()>>>>> = OnceLock::new();fn cell() -> &'static Mutex<Option<Arc<dyn ChatModel<()>>>> {diff --git a/src/openhuman/inference/provider/factory_tests_part_02_tests.rs b/src/openhuman/inference/provider/factory_tests_part_02_tests.rsindex 85c0d6fda1..26b4ca34d7 100644--- a/src/openhuman/inference/provider/factory_tests_part_02_tests.rs+++ b/src/openhuman/inference/provider/factory_tests_part_02_tests.rs@@ -74,9 +74,9 @@ fn enforce_local_only_inference_errors_on_external_when_local_only() {#[tokio::test]async fn create_chat_model_uses_native_test_override() {use std::sync::Arc;- use tinyagents::harness::message::Message;- use tinyagents::harness::model::ModelRequest;- use tinyagents::harness::testkit::ScriptedModel;+ use tinyagents_harness::message::Message;+ use tinyagents_harness::model::ModelRequest;+ use tinyagents_harness::testkit::ScriptedModel;let _guard = crate::openhuman::inference::inference_test_guard();@@ -99,8 +99,8 @@ async fn create_chat_model_uses_native_test_override() {async fn one_shot_chat_models_preserve_factory_temperature_as_request_default() {use async_trait::async_trait;use std::sync::{Arc, Mutex};- use tinyagents::harness::message::Message;- use tinyagents::harness::model::{ModelRequest, ModelResponse};+ use tinyagents_harness::message::Message;+ use tinyagents_harness::model::{ModelRequest, ModelResponse};struct TemperatureProbe {seen: Arc<Mutex<Vec<Option<f64>>>>,diff --git a/src/openhuman/inference/provider/openhuman_backend_model.rs b/src/openhuman/inference/provider/openhuman_backend_model.rsindex 4ebdc136a4..822471882a 100644--- a/src/openhuman/inference/provider/openhuman_backend_model.rs+++ b/src/openhuman/inference/provider/openhuman_backend_model.rs@@ -28,11 +28,11 @@ use serde_json::Value;use std::path::PathBuf;use std::time::Duration;-use tinyagents::harness::message::Message;-use tinyagents::harness::model::{+use tinyagents_harness::message::Message;+use tinyagents_harness::model::{ChatModel, Modalities, ModelProfile, ModelRequest, ModelResponse, ModelStream, ProviderError,};-use tinyagents::harness::providers::openai::OpenAiModel;+use tinyagents_harness::providers::openai::OpenAiModel;use tinyagents::{Result as TaResult, TinyAgentsError};use super::ProviderRuntimeOptions;diff --git a/src/openhuman/inference/provider/openhuman_backend_model_tests.rs b/src/openhuman/inference/provider/openhuman_backend_model_tests.rsindex 37fa311b34..cd030875a2 100644--- a/src/openhuman/inference/provider/openhuman_backend_model_tests.rs+++ b/src/openhuman/inference/provider/openhuman_backend_model_tests.rs@@ -1,6 +1,6 @@use super::*;use crate::openhuman::inference::provider::ProviderRuntimeOptions;-use tinyagents::harness::message::Message;+use tinyagents_harness::message::Message;fn backend() -> OpenHumanBackendModel {OpenHumanBackendModel::new(@@ -59,8 +59,8 @@ fn resolve_model_normalizes_blank_and_trims_non_empty_values() {#[test]fn project_managed_usage_recovers_charged_and_cached() {use crate::openhuman::agent::tinyagents::model::usage_info_from_response;- use tinyagents::harness::message::AssistantMessage;- use tinyagents::harness::usage::Usage;+ use tinyagents_harness::message::AssistantMessage;+ use tinyagents_harness::usage::Usage;let raw = serde_json::json!({"openhuman": {@@ -105,8 +105,8 @@ fn project_managed_usage_recovers_charged_and_cached() {#[test]fn project_managed_usage_is_noop_without_envelope() {use crate::openhuman::agent::tinyagents::model::usage_info_from_response;- use tinyagents::harness::message::AssistantMessage;- use tinyagents::harness::usage::Usage;+ use tinyagents_harness::message::AssistantMessage;+ use tinyagents_harness::usage::Usage;let response = ModelResponse {message: AssistantMessage {diff --git a/src/openhuman/mcp/server/README.md b/src/openhuman/mcp/server/README.mdindex bc41cdae3d..e64e81e2c3 100644--- a/src/openhuman/mcp/server/README.md+++ b/src/openhuman/mcp/server/README.md@@ -75,7 +75,7 @@ No `store.rs`. The only durable side effect is the **MCP write-audit log**, writ- `crate::openhuman::config` (`Config`, `rpc::load_config_with_timeout`, `McpAuthConfig`/`McpClientIdentityConfig` in tests) — load config for policy/searxng gating and per-call config.- `crate::openhuman::security` (`SecurityPolicy`, `ToolOperation`) — enforce read/act autonomy policy per tool call.- `crate::openhuman::agent` (`Agent`, `agents::BUILTINS`, `harness::AgentDefinitionRegistry`) — build the orchestrator agent for `core.list_tools`/`core.tool_instructions`, list/run subagents, and cross-check the resource catalog.-- `tinyagents::harness::tool::prompt_tool_instructions` — render the markdown tool-use instructions block for `core.tool_instructions`. Replaced the host's `build_tool_instructions_text` (deleted); the model-facing copy changed two words ("may emit" vs "may use", "After execution" vs "After tool execution").+- `tinyagents_harness::tool::prompt_tool_instructions` — render the markdown tool-use instructions block for `core.tool_instructions`. Replaced the host's `build_tool_instructions_text` (deleted); the model-facing copy changed two words ("may emit" vs "may use", "After execution" vs "After tool execution").- `crate::openhuman::tools` (`SEARXNG_MAX_RESULTS`, `normalize_categories`) — SearXNG bounds + category normalization for `searxng_search`.- `crate::openhuman::mcp::audit` (`record_write`, `NewMcpWriteRecord`, list/query helpers in tests) — durable write-audit log.- `crate::openhuman::mcp::http_client::McpHttpClient` — round-trip test harness for the HTTP transport (test-only).diff --git a/src/openhuman/mcp/server/tools/dispatch.rs b/src/openhuman/mcp/server/tools/dispatch.rsindex aa8aeecaa0..a840850af4 100644--- a/src/openhuman/mcp/server/tools/dispatch.rs+++ b/src/openhuman/mcp/server/tools/dispatch.rs@@ -239,7 +239,7 @@ async fn core_tool_instructions() -> Result<Value, ToolCallError> {let agent = build_orchestrator_agent().await?;let schemas: Vec<_> = agent.tool_specs().iter().map(spec_to_schema).collect();Ok(tool_text_success(- tinyagents::harness::tool::prompt_tool_instructions(&schemas),+ tinyagents_harness::tool::prompt_tool_instructions(&schemas),))}diff --git a/src/openhuman/memory/host_impls.rs b/src/openhuman/memory/host_impls.rsindex fe0b18b8e9..99bfce2eee 100644--- a/src/openhuman/memory/host_impls.rs+++ b/src/openhuman/memory/host_impls.rs@@ -28,7 +28,7 @@use std::sync::Arc;use async_trait::async_trait;-use tinyagents::harness::model::{ChatModel, ModelResponse};+use tinyagents_harness::model::{ChatModel, ModelResponse};use tinymemory_api::host::{EmbeddingHost, EmbeddingProvider, ErrorReporter, UsageInfo};use tinymemory_core::chat_host::ChatHost;use tinymemory_core::composio_host::{ComposioConnection, ComposioExecuteResponse, ComposioHost};diff --git a/src/openhuman/memory/tree/tree_runtime/ops.rs b/src/openhuman/memory/tree/tree_runtime/ops.rsindex 7a9d50c9b1..dc433ab2d9 100644--- a/src/openhuman/memory/tree/tree_runtime/ops.rs+++ b/src/openhuman/memory/tree/tree_runtime/ops.rs@@ -175,7 +175,7 @@ pub(crate) fn create_provider(config: &Config,) -> Result<(- std::sync::Arc<dyn tinyagents::harness::model::ChatModel<()>>,+ std::sync::Arc<dyn tinyagents_harness::model::ChatModel<()>>,String,),String,diff --git a/src/openhuman/modules/memory_host.rs b/src/openhuman/modules/memory_host.rsindex 7da1cc5e1c..e6d131207e 100644--- a/src/openhuman/modules/memory_host.rs+++ b/src/openhuman/modules/memory_host.rs@@ -35,7 +35,7 @@use crate::core::bus::BUS;use crate::openhuman::config::Config;use std::sync::Arc;-use tinyagents::harness::model::{ModelRequest, ModelResponse};+use tinyagents_harness::model::{ModelRequest, ModelResponse};use tinybus::ObjectPath;use tinyconnectors_bus::{ComposioConnection, ComposioExecuteResponse};use tinymemory_api::host::{MemoryEvent, SpacyResponse};diff --git a/src/openhuman/platform/cost/catalog.rs b/src/openhuman/platform/cost/catalog.rsindex ebe31b7aed..b0dd4dbda4 100644--- a/src/openhuman/platform/cost/catalog.rs+++ b/src/openhuman/platform/cost/catalog.rs@@ -459,8 +459,8 @@ fn per_token(rate_per_mtok: f64) -> Option<f64> {/// derives live runtime capability flags (tools, vision, streaming) from the/// provider adapter at construction time, because the static cost catalog does/// not yet encode those fields authoritatively for every provider/model.-pub fn tinyagents_catalog_entry(price: &ModelPrice) -> tinyagents::registry::ModelCatalogEntry {- tinyagents::registry::ModelCatalogEntry {+pub fn tinyagents_catalog_entry(price: &ModelPrice) -> tinyagents_registry::ModelCatalogEntry {+ tinyagents_registry::ModelCatalogEntry {provider: price.provider.to_string(),model_id: price.model_id.to_string(),aliases: Vec::new(),@@ -468,7 +468,7 @@ pub fn tinyagents_catalog_entry(price: &ModelPrice) -> tinyagents::registry::Modmax_input_tokens: Some(u64::from(price.context_window)),max_output_tokens: None,deprecation_date: None,- pricing: tinyagents::registry::ModelPricing {+ pricing: tinyagents_registry::ModelPricing {input_per_token: per_token(price.input_per_mtok_usd),output_per_token: per_token(price.output_per_mtok_usd),cache_read_input_per_token: per_token(price.cached_input_per_mtok_usd),@@ -476,9 +476,9 @@ pub fn tinyagents_catalog_entry(price: &ModelPrice) -> tinyagents::registry::Modinput_audio_per_token: None,output_reasoning_per_token: None,},- capabilities: tinyagents::registry::ModelCapabilities {+ capabilities: tinyagents_registry::ModelCapabilities {prompt_caching: price.cached_input_per_mtok_usd > 0.0,- ..tinyagents::registry::ModelCapabilities::default()+ ..tinyagents_registry::ModelCapabilities::default()},source: TINYAGENTS_CATALOG_SOURCE.to_string(),source_url: None,@@ -489,7 +489,7 @@ pub fn tinyagents_catalog_entry(price: &ModelPrice) -> tinyagents::registry::Mod/// Resolve a model id and return its TinyAgents catalog projection.pub fn tinyagents_catalog_entry_for_model(model: &str,-) -> Option<tinyagents::registry::ModelCatalogEntry> {+) -> Option<tinyagents_registry::ModelCatalogEntry> {lookup(model).map(tinyagents_catalog_entry)}@@ -521,8 +521,8 @@ pub struct LocalCatalogModel {}/// Project one runtime-discovered local model into a TinyAgents catalog entry.-fn local_catalog_entry(model: &LocalCatalogModel) -> tinyagents::registry::ModelCatalogEntry {- tinyagents::registry::ModelCatalogEntry {+fn local_catalog_entry(model: &LocalCatalogModel) -> tinyagents_registry::ModelCatalogEntry {+ tinyagents_registry::ModelCatalogEntry {provider: model.provider.clone(),model_id: model.model_id.clone(),aliases: Vec::new(),@@ -532,11 +532,11 @@ fn local_catalog_entry(model: &LocalCatalogModel) -> tinyagents::registry::Modeldeprecation_date: None,// Local runtimes are not billed per token; leave every price unset (not// zero — `None` means "not applicable", not "free of charge").- pricing: tinyagents::registry::ModelPricing::default(),- capabilities: tinyagents::registry::ModelCapabilities {+ pricing: tinyagents_registry::ModelPricing::default(),+ capabilities: tinyagents_registry::ModelCapabilities {streaming: model.streaming,tool_calling: model.tool_calling,- ..tinyagents::registry::ModelCapabilities::default()+ ..tinyagents_registry::ModelCapabilities::default()},source: TINYAGENTS_LOCAL_SOURCE.to_string(),source_url: None,@@ -547,8 +547,8 @@ fn local_catalog_entry(model: &LocalCatalogModel) -> tinyagents::registry::Model/// Upsert `entry` into `models` keyed by `(provider, model_id)`: replace an/// existing row for that key, otherwise append. Later overlays win.fn upsert_catalog_entry(- models: &mut Vec<tinyagents::registry::ModelCatalogEntry>,- entry: tinyagents::registry::ModelCatalogEntry,+ models: &mut Vec<tinyagents_registry::ModelCatalogEntry>,+ entry: tinyagents_registry::ModelCatalogEntry,) {if let Some(existing) = models.iter_mut()@@ -567,7 +567,7 @@ fn upsert_catalog_entry(/// increasing precedence, so a later layer overrides an earlier one for the same/// `(provider, model_id)`:///-/// 1. **Crate seed** — `tinyagents::registry::ModelCatalog::seed()`, the crate's+/// 1. **Crate seed** — `tinyagents_registry::ModelCatalog::seed()`, the crate's/// checked-in offline catalog. This is the base/fallback set./// 2. **OpenHuman static rows** — [`KNOWN_MODEL_PRICING`], projected via/// [`tinyagents_catalog_entry`]. OpenHuman's published rates/windows are@@ -592,9 +592,9 @@ fn upsert_catalog_entry(/// snapshot lookup is deferred until that lookup is proven numerically identical.pub fn unified_model_catalog(local_models: &[LocalCatalogModel],-) -> tinyagents::registry::ModelCatalogSnapshot {+) -> tinyagents_registry::ModelCatalogSnapshot {// 1. Crate seed as the base layer.- let (mut models, mut sources) = match tinyagents::registry::ModelCatalog::seed() {+ let (mut models, mut sources) = match tinyagents_registry::ModelCatalog::seed() {Ok(catalog) => {let snapshot = catalog.snapshot();(snapshot.models.clone(), snapshot.sources.clone())@@ -633,13 +633,13 @@ pub fn unified_model_catalog(}// Record OpenHuman's own provenance alongside the crate seed's sources.- sources.push(tinyagents::registry::ModelCatalogSource {+ sources.push(tinyagents_registry::ModelCatalogSource {name: TINYAGENTS_CATALOG_SOURCE.to_string(),url: "repo:src/openhuman/platform/cost/catalog.rs".to_string(),retrieved_at: format!("{PRICING_AS_OF}-01T00:00:00Z"),});- tinyagents::registry::ModelCatalogSnapshot {+ tinyagents_registry::ModelCatalogSnapshot {schema_version: 1,snapshot_id: format!("{TINYAGENTS_CATALOG_SOURCE}-unified-{PRICING_AS_OF}"),created_at: format!("{PRICING_AS_OF}-01T00:00:00Z"),@@ -657,7 +657,7 @@ pub fn unified_model_catalog(/// models. Callers that cannot enumerate local runtimes (no config/network in/// hand) use this; callers that can pass discovered models to/// [`unified_model_catalog`] directly.-pub fn tinyagents_catalog_snapshot() -> tinyagents::registry::ModelCatalogSnapshot {+pub fn tinyagents_catalog_snapshot() -> tinyagents_registry::ModelCatalogSnapshot {unified_model_catalog(&[])}diff --git a/src/openhuman/skills/e2e_plumbing_tests.rs b/src/openhuman/skills/e2e_plumbing_tests.rsindex 0e4a745e0e..922718e43b 100644--- a/src/openhuman/skills/e2e_plumbing_tests.rs+++ b/src/openhuman/skills/e2e_plumbing_tests.rs@@ -39,9 +39,9 @@ use crate::openhuman::skills::registry::get_workflow;use crate::openhuman::skills::run_log;use crate::openhuman::skills::runtime::await_run_outcome;use crate::openhuman::tools::traits::Tool;-use tinyagents::harness::message::AssistantMessage;-use tinyagents::harness::model::{ChatModel, ModelProfile, ModelRequest, ModelResponse};-use tinyagents::harness::tool::ToolCall;+use tinyagents_harness::message::AssistantMessage;+use tinyagents_harness::model::{ChatModel, ModelProfile, ModelRequest, ModelResponse};+use tinyagents_harness::tool::ToolCall;// ── Mock LLM ─────────────────────────────────────────────────────────────// Minimal scripted model: pops queued ModelResponses in order. Mirrors thediff --git a/src/openhuman/skills/e2e_run_tests.rs b/src/openhuman/skills/e2e_run_tests.rsindex c7681edfe7..b7f43fbb68 100644--- a/src/openhuman/skills/e2e_run_tests.rs+++ b/src/openhuman/skills/e2e_run_tests.rs@@ -41,9 +41,9 @@ use crate::openhuman::skills::schemas::resolve_workspace_dir;use crate::openhuman::threads::todos::ops as board_ops;use crate::openhuman::threads::todos::ops::{BoardLocation, CardPatch};use crate::openhuman::tools::traits::Tool;-use tinyagents::harness::message::AssistantMessage;-use tinyagents::harness::model::{ChatModel, ModelProfile, ModelRequest, ModelResponse};-use tinyagents::harness::tool::ToolCall;+use tinyagents_harness::message::AssistantMessage;+use tinyagents_harness::model::{ChatModel, ModelProfile, ModelRequest, ModelResponse};+use tinyagents_harness::tool::ToolCall;/// Serialize this module's tests (each touches process-global state).fn serial() -> &'static tokio::sync::Mutex<()> {diff --git a/src/openhuman/threads/goals/mod.rs b/src/openhuman/threads/goals/mod.rsindex 1eb3ca3f10..b1efd92fc0 100644--- a/src/openhuman/threads/goals/mod.rs+++ b/src/openhuman/threads/goals/mod.rs@@ -1,4 +1,4 @@-//! Thin OpenHuman host adapters for [`tinyagents::graph::goals`].+//! Thin OpenHuman host adapters for [`tinyagents_graph::goals`].//!//! Tinyagents owns the goal types, lifecycle, persistence, prompt rendering,//! graph continuation, and native harness tools. This compatibility modulediff --git a/src/openhuman/threads/goals/runtime.rs b/src/openhuman/threads/goals/runtime.rsindex b0ff1c2d58..26c581aa46 100644--- a/src/openhuman/threads/goals/runtime.rs+++ b/src/openhuman/threads/goals/runtime.rs@@ -21,8 +21,8 @@ use std::path::{Path, PathBuf};use async_trait::async_trait;-use tinyagents::graph::goals::budget as crate_budget;-use tinyagents::graph::goals::{BudgetVerdict, GoalBudgetGuard};+use tinyagents_graph::goals::budget as crate_budget;+use tinyagents_graph::goals::{BudgetVerdict, GoalBudgetGuard};use super::migration::goals_store;use super::store;@@ -162,7 +162,7 @@ fn is_goal_continuation_turn() -> bool {/// Account a finished turn's usage against the ambient thread's goal.////// The accounting rules are the crate's-/// ([`crate_budget::account_turn`](tinyagents::graph::goals::account_turn)):+/// ([`crate_budget::account_turn`](tinyagents_graph::goals::account_turn)):/// only **active** goals are charged, so a paused/complete/budget-limited goal/// doesn't accrue usage from incidental chat, and a user-initiated turn clears/// the one-shot continuation suppression (a continuation turn must not clear@@ -219,7 +219,7 @@ pub async fn account_turn_against_goal(workspace_dir: &Path, input: u64, output:/// tokens so far) would meet or exceed its budget.////// The decision is the crate's-/// [`GoalBudgetGuard`](tinyagents::graph::goals::GoalBudgetGuard); this is the+/// [`GoalBudgetGuard`](tinyagents_graph::goals::GoalBudgetGuard); this is the/// adapter that votes it into OpenHuman's [`StopHook`] chain. #4469 item 1: the/// stop is a graceful *pause*, not an instantaneous abort — the vote fires in/// the stop-hook middleware's `after_model`, and the harness drains the pausediff --git a/src/openhuman/threads/goals/store.rs b/src/openhuman/threads/goals/store.rsindex 8cf54d78de..b5879f1909 100644--- a/src/openhuman/threads/goals/store.rs+++ b/src/openhuman/threads/goals/store.rs@@ -8,7 +8,7 @@//! surface every consumer (RPC ops, the harness turn loop, the heartbeat//! continuation runtime, the agent tools, and post-turn accounting) already//! uses, and forwards each operation to the crate store — converting the crate-//! [`CrateThreadGoal`](tinyagents::graph::goals::types::ThreadGoal) back to the+//! [`CrateThreadGoal`](tinyagents_graph::goals::types::ThreadGoal) back to the//! local [`ThreadGoal`] and its `TinyAgentsError` to a `String`.//!//! The crate store owns the concurrency (per-thread async locks) and the goaldiff --git a/src/openhuman/threads/ops_tests_part_01_tests.rs b/src/openhuman/threads/ops_tests_part_01_tests.rsindex c1bc2eb3bd..4e8fb05592 100644--- a/src/openhuman/threads/ops_tests_part_01_tests.rs+++ b/src/openhuman/threads/ops_tests_part_01_tests.rs@@ -68,7 +68,7 @@ fn build_title_request_sends_no_per_request_model_override() {fn build_title_request_carries_the_system_prompt_and_rendered_user_prompt() {// Pins the rest of the request so the `model` assertion above cannot be// satisfied by an empty or malformed request.- use tinyagents::harness::message::Message;+ use tinyagents_harness::message::Message;let request = crate::openhuman::threads::title::build_title_request("hi there", "hello back");diff --git a/src/openhuman/threads/title.rs b/src/openhuman/threads/title.rsindex 10e174cc92..5172349f05 100644--- a/src/openhuman/threads/title.rs+++ b/src/openhuman/threads/title.rs@@ -5,8 +5,8 @@use std::hash::{Hash, Hasher};-use tinyagents::harness::message::Message;-use tinyagents::harness::model::ModelRequest;+use tinyagents_harness::message::Message;+use tinyagents_harness::model::ModelRequest;pub const THREAD_TITLE_LOG_PREFIX: &str = "[threads:title]";pub const THREAD_TITLE_SYSTEM_PROMPT: &str = "You name chat threads from the first user message and the assistant reply. Return only the name: at most 3 words, like Fix session handoff or Gmail OAuth retry. Lead with the verb or the subject and drop filler words. No quotes. No markdown. No punctuation.";diff --git a/src/openhuman/threads/todos/README.md b/src/openhuman/threads/todos/README.mdindex 466e0043ac..d72b1e4d3d 100644--- a/src/openhuman/threads/todos/README.md+++ b/src/openhuman/threads/todos/README.md@@ -3,7 +3,7 @@Compatibility surface for OpenHuman task-board callers.The task-board model and behavior are owned by-`tinyagents::graph::todos`: types, normalization, markdown rendering, CRUD,+`tinyagents_graph::todos`: types, normalization, markdown rendering, CRUD,plan decisions, session links, the single-`in_progress` invariant, atomicclaims, durable storage, and the in-memory scratch board.@@ -15,7 +15,7 @@ OpenHuman keeps this module to preserve app-specific integration:- `schemas.rs` preserves the `openhuman.todos_*` JSON-RPC API.- `tools.rs` preserves the granular `todo_*` agent tools.- `runs.rs` binds the TinyAgents autonomous-run ledger- (`tinyagents::graph::todos::runs`) to `BoardLocation` addressing, renders its+ (`tinyagents_graph::todos::runs`) to `BoardLocation` addressing, renders itstimestamps as RFC 3339 for the wire, publishes `TaskRunReclaimed`, and importsthe retired `agent_task_boards/<hex>.runs.json` ledgers. The run record,heartbeat, staleness policy, and reclaim sweep are the crate's.diff --git a/src/openhuman/threads/todos/ops.rs b/src/openhuman/threads/todos/ops.rsindex 378dea42c3..e1bd72b23a 100644--- a/src/openhuman/threads/todos/ops.rs+++ b/src/openhuman/threads/todos/ops.rs@@ -1,4 +1,4 @@-//! Compatibility facade over [`tinyagents::graph::todos`].+//! Compatibility facade over [`tinyagents_graph::todos`].//!//! OpenHuman keeps its historical board-location and optional-thread snapshot//! shapes for RPC and tool callers. All task-board data, normalization, CRUD,@@ -9,8 +9,8 @@ use std::sync::Arc;use chrono::Utc;use serde::{Deserialize, Serialize};-use tinyagents::graph::todos::store as todos;-use tinyagents::harness::store::Store;+use tinyagents_graph::todos::store as todos;+use tinyagents_harness::store::Store;use crate::openhuman::agent::progress::AgentProgress;use crate::openhuman::agent::task_board::normalize_cards_for_wire;@@ -22,7 +22,7 @@ use crate::openhuman::agent::tinyagents::todos::{pub const USER_TASKS_THREAD_ID: &str = "user-tasks";pub const ORCHESTRATOR_TASKS_THREAD_ID: &str = "orchestrator-tasks";-pub use tinyagents::graph::todos::{parse_status, render_markdown, CardPatch};+pub use tinyagents_graph::todos::{parse_status, render_markdown, CardPatch};#[derive(Debug, Clone, Serialize, Deserialize)]#[serde(rename_all = "camelCase")]@@ -62,7 +62,7 @@ pub(super) fn target(location: &BoardLocation) -> (Arc<dyn Store>, &str) {fn snapshot(location: &BoardLocation,- value: tinyagents::graph::todos::TodosSnapshot,+ value: tinyagents_graph::todos::TodosSnapshot,) -> TodosSnapshot {TodosSnapshot {thread_id: location.thread_id().map(str::to_owned),@@ -85,7 +85,7 @@ fn emit_progress(location: &BoardLocation, cards: &[TaskBoardCard]) {let Some(tx) = parent.on_progress else {return;};- let board = tinyagents::graph::todos::TaskBoard {+ let board = tinyagents_graph::todos::TaskBoard {thread_id: thread_id.clone(),cards: cards.to_vec(),updated_at: progress_updated_at(),@@ -97,7 +97,7 @@ fn emit_progress(location: &BoardLocation, cards: &[TaskBoardCard]) {fn finish(location: &BoardLocation,- result: tinyagents::error::Result<tinyagents::graph::todos::TodosSnapshot>,+ result: tinyagents_harness::error::Result<tinyagents_graph::todos::TodosSnapshot>,) -> Result<TodosSnapshot, String> {let mut value = result.map_err(|error| error.to_string())?;normalize_cards_for_wire(&mut value.cards);diff --git a/src/openhuman/threads/todos/runs.rs b/src/openhuman/threads/todos/runs.rsindex 1821e5474f..ae7512a055 100644--- a/src/openhuman/threads/todos/runs.rs+++ b/src/openhuman/threads/todos/runs.rs@@ -1,4 +1,4 @@-//! Compatibility facade over [`tinyagents::graph::todos::runs`].+//! Compatibility facade over [`tinyagents_graph::todos::runs`].//!//! TinyAgents owns the durable task-run record, the heartbeat, the staleness//! policy, and the reclaim sweep (card back to `todo`, or parked at `blocked`@@ -15,9 +15,9 @@use std::path::Path;use serde::{Deserialize, Serialize};-use tinyagents::graph::todos::runs as crate_runs;+use tinyagents_graph::todos::runs as crate_runs;-pub use tinyagents::graph::todos::runs::{+pub use tinyagents_graph::todos::runs::{ReclaimDetail, ReclaimResult, RunLimits, RunOutcome, TaskRun, DEFAULT_CLAIM_TTL_SECS,DEFAULT_HEARTBEAT_STALE_SECS, DEFAULT_MAX_RECLAIM_COUNT,};@@ -32,7 +32,7 @@ const HEARTBEAT_TICK: std::time::Duration = crate_runs::DEFAULT_HEARTBEAT_TICK;/// Legacy on-disk ledger the crate store replaced.const TASK_BOARD_DIR: &str = "agent_task_boards";-fn map_err<T>(result: tinyagents::error::Result<T>) -> Result<T, String> {+fn map_err<T>(result: tinyagents_harness::error::Result<T>) -> Result<T, String> {result.map_err(|error| error.to_string())}diff --git a/src/openhuman/tools/impl/filesystem/git_operations_tests.rs b/src/openhuman/tools/impl/filesystem/git_operations_tests.rsindex 9a69a52b9f..0ba96ff017 100644--- a/src/openhuman/tools/impl/filesystem/git_operations_tests.rs+++ b/src/openhuman/tools/impl/filesystem/git_operations_tests.rs@@ -1,7 +1,7 @@use super::*;use crate::openhuman::security::SecurityPolicy;use tempfile::TempDir;-use tinyagents::harness::tool::ToolExecutionContext;+use tinyagents_harness::tool::ToolExecutionContext;fn test_tool(dir: &std::path::Path) -> GitOperationsTool {let security = Arc::new(SecurityPolicy {@@ -91,8 +91,8 @@ fn sanitize_git_allows_safe() {/// the behaviour the deleted `worktree_context.rs` task-local used to provide.#[test]fn git_resolves_cwd_from_workspace_descriptor() {- use tinyagents::harness::context::{RunConfig, RunContext};- use tinyagents::harness::workspace::WorkspaceDescriptor;+ use tinyagents_harness::context::{RunConfig, RunContext};+ use tinyagents_harness::workspace::WorkspaceDescriptor;let action_tmp = TempDir::new().unwrap();let worktree_tmp = TempDir::new().unwrap();diff --git a/src/openhuman/tools/impl/filesystem/mod_tests.rs b/src/openhuman/tools/impl/filesystem/mod_tests.rsindex 9bc66eaf29..e3c1c4f231 100644--- a/src/openhuman/tools/impl/filesystem/mod_tests.rs+++ b/src/openhuman/tools/impl/filesystem/mod_tests.rs@@ -8,9 +8,9 @@use super::*;use crate::openhuman::security::policy::TrustedAccess;use std::path::Path;-use tinyagents::harness::context::{RunConfig, RunContext};-use tinyagents::harness::tool::ToolExecutionContext;-use tinyagents::harness::workspace::WorkspaceDescriptor;+use tinyagents_harness::context::{RunConfig, RunContext};+use tinyagents_harness::tool::ToolExecutionContext;+use tinyagents_harness::workspace::WorkspaceDescriptor;/// A run context carrying a workspace descriptor rooted at `root`, exactly as/// the session builder / sub-agent runner / `cwd` RPC param produce one.diff --git a/src/openhuman/tools/impl/system/shell.rs b/src/openhuman/tools/impl/system/shell.rsindex 303525350c..46cd4b06cc 100644--- a/src/openhuman/tools/impl/system/shell.rs+++ b/src/openhuman/tools/impl/system/shell.rs@@ -147,7 +147,7 @@ impl ShellTool {////// Returns the per-worker git-worktree checkout when the tinyagents harness/// threaded a [`WorkspaceDescriptor`] into this call's- /// [`ToolExecutionContext`](tinyagents::harness::tool::ToolExecutionContext) — an edit-capable worker running with+ /// [`ToolExecutionContext`](tinyagents_harness::tool::ToolExecutionContext) — an edit-capable worker running with/// `isolation = "worktree"`, whose isolated worktree root is carried on the/// run context (`RunContext::with_workspace`) and surfaced per tool call via/// `ToolExecutionContext::from_run_context`. Otherwise falls back to thediff --git a/src/openhuman/tools/impl/system/shell_tests.rs b/src/openhuman/tools/impl/system/shell_tests.rsindex d9002c21d3..a6d133483c 100644--- a/src/openhuman/tools/impl/system/shell_tests.rs+++ b/src/openhuman/tools/impl/system/shell_tests.rs@@ -40,10 +40,10 @@ fn audit_with_tempdir() -> (Arc<AuditLogger>, tempfile::TempDir) {/// `ToolExecutionContext::from_run_context`).fn tool_context_with_workspace(root: &std::path::Path,-) -> tinyagents::harness::tool::ToolExecutionContext {- use tinyagents::harness::context::{RunConfig, RunContext};- use tinyagents::harness::tool::ToolExecutionContext;- use tinyagents::harness::workspace::WorkspaceDescriptor;+) -> tinyagents_harness::tool::ToolExecutionContext {+ use tinyagents_harness::context::{RunConfig, RunContext};+ use tinyagents_harness::tool::ToolExecutionContext;+ use tinyagents_harness::workspace::WorkspaceDescriptor;let ws = WorkspaceDescriptor::new(root.to_path_buf()).with_policy_id("test-worktree");let ctx: RunContext = RunContext::new(RunConfig::new("test-run"), ()).with_workspace(ws);ToolExecutionContext::from_run_context(&ctx)diff --git a/src/openhuman/tools/schema.rs b/src/openhuman/tools/schema.rsindex c6d3e805ca..41c7c6befd 100644--- a/src/openhuman/tools/schema.rs+++ b/src/openhuman/tools/schema.rs@@ -3,4 +3,4 @@//! The generic implementation lives in TinyAgents. OpenHuman keeps this module//! as the stable host import path for existing tools and controller code.-pub use tinyagents::harness::tool::{CleaningStrategy, SchemaCleanr, GEMINI_UNSUPPORTED_KEYWORDS};+pub use tinyagents_harness::tool::{CleaningStrategy, SchemaCleanr, GEMINI_UNSUPPORTED_KEYWORDS};diff --git a/src/openhuman/web_chat/progress_bridge.rs b/src/openhuman/web_chat/progress_bridge.rsindex 3e41c937f9..b440c7ec4f 100644--- a/src/openhuman/web_chat/progress_bridge.rs+++ b/src/openhuman/web_chat/progress_bridge.rs@@ -129,10 +129,10 @@ fn cap_wire_output(output: String) -> String {pub(super) fn ledger_upsert_agent_run(config: &crate::openhuman::config::Config,- upsert: tinyagents::session::run_ledger::AgentRunUpsert,+ upsert: tinyagents_session::run_ledger::AgentRunUpsert,) {if let Err(err) =- tinyagents::session::run_ledger::upsert_agent_run(&config.workspace_dir, upsert)+ tinyagents_session::run_ledger::upsert_agent_run(&config.workspace_dir, upsert){log::warn!("[run_ledger][web_channel] failed to upsert run: {err}");}@@ -140,10 +140,10 @@ pub(super) fn ledger_upsert_agent_run(pub(super) fn ledger_append_event(config: &crate::openhuman::config::Config,- event: tinyagents::session::run_ledger::RunEventAppend,+ event: tinyagents_session::run_ledger::RunEventAppend,) {if let Err(err) =- tinyagents::session::run_ledger::append_run_event(&config.workspace_dir, event)+ tinyagents_session::run_ledger::append_run_event(&config.workspace_dir, event){log::warn!("[run_ledger][web_channel] failed to append event: {err}");}@@ -151,10 +151,10 @@ pub(super) fn ledger_append_event(pub(super) fn ledger_upsert_telemetry(config: &crate::openhuman::config::Config,- telemetry: tinyagents::session::run_ledger::RunTelemetryUpsert,+ telemetry: tinyagents_session::run_ledger::RunTelemetryUpsert,) {if let Err(err) =- tinyagents::session::run_ledger::upsert_run_telemetry(&config.workspace_dir, telemetry)+ tinyagents_session::run_ledger::upsert_run_telemetry(&config.workspace_dir, telemetry){log::warn!("[run_ledger][web_channel] failed to upsert telemetry: {err}");}@@ -163,8 +163,8 @@ pub(super) fn ledger_upsert_telemetry(pub(super) fn ledger_get_telemetry(config: &crate::openhuman::config::Config,run_id: &str,-) -> Option<tinyagents::session::run_ledger::RunTelemetry> {- match tinyagents::session::run_ledger::get_agent_run(&config.workspace_dir, run_id) {+) -> Option<tinyagents_session::run_ledger::RunTelemetry> {+ match tinyagents_session::run_ledger::get_agent_run(&config.workspace_dir, run_id) {Ok(Some(run)) => {let telemetry = run.telemetry;log::debug!(@@ -257,7 +257,7 @@ async fn shadow_compare_journal_projection(trace_ctx: crate::openhuman::agent::progress_tracing::TraceContext,max_iterations: u32,live_spans: &[crate::openhuman::agent::progress_tracing::TraceSpan],-) -> Option<Vec<tinyagents::harness::observability::AgentObservation>> {+) -> Option<Vec<tinyagents_harness::observability::AgentObservation>> {let Some(journal_run_id) =crate::openhuman::agent::tinyagents::journal::take_request_journal_run(request_id)else {@@ -339,7 +339,7 @@ pub(crate) fn spawn_progress_bridge() {use crate::openhuman::agent::progress::AgentProgress;use std::collections::HashMap;- use tinyagents::session::run_ledger::{+ use tinyagents_session::run_ledger::{AgentRunKind, AgentRunStatus, AgentRunUpsert, RunEventAppend, RunTelemetryUpsert,};