Skip to content

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

Merge remote-tracking branch 'upstream/main' into shrink-core-shims-7408

Steven Enamakelf38656e22c8f
diff --cc crates/openhuman-core/src/tools/ops.rs
index 1bff908970,6c6a753a66..8c614eb102
--- a/crates/openhuman-core/src/tools/ops.rs
+++ b/crates/openhuman-core/src/tools/ops.rs
@@@ -157,16 -345,46 +157,11 @@@ pub fn all_tools_with_runtime
security.clone(),
action_dir.to_path_buf(),
)),
- Box::new(GmailUnsubscribeTool),
- // Skills metadata tools. `skill_run` is already exposed by RunSkillTool
- // above, so it is not duplicated. Reads ship default-ON; the
- // create/install/uninstall mutators ship default-OFF via
- // `tools::user_filter` (install also fetches remote content).
- #[cfg(feature = "skills")]
- Box::new(WorkflowListTool::new(config.clone())),
- #[cfg(feature = "skills")]
- Box::new(WorkflowDescribeTool::new(config.clone())),
- #[cfg(feature = "skills")]
- Box::new(SkillSearchTool::new(config.clone())),
- // Skill registry tools — browse/search/install from remote registries.
- // Browse and search are read-only (default-ON); install is a write
- // operation (fetches remote content and writes to disk).
- #[cfg(feature = "skills")]
- Box::new(SkillRegistryBrowseTool),
- #[cfg(feature = "skills")]
- Box::new(SkillRegistrySearchTool),
- #[cfg(feature = "skills")]
- Box::new(SkillRegistryInstallTool::new(config.clone())),
- #[cfg(feature = "skills")]
- Box::new(SkillRegistrySourcesTool),
- #[cfg(feature = "skills")]
- Box::new(SkillRegistryUninstallTool),
- // Skill runtime probes — resolve the reusable Node/Python runtimes
- // that skill execution relies on before a script-backed skill runs.
- #[cfg(feature = "skills")]
- Box::new(SkillRuntimeResolveRuntimesTool::new(config.clone())),
- #[cfg(feature = "skills")]
- Box::new(WorkflowReadResourceTool::new(config.clone())),
- #[cfg(feature = "skills")]
- Box::new(WorkflowRecentRunsTool::new(config.clone())),
- #[cfg(feature = "skills")]
- Box::new(WorkflowReadRunLogTool::new(config.clone())),
- #[cfg(feature = "skills")]
- Box::new(WorkflowCreateTool::new(config.clone())),
- #[cfg(feature = "skills")]
- Box::new(WorkflowInstallFromUrlTool::new(config.clone())),
- #[cfg(feature = "skills")]
- Box::new(WorkflowUninstallTool),
+ ]);
- #[cfg(feature = "voice")]
- tools.extend(crate::voice::audio_toolkit::tools::registered_tools(
- config.clone(),
- security,
- ));
+ tools.push(Box::new(GmailUnsubscribeTool));
+ #[cfg(feature = "skills")]
+ tools.extend(crate::skills::registration::tools(config.clone()));
+ tools.append(&mut vec![
// Task & productivity tools (issue: agent-tool expansion).
// Read/observe + bounded-write tools are registered here; the
// destructive/overextending siblings (artifact_delete,
diff --cc crates/openhuman-embed/Cargo.toml
index 768d52f842,d2875da0d3..5acb32aa9c
--- a/crates/openhuman-embed/Cargo.toml
+++ b/crates/openhuman-embed/Cargo.toml
@@@ -68,9 -68,6 +68,11 @@@ tinymcp-bus = { path = "../../vendor/ti
# conversations in its own database, and the in-memory provider; same path as
# the core's so one copy resolves.
tinyagents-session = { path = "../../vendor/tinyagents/crates/tinyagents-session" }
++# Native persisted todo codec exposed by the existing session-store contract.
++tinyagents-graph = { path = "../../vendor/tinyagents/crates/tinyagents-graph", default-features = false }
+# Native cancellation contract, exposed unchanged by the existing stream API.
+tinybus = { path = "../../vendor/tinybus/crates/tinybus", default-features = false }
+tinyagents-harness = { path = "../../vendor/tinyagents/crates/tinyagents-harness", default-features = false }
# The wire request/response types `complete` converts to; same path as the
# core's so one copy resolves.
tinyinference-llm = { path = "../../vendor/tinyagents/vendor/tinyinference/crates/tinyinference-llm" }
diff --cc crates/openhuman-embed/src/lib.rs
index b6e0b36ca0,c59b4d0e18..390c665299
--- a/crates/openhuman-embed/src/lib.rs
+++ b/crates/openhuman-embed/src/lib.rs
@@@ -213,9 -214,13 +214,14 @@@ pub mod seams
/// The session store port: what a host implements to keep every agent's
/// conversations in its own database ([`RuntimeBuilder::session_store`]),
/// with the in-memory provider and the conformance suites a host's provider
- /// is held to.
+ /// is held to. The persisted record types are the harness's own serde codecs,
+ /// so hosts can encode and decode stored state without duplicating wire shapes.
pub mod session_store {
- pub use openhuman_core::agent::session_store::{
- AgentEvent, AgentObservation, AgentStores, ExecutionStatus, HarnessRunStatus,
- JournalMessage, SessionDescriptor, SessionStoreProvider, TodoList,
- };
++ pub use tinyagents_graph::todos::TodoList;
++ pub use tinyagents_harness::events::{AgentEvent, HarnessRunStatus};
++ pub use tinyagents_harness::ids::ExecutionStatus;
++ pub use tinyagents_harness::observability::AgentObservation;
+ pub use tinyagents_session::port::{AgentStores, SessionStoreProvider};
pub use tinyagents_session::port::{
AppendStore, InMemorySessionStores, InMemoryTranscriptLocator, InMemoryTurnStates, Store,
TurnStates,
@@@ -223,6 -228,6 +229,7 @@@
pub use tinyagents_session::testkit::conformance::{
session_store_conformance, session_store_isolation_conformance,
};
++ pub use tinyagents_session::transcript::import::types::{JournalMessage, SessionDescriptor};
/// The transcript seam a provider's [`AgentStores::transcripts`] implements.
pub use tinyagents_session::transcript::{
SessionRef, SessionTranscript, TranscriptHistory, TranscriptLocator, TranscriptMessage,
diff --cc scripts/__tests__/embed-contract-boundary.test.mjs
index 11f5175c87,4f50f5403b..2951bbf265
--- a/scripts/__tests__/embed-contract-boundary.test.mjs
+++ b/scripts/__tests__/embed-contract-boundary.test.mjs
@@@ -52,26 -52,3 +52,47 @@@ test('the same native contract remains
assert.equal(result.status, 1, result.output);
assert.match(result.output, /openhuman-upstream-reexport/);
});
+
+test('Embed preserves its existing native tool, session and budget injection contracts', () => {
+ const result = check({
+ 'crates/openhuman-embed/src/lib.rs': 'pub use tinytools::{PermissionLevel, Tool, ToolExposure, ToolResult};\n' +
+ 'pub use tinyagents_session::port::{AgentStores, SessionStoreProvider};\n',
+ 'crates/openhuman-embed/src/budget.rs': 'pub use tinyinference_llm::model::budget::{Budget, BudgetExceeded, BudgetSnapshot, CallBudget, Spend, SpendLimits};\n',
+ });
+ assert.equal(result.status, 0, result.output);
+});
+
+test('native injection allowances reject expanded or core compatibility exports', () => {
+ for (const files of [
+ { 'crates/openhuman-core/src/agent/host_overrides.rs': 'pub use tinyagents_harness::cancel::CancellationToken;\n' },
+ { 'crates/openhuman-embed/src/lib.rs': 'pub use tinytools::{PermissionLevel, Tool, ToolExposure, ToolResult, ToolRegistry};\n' },
+ { 'crates/openhuman-core/src/tools/mod.rs': 'pub use tinytools::{PermissionLevel, Tool, ToolExposure, ToolResult};\n' },
+ { 'crates/openhuman-core/src/agent/session_store/mod.rs': 'pub use tinyagents_session::port::{AgentStores, SessionStoreProvider};\n' },
+ { 'crates/openhuman-embed/src/budget.rs': 'pub use tinyinference_llm::model::budget::{Budget, BudgetExceeded, BudgetSnapshot, CallBudget, Spend, SpendLimits, BudgetedModel};\n' },
+ ]) {
+ const result = check(files);
+ assert.equal(result.status, 1, result.output);
+ assert.match(result.output, /openhuman-upstream-reexport/);
+ }
+});
++
++
++test("Embed preserves native persisted codecs without admitting core facades", () => {
++ const codecs = [
++ "pub use tinyagents_graph::todos::TodoList;",
++ "pub use tinyagents_harness::events::{AgentEvent, HarnessRunStatus};",
++ "pub use tinyagents_harness::ids::ExecutionStatus;",
++ "pub use tinyagents_harness::observability::AgentObservation;",
++ "pub use tinyagents_session::transcript::import::types::{JournalMessage, SessionDescriptor};",
++ ].join("\n");
++ const allowed = check({ "crates/openhuman-embed/src/lib.rs": codecs });
++ assert.equal(allowed.status, 0, allowed.output);
++ for (const files of [
++ { "crates/openhuman-core/src/agent/session_store/mod.rs": codecs },
++ { "crates/openhuman-embed/src/lib.rs": codecs.replace("AgentEvent, HarnessRunStatus", "AgentEvent, HarnessRunStatus, UnreviewedType") },
++ ]) {
++ const rejected = check(files);
++ assert.equal(rejected.status, 1, rejected.output);
++ assert.match(rejected.output, /openhuman-upstream-reexport/);
++ }
++});
diff --cc scripts/ci/check-agent-runtime-boundary.mjs
index 2e1c0d065b,3820c0ebd5..9bfd421a1a
--- a/scripts/ci/check-agent-runtime-boundary.mjs
+++ b/scripts/ci/check-agent-runtime-boundary.mjs
@@@ -40,9 -36,6 +40,15 @@@ const embedContractExports = new Map
"crates/openhuman-embed/src/lib.rs",
[
"pub use tinytools::ToolPolicy;",
+ "pub use tinyagents_session::port::{AgentStores, SessionStoreProvider};",
++ // Persisted codecs added to the public session-store API in #7462.
++ "pub use tinyagents_graph::todos::TodoList;",
++ "pub use tinyagents_harness::events::{AgentEvent, HarnessRunStatus};",
++ "pub use tinyagents_harness::ids::ExecutionStatus;",
++ "pub use tinyagents_harness::observability::AgentObservation;",
++ "pub use tinyagents_session::transcript::import::types::{JournalMessage, SessionDescriptor};",
+ // Existing embed tool injection API now names its contract directly.
+ "pub use tinytools::{PermissionLevel, Tool, ToolExposure, ToolResult};",
"pub use tinyinference_llm::message::MessageDelta;",
"pub use tinyinference_llm::model::{ChatModel, DeferredHandle, DeferredStatus, ModelProfile, ModelRequest, ModelResponse, ModelStream, ModelStreamItem, ModelStreamMetadata};",
"pub use tinyinference_llm::{Error, Result};",
diff --cc scripts/ci/check-openhuman-rust-layout.mjs
index e70861206b,c6939bf27c..7617e95234
--- a/scripts/ci/check-openhuman-rust-layout.mjs
+++ b/scripts/ci/check-openhuman-rust-layout.mjs
@@@ -53,8 -54,8 +53,8 @@@ const LEGACY_LIMIT_ENTRIES =
// their current sizes while follow-up work separates their test concerns.
// `core/` was pruned from the line limit by name until these pins; its
// oversized files are pinned at the size they had when enforcement began.
- ["crates/openhuman-core/src/core/all.rs", 1340],
- ["crates/openhuman-core/src/core/all_tests.rs", 1481],
+ ["crates/openhuman-core/src/core/all.rs", 1333],
- ["crates/openhuman-core/src/core/all_tests.rs", 1476],
++ ["crates/openhuman-core/src/core/all_tests.rs", 1475],
["crates/openhuman-core/src/core/events.rs", 1789],
["crates/openhuman-core/src/core/events_tests.rs", 997],
["crates/openhuman-core/src/core/observability.rs", 3493],