Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

refactor(turn_state): import persisted_tool_failure from rpc_types

Steven Enamakel721d3ef6e20d
diff --git a/crates/openhuman-core/src/security/policy/policy_workspace_internal_tests.rs b/crates/openhuman-core/src/security/policy/policy_workspace_internal_tests.rs
index b01c572d60..8e922f6f05 100644
--- a/crates/openhuman-core/src/security/policy/policy_workspace_internal_tests.rs
+++ b/crates/openhuman-core/src/security/policy/policy_workspace_internal_tests.rs
@@ -1,4 +1,5 @@
use super::*;
+use tinytools::status::POLICY_BLOCKED_MARKER;
// ── action sandbox (issue #3052) ──────────────────────────────────────────
diff --git a/crates/openhuman-core/src/threads/turn_state/mirror/observe.rs b/crates/openhuman-core/src/threads/turn_state/mirror/observe.rs
index 7c20a8e46d..507eb516cb 100644
--- a/crates/openhuman-core/src/threads/turn_state/mirror/observe.rs
+++ b/crates/openhuman-core/src/threads/turn_state/mirror/observe.rs
@@ -6,11 +6,12 @@
//! progress projection over it.
use crate::agent::progress::AgentProgress;
+use crate::threads::turn_state::rpc_types::persisted_tool_failure;
use tinyagents_session::turn_state::mirror::caps::{cap_persisted_args, cap_persisted_output};
use tinyagents_session::turn_state::types::{
- PersistedToolFailure, SubagentActivity, SubagentToolCall, SubagentTranscriptItem,
- ToolTimelineEntry, ToolTimelineStatus, TurnLifecycle, TurnPhase,
+ SubagentActivity, SubagentToolCall, SubagentTranscriptItem, ToolTimelineEntry,
+ ToolTimelineStatus, TurnLifecycle, TurnPhase,
};
use tinyagents_session::turn_state::TurnStateMirror;
diff --git a/crates/openhuman-core/src/threads/turn_state/rpc_types.rs b/crates/openhuman-core/src/threads/turn_state/rpc_types.rs
index 49565eb3a1..3d04284521 100644
--- a/crates/openhuman-core/src/threads/turn_state/rpc_types.rs
+++ b/crates/openhuman-core/src/threads/turn_state/rpc_types.rs
@@ -60,7 +60,9 @@ pub struct ClearTurnStateResponse {
///
/// A free function rather than a `From` impl: both types are foreign to this
/// crate (`tinytools` and `tinyagents_session`).
-pub(crate) fn persisted_tool_failure(f: &tinytools::status::ClassifiedFailure) -> PersistedToolFailure {
+pub(crate) fn persisted_tool_failure(
+ f: &tinytools::status::ClassifiedFailure,
+) -> PersistedToolFailure {
{
// Serialize the enums to their wire variant name so the persisted
// `class`/`category` strings match exactly what the live socket emits