Skip to content

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

refactor(agent): expose plan_exit module and tidy offload policy param

Steven Enamakeld54dc8c080b7
diff --git a/crates/openhuman-core/src/agent/harness/artifact_offload/mod.rs b/crates/openhuman-core/src/agent/harness/artifact_offload/mod.rs
index b7cfcec1f9..27f063c674 100644
--- a/crates/openhuman-core/src/agent/harness/artifact_offload/mod.rs
+++ b/crates/openhuman-core/src/agent/harness/artifact_offload/mod.rs
@@ -116,7 +116,7 @@ pub async fn offload_oversized_result(
offload: &ArtifactOffload,
threshold_bytes: usize,
materialize_root: &Path,
- policy: Option<&SecurityPolicy>,
+ _policy: Option<&SecurityPolicy>,
) -> (String, Option<OffloadedArtifact>) {
// The owner's filesystem-aware offload validates the eventual target
// before storing bytes, then writes and materializes through its policy.
diff --git a/crates/openhuman-core/src/agent/tools.rs b/crates/openhuman-core/src/agent/tools.rs
index c0491ee8f4..7e56f7152a 100644
--- a/crates/openhuman-core/src/agent/tools.rs
+++ b/crates/openhuman-core/src/agent/tools.rs
@@ -20,7 +20,7 @@
//!
//! `agent::registration` assembles the dialogue tools; `tools::ops` composes
//! domain registrations and applies the runtime capability filters.
-mod plan_exit;
+pub(crate) mod plan_exit;
// Pure `skill_runtime` client (spawn + await a workflow run) — compiled out
// with the `skills` gate so the tool list OMITS these rather than degrading
// them to a disabled-error.
diff --git a/crates/openhuman-core/src/agent/tools/plan_exit_tests.rs b/crates/openhuman-core/src/agent/tools/plan_exit_tests.rs
index afcc97cfc3..cb6f6866c7 100644
--- a/crates/openhuman-core/src/agent/tools/plan_exit_tests.rs
+++ b/crates/openhuman-core/src/agent/tools/plan_exit_tests.rs
@@ -1,5 +1,8 @@
use super::*;
+use crate::agent::tools::{PlanExitTool, PLAN_EXIT_MARKER};
use crate::plan_review::PlanReviewResolution;
+use tinytools::{PermissionLevel, Tool, ToolCallOptions, ToolRunContext};
+use serde_json::json;
struct ThreadContext(&'static str);
impl ToolRunContext for ThreadContext {