The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
refactor(tools): move tool status types into tinytools
Steven Enamakel231e3c7cbdd4
diff --git a/crates/openhuman-core/src/agent/progress.rs b/crates/openhuman-core/src/agent/progress.rsindex 21627f04e3..d78de74d5c 100644--- a/crates/openhuman-core/src/agent/progress.rs+++ b/crates/openhuman-core/src/agent/progress.rs@@ -73,7 +73,7 @@ pub enum AgentProgress {/// failure (class, category, plain-language cause + next action) that/// the chat "View processing" timeline renders. `None` on success and/// on legacy snapshots. See `crate::tools::status`.- failure: Option<crate::tools::status::ClassifiedFailure>,+ failure: Option<tinytools::status::ClassifiedFailure>,/// Server-computed human label recomputed from the tool's OWN/// [`tinytools::Tool::display_label`] using the real call arguments/// (the matching `ToolCallStarted.display_label` was computed with no@@ -275,7 +275,7 @@ pub enum AgentProgress {/// child tool failure, mirroring [`Self::ToolCallCompleted::failure`] so/// a failed sub-agent row carries the same "why + what to do next" copy/// instead of discarding the already-computed classification (#4459).- failure: Option<crate::tools::status::ClassifiedFailure>,+ failure: Option<tinytools::status::ClassifiedFailure>,/// Mirrors [`Self::ToolCallCompleted::display_label`], recomputed from/// the child tool's own `Tool::display_label` using the real call/// arguments.diff --git a/crates/openhuman-core/src/agent/progress_tracing/collector/events.rs b/crates/openhuman-core/src/agent/progress_tracing/collector/events.rsindex 6eeb67f7bc..89c8fbceaa 100644--- a/crates/openhuman-core/src/agent/progress_tracing/collector/events.rs+++ b/crates/openhuman-core/src/agent/progress_tracing/collector/events.rs@@ -540,7 +540,7 @@ impl SpanCollector {/// (it can quote user data / paths).fn insert_failure_attrs(&self,- failure: Option<&crate::tools::status::ClassifiedFailure>,+ failure: Option<&tinytools::status::ClassifiedFailure>,extra: &mut BTreeMap<String, serde_json::Value>,) {let Some(failure) = failure else {@@ -555,7 +555,7 @@ impl SpanCollector {// A program that ran and exited non-zero is an expected outcome, not a// harness failure: export it at WARNING so error rates count only the// latter.- if failure.class == crate::tools::status::ToolFailureClass::CommandFailed {+ if failure.class == tinytools::status::ToolFailureClass::CommandFailed {extra.insert(super::finish::LEVEL_ATTR.to_string(),serde_json::Value::String("WARNING".to_string()),diff --git a/crates/openhuman-core/src/agent/progress_tracing/journal_projection.rs b/crates/openhuman-core/src/agent/progress_tracing/journal_projection.rsindex 48b6c7aeed..1cc0c7e343 100644--- a/crates/openhuman-core/src/agent/progress_tracing/journal_projection.rs+++ b/crates/openhuman-core/src/agent/progress_tracing/journal_projection.rs@@ -64,7 +64,7 @@ use replay::{json_content_text, turn_outcome_for_failure, user_message_text, Rep#[path = "journal_replay.rs"]mod replay;-use crate::tools::status::classify;+use tinytools::status::classify;use tinyagents_harness::observability::trace_export::{TraceContext, TraceSpan};/// Mutable state threaded across a single run's observations while replaying.@@ -328,8 +328,8 @@ fn observation_to_progress(obs: &AgentObservation, state: &mut ReplayState) -> V// An unknown tool is `NotFound` from the typed event (#6277),// whatever the text classifier made of the echoed names.let failure = if was_unknown {- Some(crate::tools::status::describe(- crate::tools::status::ToolFailureClass::NotFound,+ Some(tinytools::status::describe(+ tinytools::status::ToolFailureClass::NotFound,))} else {error.as_ref().map(|text| classify(text, false))diff --git a/crates/openhuman-core/src/agent/progress_tracing/journal_projection_cost_rollup_tests.rs b/crates/openhuman-core/src/agent/progress_tracing/journal_projection_cost_rollup_tests.rsindex d45b364d4a..97a90e756c 100644--- a/crates/openhuman-core/src/agent/progress_tracing/journal_projection_cost_rollup_tests.rs+++ b/crates/openhuman-core/src/agent/progress_tracing/journal_projection_cost_rollup_tests.rs@@ -358,7 +358,7 @@ fn unknown_tool_call_projects_exactly_one_failed_tool_span() {assert_eq!(tool.attributes["error.message"],serde_json::json!(- crate::tools::status::describe(crate::tools::status::ToolFailureClass::NotFound)+ tinytools::status::describe(tinytools::status::ToolFailureClass::NotFound).cause_plain),"the one span carries the NotFound cause"diff --git a/crates/openhuman-core/src/agent/progress_tracing/progress_tracing_attribution_tests.rs b/crates/openhuman-core/src/agent/progress_tracing/progress_tracing_attribution_tests.rsindex fc396965ca..6b6bab88b4 100644--- a/crates/openhuman-core/src/agent/progress_tracing/progress_tracing_attribution_tests.rs+++ b/crates/openhuman-core/src/agent/progress_tracing/progress_tracing_attribution_tests.rs@@ -406,7 +406,7 @@ fn subagent_failure_records_truncated_error_message_when_capture_on() {#[test]fn failed_tool_records_classified_cause_only_when_capture_on() {- use crate::tools::status::{ClassifiedFailure, FailureCategory, ToolFailureClass};+ use tinytools::status::{ClassifiedFailure, FailureCategory, ToolFailureClass};let failed = AgentProgress::ToolCallCompleted {call_id: "c1".to_string(),tool_name: "shell".to_string(),diff --git a/crates/openhuman-core/src/agent/progress_tracing/progress_tracing_tool_span_tests.rs b/crates/openhuman-core/src/agent/progress_tracing/progress_tracing_tool_span_tests.rsindex 24e2dc3a27..f0e8548409 100644--- a/crates/openhuman-core/src/agent/progress_tracing/progress_tracing_tool_span_tests.rs+++ b/crates/openhuman-core/src/agent/progress_tracing/progress_tracing_tool_span_tests.rs@@ -15,7 +15,7 @@ fn failed_tool_completed(call_id: &str, tool: &str, output: &str) -> AgentProgrearguments: None,elapsed_ms: 5,iteration: 1,- failure: Some(crate::tools::status::classify(output, false)),+ failure: Some(tinytools::status::classify(output, false)),display_label: None,display_detail: None,structured: None,@@ -155,7 +155,7 @@ fn tool_spans_carry_the_model_that_requested_them() {arguments: None,elapsed_ms: 1,iteration: 1,- failure: Some(crate::tools::status::classify(+ failure: Some(tinytools::status::classify("Command failed (exit code 1)",false,)),diff --git a/crates/openhuman-core/src/agent/tinyagents/host/progress_sink.rs b/crates/openhuman-core/src/agent/tinyagents/host/progress_sink.rsindex 6566decc45..ad79b652a4 100644--- a/crates/openhuman-core/src/agent/tinyagents/host/progress_sink.rs+++ b/crates/openhuman-core/src/agent/tinyagents/host/progress_sink.rs@@ -492,7 +492,7 @@ impl ProgressSink for OpenHumanProgressSink {let failure = if success {None} else {- Some(crate::tools::status::classify(&output, false))+ Some(tinytools::status::classify(&output, false))};self.forward_lifecycle(AgentProgress::ToolCallCompleted {diff --git a/crates/openhuman-core/src/agent/tinyagents/host/security_gate.rs b/crates/openhuman-core/src/agent/tinyagents/host/security_gate.rsindex 4cd173f819..e7f85988cc 100644--- a/crates/openhuman-core/src/agent/tinyagents/host/security_gate.rs+++ b/crates/openhuman-core/src/agent/tinyagents/host/security_gate.rs@@ -505,7 +505,7 @@ impl OpenHumanSecurityGate {{return Ok(GateDecision::deny(format!("{} Scheduled agent turns may use read-only tools only; '{}' needs a live user action.",- crate::security::POLICY_DENIED_MARKER,+ tinytools::status::POLICY_DENIED_MARKER,call.tool_name)));}@@ -524,7 +524,7 @@ impl OpenHumanSecurityGate {else {return Ok(GateDecision::deny(format!("{} Shell authorization facts are unavailable or do not match this call.",- crate::security::POLICY_BLOCKED_MARKER+ tinytools::status::POLICY_BLOCKED_MARKER)));};match Self::shell_decision(&policy, &effective_arguments, &analysis) {@@ -549,7 +549,7 @@ impl OpenHumanSecurityGate {let raw = format!("{} Security policy: this command's category is not permitted in the \current access tier.",- crate::security::POLICY_BLOCKED_MARKER+ tinytools::status::POLICY_BLOCKED_MARKER);return Ok(GateDecision::deny(PolicyDenial::SecurityPolicyBlocked {@@ -572,7 +572,7 @@ impl OpenHumanSecurityGate {let _ = authorization_context;return Ok(GateDecision::deny(format!("{} Shell command analysis is unavailable in this build.",- crate::security::POLICY_BLOCKED_MARKER+ tinytools::status::POLICY_BLOCKED_MARKER)));}}@@ -591,7 +591,7 @@ impl OpenHumanSecurityGate {);let raw = format!("{} Security policy: read-only mode, cannot perform '{}'.",- crate::security::POLICY_BLOCKED_MARKER,+ tinytools::status::POLICY_BLOCKED_MARKER,call.tool_name);return Ok(GateDecision::deny(diff --git a/crates/openhuman-core/src/agent/tinyagents/host/security_gate_screen_and_policy_tests.rs b/crates/openhuman-core/src/agent/tinyagents/host/security_gate_screen_and_policy_tests.rsindex 84ea0efa0e..03ecaf08d1 100644--- a/crates/openhuman-core/src/agent/tinyagents/host/security_gate_screen_and_policy_tests.rs+++ b/crates/openhuman-core/src/agent/tinyagents/host/security_gate_screen_and_policy_tests.rs@@ -231,8 +231,8 @@ fn a_refused_approval_is_a_deny_the_model_can_read() {.expect("a refused approval carries a reason for the model");// A policy-class failure pauses the turn before the model can reply.assert_eq!(- crate::tools::status::classify(reason, false).class,- crate::tools::status::ToolFailureClass::Unknown,+ tinytools::status::classify(reason, false).class,+ tinytools::status::ToolFailureClass::Unknown,"{reason}");assert!(reason.contains("must not be performed"), "{reason}");@@ -272,8 +272,8 @@ fn an_unanswered_approval_tells_the_model_it_was_not_answered() {assert!(reason.contains("ask again"), "{reason}");assert!(reason.contains("another way"), "{reason}");assert_eq!(- crate::tools::status::classify(reason, false).class,- crate::tools::status::ToolFailureClass::Unknown,+ tinytools::status::classify(reason, false).class,+ tinytools::status::ToolFailureClass::Unknown,"{reason}");let lower = reason.to_lowercase();diff --git a/crates/openhuman-core/src/agent/tinyagents/host/security_gate_tests.rs b/crates/openhuman-core/src/agent/tinyagents/host/security_gate_tests.rsindex e1ff57e8bf..0997a5fa40 100644--- a/crates/openhuman-core/src/agent/tinyagents/host/security_gate_tests.rs+++ b/crates/openhuman-core/src/agent/tinyagents/host/security_gate_tests.rs@@ -188,7 +188,7 @@ async fn read_only_autonomy_denies_an_acting_tool() {assert!(!decision.is_allowed());let reason = decision.denial_reason().expect("a Deny carries a reason");assert!(- reason.contains(crate::security::POLICY_BLOCKED_MARKER),+ reason.contains(tinytools::status::POLICY_BLOCKED_MARKER),"the machine-recognisable marker must survive rendering: {reason}");}@@ -350,7 +350,7 @@ async fn a_write_shell_command_is_blocked_outright_in_read_only() {assert!(decision.denial_reason().expect("denial reason")- .contains(crate::security::POLICY_BLOCKED_MARKER));+ .contains(tinytools::status::POLICY_BLOCKED_MARKER));}#[tokio::test]diff --git a/crates/openhuman-core/src/agent/tinyagents/host/tool_outcome_classifier.rs b/crates/openhuman-core/src/agent/tinyagents/host/tool_outcome_classifier.rsindex 65affb6468..0cb9617de8 100644--- a/crates/openhuman-core/src/agent/tinyagents/host/tool_outcome_classifier.rs+++ b/crates/openhuman-core/src/agent/tinyagents/host/tool_outcome_classifier.rs@@ -5,8 +5,8 @@//! call returned; it does not know whether the thing that came back is a//! success, something to re-dispatch, or a dead end. OpenHuman already owns that//! judgement in [`crate::tool_status`], whose-//! [`classify`](crate::tools::status::classify) turns raw tool error-//! text into a [`ClassifiedFailure`](crate::tools::status::ClassifiedFailure)+//! [`classify`](tinytools::status::classify) turns raw tool error+//! text into a [`ClassifiedFailure`](tinytools::status::ClassifiedFailure)//! (a [`ToolFailureClass`] plus a user-facing category). This adapter is the one//! place that mapping is projected onto the crate's three-way//! [`OutcomeClass`].@@ -75,10 +75,10 @@ use std::sync::Arc;use tinyagents_harness::host::{OutcomeClass, ToolOutcomeClassifier};use tinytools::ToolResult;-use crate::tools::status::{classify, ToolFailureClass};+use tinytools::status::{classify, ToolFailureClass};/// OpenHuman's [`ToolOutcomeClassifier`], backed by-/// [`crate::tools::status::classify`].+/// [`tinytools::status::classify`].////// Zero-sized and stateless: the classifier's whole knowledge base is the/// keyword heuristic in the `tool_status` domain, which is itself pure. Everydiff --git a/crates/openhuman-core/src/agent/tinyagents/host/tool_outcome_classifier_tests.rs b/crates/openhuman-core/src/agent/tinyagents/host/tool_outcome_classifier_tests.rsindex ddf9dbb7ee..701f06030c 100644--- a/crates/openhuman-core/src/agent/tinyagents/host/tool_outcome_classifier_tests.rs+++ b/crates/openhuman-core/src/agent/tinyagents/host/tool_outcome_classifier_tests.rs@@ -142,7 +142,7 @@ fn recoverable_flag_is_deliberately_not_the_retry_signal() {// `Unknown` is `FailureCategory::Recoverable` in the domain, yet must be// permanent here — this divergence is the whole point of the adapter and// regressing to `if failure.recoverable` would resurrect it.- let unknown = crate::tools::status::describe(ToolFailureClass::Unknown);+ let unknown = tinytools::status::describe(ToolFailureClass::Unknown);assert!(unknown.recoverable,"domain still calls Unknown recoverable"diff --git a/crates/openhuman-core/src/agent/tinyagents/middleware/failure_policy.rs b/crates/openhuman-core/src/agent/tinyagents/middleware/failure_policy.rsindex 0bbb7bdfa4..75951ecd5d 100644--- a/crates/openhuman-core/src/agent/tinyagents/middleware/failure_policy.rs+++ b/crates/openhuman-core/src/agent/tinyagents/middleware/failure_policy.rs@@ -175,7 +175,7 @@ pub(super) fn classified_recovery_policy(body_level_failure: bool,effect: CallEffect,) -> Option<(&'static str, usize)> {- use crate::tools::status::ToolFailureClass as Class;+ use tinytools::status::ToolFailureClass as Class;if body_level_failure {return Some(("validation", 1));}@@ -206,12 +206,12 @@ pub(super) fn classified_recovery_policy(// (5xx, connection) is transient like any other.if error.trim_start()- .starts_with(crate::tools::status::TASK_FAILED_MARKER)+ .starts_with(tinytools::status::TASK_FAILED_MARKER){// Classify the headline only: the task report appended after the// blank line is page and planner text, not the call's verdict.let headline = error.split("\n\n").next().unwrap_or(error);- let class = crate::tools::status::classify(headline, false).class;+ let class = tinytools::status::classify(headline, false).class;return Some(match class {Class::ServiceUnavailable | Class::ModelConnection => ("transient", 2),_ => ("task_failed", 1),@@ -221,7 +221,7 @@ pub(super) fn classified_recovery_policy(// so retrying the same tool cannot help. Steer the model off it once// rather than halting the run on the first call or spending a transient// budget on it (`restart the app to try again` read as recoverable).- if error.contains(crate::tools::status::MODULE_FAULT_MARKER)+ if error.contains(tinytools::status::MODULE_FAULT_MARKER)&& error.contains("restart the app to try again"){return Some(("unavailable", 1));@@ -260,7 +260,7 @@ pub(super) fn classified_recovery_policy(_ => {}}}- let class = crate::tools::status::classify(error, false).class;+ let class = tinytools::status::classify(error, false).class;Some(match class {Class::MissingPermission => ("permission", 0),Class::BadCredentials => ("authentication", 0),diff --git a/crates/openhuman-core/src/agent/tinyagents/middleware/repeated_failure.rs b/crates/openhuman-core/src/agent/tinyagents/middleware/repeated_failure.rsindex 80cd0a5e21..2277d2704c 100644--- a/crates/openhuman-core/src/agent/tinyagents/middleware/repeated_failure.rs+++ b/crates/openhuman-core/src/agent/tinyagents/middleware/repeated_failure.rs@@ -580,8 +580,8 @@ impl Middleware<(), crate::agent::tinyagents::host::OpenHumanRunContext>// fast-trip for BOTH (issue #4463 part 6: denied had drifted to the// generic 3).let policy_marked = |s: &str| {- s.contains(crate::security::POLICY_BLOCKED_MARKER)- || s.contains(crate::security::POLICY_DENIED_MARKER)+ s.contains(tinytools::status::POLICY_BLOCKED_MARKER)+ || s.contains(tinytools::status::POLICY_DENIED_MARKER)};let hard_reject = policy_marked(&content);@@ -600,10 +600,10 @@ impl Middleware<(), crate::agent::tinyagents::host::OpenHumanRunContext>&& !is_command_exit_report(&failure_text)&& (is_recoverable_tool_failure(heuristic_failure_text)|| matches!(- crate::tools::status::classify(heuristic_failure_text, false).class,- crate::tools::status::ToolFailureClass::Timeout- | crate::tools::status::ToolFailureClass::ServiceUnavailable- | crate::tools::status::ToolFailureClass::ModelConnection+ tinytools::status::classify(heuristic_failure_text, false).class,+ tinytools::status::ToolFailureClass::Timeout+ | tinytools::status::ToolFailureClass::ServiceUnavailable+ | tinytools::status::ToolFailureClass::ModelConnection));if recoverable {// A poll tool's contract is the identical repeat (seediff --git a/crates/openhuman-core/src/agent/tinyagents/middleware/tool_outcome_capture.rs b/crates/openhuman-core/src/agent/tinyagents/middleware/tool_outcome_capture.rsindex c7a2b3894e..4529430f28 100644--- a/crates/openhuman-core/src/agent/tinyagents/middleware/tool_outcome_capture.rs+++ b/crates/openhuman-core/src/agent/tinyagents/middleware/tool_outcome_capture.rs@@ -129,7 +129,7 @@ impl Middleware<(), crate::agent::tinyagents::host::OpenHumanRunContext>} else {let combined = crate::agent::tinyagents::middleware::tool_result_text(result);let timed_out = combined.contains("timed out");- Some(crate::tools::status::classify(&combined, timed_out))+ Some(tinytools::status::classify(&combined, timed_out))};// Host-only structured payload (e.g. `{"kind":"web_search", ...}`) a// tool attached via `ToolResult::metadata` for a richer UIdiff --git a/crates/openhuman-core/src/agent/tinyagents/middleware/tool_policy.rs b/crates/openhuman-core/src/agent/tinyagents/middleware/tool_policy.rsindex aa1daa59b2..db92000cf0 100644--- a/crates/openhuman-core/src/agent/tinyagents/middleware/tool_policy.rs+++ b/crates/openhuman-core/src/agent/tinyagents/middleware/tool_policy.rs@@ -172,7 +172,7 @@ impl ToolPolicyMiddleware {}).collect();tinyagents_harness::tool::packs::NoSuchPackTool {- not_found_marker: crate::tools::status::NOT_FOUND_MARKER,+ not_found_marker: tinytools::status::NOT_FOUND_MARKER,skill: pack.id,tool,callable,diff --git a/crates/openhuman-core/src/agent/tinyagents/middleware_command_exit_failure_tests.rs b/crates/openhuman-core/src/agent/tinyagents/middleware_command_exit_failure_tests.rsindex 5a60c7751e..6321d1f012 100644--- a/crates/openhuman-core/src/agent/tinyagents/middleware_command_exit_failure_tests.rs+++ b/crates/openhuman-core/src/agent/tinyagents/middleware_command_exit_failure_tests.rs@@ -141,14 +141,14 @@ fn a_faulted_module_is_unavailable_not_transient() {fn quoted_module_fault_marker_is_not_enough_to_mark_a_tool_unavailable() {let quoted = format!("search result quoted: {}",- crate::tools::status::MODULE_FAULT_MARKER+ tinytools::status::MODULE_FAULT_MARKER);assert_eq!(recovery_policy("web_search_tool", "ed, false), None);}#[test]fn the_module_fault_marker_matches_the_producer_wording() {- assert!(MODULE_FAULT.contains(crate::tools::status::MODULE_FAULT_MARKER));+ assert!(MODULE_FAULT.contains(tinytools::status::MODULE_FAULT_MARKER));}#[tokio::test]diff --git a/crates/openhuman-core/src/agent/tinyagents/middleware_failure_policy_class_tests.rs b/crates/openhuman-core/src/agent/tinyagents/middleware_failure_policy_class_tests.rsindex 9a6db41e09..11498d9f62 100644--- a/crates/openhuman-core/src/agent/tinyagents/middleware_failure_policy_class_tests.rs+++ b/crates/openhuman-core/src/agent/tinyagents/middleware_failure_policy_class_tests.rs@@ -279,7 +279,7 @@ fn a_failed_browser_task_gets_one_changed_attempt_not_a_credential_halt() {] {let error = format!("{} Browser task failed at step 1: {reason} Hint: narrow the goal",- crate::tools::status::TASK_FAILED_MARKER+ tinytools::status::TASK_FAILED_MARKER);assert_eq!(recovery_policy("browser", &error, false),@@ -290,7 +290,7 @@ fn a_failed_browser_task_gets_one_changed_attempt_not_a_credential_halt() {// A model gateway failing under the rescuer is transient.let error = format!("{} Browser task failed at step 3: the rescuer gave up: rescue model returned HTTP 504",- crate::tools::status::TASK_FAILED_MARKER+ tinytools::status::TASK_FAILED_MARKER);assert_eq!(recovery_policy("browser", &error, false),@@ -305,7 +305,7 @@ fn a_failed_task_is_classified_by_its_headline_not_its_attached_report() {// not override the headline's gateway 504.let error = format!("{} Browser task failed at step 3: the rescuer gave up: rescue model returned HTTP 504\n\n{}",- crate::tools::status::TASK_FAILED_MARKER,+ tinytools::status::TASK_FAILED_MARKER,serde_json::json!({"summary": "the site said authentication failed on the login page"}));assert_eq!(@@ -319,7 +319,7 @@ async fn a_failed_browser_task_nudges_toward_its_hint_then_stops_on_a_repeat() {let (mw, handle, slot) = breaker();let error = format!("{} Browser task failed at step 1: Planning failed Hint: name the exact button",- crate::tools::status::TASK_FAILED_MARKER+ tinytools::status::TASK_FAILED_MARKER);let args =serde_json::json!({"action": "task", "goal": "book it", "url": "https://shop.test/"});diff --git a/crates/openhuman-core/src/agent/tinyagents/middleware_tool_output_tests.rs b/crates/openhuman-core/src/agent/tinyagents/middleware_tool_output_tests.rsindex a62e655019..9bdd6e45ed 100644--- a/crates/openhuman-core/src/agent/tinyagents/middleware_tool_output_tests.rs+++ b/crates/openhuman-core/src/agent/tinyagents/middleware_tool_output_tests.rs@@ -129,7 +129,7 @@ async fn raw_security_policy_block_is_enriched_with_workaround_and_relay() {result_text(&result));assert!(result_text(&result).contains("Relay this to the user"));- assert!(result_text(&result).contains(crate::security::POLICY_BLOCKED_MARKER));+ assert!(result_text(&result).contains(tinytools::status::POLICY_BLOCKED_MARKER));assert!(result_text(&result).contains("read-only mode"));}diff --git a/crates/openhuman-core/src/agent/tinyagents/middleware_tool_policy_tests.rs b/crates/openhuman-core/src/agent/tinyagents/middleware_tool_policy_tests.rsindex 2c4eb7660a..49c3532a9c 100644--- a/crates/openhuman-core/src/agent/tinyagents/middleware_tool_policy_tests.rs+++ b/crates/openhuman-core/src/agent/tinyagents/middleware_tool_policy_tests.rs@@ -484,7 +484,7 @@ fn an_invented_tool_name_is_not_found_even_under_the_packs_permission_ceiling().expect("an invented tool must be answered, not dispatched");assert!(- message.starts_with(crate::tools::status::NOT_FOUND_MARKER),+ message.starts_with(tinytools::status::NOT_FOUND_MARKER),"a restricted channel must still answer an invented name as not-found: {message}");assert!(diff --git a/crates/openhuman-core/src/agent/tinyagents/observability/cap_pauser.rs b/crates/openhuman-core/src/agent/tinyagents/observability/cap_pauser.rsindex 4e6086cc6a..aefd55dda4 100644--- a/crates/openhuman-core/src/agent/tinyagents/observability/cap_pauser.rs+++ b/crates/openhuman-core/src/agent/tinyagents/observability/cap_pauser.rs@@ -63,7 +63,7 @@ pub(crate) type ToolFailureMap = Arc<String,(bool,- Option<crate::tools::status::ClassifiedFailure>,+ Option<tinytools::status::ClassifiedFailure>,u64,usize,Option<serde_json::Value>,diff --git a/crates/openhuman-core/src/agent/tinyagents/observability/event_projection.rs b/crates/openhuman-core/src/agent/tinyagents/observability/event_projection.rsindex 6924fbad96..6a8f4d5dba 100644--- a/crates/openhuman-core/src/agent/tinyagents/observability/event_projection.rs+++ b/crates/openhuman-core/src/agent/tinyagents/observability/event_projection.rs@@ -569,15 +569,15 @@ impl EventListener for OpenhumanEventBridge {// An unknown tool is `NotFound` from the typed event itself// (#6277), whatever the text sniff made of the echoed names.let failure = if was_unknown {- Some(crate::tools::status::describe(- crate::tools::status::ToolFailureClass::NotFound,+ Some(tinytools::status::describe(+ tinytools::status::ToolFailureClass::NotFound,))} else {match outcome {Some((_, f, ..)) => f,None => error.as_deref()- .map(|text| crate::tools::status::classify(text, false)),+ .map(|text| tinytools::status::classify(text, false)),}};// Recompute the label/detail with the REAL call argumentsdiff --git a/crates/openhuman-core/src/agent/tinyagents/observability_tests.rs b/crates/openhuman-core/src/agent/tinyagents/observability_tests.rsindex abb6b81500..6d4cb6a0a0 100644--- a/crates/openhuman-core/src/agent/tinyagents/observability_tests.rs+++ b/crates/openhuman-core/src/agent/tinyagents/observability_tests.rs@@ -347,7 +347,7 @@ async fn unknown_tool_call_projects_exactly_one_failed_timeline_row() {let failure = failure.expect("the failed row carries a classified failure");assert_eq!(failure.class,- crate::tools::status::ToolFailureClass::NotFound,+ tinytools::status::ToolFailureClass::NotFound,"an unavailable tool must be classified NotFound, not Unknown");assert!(!failure.recoverable);@@ -419,7 +419,7 @@ async fn unknown_tool_call_in_a_child_run_projects_one_subagent_row() {assert_eq!((started, completed), (1, 1));assert_eq!(class,- Some(crate::tools::status::ToolFailureClass::NotFound)+ Some(tinytools::status::ToolFailureClass::NotFound));}diff --git a/crates/openhuman-core/src/agent/tinyagents/policy_denial.rs b/crates/openhuman-core/src/agent/tinyagents/policy_denial.rsindex 8d8b4b7f2e..eb9d936d0c 100644--- a/crates/openhuman-core/src/agent/tinyagents/policy_denial.rs+++ b/crates/openhuman-core/src/agent/tinyagents/policy_denial.rs@@ -19,7 +19,7 @@//! It is a mitigation, not a guarantee — detecting fabrication needs the//! tool-call record carried out to the caller.-use crate::security::POLICY_BLOCKED_MARKER;+use tinytools::status::POLICY_BLOCKED_MARKER;use tinytools::PermissionLevel;/// Generic workaround for a raw security-policy / autonomy block. These denialsdiff --git a/crates/openhuman-core/src/core/observability_availability.rs b/crates/openhuman-core/src/core/observability_availability.rsindex ba022a0dfe..5c9b5a3691 100644--- a/crates/openhuman-core/src/core/observability_availability.rs+++ b/crates/openhuman-core/src/core/observability_availability.rs@@ -49,7 +49,7 @@ pub fn is_backend_unavailable_message(msg: &str) -> bool {/// - `MODULE_CALL_REPORTED:` — the shared client already emitted a sanitized/// report; product callers must not report its returned error again;///-/// - [`crate::tools::status::MODULE_FAULT_MARKER`] — every terminal load+/// - [`tinytools::status::MODULE_FAULT_MARKER`] — every terminal load/// failure from `modules::ops` and tinybus' `load_first_admitted` carries it;/// - `module '<id>' could not be loaded` — the load wording itself, for a/// caller that rewrapped the reason without the marker;@@ -82,7 +82,7 @@ pub fn is_module_unavailable_message(msg: &str) -> bool {&& msg.contains(": ai.tinyhumans.tinybus.Error.Failed: "));connector_output|| msg.contains("MODULE_CALL_REPORTED:")- || msg.contains(crate::tools::status::MODULE_FAULT_MARKER)+ || msg.contains(tinytools::status::MODULE_FAULT_MARKER)|| (lower.contains("module '") && lower.contains("could not be loaded"))|| (lower.contains("module '")&& lower.contains("is unavailable: modules are disabled in configuration"))diff --git a/crates/openhuman-core/src/modules/README.md b/crates/openhuman-core/src/modules/README.mdindex 01b6742968..2502361af5 100644--- a/crates/openhuman-core/src/modules/README.md+++ b/crates/openhuman-core/src/modules/README.md@@ -213,7 +213,7 @@ cold download never stalls other tasks. Later launches re-verify the cachedartifact from disk instead of downloading again.A panic inside the loader is reported as an error carrying-`crate::tools::status::MODULE_FAULT_MARKER` and "restart the app to try+`tinytools::status::MODULE_FAULT_MARKER` and "restart the app to tryagain", rather than unwinding into whoever was waiting.### Bundled archivesdiff --git a/crates/openhuman-core/src/modules/ops.rs b/crates/openhuman-core/src/modules/ops.rsindex 13034272e8..073d3c28ff 100644--- a/crates/openhuman-core/src/modules/ops.rs+++ b/crates/openhuman-core/src/modules/ops.rs@@ -427,7 +427,7 @@ where/// Append the terminal-fault sentence to `error` unless it already has it.pub(super) fn mark_terminal(error: String) -> String {- let marker = crate::tools::status::MODULE_FAULT_MARKER;+ let marker = tinytools::status::MODULE_FAULT_MARKER;if error.contains(marker) {return error;}diff --git a/crates/openhuman-core/src/modules/ops_tests.rs b/crates/openhuman-core/src/modules/ops_tests.rsindex 145453c38a..225175b553 100644--- a/crates/openhuman-core/src/modules/ops_tests.rs+++ b/crates/openhuman-core/src/modules/ops_tests.rs@@ -405,7 +405,7 @@ async fn a_loader_error_carries_the_terminal_marker_exactly_once() {// `blocking` marks a loader error terminal, but tinybus' release-cache path// and `load_local` already say so; appending again doubled the sentence.// The failure policy keys on both phrases, so each must stay, once.- let marker = crate::tools::status::MODULE_FAULT_MARKER;+ let marker = tinytools::status::MODULE_FAULT_MARKER;for loader_error in ["module 'tinydocs' could not be loaded: digest mismatch. This is terminal for the \running process; restart the app to try again",diff --git a/crates/openhuman-core/src/search/tools_tests.rs b/crates/openhuman-core/src/search/tools_tests.rsindex 1c418714a8..1d7b081afa 100644--- a/crates/openhuman-core/src/search/tools_tests.rs+++ b/crates/openhuman-core/src/search/tools_tests.rs@@ -88,7 +88,7 @@ fn local_only_blocks_external_search_tool_dispatch() {let message = local_only_search_block("web_search_tool").expect("search requests must be blocked in LocalOnly mode");- assert!(message.contains(crate::security::POLICY_BLOCKED_MARKER));+ assert!(message.contains(tinytools::status::POLICY_BLOCKED_MARKER));}#[test]diff --git a/crates/openhuman-core/src/security/approval/gate.rs b/crates/openhuman-core/src/security/approval/gate.rsindex ca3242ba06..bbc0022987 100644--- a/crates/openhuman-core/src/security/approval/gate.rs+++ b/crates/openhuman-core/src/security/approval/gate.rs@@ -41,7 +41,7 @@ use crate::agent::turn_origin::{self, AgentTurnOrigin, TrustedAutomationSource};use crate::config::Config;use crate::core::bus::BUS;use crate::core::events::DomainEvent;-use crate::security::POLICY_DENIED_MARKER;+use tinytools::status::POLICY_DENIED_MARKER;use super::store;use super::types::{diff --git a/crates/openhuman-core/src/security/approval/gate_subagent_tests.rs b/crates/openhuman-core/src/security/approval/gate_subagent_tests.rsindex 0a7a1de0a8..88325715a8 100644--- a/crates/openhuman-core/src/security/approval/gate_subagent_tests.rs+++ b/crates/openhuman-core/src/security/approval/gate_subagent_tests.rs@@ -228,8 +228,8 @@ async fn an_expired_park_tells_the_model_nobody_answered() {assert!(reason.contains("ask again"), "{reason}");// The status classifier still reads it as an expired approval.assert_eq!(- crate::tools::status::classify(&reason, false).class,- crate::tools::status::ToolFailureClass::ApprovalExpired,+ tinytools::status::classify(&reason, false).class,+ tinytools::status::ToolFailureClass::ApprovalExpired,"{reason}");}diff --git a/crates/openhuman-core/src/security/egress/enforce.rs b/crates/openhuman-core/src/security/egress/enforce.rsindex accd424fc4..bddb469ddb 100644--- a/crates/openhuman-core/src/security/egress/enforce.rs+++ b/crates/openhuman-core/src/security/egress/enforce.rs@@ -38,7 +38,7 @@use super::types::{EgressDescriptor, EgressReason};use crate::config::PrivacyMode;use crate::security::live_policy::current_privacy_mode;-use crate::security::POLICY_BLOCKED_MARKER;+use tinytools::status::POLICY_BLOCKED_MARKER;/// Pure decision: under privacy `mode`, is the transfer described by `desc`/// blocked? `true` only when the mode is [`PrivacyMode::LocalOnly`], thediff --git a/crates/openhuman-core/src/security/egress/enforce_tests.rs b/crates/openhuman-core/src/security/egress/enforce_tests.rsindex 5d4a39d52f..4882e07223 100644--- a/crates/openhuman-core/src/security/egress/enforce_tests.rs+++ b/crates/openhuman-core/src/security/egress/enforce_tests.rs@@ -203,7 +203,7 @@ fn local_only_tool_block_marks_message_and_clears_when_allowed() {let _mode = test_privacy_scope(PrivacyMode::LocalOnly);let msg = local_only_tool_block(&desc).expect("network fetch blocked under LocalOnly");assert!(- msg.starts_with(crate::security::POLICY_BLOCKED_MARKER),+ msg.starts_with(tinytools::status::POLICY_BLOCKED_MARKER),"tool block must carry the policy-blocked marker: {msg}");assert!(msg.contains("api.example.com"), "names the host: {msg}");diff --git a/crates/openhuman-core/src/security/policy/policy_injection_tests.rs b/crates/openhuman-core/src/security/policy/policy_injection_tests.rsindex 622dec99b9..c11f7df924 100644--- a/crates/openhuman-core/src/security/policy/policy_injection_tests.rs+++ b/crates/openhuman-core/src/security/policy/policy_injection_tests.rs@@ -610,7 +610,7 @@ fn validate_command_truncates_secrets_in_allowlist_miss_error() {"Err return leaked the secret past the 80-char truncation boundary: {err}");assert!(- err.starts_with(crate::security::POLICY_BLOCKED_MARKER),+ err.starts_with(tinytools::status::POLICY_BLOCKED_MARKER),"hard block should lead with the recognizable policy marker: {err}");assert!(diff --git a/crates/openhuman-core/src/skills/catalog/tools.rs b/crates/openhuman-core/src/skills/catalog/tools.rsindex faccf6eb8f..bd8645fef7 100644--- a/crates/openhuman-core/src/skills/catalog/tools.rs+++ b/crates/openhuman-core/src/skills/catalog/tools.rs@@ -11,7 +11,7 @@ use serde_json::json;use crate::config::Config;use crate::skills::ops_install::{ScanAcknowledgement, ScanBlockedOutcome, SkillInstallOutcome};-use crate::tools::status::{NOT_FOUND_MARKER, UNSUPPORTED_MARKER};+use tinytools::status::{NOT_FOUND_MARKER, UNSUPPORTED_MARKER};use tinytools::{PermissionLevel, Tool, ToolResult};use super::ops;diff --git a/crates/openhuman-core/src/threads/turn_state/rpc_types.rs b/crates/openhuman-core/src/threads/turn_state/rpc_types.rsindex 66058d2ca0..b04e75db3f 100644--- a/crates/openhuman-core/src/threads/turn_state/rpc_types.rs+++ b/crates/openhuman-core/src/threads/turn_state/rpc_types.rs@@ -56,8 +56,8 @@ pub struct ClearTurnStateResponse {pub cleared: bool,}-impl From<&crate::tools::status::ClassifiedFailure> for PersistedToolFailure {- fn from(f: &crate::tools::status::ClassifiedFailure) -> Self {+impl From<&tinytools::status::ClassifiedFailure> for PersistedToolFailure {+ fn from(f: &tinytools::status::ClassifiedFailure) -> Self {// Serialize the enums to their wire variant name so the persisted// `class`/`category` strings match exactly what the live socket emits// (`ClassifiedFailure` serializes each as its bare variant name).diff --git a/crates/openhuman-core/src/tools/impl/browser/browser_task_actions.rs b/crates/openhuman-core/src/tools/impl/browser/browser_task_actions.rsindex fd848a1256..6cd59f8ca0 100644--- a/crates/openhuman-core/src/tools/impl/browser/browser_task_actions.rs+++ b/crates/openhuman-core/src/tools/impl/browser/browser_task_actions.rs@@ -27,7 +27,7 @@ pub(super) fn host_hint(view: &TaskView) -> Option<&'static str> {/// not finish. Every other state (running, paused for a person, input or/// approval, a checkpoint, done) is a success the model acts on.pub(super) fn task_outcome(view: &TaskView, output: Value) -> anyhow::Result<Value> {- let marker = crate::tools::status::TASK_FAILED_MARKER;+ let marker = tinytools::status::TASK_FAILED_MARKER;let headline = match &view.status {TaskStatus::Failed {step, reason, hint, ..diff --git a/crates/openhuman-core/src/tools/impl/browser/browser_task_outcome_tests.rs b/crates/openhuman-core/src/tools/impl/browser/browser_task_outcome_tests.rsindex ba085c410d..d19ed60044 100644--- a/crates/openhuman-core/src/tools/impl/browser/browser_task_outcome_tests.rs+++ b/crates/openhuman-core/src/tools/impl/browser/browser_task_outcome_tests.rs@@ -39,7 +39,7 @@ async fn a_failed_task_is_reported_as_an_error_with_its_reason_and_hint() {.expect_err("a failed task must not be a success");let text = error.to_string();assert!(- text.starts_with(crate::tools::status::TASK_FAILED_MARKER),+ text.starts_with(tinytools::status::TASK_FAILED_MARKER),"{text}");assert!(text.contains("HTTP 504"), "{text}");diff --git a/crates/openhuman-core/src/tools/toolpacks/registry.rs b/crates/openhuman-core/src/tools/toolpacks/registry.rsindex bd214aa945..a9705f65ae 100644--- a/crates/openhuman-core/src/tools/toolpacks/registry.rs+++ b/crates/openhuman-core/src/tools/toolpacks/registry.rs@@ -406,7 +406,7 @@ pub(crate) const DELIBERATELY_UNPACKED_FLEET_TOOLS: &[&str] = &[/// The lookup surface over [`PACKS`] handed to the generic `use_skill` tool/// (`tinyagents_harness::tool::packs`). `NOT_FOUND_MARKER` is the host's status/// vocabulary, so a "no such skill / tool" result classifies as `NotFound`.-pub const CATALOG: PackCatalog = PackCatalog::new(PACKS, crate::tools::status::NOT_FOUND_MARKER);+pub const CATALOG: PackCatalog = PackCatalog::new(PACKS, tinytools::status::NOT_FOUND_MARKER);pub fn pack(id: &str) -> Option<&'static ToolPack> {CATALOG.pack(id)diff --git a/crates/openhuman-core/src/web_chat/progress_bridge_subagent_events.rs b/crates/openhuman-core/src/web_chat/progress_bridge_subagent_events.rsindex 3282a1c7bd..bf41040bd8 100644--- a/crates/openhuman-core/src/web_chat/progress_bridge_subagent_events.rs+++ b/crates/openhuman-core/src/web_chat/progress_bridge_subagent_events.rs@@ -521,7 +521,7 @@ pub(super) fn on_subagent_tool_call_completed(arguments: Option<serde_json::Value>,elapsed_ms: u64,iteration: u32,- failure: Option<crate::tools::status::ClassifiedFailure>,+ failure: Option<tinytools::status::ClassifiedFailure>,display_label: Option<String>,display_detail: Option<String>,structured: Option<serde_json::Value>,