Skip to content

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

feat(embed): route scheduled agent replies to the host

Steven Enamakel31a0899ffa53
diff --git a/crates/openhuman-core/src/cron/host_delivery.rs b/crates/openhuman-core/src/cron/host_delivery.rs
index c5c5992043..37a461b955 100644
--- a/crates/openhuman-core/src/cron/host_delivery.rs
+++ b/crates/openhuman-core/src/cron/host_delivery.rs
@@ -1,12 +1,15 @@
-//! Host-routed delivery of a hosted profile's scheduled output.
+//! Host-routed delivery of scheduled output.
//!
-//! A host that embeds profiles (`profiles::ProfileHost`) owns the conversations
-//! its users talk in, so it can route a scheduled reply better than the core
-//! can. With a [`CronDelivery`] installed, an `origin`-mode run of a profile's
-//! job hands its output to the host instead of writing into a local thread or
-//! channel: the host is told which profile, which conversation the job was
-//! created in, and the job's recorded origin. A run with nothing to say (blank
-//! or `NO_REPLY`) never reaches it.
+//! A host that embeds profiles (`profiles::ProfileHost`) or library agents
+//! (`openhuman_embed::Runtime`) owns the conversations its users talk in, so it
+//! can route a scheduled reply better than the core can. With a
+//! [`CronDelivery`] installed, an `origin`-mode run of a profile's or an
+//! embedded agent's job hands its output to the host instead of writing into a
+//! local thread or channel: the host is told whose job it was (the profile, the
+//! agent, or both), which conversation the job was created in, and the job's
+//! recorded origin. A run with nothing to say (blank or `NO_REPLY`) never
+//! reaches it. A run with neither a profile nor an agent (the desktop's own
+//! orchestrator) keeps the core's delivery.
use std::sync::{Arc, RwLock};
@@ -17,8 +20,12 @@ use crate::cron::JobOrigin;
/// One scheduled reply for the host to route.
#[derive(Debug, Clone, PartialEq)]
pub struct CronReply {
- /// The profile whose job produced the reply.
- pub profile_id: String,
+ /// The profile whose job produced the reply; `None` for an embedded
+ /// agent outside any profile.
+ pub profile_id: Option<String>,
+ /// The agent whose job produced the reply; `None` for a profile's
+ /// default agent.
+ pub agent_id: Option<String>,
/// The job that ran.
pub job_id: String,
/// This run; stable across redelivery of the same reply.
diff --git a/crates/openhuman-core/src/cron/scheduler/origin_delivery.rs b/crates/openhuman-core/src/cron/scheduler/origin_delivery.rs
index f2f1b95065..3f9d54a2ab 100644
--- a/crates/openhuman-core/src/cron/scheduler/origin_delivery.rs
+++ b/crates/openhuman-core/src/cron/scheduler/origin_delivery.rs
@@ -152,19 +152,25 @@ pub(crate) async fn deliver_to_origin(
};
let text = output.trim();
- // A hosted profile's host routes the reply itself.
- if let (Some(sink), Some(profile_id)) = (
- crate::cron::host_delivery::installed(),
- crate::core::runtime::current_tenant()
- .ok()
- .and_then(|tenant| tenant.profile),
- ) {
+ // A hosted profile's or an embedded agent's host routes the reply itself.
+ let owner = crate::core::runtime::current_tenant()
+ .ok()
+ .filter(|tenant| tenant.profile.is_some() || tenant.agent.is_some());
+ if let (Some(sink), Some(owner)) = (crate::cron::host_delivery::installed(), owner) {
let thread_id = match origin {
JobOrigin::Web { thread_id, .. } => Some(thread_id.clone()),
JobOrigin::Channel { thread_id, .. } => thread_id.clone(),
};
+ tracing::debug!(
+ job_id = %job.id,
+ run_id = %run_id,
+ profile = owner.profile.is_some(),
+ agent = owner.agent.is_some(),
+ "[cron] origin delivery handed to the host"
+ );
sink.deliver(crate::cron::host_delivery::CronReply {
- profile_id,
+ profile_id: owner.profile,
+ agent_id: owner.agent,
job_id: job.id.clone(),
run_id: run_id.to_string(),
thread_id,
diff --git a/crates/openhuman-core/src/modules/registry_tests.rs b/crates/openhuman-core/src/modules/registry_tests.rs
index d3d05f7f2f..6f556e78f2 100644
--- a/crates/openhuman-core/src/modules/registry_tests.rs
+++ b/crates/openhuman-core/src/modules/registry_tests.rs
@@ -395,12 +395,22 @@ fn every_digest_is_a_lowercase_sha256() {
#[test]
fn every_asset_name_carries_its_host_key_and_a_known_extension() {
// tinybus selects the asset by exact name and requires a `.tar.gz` or
- // `.zip` archive, so a name that does not match its key is a module that
- // loads the wrong platform's library.
+ // `.zip` archive. Most archive platform stems match their host keys;
+ // TinyMCP's release uses the canonical `archlinux` stem for the rolling
+ // Arch host keys.
for record in ALL {
for asset in record.assets {
+ let archive_host_key = if record.id == "tinymcp" {
+ asset
+ .host_key
+ .strip_prefix("archlinux-rolling-")
+ .map(|suffix| format!("archlinux-{suffix}"))
+ .unwrap_or_else(|| asset.host_key.to_owned())
+ } else {
+ asset.host_key.to_owned()
+ };
assert!(
- asset.archive.contains(asset.host_key),
+ asset.archive.contains(&archive_host_key),
"{} asset {} does not name its host key {}",
record.id,
asset.archive,
diff --git a/crates/openhuman-embed/src/lib.rs b/crates/openhuman-embed/src/lib.rs
index 78d333a34f..05db090897 100644
--- a/crates/openhuman-embed/src/lib.rs
+++ b/crates/openhuman-embed/src/lib.rs
@@ -187,11 +187,15 @@ pub use harness::{
};
#[cfg(feature = "mcp")]
pub use harness::{HttpHeader, McpAuthConfig, McpServer};
+/// Host-routed delivery of scheduled replies, for [`RuntimeBuilder::cron_delivery`]
+/// and the profile runtime alike.
+pub use openhuman_core::cron::host_delivery::{CronDelivery, CronReply};
+pub use openhuman_core::cron::JobOrigin;
#[cfg(feature = "profiles")]
pub use profiles::{
- ChatReply, CronDelivery, CronReply, CronSweepReport, DirectProfileProvider, JobOrigin,
- OpenError, ProfileError, ProfileEvents, ProfileHandle, ProfileId, ProfileIdMode,
- ProfileRuntime, ProfileRuntimeBuilder, ProfileSummary, Provisioned, SaasConfig,
+ ChatReply, CronSweepReport, DirectProfileProvider, OpenError, ProfileError, ProfileEvents,
+ ProfileHandle, ProfileId, ProfileIdMode, ProfileRuntime, ProfileRuntimeBuilder, ProfileSummary,
+ Provisioned, SaasConfig,
};
#[cfg(all(feature = "profiles", feature = "channels"))]
pub use profiles::{RelayAccepted, RelayMessage};
diff --git a/crates/openhuman-embed/src/runtime/build.rs b/crates/openhuman-embed/src/runtime/build.rs
index 04fdf56252..ce598b84ad 100644
--- a/crates/openhuman-embed/src/runtime/build.rs
+++ b/crates/openhuman-embed/src/runtime/build.rs
@@ -218,6 +218,10 @@ impl RuntimeBuilder {
if let Some(engine) = self.memory_engine.clone() {
openhuman_core::memory::engine::install_host_engine(engine);
}
+ if let Some(delivery) = self.cron_delivery.clone() {
+ log::debug!("[embed][runtime] host cron delivery installed");
+ openhuman_core::cron::host_delivery::install(delivery);
+ }
// Install only after all fallible workspace/config resolution has
// completed; core boot performs recovery against this provider.
diff --git a/crates/openhuman-embed/src/runtime/builder.rs b/crates/openhuman-embed/src/runtime/builder.rs
index f78f60be0c..aaec18d055 100644
--- a/crates/openhuman-embed/src/runtime/builder.rs
+++ b/crates/openhuman-embed/src/runtime/builder.rs
@@ -99,6 +99,7 @@ pub struct RuntimeBuilder {
pub(super) backend_transport: Option<Arc<dyn BackendTransport>>,
pub(super) memory_engine: Option<Arc<dyn tinymemory_api::MemoryEngine>>,
pub(super) session_store: Option<Arc<dyn SessionStoreProvider>>,
+ pub(super) cron_delivery: Option<Arc<dyn openhuman_core::cron::host_delivery::CronDelivery>>,
pub(super) seams: HostSeams,
pub(super) max_agents: usize,
pub(super) agent_defaults: super::AgentDefaults,
@@ -144,6 +145,7 @@ impl RuntimeBuilder {
backend_transport: None,
memory_engine: None,
session_store: None,
+ cron_delivery: None,
seams: HostSeams::default(),
max_agents: DEFAULT_MAX_AGENTS,
agent_defaults: super::AgentDefaults::default(),
@@ -261,6 +263,24 @@ impl RuntimeBuilder {
self
}
+ /// Route the replies of the agents' scheduled jobs yourself.
+ ///
+ /// An `origin`-mode run of an agent's cron job hands its output to
+ /// [`CronDelivery::deliver`](crate::CronDelivery::deliver) with the agent
+ /// id, the thread the job was created in and its
+ /// [`JobOrigin`](crate::JobOrigin), instead of writing into a local thread
+ /// or channel; a run that answers `NO_REPLY`, or fails, is never delivered.
+ /// Jobs still run only while their agent is live (the scheduler service
+ /// must be on). It is process-wide, as the runtime is, and the core has no
+ /// uninstall for it: it stays installed for the life of the process.
+ pub fn cron_delivery(
+ mut self,
+ delivery: Arc<dyn openhuman_core::cron::host_delivery::CronDelivery>,
+ ) -> Self {
+ self.cron_delivery = Some(delivery);
+ self
+ }
+
/// The most agents this runtime hosts at once; [`crate::Runtime::agent`]
/// returns [`AgentError::AgentLimit`](crate::AgentError::AgentLimit)
/// beyond it. Removed and dropped agents do not count. Defaults to
diff --git a/crates/openhuman-embed/tests/cron_host_delivery.rs b/crates/openhuman-embed/tests/cron_host_delivery.rs
new file mode 100644
index 0000000000..05fed4a94a
--- /dev/null
+++ b/crates/openhuman-embed/tests/cron_host_delivery.rs
@@ -0,0 +1,133 @@
+//! A library agent's scheduled reply reaches the host's `CronDelivery`.
+//!
+//! The agent makes a one-shot job through the `cron` tool in a chat turn on a
+//! stateless runtime. When the scheduler runs it, the reply is handed to the
+//! host with the agent's id and the thread the job was made in, not written
+//! into a local thread.
+//!
+//! One runtime per process, so one test in this binary.
+
+mod common;
+
+use std::sync::{Arc, Mutex};
+use std::time::Duration;
+
+use common::{offline_config, runtime, scripted_provider, stub_backend, tool_call_completion};
+use openhuman_embed::{
+ Access, AgentDefinitionSpec, AgentSpec, AgentTurnOrigin, CronDelivery, CronReply,
+ HostTurnTools, InMemorySessionStores, JobOrigin, Runtime, ServiceSet, ToolScopeSpec, Workspace,
+};
+
+#[derive(Default)]
+struct Recorder(Mutex<Vec<CronReply>>);
+
+#[async_trait::async_trait]
+impl CronDelivery for Recorder {
+ async fn deliver(&self, reply: CronReply) -> Result<(), String> {
+ self.0.lock().unwrap().push(reply);
+ Ok(())
+ }
+}
+
+/// A `cron add` call for a one-shot agent job a few seconds from now.
+fn add_job(name: &str, prompt: &str) -> serde_json::Value {
+ let at = chrono::Utc::now() + chrono::Duration::seconds(2);
+ let arguments = serde_json::json!({
+ "action": "add", "job_type": "agent", "name": name, "prompt": prompt,
+ "delivery": {"mode": "origin"},
+ "schedule": {"kind": "at", "at": at.to_rfc3339()},
+ });
+ tool_call_completion("cron", &arguments.to_string())
+}
+
+#[test]
+fn a_library_agents_scheduled_reply_is_handed_to_the_host() {
+ let _ = env_logger::builder().is_test(true).try_init();
+ let _ = tracing_subscriber::fmt()
+ .with_env_filter(tracing_subscriber::EnvFilter::from_default_env())
+ .with_test_writer()
+ .try_init();
+ runtime().block_on(async {
+ tokio::spawn(async {
+ let backend = stub_backend().await;
+ // The chat turn schedules the job and acknowledges it; the job's
+ // own run answers from the fallback.
+ let provider = scripted_provider(
+ vec![
+ add_job("stretch", "stretch reminder"),
+ common::chat_completion("Scheduled."),
+ ],
+ "Time to stretch!",
+ )
+ .await;
+ let recorder = Arc::new(Recorder::default());
+ let mut config = offline_config();
+ config.reliability.scheduler_poll_secs = 5;
+ let runtime = Runtime::builder()
+ .config(config)
+ .workspace(Workspace::Stateless)
+ .session_store(Arc::new(InMemorySessionStores::new()))
+ .backend_url(backend.uri())
+ .cron_delivery(recorder.clone())
+ .services(ServiceSet {
+ cron: true,
+ ..ServiceSet::none()
+ })
+ .build()
+ .await
+ .expect("runtime builds");
+ let agent = runtime
+ .agent(
+ AgentSpec::new("teeny")
+ .provider(common::route(&provider, "fixture"))
+ // Scheduling is the one effect this agent may take
+ // without a person approving it.
+ .access(Access::supervised().auto_approve(["cron"]))
+ .definition(
+ AgentDefinitionSpec::new()
+ .system_prompt("TEENY")
+ .tools(ToolScopeSpec::Named(vec!["cron".into(), "tool_search".into()])),
+ )
+ .tools(|_| HostTurnTools::advertised(Vec::new())),
+ )
+ .expect("agent instantiates");
+
+ agent
+ .turn("remind me to stretch")
+ .session("t-stretch")
+ // The host's conversation: what a job made in it returns to.
+ .origin(AgentTurnOrigin::WebChat {
+ thread_id: "t-stretch".into(),
+ client_id: "teeny-host".into(),
+ request_id: None,
+ })
+ .send()
+ .await
+ .expect("the stretch turn runs");
+
+ let mut delivered = Vec::new();
+ for _ in 0..120 {
+ delivered = recorder.0.lock().unwrap().clone();
+ if !delivered.is_empty() {
+ break;
+ }
+ tokio::time::sleep(Duration::from_millis(500)).await;
+ }
+ assert_eq!(delivered.len(), 1, "{delivered:?}");
+ let reply = &delivered[0];
+ assert_eq!(reply.agent_id.as_deref(), Some("teeny"));
+ assert_eq!(reply.profile_id, None, "a library agent has no profile");
+ assert_eq!(reply.thread_id.as_deref(), Some("t-stretch"));
+ assert_eq!(reply.text, "Time to stretch!");
+ assert!(
+ matches!(&reply.origin, Some(JobOrigin::Web { thread_id, .. }) if thread_id == "t-stretch"),
+ "{:?}",
+ reply.origin
+ );
+ drop(agent);
+ drop(runtime);
+ })
+ .await
+ .expect("library host task did not panic");
+ });
+}
diff --git a/crates/openhuman-embed/tests/profile_cron_sweep.rs b/crates/openhuman-embed/tests/profile_cron_sweep.rs
index e071ec957b..7ebc76d6ee 100644
--- a/crates/openhuman-embed/tests/profile_cron_sweep.rs
+++ b/crates/openhuman-embed/tests/profile_cron_sweep.rs
@@ -138,6 +138,15 @@ async fn scenario() {
})
.collect();
delivered.sort_by(|x, y| x.0.cmp(&y.0));
+ assert!(
+ recorder
+ .0
+ .lock()
+ .unwrap()
+ .iter()
+ .all(|r| r.agent_id.is_none()),
+ "a profile's default agent is not named"
+ );
let web = |user: &str| {
Some(JobOrigin::Web {
thread_id: format!("t-{user}"),
@@ -148,13 +157,13 @@ async fn scenario() {
delivered,
[
(
- "alice".into(),
+ Some("alice".into()),
Some("t-alice".into()),
"ran: alice".into(),
web("alice")
),
(
- "bob".into(),
+ Some("bob".into()),
Some("t-bob".into()),
"ran: bob".into(),
web("bob")
diff --git a/docs/audits/cloud-storage-7419/owner-prerequisites.md b/docs/audits/cloud-storage-7419/owner-prerequisites.md
new file mode 100644
index 0000000000..17ffa47815
--- /dev/null
+++ b/docs/audits/cloud-storage-7419/owner-prerequisites.md
@@ -0,0 +1,102 @@
+# Cloud storage owner prerequisites (#7419)
+
+Checkpoint: 2026-10-12. This records owning repository evidence and outstanding
+composition work. It does not establish OpenHuman desktop or cloud E2E
+acceptance. Earlier local host work remains on the retained
+`cloud-storage-7419` branch; this audit branch starts from canonical OpenHuman
+`b1c053c4557e816b27b2c5f8eefa6eb1b516590f`.
+
+## Canonical owner milestones
+
+| Owner change | Available capability | Evidence and limits |
+| --------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
+| [TinyStorageDrivers #27](https://github.com/tinyhumansai/tinystoragedrivers/pull/27), merged | Minimal document bus client and mechanical adapter over a captured native DocumentStore | Four actual compiled SDK callback proofs passed. The bridge preserves native CAS and exact callback admission; it accepts no caller-selected storage URL or collection. Local all-feature/default gates passed 705/663 tests respectively. |
+| [TinyBus #59](https://github.com/tinyhumansai/tinybus/pull/59) and [#60](https://github.com/tinyhumansai/tinybus/pull/60), merged | Exact callback revocation/drain and native module replacement with per-instance diagnostic ownership | The replacement proof loads the same artifact as A and B after A stops and both names disappear. B's logging and sanitized panic use B's callback. #60's 13 CI jobs and CodeRabbit passed. This is not a host reset/drain proof. |
+| [TinyAgents #413](https://github.com/tinyhumansai/tinyagents/pull/413), merged | Conversation persistence/provider prerequisite, metadata/prefix readers, trusted schema preparation and immutable validate-only construction | Seven schema controls passed after two genuine missing-declaration failures. Local workspace suites passed 5206 all-feature and 4811 default tests, with 36 ignored per graph. Native message writers and authoritative turn claims remain unsupported. |
+| [TinyMemes #6](https://github.com/tinyhumansai/tinymemes/pull/6), merged | Bounded native delivered-marker CAS through the authenticated document callback | Actual compiled Memory/SQLite proof: 18 passes. Default/all-feature owner suites: 87 passes each. Hosted CI also passed the Bash forwarding regression. This does not implement learning, research, historical import or host composition. |
+
+Merged source is distinct from a released module. The latest observed TinyBus
+release is v0.1.4, published before #60; no TinyMemes GitHub release was found.
+The merged TinyBus tree is `40814a8279ff71b8fb411f9f29362c8ec0be51e2`, including
+#59 and #60. #60's final head also corrects a test timeout beyond the earlier
+local `5256d08c` candidate; the SDK diagnostic implementation is unchanged.
+
+## Coherent runtime dependency prerequisite
+
+Canonical TinyStorageDrivers still pins TinyBus `1f255765`. Selecting the newly
+merged runtime in TinyMemes without a replacement therefore creates incompatible
+Rust bus types at the adapter boundary.
+
+[TinyStorageDrivers #28](https://github.com/tinyhumansai/tinystoragedrivers/pull/28)
+updates only runtime pins, lock sources and a historical evidence note. The
+reviewed clean head is `a981da30`. Metadata resolves one TinyBus at `40814a8` in
+the driver workspace and one matching SDK in the compiled proof. No replacement,
+URL alias or local runtime path supplies this graph.
+
+Fresh actual callback proof: four passes. All-feature/default gates pass
+705/663 tests, including the native Mongo fixture. Strict Clippy, builds, Rust
+1.88, documentation and formatting pass. Restoring unrelated lock normalization
+leaves only the intended source substitutions; final locked metadata, strict
+Clippy, build and MSRV checks pass, and independent review finds no issues.
+Publication is ready for review; this checkpoint does not claim its merge.
+
+## Next owner capabilities under development
+
+### Native TinyMemes content usage
+
+The next contract accepts business inputs for slang usage, meme usage and meme
+removal. Callers cannot supply a stored snapshot, expected business revision,
+scope, storage selector or allegedly verified research output. The module must
+read the captured native catalog and preserve complete records, history and
+duplicate order while applying the existing owning reducer.
+
+Seventeen actual compiled content cases cover Memory/SQLite
+preservation, cold reopen, native CAS races, corruption, exhaustion, fencing,
+native acknowledgement uncertainty and exact-instance admission. On the new
+public #28/canonical TinyBus graph, all 18 existing marker controls pass. The
+content baseline executes all 17 cases: two admission controls pass and 15
+behavior cases fail against the deliberate unavailable stub, with no setup or
+compiler failures. The owning CAS candidate `592b6db` subsequently passes all
+35 actual compiled cases (17 content and 18 marker controls), with the baseline
+assertions unchanged. Independent source and proof review finds no issues;
+broader gates and coverage remain pending. This is not host migration acceptance.
+The new graph removes TinyMemes' old replacement shim.
+
+### Native conversation append
+
+Documents support checked atomic batches and streams support conditional
+append. They do not expose a cross-port atomic commit. The bounded proposed
+protocol retains the existing stream layout and stores a separate durable
+pending document while the committed visible prefix remains unchanged.
+Final publication must verify the exact row, pending version and live
+incarnation before a fenced checked document batch publishes metadata and
+retires the reservation. Only writers recover pending work; reads stay
+side-effect free.
+
+Putting pending fields directly into schema-1 thread metadata would be unsafe:
+older metadata writers ignore and drop unknown fields. A separate prepared
+collection avoids that compatibility failure. Ordinary-ID uncertainty must
+remain explicit when the original attempt cannot be identified; no hidden UUID
+retry or whole-operation exactly-once guarantee follows. This is a reviewed
+implementation plan, not an executed append capability or a turn-claim proof.
+
+The owning local implementation branch now has an authentic baseline: two
+prepared ExistingSchema Memory/SQLite cases compile successfully and both fail
+at the first append with the expected typed Unsupported result. Later assertions
+for replay, reopen and statistics are not reached by that baseline. The owning
+append implementation and its GREEN evidence remain pending.
+
+## Remaining host and migration work
+
+OpenHuman still directly imports the TinyMemes implementation and persists local
+catalogs and markers. A native marker call alongside that old factory would
+still create directories and write sibling JSON files. The host needs released
+bus contracts, actual compiled module admission, captured actor ports and
+durable success before returning a substituted reply. The synchronous history
+builder needs admitted asynchronous reads before constructing its temporary
+observed marker snapshot.
+
+Historical source ownership and root-retained import receipts, complete native
+reset inventory and purge, conversation edit/tail/purge parity, authoritative
+turn claims, and the two-core MongoDB/MinIO read-only E2E remain outstanding.
+These owner prerequisites do not complete #7419 or its constituent migrations.
diff --git a/docs/gitbooks/en/developing/embed/api-index.json b/docs/gitbooks/en/developing/embed/api-index.json
index d5a07ff118..e1284be6eb 100644
--- a/docs/gitbooks/en/developing/embed/api-index.json
+++ b/docs/gitbooks/en/developing/embed/api-index.json
@@ -183,55 +183,55 @@
"name": "access",
"signature": "pub fn access(mut self, access: Access) -> Self",
"source": "crates/openhuman-embed/src/runtime/builder.rs",
- "line": 348
+ "line": 368
},
{
"name": "action_dir",
"signature": "pub fn action_dir(mut self, dir: impl Into<PathBuf>) -> Self",
"source": "crates/openhuman-embed/src/runtime/builder.rs",
- "line": 305
+ "line": 325
},
{
"name": "agent_defaults",
"signature": "pub fn agent_defaults(mut self, defaults: super::AgentDefaults) -> Self",
"source": "crates/openhuman-embed/src/runtime/builder.rs",
- "line": 156
+ "line": 158
},
{
"name": "api_key",
"signature": "pub fn api_key(mut self, key: impl Into<ApiKey>) -> Self",
"source": "crates/openhuman-embed/src/runtime/builder.rs",
- "line": 325
+ "line": 345
},
{
"name": "autonomy",
"signature": "pub fn autonomy(mut self, value: openhuman_core::config::schema::AutonomyConfig) -> Self",
"source": "crates/openhuman-embed/src/runtime/builder.rs",
- "line": 191
+ "line": 193
},
{
"name": "backend_transport",
"signature": "pub fn backend_transport(mut self, transport: Arc<dyn BackendTransport>) -> Self",
"source": "crates/openhuman-embed/src/runtime/builder.rs",
- "line": 230
+ "line": 232
},
{
"name": "backend_url",
"signature": "pub fn backend_url(mut self, url: impl Into<String>) -> Self",
"source": "crates/openhuman-embed/src/runtime/builder.rs",
- "line": 335
+ "line": 355
},
{
"name": "config",
"signature": "pub fn config(mut self, config: Config) -> Self",
"source": "crates/openhuman-embed/src/runtime/builder.rs",
- "line": 465
+ "line": 485
},
{
"name": "config_source",
"signature": "pub fn config_source(mut self, source: ConfigSource) -> Self",
"source": "crates/openhuman-embed/src/runtime/builder.rs",
- "line": 313
+ "line": 333
},
{
"name": "controller_extension",
@@ -243,55 +243,61 @@
"name": "cron",
"signature": "pub fn cron(mut self, value: openhuman_core::config::schema::CronConfig) -> Self",
"source": "crates/openhuman-embed/src/runtime/builder.rs",
- "line": 216
+ "line": 218
+ },
+ {
+ "name": "cron_delivery",
+ "signature": "pub fn cron_delivery( mut self, delivery: Arc<dyn openhuman_core::cron::host_delivery::CronDelivery>, ) -> Self",
+ "source": "crates/openhuman-embed/src/runtime/builder.rs",
+ "line": 276
},
{
"name": "defer_services",
"signature": "pub fn defer_services(mut self) -> Self",
"source": "crates/openhuman-embed/src/runtime/builder.rs",
- "line": 383
+ "line": 403
},
{
"name": "definition_base",
"signature": "pub fn definition_base(mut self, definition: crate::AgentDefinitionSpec) -> Self",
"source": "crates/openhuman-embed/src/runtime/builder.rs",
- "line": 175
+ "line": 177
},
{
"name": "domains",
"signature": "pub fn domains(mut self, domains: DomainSet) -> Self",
"source": "crates/openhuman-embed/src/runtime/builder.rs",
- "line": 395
+ "line": 415
},
{
"name": "host_kind",
"signature": "pub fn host_kind(mut self, host_kind: HostKind) -> Self",
"source": "crates/openhuman-embed/src/runtime/builder.rs",
- "line": 412
+ "line": 432
},
{
"name": "learning",
"signature": "pub fn learning(mut self, value: super::LearningSettings) -> Self",
"source": "crates/openhuman-embed/src/runtime/builder.rs",
- "line": 211
+ "line": 213
},
{
"name": "listen",
"signature": "pub fn listen(self, host: impl Into<String>, port: u16) -> Self",
"source": "crates/openhuman-embed/src/runtime/builder.rs",
- "line": 434
+ "line": 454
},
{
"name": "listen_host",
"signature": "pub fn listen_host(mut self, host: impl Into<String>) -> Self",
"source": "crates/openhuman-embed/src/runtime/builder.rs",
- "line": 439
+ "line": 459
},
{
"name": "listen_port",
"signature": "pub fn listen_port(mut self, port: u16) -> Self",
"source": "crates/openhuman-embed/src/runtime/builder.rs",
- "line": 445
+ "line": 465
},
{
"name": "live_policy",
@@ -303,25 +309,25 @@
"name": "max_agents",
"signature": "pub fn max_agents(mut self, limit: usize) -> Self",
"source": "crates/openhuman-embed/src/runtime/builder.rs",
- "line": 268
+ "line": 288
},
{
"name": "mcp_baseline",
"signature": "pub fn mcp_baseline(mut self, servers: impl IntoIterator<Item = crate::McpServer>) -> Self",
"source": "crates/openhuman-embed/src/runtime/builder.rs",
- "line": 186
+ "line": 188
},
{
"name": "memory_engine",
"signature": "pub fn memory_engine(mut self, engine: Arc<dyn tinymemory_api::MemoryEngine>) -> Self",
"source": "crates/openhuman-embed/src/runtime/builder.rs",
- "line": 244
+ "line": 246
},
{
"name": "model_defaults",
"signature": "pub fn model_defaults(mut self, model: super::ModelDefaults) -> Self",
"source": "crates/openhuman-embed/src/runtime/builder.rs",
- "line": 165
+ "line": 167
},
{
"name": "modules",
@@ -339,25 +345,25 @@
"name": "privacy",
"signature": "pub fn privacy(mut self, value: openhuman_core::config::schema::PrivacyConfig) -> Self",
"source": "crates/openhuman-embed/src/runtime/builder.rs",
- "line": 201
+ "line": 203
},
{
"name": "provider",
"signature": "pub fn provider(mut self, provider: Provider) -> Self",
"source": "crates/openhuman-embed/src/runtime/builder.rs",
- "line": 341
+ "line": 361
},
{
"name": "sandbox",
"signature": "pub fn sandbox(mut self, mode: crate::SandboxModeSpec) -> Self",
"source": "crates/openhuman-embed/src/runtime/builder.rs",
- "line": 170
+ "line": 172
},
{
"name": "secrets",
"signature": "pub fn secrets(mut self, value: openhuman_core::config::schema::SecretsConfig) -> Self",
"source": "crates/openhuman-embed/src/runtime/builder.rs",
- "line": 206
+ "line": 208
},
{
"name": "server_launcher",
@@ -369,25 +375,25 @@
"name": "services",
"signature": "pub fn services(mut self, services: ServiceSet) -> Self",
"source": "crates/openhuman-embed/src/runtime/builder.rs",
- "line": 367
+ "line": 387
},
{
"name": "session",
"signature": "pub fn session(mut self, session: Session) -> Self",
"source": "crates/openhuman-embed/src/runtime/builder.rs",
- "line": 455
+ "line": 475
},
{
"name": "session_store",
"signature": "pub fn session_store(mut self, provider: Arc<dyn SessionStoreProvider>) -> Self",
"source": "crates/openhuman-embed/src/runtime/builder.rs",
- "line": 259
+ "line": 261
},
{
"name": "skills",
"signature": "pub fn skills(mut self, policy: super::SkillsPolicy) -> Self",
"source": "crates/openhuman-embed/src/runtime/builder.rs",
- "line": 180
+ "line": 182
},
{
"name": "storage",
@@ -399,13 +405,13 @@
"name": "token",
"signature": "pub fn token(mut self, token: TokenSource) -> Self",
"source": "crates/openhuman-embed/src/runtime/builder.rs",
- "line": 422
+ "line": 442
},
{
"name": "tool_groups",
"signature": "pub fn tool_groups(mut self, tool_groups: ToolGroups) -> Self",
"source": "crates/openhuman-embed/src/runtime/builder.rs",
- "line": 404
+ "line": 424
},
{
"name": "tool_hook",
@@ -423,19 +429,19 @@
"name": "tool_rules",
"signature": "pub fn tool_rules(mut self, value: tinytools::ToolRules) -> Self",
"source": "crates/openhuman-embed/src/runtime/builder.rs",
- "line": 196
+ "line": 198
},
{
"name": "workspace",
"signature": "pub fn workspace(mut self, workspace: Workspace) -> Self",
"source": "crates/openhuman-embed/src/runtime/builder.rs",
- "line": 278
+ "line": 298
},
{
"name": "workspace_dir",
"signature": "pub fn workspace_dir(mut self, dir: impl Into<PathBuf>) -> Self",
"source": "crates/openhuman-embed/src/runtime/builder.rs",
- "line": 292
+ "line": 312
}
],
"capabilities": {
diff --git a/docs/gitbooks/en/developing/embed/builder-setters.md b/docs/gitbooks/en/developing/embed/builder-setters.md
index 972bf868e3..91ac4b1fc3 100644
--- a/docs/gitbooks/en/developing/embed/builder-setters.md
+++ b/docs/gitbooks/en/developing/embed/builder-setters.md
@@ -4,46 +4,47 @@
Public consuming methods that return `Self`, extracted from the RuntimeBuilder implementations. Static host and weight presets, inspection methods and build/run methods are excluded.
-- [`access`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L348): `pub fn access(mut self, access: Access) -> Self`
-- [`action_dir`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L305): `pub fn action_dir(mut self, dir: impl Into<PathBuf>) -> Self`
-- [`agent_defaults`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L156): `pub fn agent_defaults(mut self, defaults: super::AgentDefaults) -> Self`
-- [`api_key`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L325): `pub fn api_key(mut self, key: impl Into<ApiKey>) -> Self`
-- [`autonomy`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L191): `pub fn autonomy(mut self, value: openhuman_core::config::schema::AutonomyConfig) -> Self`
-- [`backend_transport`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L230): `pub fn backend_transport(mut self, transport: Arc<dyn BackendTransport>) -> Self`
-- [`backend_url`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L335): `pub fn backend_url(mut self, url: impl Into<String>) -> Self`
-- [`config`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L465): `pub fn config(mut self, config: Config) -> Self`
-- [`config_source`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L313): `pub fn config_source(mut self, source: ConfigSource) -> Self`
+- [`access`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L368): `pub fn access(mut self, access: Access) -> Self`
+- [`action_dir`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L325): `pub fn action_dir(mut self, dir: impl Into<PathBuf>) -> Self`
+- [`agent_defaults`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L158): `pub fn agent_defaults(mut self, defaults: super::AgentDefaults) -> Self`
+- [`api_key`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L345): `pub fn api_key(mut self, key: impl Into<ApiKey>) -> Self`
+- [`autonomy`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L193): `pub fn autonomy(mut self, value: openhuman_core::config::schema::AutonomyConfig) -> Self`
+- [`backend_transport`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L232): `pub fn backend_transport(mut self, transport: Arc<dyn BackendTransport>) -> Self`
+- [`backend_url`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L355): `pub fn backend_url(mut self, url: impl Into<String>) -> Self`
+- [`config`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L485): `pub fn config(mut self, config: Config) -> Self`
+- [`config_source`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L333): `pub fn config_source(mut self, source: ConfigSource) -> Self`
- [`controller_extension`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/seams.rs#L415): `pub fn controller_extension(mut self, extension: ControllerExtension) -> Self`
-- [`cron`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L216): `pub fn cron(mut self, value: openhuman_core::config::schema::CronConfig) -> Self`
-- [`defer_services`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L383): `pub fn defer_services(mut self) -> Self`
-- [`definition_base`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L175): `pub fn definition_base(mut self, definition: crate::AgentDefinitionSpec) -> Self`
-- [`domains`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L395): `pub fn domains(mut self, domains: DomainSet) -> Self`
-- [`host_kind`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L412): `pub fn host_kind(mut self, host_kind: HostKind) -> Self`
-- [`learning`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L211): `pub fn learning(mut self, value: super::LearningSettings) -> Self`
-- [`listen`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L434): `pub fn listen(self, host: impl Into<String>, port: u16) -> Self`
-- [`listen_host`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L439): `pub fn listen_host(mut self, host: impl Into<String>) -> Self`
-- [`listen_port`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L445): `pub fn listen_port(mut self, port: u16) -> Self`
+- [`cron`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L218): `pub fn cron(mut self, value: openhuman_core::config::schema::CronConfig) -> Self`
+- [`cron_delivery`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L276): `pub fn cron_delivery( mut self, delivery: Arc<dyn openhuman_core::cron::host_delivery::CronDelivery>, ) -> Self`
+- [`defer_services`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L403): `pub fn defer_services(mut self) -> Self`
+- [`definition_base`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L177): `pub fn definition_base(mut self, definition: crate::AgentDefinitionSpec) -> Self`
+- [`domains`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L415): `pub fn domains(mut self, domains: DomainSet) -> Self`
+- [`host_kind`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L432): `pub fn host_kind(mut self, host_kind: HostKind) -> Self`
+- [`learning`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L213): `pub fn learning(mut self, value: super::LearningSettings) -> Self`
+- [`listen`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L454): `pub fn listen(self, host: impl Into<String>, port: u16) -> Self`
+- [`listen_host`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L459): `pub fn listen_host(mut self, host: impl Into<String>) -> Self`
+- [`listen_port`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L465): `pub fn listen_port(mut self, port: u16) -> Self`
- [`live_policy`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/seams.rs#L464): `pub fn live_policy(mut self, policy: Arc<SecurityPolicy>) -> Self`
-- [`max_agents`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L268): `pub fn max_agents(mut self, limit: usize) -> Self`
-- [`mcp_baseline`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L186): `pub fn mcp_baseline(mut self, servers: impl IntoIterator<Item = crate::McpServer>) -> Self`
-- [`memory_engine`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L244): `pub fn memory_engine(mut self, engine: Arc<dyn tinymemory_api::MemoryEngine>) -> Self`
-- [`model_defaults`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L165): `pub fn model_defaults(mut self, model: super::ModelDefaults) -> Self`
+- [`max_agents`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L288): `pub fn max_agents(mut self, limit: usize) -> Self`
+- [`mcp_baseline`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L188): `pub fn mcp_baseline(mut self, servers: impl IntoIterator<Item = crate::McpServer>) -> Self`
+- [`memory_engine`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L246): `pub fn memory_engine(mut self, engine: Arc<dyn tinymemory_api::MemoryEngine>) -> Self`
+- [`model_defaults`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L167): `pub fn model_defaults(mut self, model: super::ModelDefaults) -> Self`
- [`modules`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/selection.rs#L155): `pub fn modules(mut self, modules: impl IntoIterator<Item = RuntimeModule>) -> Self`
- [`post_turn_hook`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/seams.rs#L430): `pub fn post_turn_hook(mut self, hook: Arc<dyn PostTurnHook>) -> Self`
-- [`privacy`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L201): `pub fn privacy(mut self, value: openhuman_core::config::schema::PrivacyConfig) -> Self`
-- [`provider`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L341): `pub fn provider(mut self, provider: Provider) -> Self`
-- [`sandbox`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L170): `pub fn sandbox(mut self, mode: crate::SandboxModeSpec) -> Self`
-- [`secrets`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L206): `pub fn secrets(mut self, value: openhuman_core::config::schema::SecretsConfig) -> Self`
+- [`privacy`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L203): `pub fn privacy(mut self, value: openhuman_core::config::schema::PrivacyConfig) -> Self`
+- [`provider`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L361): `pub fn provider(mut self, provider: Provider) -> Self`
+- [`sandbox`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L172): `pub fn sandbox(mut self, mode: crate::SandboxModeSpec) -> Self`
+- [`secrets`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L208): `pub fn secrets(mut self, value: openhuman_core::config::schema::SecretsConfig) -> Self`
- [`server_launcher`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/seams.rs#L444): `pub fn server_launcher(mut self, launcher: ServerLauncher) -> Self`
-- [`services`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L367): `pub fn services(mut self, services: ServiceSet) -> Self`
-- [`session`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L455): `pub fn session(mut self, session: Session) -> Self`
-- [`session_store`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L259): `pub fn session_store(mut self, provider: Arc<dyn SessionStoreProvider>) -> Self`
-- [`skills`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L180): `pub fn skills(mut self, policy: super::SkillsPolicy) -> Self`
+- [`services`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L387): `pub fn services(mut self, services: ServiceSet) -> Self`
+- [`session`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L475): `pub fn session(mut self, session: Session) -> Self`
+- [`session_store`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L261): `pub fn session_store(mut self, provider: Arc<dyn SessionStoreProvider>) -> Self`
+- [`skills`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L182): `pub fn skills(mut self, policy: super::SkillsPolicy) -> Self`
- [`storage`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/seams.rs#L457): `pub fn storage(mut self, source: impl Into<StorageSource>) -> Self`
-- [`token`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L422): `pub fn token(mut self, token: TokenSource) -> Self`
-- [`tool_groups`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L404): `pub fn tool_groups(mut self, tool_groups: ToolGroups) -> Self`
+- [`token`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L442): `pub fn token(mut self, token: TokenSource) -> Self`
+- [`tool_groups`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L424): `pub fn tool_groups(mut self, tool_groups: ToolGroups) -> Self`
- [`tool_hook`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/seams.rs#L437): `pub fn tool_hook(mut self, hook: Arc<dyn ToolHook>) -> Self`
- [`tool_ranker`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/seams.rs#L422): `pub fn tool_ranker(mut self, ranker: Arc<dyn ToolRanker>) -> Self`
-- [`tool_rules`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L196): `pub fn tool_rules(mut self, value: tinytools::ToolRules) -> Self`
-- [`workspace`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L278): `pub fn workspace(mut self, workspace: Workspace) -> Self`
-- [`workspace_dir`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L292): `pub fn workspace_dir(mut self, dir: impl Into<PathBuf>) -> Self`
+- [`tool_rules`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L198): `pub fn tool_rules(mut self, value: tinytools::ToolRules) -> Self`
+- [`workspace`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L298): `pub fn workspace(mut self, workspace: Workspace) -> Self`
+- [`workspace_dir`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L312): `pub fn workspace_dir(mut self, dir: impl Into<PathBuf>) -> Self`
diff --git a/docs/module-boundary-inventory.md b/docs/module-boundary-inventory.md
index 959dd990b1..f76e81a4ef 100644
--- a/docs/module-boundary-inventory.md
+++ b/docs/module-boundary-inventory.md
@@ -1,8 +1,9 @@
# Loadable module boundary inventory
-Status: migration incomplete. Completed adapters and the remaining linked
-implementation packages are recorded below; the exception list is still nonempty.
-The machine-readable dependency policy is
+Status: the active Channels, MCP, Wallet and TinyBox host cutovers are merged.
+The module-boundary gate reports zero violations, zero exceptions and no pending
+contracts; TinyRuntime remains explicitly excluded for separate removal work.
+Final combined focused host acceptance is still pending. The machine-readable dependency policy is
[`scripts/ci/module-boundaries.json`](../scripts/ci/module-boundaries.json).
Every owner below is the canonical upstream under
@@ -15,11 +16,11 @@ copying its implementation into a host, or accepting weaker isolation.
| --- | --- | --- | --- | --- |
| tinyjuice | none (module loaded through TinyBus) | tinyjuice-bus | core tools, compression, CCR REPL | Complete: PR #59 provides module-owned compression, CCR queries, HTML extraction, schemas and declarations; the host retains turn-bound model callbacks and artifact authorization |
| tinyconnectors | none | tinyconnectors-bus | core integrations, credentials and triggers | Module-backed argument preparation, action execution and trigger archives; host credential reconciliation and frozen tool restoration remain in OpenHuman |
-| tinymcp | none in normal/build host dependencies | tinymcp-bus | core MCP registry, supervisor, CLI stdio/HTTP server | Host adapters use contract 1.20 for registry, supervisor, server protocol and approved host callbacks. Compatible release artifacts and final native host tests remain under validation; frozen recorded tool declarations are restored independently of the current catalog |
-| tinychannels | tinychannels, tinychannels-runtime, tinychannels-module (test-only) | tinychannels-bus | core channels, TinyHumans host, CLI REPL | Contract is pure; scoped providers, inbound/identity/outbound preparation, remote commands, runtime limits, typing and progressive delivery execute through confidential module calls. Host-owned policy, credentials, persistence and callbacks remain in OpenHuman. Both host implementation exceptions are removed; final focused build validation is pending |
+| tinymcp | none in normal/build host dependencies | tinymcp-bus | core MCP registry, supervisor, CLI stdio/HTTP server | Merged host adapters use the released v0.14.3 module for registry, supervisor, client and server protocol operations, with approved host callbacks kept in OpenHuman. The downloaded artifact was verified against all 17 registry digests and its 62-member interface; the final combined host acceptance remains pending. Frozen recorded tool declarations are restored independently of the current catalog |
+| tinychannels | tinychannels, tinychannels-runtime, tinychannels-module (test-only) | tinychannels-bus | core channels, TinyHumans host, CLI REPL | Contract 16 (operation 1.17) is pure; scoped providers, inbound/identity/outbound preparation, remote commands, runtime limits, typing and progressive delivery execute through confidential module calls. Host-owned policy, credentials, persistence and callbacks remain in OpenHuman. Both host implementation exceptions are removed; the final combined focused host acceptance remains pending |
| tinyhosts | none | tinyhosts-bus | core hosting tools | Released Execute/Providers contract consumed through the module; workspace authorization, credentials and approval policy remain in OpenHuman |
| tinywallet | none in normal/build host dependencies | tinywallet-bus | core wallet/web3/x402 | Complete: v0.19.0 contract 1.13 owns mnemonic validation/derivation, native transactions, Web3 quotes/execution, ERC-20 encoding, and x402 payment parsing/budgets/ledger. OpenHuman retains encrypted-key custody, authenticated transport, explicit approval, and lifecycle orchestration |
-| tinybox | tinybox-core (test-only) | tinybox-bus | core sandbox and security, desktop gateways | Complete: OpenHuman PR #7469 removes normal implementation dependencies; sandbox execution, shell analysis and pre-core gateway operations use the released module. Host authorization and the security floor remain in OpenHuman |
+| tinybox | tinybox-core (test-only) | tinybox-bus | core sandbox and security, desktop gateways | Merged host cutover uses TinyBox v0.1.24 for sandbox/resource lifecycle, collected and supervised execution, jailed and native shell execution, Docker control, local grants, file transfer and port forwarding. Host authorization and the security floor remain in OpenHuman |
| tinycomputer | none | tinycomputer-bus | core voice, paste/focus and permission checks | Permission, focus, paste and Globe listener operations use the module; native thread and target rules remain covered |
| tinyvoice | None | tinyvoice-bus | core voice capture/hotkeys | Module-owned devices, recording and continuous capture, bounded audio reads/batches, explicit lease cleanup; computer module permission decisions |
| tinyruntime | tinyruntime-pyserver | tinyruntime-bus | core Python worker, optional TinyJuice ML | Excluded from this migration: TinyRuntime is being removed separately |
@@ -92,7 +93,7 @@ remain unchanged until compatible upstream releases are available.
| TinyComputer native permissions, confidential focus/paste and reliable Globe leases/read/shutdown | [tinycomputer#87](https://github.com/tinyhumansai/tinycomputer/pull/87) | 1,372 all-feature and 1,367 default tests; 90-member compiled artifact verification; independent ownership and event-loss review accepted; macOS cross-check and 233-file coverage gate pass; physical macOS helper not exercised on Linux |
| TinyConnectors argument preparation, task filtering, structured provider errors and leased archives | [tinyconnectors#46](https://github.com/tinyhumansai/tinyconnectors/pull/46) | 423 tests; dynamic artifact calls; user archive lifecycle fixtures; pure contract audit; per-file coverage at least 90% |
| TinyChannels contract vocabulary separated from provider, relay, pairing and runtime behavior | [tinychannels#56](https://github.com/tinyhumansai/tinychannels/pull/56) | 1,174 default and 1,180 all-feature tests; independent contract audit and relocation review accepted; bus files at least 98.65% coverage; legacy provider/worker coverage gaps disclosed |
-| TinyBox pure contract, shell facts, reserved sandbox/process handles and acknowledged cleanup/shutdown | [tinybox#30](https://github.com/tinyhumansai/tinybox/pull/30) | 710 default and all-feature tests; 57 source files at least 90% coverage; compiled native-process artifact verification; independent lifecycle review accepted; supervised execution currently limited to Unix passthrough |
+| TinyBox pure contract, shell facts, reserved sandbox/process handles and acknowledged cleanup/shutdown | [tinybox#30](https://github.com/tinyhumansai/tinybox/pull/30) | 710 default and all-feature tests; 57 source files at least 90% coverage; compiled native-process artifact verification; independent lifecycle review accepted; at PR #30, supervised execution was limited to Unix passthrough |
| TinyWallet pure contracts, address validation and stateless EVM construction with exact approval facts | [tinywallet#56](https://github.com/tinyhumansai/tinywallet/pull/56) | 745 all-feature and 601 default tests; four-chain signing and native/ERC-20/contract construction through the compiled artifact; pure contract audit; all 95 source files at least 90% coverage; independent construction review accepted |
| TinyWallet module-owned Web3 and x402 operations with scoped service handles | [tinywallet#62](https://github.com/tinyhumansai/tinywallet/pull/62) | Independent verification at ec22874: 60 module tests, every source file at least 90% coverage, and Rust 1.88 native runners execute two signing tests plus one lifecycle test. Hosted coverage passes; signed-payment budget accounting remains under review repair before merge and compatible release |
| TinyVoice device enumeration, recording/continuous capture, reserved hotkey leases, replayable batches and acknowledged shutdown | [tinyvoice#23](https://github.com/tinyhumansai/tinyvoice/pull/23) | Contract 1.4; 32-member compiled artifact; 88 module tests; independent hotkey, Windows owner and Xvfb cleanup fixtures; pure contract audit, own-module formatting and Windows GNU test cross-check; formatted module source coverage 1,592/1,743 (91.34%), with the existing physical-device exclusion; no physical Windows/MSVC or macOS input validation |
@@ -112,10 +113,12 @@ OpenHuman adapters remain outstanding.
Published v0.1.13 contains the earlier implementation-bearing contract, so that
release does not unblock this contract cut.
-TinyBox currently refuses supervised execution on unsupported backends and platforms.
-Docker supervision is implemented in PR 30 and still undergoing lifecycle review.
-Namespace/SSH and native Windows supervision, streaming, file transfer, forwarding
-and gateway operations remain required before migrating its host callers.
+TinyBox v0.1.24 supplies the host's sandbox operations through the released
+module, including Docker and namespace/SSH backend selection, supervised process
+output, jailed and native shell execution, local grant resolution, file transfer
+and port forwarding. Availability still depends on the backend and platform
+facts returned by the module; OpenHuman retains command authorization and its
+security floor.
TinyRuntime is now excluded from the active migration because it is being removed
separately. The previously published owning PR remains recorded above; the frozen
@@ -426,23 +429,22 @@ operation and signing E2E. The module-boundary audit reports zero violations
and no remaining Wallet implementation exceptions. TinyRuntime remains excluded
from this migration.
-## Current delivery scope
+## Current delivery status
-The active host cutovers are MCP and Channels. Wallet host PR [#7489](https://github.com/tinyhumansai/openhuman/pull/7489) is merged, as is TinyBox host PR [#7469](https://github.com/tinyhumansai/openhuman/pull/7469). This branch integrates the merged Wallet cutover and both active MCP and Channels cutovers. The dependency exception list is empty; final host tests and builds remain pending. Channels will land as its own host PR before MCP.
+Channels host PR [#7502](https://github.com/tinyhumansai/openhuman/pull/7502) and MCP host PR [#7503](https://github.com/tinyhumansai/openhuman/pull/7503) are merged. Wallet PR [#7489](https://github.com/tinyhumansai/openhuman/pull/7489) and TinyBox PR [#7469](https://github.com/tinyhumansai/openhuman/pull/7469) are also merged. The current dependency-boundary audit reports zero violations, zero exceptions and no pending contracts. One combined local acceptance run is still required for the merged Channels, TinyBox and MCP integration; the earlier queued Channels-only attempt was canceled before tests ran and is not acceptance evidence.
TinyRuntime is excluded as requested. Broader bus error reporting and Sentry coverage are deferred to separate work; the existing reporting path remains in place.
## TinyMCP compatible release pin
-TinyMCP v0.14.2 is pinned at canonical merge source
-`e18f289407fac1a9e5695ed75bb4ab5800c79f7b`, contract 1.20. All 17 downloaded
-platform archives match the checksum manifest, GitHub asset digests and sizes.
-The Ubuntu artifact loads through OpenHuman's TinyBus revision and exposes
-all 62 expected contract methods. Registry metadata includes the additional
-Arch ARM archive and the renamed Arch archive basenames.
-
-The native host E2Es and full-crate focused tests are queued for final acceptance;
-release verification does not substitute for those host checks. Actual-source
-HTTP/session regressions pass 11 tests and cover host credential-header removal,
-terminal callback draining, lost-reply retry and rejected DELETE preservation.
-
+The registry pins TinyMCP v0.14.3, built from source
+`10b03d1ab00ecbd08bd41d5e83a5c350cbd7e357`. All 17 platform archives match the
+published checksum manifest, GitHub asset digests and sizes. The downloaded
+Ubuntu artifact loads through OpenHuman's TinyBus revision and exposes the
+expected 62-member interface (module descriptor contract 1.21). Registry
+metadata includes the Arch ARM archive and the renamed Arch archive basenames.
+
+The final combined host focused tests and product builds remain pending; release
+verification does not substitute for those checks. Actual-source HTTP/session
+regressions passed 11 tests covering host credential-header removal, terminal
+callback draining, lost-reply retry and rejected DELETE preservation.
diff --git a/gitbooks/developing/embed/api-index.json b/gitbooks/developing/embed/api-index.json
index d5a07ff118..e1284be6eb 100644
--- a/gitbooks/developing/embed/api-index.json
+++ b/gitbooks/developing/embed/api-index.json
@@ -183,55 +183,55 @@
"name": "access",
"signature": "pub fn access(mut self, access: Access) -> Self",
"source": "crates/openhuman-embed/src/runtime/builder.rs",
- "line": 348
+ "line": 368
},
{
"name": "action_dir",
"signature": "pub fn action_dir(mut self, dir: impl Into<PathBuf>) -> Self",
"source": "crates/openhuman-embed/src/runtime/builder.rs",
- "line": 305
+ "line": 325
},
{
"name": "agent_defaults",
"signature": "pub fn agent_defaults(mut self, defaults: super::AgentDefaults) -> Self",
"source": "crates/openhuman-embed/src/runtime/builder.rs",
- "line": 156
+ "line": 158
},
{
"name": "api_key",
"signature": "pub fn api_key(mut self, key: impl Into<ApiKey>) -> Self",
"source": "crates/openhuman-embed/src/runtime/builder.rs",
- "line": 325
+ "line": 345
},
{
"name": "autonomy",
"signature": "pub fn autonomy(mut self, value: openhuman_core::config::schema::AutonomyConfig) -> Self",
"source": "crates/openhuman-embed/src/runtime/builder.rs",
- "line": 191
+ "line": 193
},
{
"name": "backend_transport",
"signature": "pub fn backend_transport(mut self, transport: Arc<dyn BackendTransport>) -> Self",
"source": "crates/openhuman-embed/src/runtime/builder.rs",
- "line": 230
+ "line": 232
},
{
"name": "backend_url",
"signature": "pub fn backend_url(mut self, url: impl Into<String>) -> Self",
"source": "crates/openhuman-embed/src/runtime/builder.rs",
- "line": 335
+ "line": 355
},
{
"name": "config",
"signature": "pub fn config(mut self, config: Config) -> Self",
"source": "crates/openhuman-embed/src/runtime/builder.rs",
- "line": 465
+ "line": 485
},
{
"name": "config_source",
"signature": "pub fn config_source(mut self, source: ConfigSource) -> Self",
"source": "crates/openhuman-embed/src/runtime/builder.rs",
- "line": 313
+ "line": 333
},
{
"name": "controller_extension",
@@ -243,55 +243,61 @@
"name": "cron",
"signature": "pub fn cron(mut self, value: openhuman_core::config::schema::CronConfig) -> Self",
"source": "crates/openhuman-embed/src/runtime/builder.rs",
- "line": 216
+ "line": 218
+ },
+ {
+ "name": "cron_delivery",
+ "signature": "pub fn cron_delivery( mut self, delivery: Arc<dyn openhuman_core::cron::host_delivery::CronDelivery>, ) -> Self",
+ "source": "crates/openhuman-embed/src/runtime/builder.rs",
+ "line": 276
},
{
"name": "defer_services",
"signature": "pub fn defer_services(mut self) -> Self",
"source": "crates/openhuman-embed/src/runtime/builder.rs",
- "line": 383
+ "line": 403
},
{
"name": "definition_base",
"signature": "pub fn definition_base(mut self, definition: crate::AgentDefinitionSpec) -> Self",
"source": "crates/openhuman-embed/src/runtime/builder.rs",
- "line": 175
+ "line": 177
},
{
"name": "domains",
"signature": "pub fn domains(mut self, domains: DomainSet) -> Self",
"source": "crates/openhuman-embed/src/runtime/builder.rs",
- "line": 395
+ "line": 415
},
{
"name": "host_kind",
"signature": "pub fn host_kind(mut self, host_kind: HostKind) -> Self",
"source": "crates/openhuman-embed/src/runtime/builder.rs",
- "line": 412
+ "line": 432
},
{
"name": "learning",
"signature": "pub fn learning(mut self, value: super::LearningSettings) -> Self",
"source": "crates/openhuman-embed/src/runtime/builder.rs",
- "line": 211
+ "line": 213
},
{
"name": "listen",
"signature": "pub fn listen(self, host: impl Into<String>, port: u16) -> Self",
"source": "crates/openhuman-embed/src/runtime/builder.rs",
- "line": 434
+ "line": 454
},
{
"name": "listen_host",
"signature": "pub fn listen_host(mut self, host: impl Into<String>) -> Self",
"source": "crates/openhuman-embed/src/runtime/builder.rs",
- "line": 439
+ "line": 459
},
{
"name": "listen_port",
"signature": "pub fn listen_port(mut self, port: u16) -> Self",
"source": "crates/openhuman-embed/src/runtime/builder.rs",
- "line": 445
+ "line": 465
},
{
"name": "live_policy",
@@ -303,25 +309,25 @@
"name": "max_agents",
"signature": "pub fn max_agents(mut self, limit: usize) -> Self",
"source": "crates/openhuman-embed/src/runtime/builder.rs",
- "line": 268
+ "line": 288
},
{
"name": "mcp_baseline",
"signature": "pub fn mcp_baseline(mut self, servers: impl IntoIterator<Item = crate::McpServer>) -> Self",
"source": "crates/openhuman-embed/src/runtime/builder.rs",
- "line": 186
+ "line": 188
},
{
"name": "memory_engine",
"signature": "pub fn memory_engine(mut self, engine: Arc<dyn tinymemory_api::MemoryEngine>) -> Self",
"source": "crates/openhuman-embed/src/runtime/builder.rs",
- "line": 244
+ "line": 246
},
{
"name": "model_defaults",
"signature": "pub fn model_defaults(mut self, model: super::ModelDefaults) -> Self",
"source": "crates/openhuman-embed/src/runtime/builder.rs",
- "line": 165
+ "line": 167
},
{
"name": "modules",
@@ -339,25 +345,25 @@
"name": "privacy",
"signature": "pub fn privacy(mut self, value: openhuman_core::config::schema::PrivacyConfig) -> Self",
"source": "crates/openhuman-embed/src/runtime/builder.rs",
- "line": 201
+ "line": 203
},
{
"name": "provider",
"signature": "pub fn provider(mut self, provider: Provider) -> Self",
"source": "crates/openhuman-embed/src/runtime/builder.rs",
- "line": 341
+ "line": 361
},
{
"name": "sandbox",
"signature": "pub fn sandbox(mut self, mode: crate::SandboxModeSpec) -> Self",
"source": "crates/openhuman-embed/src/runtime/builder.rs",
- "line": 170
+ "line": 172
},
{
"name": "secrets",
"signature": "pub fn secrets(mut self, value: openhuman_core::config::schema::SecretsConfig) -> Self",
"source": "crates/openhuman-embed/src/runtime/builder.rs",
- "line": 206
+ "line": 208
},
{
"name": "server_launcher",
@@ -369,25 +375,25 @@
"name": "services",
"signature": "pub fn services(mut self, services: ServiceSet) -> Self",
"source": "crates/openhuman-embed/src/runtime/builder.rs",
- "line": 367
+ "line": 387
},
{
"name": "session",
"signature": "pub fn session(mut self, session: Session) -> Self",
"source": "crates/openhuman-embed/src/runtime/builder.rs",
- "line": 455
+ "line": 475
},
{
"name": "session_store",
"signature": "pub fn session_store(mut self, provider: Arc<dyn SessionStoreProvider>) -> Self",
"source": "crates/openhuman-embed/src/runtime/builder.rs",
- "line": 259
+ "line": 261
},
{
"name": "skills",
"signature": "pub fn skills(mut self, policy: super::SkillsPolicy) -> Self",
"source": "crates/openhuman-embed/src/runtime/builder.rs",
- "line": 180
+ "line": 182
},
{
"name": "storage",
@@ -399,13 +405,13 @@
"name": "token",
"signature": "pub fn token(mut self, token: TokenSource) -> Self",
"source": "crates/openhuman-embed/src/runtime/builder.rs",
- "line": 422
+ "line": 442
},
{
"name": "tool_groups",
"signature": "pub fn tool_groups(mut self, tool_groups: ToolGroups) -> Self",
"source": "crates/openhuman-embed/src/runtime/builder.rs",
- "line": 404
+ "line": 424
},
{
"name": "tool_hook",
@@ -423,19 +429,19 @@
"name": "tool_rules",
"signature": "pub fn tool_rules(mut self, value: tinytools::ToolRules) -> Self",
"source": "crates/openhuman-embed/src/runtime/builder.rs",
- "line": 196
+ "line": 198
},
{
"name": "workspace",
"signature": "pub fn workspace(mut self, workspace: Workspace) -> Self",
"source": "crates/openhuman-embed/src/runtime/builder.rs",
- "line": 278
+ "line": 298
},
{
"name": "workspace_dir",
"signature": "pub fn workspace_dir(mut self, dir: impl Into<PathBuf>) -> Self",
"source": "crates/openhuman-embed/src/runtime/builder.rs",
- "line": 292
+ "line": 312
}
],
"capabilities": {
diff --git a/gitbooks/developing/embed/builder-setters.md b/gitbooks/developing/embed/builder-setters.md
index 972bf868e3..91ac4b1fc3 100644
--- a/gitbooks/developing/embed/builder-setters.md
+++ b/gitbooks/developing/embed/builder-setters.md
@@ -4,46 +4,47 @@
Public consuming methods that return `Self`, extracted from the RuntimeBuilder implementations. Static host and weight presets, inspection methods and build/run methods are excluded.
-- [`access`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L348): `pub fn access(mut self, access: Access) -> Self`
-- [`action_dir`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L305): `pub fn action_dir(mut self, dir: impl Into<PathBuf>) -> Self`
-- [`agent_defaults`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L156): `pub fn agent_defaults(mut self, defaults: super::AgentDefaults) -> Self`
-- [`api_key`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L325): `pub fn api_key(mut self, key: impl Into<ApiKey>) -> Self`
-- [`autonomy`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L191): `pub fn autonomy(mut self, value: openhuman_core::config::schema::AutonomyConfig) -> Self`
-- [`backend_transport`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L230): `pub fn backend_transport(mut self, transport: Arc<dyn BackendTransport>) -> Self`
-- [`backend_url`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L335): `pub fn backend_url(mut self, url: impl Into<String>) -> Self`
-- [`config`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L465): `pub fn config(mut self, config: Config) -> Self`
-- [`config_source`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L313): `pub fn config_source(mut self, source: ConfigSource) -> Self`
+- [`access`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L368): `pub fn access(mut self, access: Access) -> Self`
+- [`action_dir`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L325): `pub fn action_dir(mut self, dir: impl Into<PathBuf>) -> Self`
+- [`agent_defaults`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L158): `pub fn agent_defaults(mut self, defaults: super::AgentDefaults) -> Self`
+- [`api_key`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L345): `pub fn api_key(mut self, key: impl Into<ApiKey>) -> Self`
+- [`autonomy`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L193): `pub fn autonomy(mut self, value: openhuman_core::config::schema::AutonomyConfig) -> Self`
+- [`backend_transport`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L232): `pub fn backend_transport(mut self, transport: Arc<dyn BackendTransport>) -> Self`
+- [`backend_url`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L355): `pub fn backend_url(mut self, url: impl Into<String>) -> Self`
+- [`config`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L485): `pub fn config(mut self, config: Config) -> Self`
+- [`config_source`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L333): `pub fn config_source(mut self, source: ConfigSource) -> Self`
- [`controller_extension`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/seams.rs#L415): `pub fn controller_extension(mut self, extension: ControllerExtension) -> Self`
-- [`cron`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L216): `pub fn cron(mut self, value: openhuman_core::config::schema::CronConfig) -> Self`
-- [`defer_services`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L383): `pub fn defer_services(mut self) -> Self`
-- [`definition_base`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L175): `pub fn definition_base(mut self, definition: crate::AgentDefinitionSpec) -> Self`
-- [`domains`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L395): `pub fn domains(mut self, domains: DomainSet) -> Self`
-- [`host_kind`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L412): `pub fn host_kind(mut self, host_kind: HostKind) -> Self`
-- [`learning`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L211): `pub fn learning(mut self, value: super::LearningSettings) -> Self`
-- [`listen`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L434): `pub fn listen(self, host: impl Into<String>, port: u16) -> Self`
-- [`listen_host`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L439): `pub fn listen_host(mut self, host: impl Into<String>) -> Self`
-- [`listen_port`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L445): `pub fn listen_port(mut self, port: u16) -> Self`
+- [`cron`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L218): `pub fn cron(mut self, value: openhuman_core::config::schema::CronConfig) -> Self`
+- [`cron_delivery`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L276): `pub fn cron_delivery( mut self, delivery: Arc<dyn openhuman_core::cron::host_delivery::CronDelivery>, ) -> Self`
+- [`defer_services`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L403): `pub fn defer_services(mut self) -> Self`
+- [`definition_base`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L177): `pub fn definition_base(mut self, definition: crate::AgentDefinitionSpec) -> Self`
+- [`domains`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L415): `pub fn domains(mut self, domains: DomainSet) -> Self`
+- [`host_kind`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L432): `pub fn host_kind(mut self, host_kind: HostKind) -> Self`
+- [`learning`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L213): `pub fn learning(mut self, value: super::LearningSettings) -> Self`
+- [`listen`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L454): `pub fn listen(self, host: impl Into<String>, port: u16) -> Self`
+- [`listen_host`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L459): `pub fn listen_host(mut self, host: impl Into<String>) -> Self`
+- [`listen_port`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L465): `pub fn listen_port(mut self, port: u16) -> Self`
- [`live_policy`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/seams.rs#L464): `pub fn live_policy(mut self, policy: Arc<SecurityPolicy>) -> Self`
-- [`max_agents`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L268): `pub fn max_agents(mut self, limit: usize) -> Self`
-- [`mcp_baseline`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L186): `pub fn mcp_baseline(mut self, servers: impl IntoIterator<Item = crate::McpServer>) -> Self`
-- [`memory_engine`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L244): `pub fn memory_engine(mut self, engine: Arc<dyn tinymemory_api::MemoryEngine>) -> Self`
-- [`model_defaults`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L165): `pub fn model_defaults(mut self, model: super::ModelDefaults) -> Self`
+- [`max_agents`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L288): `pub fn max_agents(mut self, limit: usize) -> Self`
+- [`mcp_baseline`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L188): `pub fn mcp_baseline(mut self, servers: impl IntoIterator<Item = crate::McpServer>) -> Self`
+- [`memory_engine`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L246): `pub fn memory_engine(mut self, engine: Arc<dyn tinymemory_api::MemoryEngine>) -> Self`
+- [`model_defaults`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L167): `pub fn model_defaults(mut self, model: super::ModelDefaults) -> Self`
- [`modules`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/selection.rs#L155): `pub fn modules(mut self, modules: impl IntoIterator<Item = RuntimeModule>) -> Self`
- [`post_turn_hook`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/seams.rs#L430): `pub fn post_turn_hook(mut self, hook: Arc<dyn PostTurnHook>) -> Self`
-- [`privacy`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L201): `pub fn privacy(mut self, value: openhuman_core::config::schema::PrivacyConfig) -> Self`
-- [`provider`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L341): `pub fn provider(mut self, provider: Provider) -> Self`
-- [`sandbox`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L170): `pub fn sandbox(mut self, mode: crate::SandboxModeSpec) -> Self`
-- [`secrets`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L206): `pub fn secrets(mut self, value: openhuman_core::config::schema::SecretsConfig) -> Self`
+- [`privacy`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L203): `pub fn privacy(mut self, value: openhuman_core::config::schema::PrivacyConfig) -> Self`
+- [`provider`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L361): `pub fn provider(mut self, provider: Provider) -> Self`
+- [`sandbox`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L172): `pub fn sandbox(mut self, mode: crate::SandboxModeSpec) -> Self`
+- [`secrets`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L208): `pub fn secrets(mut self, value: openhuman_core::config::schema::SecretsConfig) -> Self`
- [`server_launcher`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/seams.rs#L444): `pub fn server_launcher(mut self, launcher: ServerLauncher) -> Self`
-- [`services`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L367): `pub fn services(mut self, services: ServiceSet) -> Self`
-- [`session`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L455): `pub fn session(mut self, session: Session) -> Self`
-- [`session_store`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L259): `pub fn session_store(mut self, provider: Arc<dyn SessionStoreProvider>) -> Self`
-- [`skills`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L180): `pub fn skills(mut self, policy: super::SkillsPolicy) -> Self`
+- [`services`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L387): `pub fn services(mut self, services: ServiceSet) -> Self`
+- [`session`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L475): `pub fn session(mut self, session: Session) -> Self`
+- [`session_store`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L261): `pub fn session_store(mut self, provider: Arc<dyn SessionStoreProvider>) -> Self`
+- [`skills`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L182): `pub fn skills(mut self, policy: super::SkillsPolicy) -> Self`
- [`storage`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/seams.rs#L457): `pub fn storage(mut self, source: impl Into<StorageSource>) -> Self`
-- [`token`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L422): `pub fn token(mut self, token: TokenSource) -> Self`
-- [`tool_groups`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L404): `pub fn tool_groups(mut self, tool_groups: ToolGroups) -> Self`
+- [`token`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L442): `pub fn token(mut self, token: TokenSource) -> Self`
+- [`tool_groups`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L424): `pub fn tool_groups(mut self, tool_groups: ToolGroups) -> Self`
- [`tool_hook`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/seams.rs#L437): `pub fn tool_hook(mut self, hook: Arc<dyn ToolHook>) -> Self`
- [`tool_ranker`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/seams.rs#L422): `pub fn tool_ranker(mut self, ranker: Arc<dyn ToolRanker>) -> Self`
-- [`tool_rules`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L196): `pub fn tool_rules(mut self, value: tinytools::ToolRules) -> Self`
-- [`workspace`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L278): `pub fn workspace(mut self, workspace: Workspace) -> Self`
-- [`workspace_dir`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L292): `pub fn workspace_dir(mut self, dir: impl Into<PathBuf>) -> Self`
+- [`tool_rules`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L198): `pub fn tool_rules(mut self, value: tinytools::ToolRules) -> Self`
+- [`workspace`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L298): `pub fn workspace(mut self, workspace: Workspace) -> Self`
+- [`workspace_dir`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L312): `pub fn workspace_dir(mut self, dir: impl Into<PathBuf>) -> Self`
diff --git a/gitbooks/developing/loadable-modules.md b/gitbooks/developing/loadable-modules.md
index 414480f97d..3b97aab701 100644
--- a/gitbooks/developing/loadable-modules.md
+++ b/gitbooks/developing/loadable-modules.md
@@ -32,7 +32,7 @@ in [the module-boundary inventory](../../docs/module-boundary-inventory.md).
## The registry
-`crates/openhuman-core/src/modules/registry/` compiles in fourteen records. Only this registry may select an artifact. Nothing reads a module name from config and goes looking for it.
+`crates/openhuman-core/src/modules/registry/` compiles eleven records. Only this registry may select an artifact. Nothing reads a module name from config and goes looking for it.
| Module | Provides |
| --- | --- |
@@ -44,11 +44,11 @@ in [the module-boundary inventory](../../docs/module-boundary-inventory.md).
| `tinyvoice` | Audio framing, VAD, wake-word gating, hallucination detection |
| `tinymcp` | The MCP client and registry |
| `tinyconnectors` | OAuth connector actions and triggers |
-| `tinybox` | Sandbox capability discovery |
+| `tinybox` | Sandbox/resource lifecycle, bounded and supervised execution, jail and Docker operations, shell execution, file transfer and port forwarding |
| `tinychannels` | Messaging channel transports |
| `tinyhosts` | Hosting provider operations |
-Each record carries a version, the release it came from, and one `PlatformAsset` per supported build. Thirteen of the fourteen publish eleven builds: `ubuntu-24.04` and `ubuntu-22.04` on `x86_64` and `arm64`, `macos-26` and `macos-15` on `arm64` and `x86_64`, `windows-2025-x86_64`, `windows-2022-x86_64` and `windows-11-arm64`. `tinycomputer` publishes seven because it has no Linux backend.
+Each record carries a version, the release it came from, and one `PlatformAsset` per supported build. Seven records publish eleven builds: `ubuntu-24.04` and `ubuntu-22.04` on `x86_64` and `arm64`, `macos-26` and `macos-15` on `arm64` and `x86_64`, `windows-2025-x86_64`, `windows-2022-x86_64` and `windows-11-arm64`. TinyComputer publishes sixteen assets; TinyBox, TinyMCP and TinyWallet each publish seventeen, adding Arch Linux and Fedora builds. Asset availability is module-specific, so a release's count should not be inferred from another module's matrix.
Every asset carries a SHA-256 copied verbatim from the published release's own checksum file. Do not compute a replacement pin from a local build. The digest must describe the artifact the release workflow signed, not the one on your machine.
diff --git a/llms-full.txt b/llms-full.txt
index 2fd9c5ee7f..fb6dfed0ed 100644
--- a/llms-full.txt
+++ b/llms-full.txt
@@ -2792,49 +2792,50 @@ This matrix comes from the default-feature compiled capability-report example. R
Public consuming methods that return `Self`, extracted from the RuntimeBuilder implementations. Static host and weight presets, inspection methods and build/run methods are excluded.
-- [`access`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L348): `pub fn access(mut self, access: Access) -> Self`
-- [`action_dir`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L305): `pub fn action_dir(mut self, dir: impl Into<PathBuf>) -> Self`
-- [`agent_defaults`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L156): `pub fn agent_defaults(mut self, defaults: super::AgentDefaults) -> Self`
-- [`api_key`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L325): `pub fn api_key(mut self, key: impl Into<ApiKey>) -> Self`
-- [`autonomy`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L191): `pub fn autonomy(mut self, value: openhuman_core::config::schema::AutonomyConfig) -> Self`
-- [`backend_transport`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L230): `pub fn backend_transport(mut self, transport: Arc<dyn BackendTransport>) -> Self`
-- [`backend_url`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L335): `pub fn backend_url(mut self, url: impl Into<String>) -> Self`
-- [`config`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L465): `pub fn config(mut self, config: Config) -> Self`
-- [`config_source`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L313): `pub fn config_source(mut self, source: ConfigSource) -> Self`
+- [`access`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L368): `pub fn access(mut self, access: Access) -> Self`
+- [`action_dir`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L325): `pub fn action_dir(mut self, dir: impl Into<PathBuf>) -> Self`
+- [`agent_defaults`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L158): `pub fn agent_defaults(mut self, defaults: super::AgentDefaults) -> Self`
+- [`api_key`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L345): `pub fn api_key(mut self, key: impl Into<ApiKey>) -> Self`
+- [`autonomy`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L193): `pub fn autonomy(mut self, value: openhuman_core::config::schema::AutonomyConfig) -> Self`
+- [`backend_transport`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L232): `pub fn backend_transport(mut self, transport: Arc<dyn BackendTransport>) -> Self`
+- [`backend_url`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L355): `pub fn backend_url(mut self, url: impl Into<String>) -> Self`
+- [`config`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L485): `pub fn config(mut self, config: Config) -> Self`
+- [`config_source`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L333): `pub fn config_source(mut self, source: ConfigSource) -> Self`
- [`controller_extension`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/seams.rs#L415): `pub fn controller_extension(mut self, extension: ControllerExtension) -> Self`
-- [`cron`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L216): `pub fn cron(mut self, value: openhuman_core::config::schema::CronConfig) -> Self`
-- [`defer_services`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L383): `pub fn defer_services(mut self) -> Self`
-- [`definition_base`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L175): `pub fn definition_base(mut self, definition: crate::AgentDefinitionSpec) -> Self`
-- [`domains`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L395): `pub fn domains(mut self, domains: DomainSet) -> Self`
-- [`host_kind`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L412): `pub fn host_kind(mut self, host_kind: HostKind) -> Self`
-- [`learning`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L211): `pub fn learning(mut self, value: super::LearningSettings) -> Self`
-- [`listen`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L434): `pub fn listen(self, host: impl Into<String>, port: u16) -> Self`
-- [`listen_host`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L439): `pub fn listen_host(mut self, host: impl Into<String>) -> Self`
-- [`listen_port`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L445): `pub fn listen_port(mut self, port: u16) -> Self`
+- [`cron`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L218): `pub fn cron(mut self, value: openhuman_core::config::schema::CronConfig) -> Self`
+- [`cron_delivery`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L276): `pub fn cron_delivery( mut self, delivery: Arc<dyn openhuman_core::cron::host_delivery::CronDelivery>, ) -> Self`
+- [`defer_services`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L403): `pub fn defer_services(mut self) -> Self`
+- [`definition_base`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L177): `pub fn definition_base(mut self, definition: crate::AgentDefinitionSpec) -> Self`
+- [`domains`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L415): `pub fn domains(mut self, domains: DomainSet) -> Self`
+- [`host_kind`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L432): `pub fn host_kind(mut self, host_kind: HostKind) -> Self`
+- [`learning`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L213): `pub fn learning(mut self, value: super::LearningSettings) -> Self`
+- [`listen`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L454): `pub fn listen(self, host: impl Into<String>, port: u16) -> Self`
+- [`listen_host`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L459): `pub fn listen_host(mut self, host: impl Into<String>) -> Self`
+- [`listen_port`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L465): `pub fn listen_port(mut self, port: u16) -> Self`
- [`live_policy`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/seams.rs#L464): `pub fn live_policy(mut self, policy: Arc<SecurityPolicy>) -> Self`
-- [`max_agents`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L268): `pub fn max_agents(mut self, limit: usize) -> Self`
-- [`mcp_baseline`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L186): `pub fn mcp_baseline(mut self, servers: impl IntoIterator<Item = crate::McpServer>) -> Self`
-- [`memory_engine`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L244): `pub fn memory_engine(mut self, engine: Arc<dyn tinymemory_api::MemoryEngine>) -> Self`
-- [`model_defaults`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L165): `pub fn model_defaults(mut self, model: super::ModelDefaults) -> Self`
+- [`max_agents`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L288): `pub fn max_agents(mut self, limit: usize) -> Self`
+- [`mcp_baseline`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L188): `pub fn mcp_baseline(mut self, servers: impl IntoIterator<Item = crate::McpServer>) -> Self`
+- [`memory_engine`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L246): `pub fn memory_engine(mut self, engine: Arc<dyn tinymemory_api::MemoryEngine>) -> Self`
+- [`model_defaults`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L167): `pub fn model_defaults(mut self, model: super::ModelDefaults) -> Self`
- [`modules`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/selection.rs#L155): `pub fn modules(mut self, modules: impl IntoIterator<Item = RuntimeModule>) -> Self`
- [`post_turn_hook`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/seams.rs#L430): `pub fn post_turn_hook(mut self, hook: Arc<dyn PostTurnHook>) -> Self`
-- [`privacy`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L201): `pub fn privacy(mut self, value: openhuman_core::config::schema::PrivacyConfig) -> Self`
-- [`provider`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L341): `pub fn provider(mut self, provider: Provider) -> Self`
-- [`sandbox`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L170): `pub fn sandbox(mut self, mode: crate::SandboxModeSpec) -> Self`
-- [`secrets`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L206): `pub fn secrets(mut self, value: openhuman_core::config::schema::SecretsConfig) -> Self`
+- [`privacy`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L203): `pub fn privacy(mut self, value: openhuman_core::config::schema::PrivacyConfig) -> Self`
+- [`provider`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L361): `pub fn provider(mut self, provider: Provider) -> Self`
+- [`sandbox`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L172): `pub fn sandbox(mut self, mode: crate::SandboxModeSpec) -> Self`
+- [`secrets`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L208): `pub fn secrets(mut self, value: openhuman_core::config::schema::SecretsConfig) -> Self`
- [`server_launcher`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/seams.rs#L444): `pub fn server_launcher(mut self, launcher: ServerLauncher) -> Self`
-- [`services`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L367): `pub fn services(mut self, services: ServiceSet) -> Self`
-- [`session`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L455): `pub fn session(mut self, session: Session) -> Self`
-- [`session_store`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L259): `pub fn session_store(mut self, provider: Arc<dyn SessionStoreProvider>) -> Self`
-- [`skills`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L180): `pub fn skills(mut self, policy: super::SkillsPolicy) -> Self`
+- [`services`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L387): `pub fn services(mut self, services: ServiceSet) -> Self`
+- [`session`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L475): `pub fn session(mut self, session: Session) -> Self`
+- [`session_store`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L261): `pub fn session_store(mut self, provider: Arc<dyn SessionStoreProvider>) -> Self`
+- [`skills`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L182): `pub fn skills(mut self, policy: super::SkillsPolicy) -> Self`
- [`storage`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/seams.rs#L457): `pub fn storage(mut self, source: impl Into<StorageSource>) -> Self`
-- [`token`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L422): `pub fn token(mut self, token: TokenSource) -> Self`
-- [`tool_groups`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L404): `pub fn tool_groups(mut self, tool_groups: ToolGroups) -> Self`
+- [`token`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L442): `pub fn token(mut self, token: TokenSource) -> Self`
+- [`tool_groups`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L424): `pub fn tool_groups(mut self, tool_groups: ToolGroups) -> Self`
- [`tool_hook`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/seams.rs#L437): `pub fn tool_hook(mut self, hook: Arc<dyn ToolHook>) -> Self`
- [`tool_ranker`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/seams.rs#L422): `pub fn tool_ranker(mut self, ranker: Arc<dyn ToolRanker>) -> Self`
-- [`tool_rules`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L196): `pub fn tool_rules(mut self, value: tinytools::ToolRules) -> Self`
-- [`workspace`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L278): `pub fn workspace(mut self, workspace: Workspace) -> Self`
-- [`workspace_dir`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L292): `pub fn workspace_dir(mut self, dir: impl Into<PathBuf>) -> Self`
+- [`tool_rules`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L198): `pub fn tool_rules(mut self, value: tinytools::ToolRules) -> Self`
+- [`workspace`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L298): `pub fn workspace(mut self, workspace: Workspace) -> Self`
+- [`workspace_dir`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L312): `pub fn workspace_dir(mut self, dir: impl Into<PathBuf>) -> Self`
<!-- Source: gitbooks/developing/embed/api-index.md -->
# API index
diff --git a/scripts/__tests__/test-module-installation.test.mjs b/scripts/__tests__/test-module-installation.test.mjs
index c30e763898..0211fec81f 100644
--- a/scripts/__tests__/test-module-installation.test.mjs
+++ b/scripts/__tests__/test-module-installation.test.mjs
@@ -7,6 +7,7 @@ import {
writeFileSync,
existsSync,
rmSync,
+ statSync,
} from "node:fs";
import { tmpdir } from "node:os";
import { join } from "node:path";
@@ -130,3 +131,48 @@ for (const id of ["tinybox", "tinywallet", "tinychannels", "tinymcp", "tinyhosts
assert.match(artifact.url, /\/releases\/download\/v/);
});
}
+
+for (const [runner, archiveVariable, directoryVariable] of [
+ ["test-rust-e2e.sh", "tinybox_archive", "tinybox_dir"],
+ ["test-rust-with-mock.sh", "hosts_archive", "hosts_dir"],
+ ["test-rust-with-mock.sh", "tinybox_archive", "tinybox_dir"],
+]) {
+ test(`${runner} extracts ${archiveVariable} with the current user's ownership`, () => {
+ const source = readFileSync(
+ fileURLToPath(new URL(`../${runner}`, import.meta.url)),
+ "utf8",
+ );
+ const extraction = source.split("\n").find(
+ (line) => line.trimStart().startsWith("tar ") && line.includes(`"$${archiveVariable}"`),
+ );
+ assert.ok(extraction, "runner must extract the pinned archive");
+ const root = mkdtempSync(join(tmpdir(), "module-ownership-"));
+ try {
+ const payload = join(root, "payload");
+ const destination = join(root, "extracted");
+ mkdirSync(payload);
+ mkdirSync(destination);
+ writeFileSync(join(payload, "module.so"), "native module fixture");
+ const archive = join(root, "module.tar.gz");
+ const packed = spawnSync("tar", [
+ "--owner=12345", "--group=12345", "--numeric-owner",
+ "-czf", archive, "-C", payload, "module.so",
+ ], { encoding: "utf8" });
+ assert.equal(packed.status, 0, packed.stderr);
+ // Force the superuser default even on unprivileged developer machines.
+ // The runner's --no-same-owner must override it on the real tar command.
+ const result = spawnSync("bash", ["-c", [
+ 'tar() { command tar --same-owner "$@"; }',
+ extraction,
+ ].join("\n")], {
+ encoding: "utf8",
+ env: { ...process.env, [archiveVariable]: archive, [directoryVariable]: destination },
+ });
+ assert.equal(result.status, 0, result.stdout + result.stderr);
+ assert.equal(statSync(join(destination, "module.so")).uid, statSync(destination).uid);
+ assert.equal(statSync(join(destination, "module.so")).gid, statSync(destination).gid);
+ } finally {
+ rmSync(root, { recursive: true, force: true });
+ }
+ });
+}