Skip to content

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

chore: files changed crates/openhuman-core/Cargo.toml,crates/openhuman-core/src/core/all_tests.rs,cr

Steven Enamakel59a059210fce
diff --git a/crates/openhuman-core/Cargo.toml b/crates/openhuman-core/Cargo.toml
index 2e0f3c499c..6e27c585d0 100644
--- a/crates/openhuman-core/Cargo.toml
+++ b/crates/openhuman-core/Cargo.toml
@@ -833,11 +833,9 @@ flows = ["modules", "dep:tinyflows", "dep:tinyflows-catalog", "dep:tinyflows-cop
# always-on domains. This gate's value is tool-surface + prompt-bloat +
# startup cost, NOT binary size.
#
-# NOTE: `openhuman::skills::types` and `::ops_types` stay compiled even when
-# this feature is OFF — `tools::traits` re-exports `ToolResult`/`ToolContent`
-# out of `skills::types` and ~236 files consume them, so those inert serde
-# types are a type carve-out, not part of the gated behaviour. See
-# `crates/openhuman-core/src/skills/stub.rs`.
+# Workflow metadata in `openhuman::skills::ops_types` remains compiled with
+# this feature OFF; generic tool-result types come directly from tinytools.
+# Neither is part of the gated behavior. See src/skills/stub.rs.
skills = ["tinyskills/registry"]
# MCP domains, all under the `mcp/` family: `mcp::server` (the `openhuman mcp`
# stdio/HTTP server exposing our tool surface), `mcp::registry` (dynamic
diff --git a/crates/openhuman-core/src/core/all_tests.rs b/crates/openhuman-core/src/core/all_tests.rs
index 3b25057bed..7300acaf75 100644
--- a/crates/openhuman-core/src/core/all_tests.rs
+++ b/crates/openhuman-core/src/core/all_tests.rs
@@ -269,10 +269,9 @@ fn skill_controllers_registered_when_feature_on() {
/// unknown-method and absent from `/schema`. This is the compile-time
/// stub-facade correctness gate (see `crate::skills::stub`).
///
-/// Note this does NOT cover `skills::types` / `skills::ops_types`: those stay
-/// compiled in both directions (the type carve-out — `tools::traits` re-exports
-/// `ToolResult`/`ToolContent` out of them), but they expose no controllers, so
-/// the namespaces are absent either way.
+/// Workflow metadata in `skills::ops_types` stays compiled in both directions.
+/// Generic tool-result types come from `tinytools`. Neither exposes controllers,
+/// so these namespaces are absent either way.
#[test]
#[cfg(not(feature = "skills"))]
fn skill_controllers_absent_when_feature_off() {
diff --git a/crates/openhuman-core/src/skills/mod.rs b/crates/openhuman-core/src/skills/mod.rs
index 6dfb31a5e2..2fb8371384 100644
--- a/crates/openhuman-core/src/skills/mod.rs
+++ b/crates/openhuman-core/src/skills/mod.rs
@@ -11,28 +11,12 @@
//! (The `tools` glob is `#[cfg(feature = "skills")]` at its re-export site in
//! `tools/mod.rs`, so the stub omits it — mirroring the `voice` gate.)
//!
-//! ### Type carve-out (why `types` + `ops_types` are NOT gated)
+//! Workflow metadata in [`ops_types`] remains available with the feature off,
+//! because always-on agent and prompt code uses it. Generic tool result types
+//! come directly from `tinytools` and are independent of this feature.
//!
-//! [`types`] and [`ops_types`] stay compiled in **both** directions. They are
-//! inert serde/std-only type definitions with zero coupling to the gated
-//! siblings, and they are load-bearing far outside this domain:
-//! `tools::traits` re-exports `ToolResult`/`ToolContent` out of [`types`] as
-//! the crate's unified tool-result type (`mcp` and
-//! ~236 files consume it), and `Workflow`/`WorkflowFrontmatter`/
-//! `WorkflowScope` from [`ops_types`] appear in always-on agent-harness and
-//! prompt signatures. Gating them would take down the entire tool trait
-//! system, MCP, and the Node runtime.
-//!
-//! The generalizable rule: **put inert types in a dep-free submodule and leave
-//! it ungated; stub only the behaviour.** The stub below therefore mirrors
-//! FUNCTIONS ONLY and re-exports the real types — zero type duplication, so
-//! strictly less drift surface than the `voice` stub (which had to re-declare
-//! `SttResult` + the `SttProvider` trait because those live inside its gated
-//! tree).
-//!
-//! Signatures in [`stub`] must match the real ones exactly — the disabled
-//! build (`cargo check --no-default-features`)
-//! is the only thing that catches drift.
+//! The disabled facade mirrors behavior functions and preserves those metadata
+//! types. Check both feature directions when changing its signatures.
// Type carve-out: always compiled, both feature directions. See module docs.
pub mod ops_types;
diff --git a/crates/openhuman-core/src/skills/ops.rs b/crates/openhuman-core/src/skills/ops.rs
index 9a4f11da6d..8dc55e068d 100644
--- a/crates/openhuman-core/src/skills/ops.rs
+++ b/crates/openhuman-core/src/skills/ops.rs
@@ -23,7 +23,7 @@
//! |---|---|
//! | [`super::ops_types`] | Core types, constants, and frontmatter helpers |
//! | [`super::ops_discover`] | Scanning root directories, scope resolution, collision handling |
-//! | [`super::ops_parse`] | SKILL.md parsing, resource inventory, skill-resource reading |
+//! | `tinyskills` | Resource inventory and shared bundle parsing |
//! | [`super::ops_create`] | Scaffolding new SKILL.md-based skills on disk |
//! | [`super::ops_install`] | URL-based skill installation over HTTPS |
@@ -41,7 +41,6 @@ pub use super::ops_install::{
UninstallWorkflowParams, DEFAULT_INSTALL_TIMEOUT_SECS, MAX_INSTALL_TIMEOUT_SECS,
MAX_INSTALL_URL_LEN, MAX_WORKFLOW_MD_BYTES,
};
-pub use tinyskills::inventory_resources;
pub use super::ops_types::{
Workflow, WorkflowFrontmatter, WorkflowScope, MAX_WORKFLOW_RESOURCE_BYTES,
};
diff --git a/crates/openhuman-core/src/voice/mod.rs b/crates/openhuman-core/src/voice/mod.rs
index a2e0b23bb2..5738ab5c78 100644
--- a/crates/openhuman-core/src/voice/mod.rs
+++ b/crates/openhuman-core/src/voice/mod.rs
@@ -47,7 +47,6 @@ pub mod dictation_listener;
#[cfg(feature = "voice")]
pub mod factory;
#[cfg(feature = "voice")]
-#[cfg(feature = "voice")]
pub mod live;
#[cfg(feature = "voice")]
mod ops;