Skip to content

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

chore(modules): reconcile released cutovers with current host base

Steven Enamakel964b6cfe3022
diff --git a/crates/openhuman-core/src/agent/orchestration/background_delivery_tests.rs b/crates/openhuman-core/src/agent/orchestration/background_delivery_tests.rs
index fb2054dcd7..8fac8b2cd1 100644
--- a/crates/openhuman-core/src/agent/orchestration/background_delivery_tests.rs
+++ b/crates/openhuman-core/src/agent/orchestration/background_delivery_tests.rs
@@ -6,17 +6,14 @@ use std::path::Path;
use std::sync::atomic::{AtomicU32, Ordering};
use tinyagents_tasks::DEFAULT_MAX_ATTEMPTS;
use tokio::sync::MutexGuard;
-
/// Serializes tests over the process-wide router registry (`clear_all` in the
/// thread-purge tests sweeps every open workspace).
async fn test_guard() -> MutexGuard<'static, ()> {
crate::config::TEST_ENV_LOCK.lock().await
}
-
fn workspace() -> TestWorkspace {
TestWorkspace::new()
}
-
async fn record(ws: &Path, session: &str, task: &str, summary: &str, thread: &str) {
record_completion(
ws,
@@ -28,7 +25,6 @@ async fn record(ws: &Path, session: &str, task: &str, summary: &str, thread: &st
)
.await;
}
-
fn pending_ids(ws: &Path, thread: &str) -> Vec<String> {
pending_for(ws, thread)
.into_iter()
diff --git a/crates/openhuman-core/src/hosting/mod.rs b/crates/openhuman-core/src/hosting/mod.rs
index 78e73f2693..5c00dc9645 100644
--- a/crates/openhuman-core/src/hosting/mod.rs
+++ b/crates/openhuman-core/src/hosting/mod.rs
@@ -149,12 +149,13 @@ impl Account {
self.providers_loaded
.get_or_try_init(|| async {
let response = self.call_providers().await?;
- let providers: Vec<String> = serde_json::from_str(&response).map_err(|_| {
- crate::modules::client::ModuleClient::report_malformed_reply("tinyhosts");
- anyhow::anyhow!(
- crate::modules::client::ModuleCallError::ModuleFault.to_string()
- )
- })?;
+ let providers: Vec<String> =
+ serde_json::from_str(&response).map_err(|_| {
+ crate::modules::client::ModuleClient::report_malformed_reply("tinyhosts");
+ anyhow::anyhow!(
+ crate::modules::client::ModuleCallError::ModuleFault.to_string()
+ )
+ })?;
if !providers.iter().any(|provider| provider == &self.provider) {
crate::modules::client::ModuleClient::report_unavailable("tinyhosts");
anyhow::bail!(crate::modules::client::ModuleCallError::Unavailable.to_string());
diff --git a/crates/openhuman-core/src/hosting/tools.rs b/crates/openhuman-core/src/hosting/tools.rs
index 38a3f2e0fe..07bb8bf485 100644
--- a/crates/openhuman-core/src/hosting/tools.rs
+++ b/crates/openhuman-core/src/hosting/tools.rs
@@ -3,7 +3,7 @@
use std::path::{Component, Path, PathBuf};
use async_trait::async_trait;
-use serde_json::{Value, json};
+use serde_json::{json, Value};
use tinyhosts_bus::{PermissionLevel as ContractPermission, ToolDeclaration};
use tinytools::{PermissionLevel, Tool, ToolCallOptions, ToolResult};
diff --git a/crates/openhuman-core/src/modules/client.rs b/crates/openhuman-core/src/modules/client.rs
index ec9b9e9a11..d28b822129 100644
--- a/crates/openhuman-core/src/modules/client.rs
+++ b/crates/openhuman-core/src/modules/client.rs
@@ -1,6 +1,6 @@
//! Shared module access for hosts, including before a core runtime is started.
-use serde::{Serialize, de::DeserializeOwned};
+use serde::{de::DeserializeOwned, Serialize};
use std::time::Duration;
use crate::config::Config;
diff --git a/crates/openhuman-core/src/modules/client_tests.rs b/crates/openhuman-core/src/modules/client_tests.rs
index f6588200f2..a45cc0cfd1 100644
--- a/crates/openhuman-core/src/modules/client_tests.rs
+++ b/crates/openhuman-core/src/modules/client_tests.rs
@@ -17,12 +17,10 @@ async fn unknown_modules_are_not_loaded_or_reported_using_untrusted_ids() {
.call::<serde_json::Value>("private-user-path-and-token", "Anything", ())
.await;
assert_eq!(result, Err(ModuleCallError::Unavailable));
- assert!(
- !result
- .unwrap_err()
- .to_string()
- .contains("private-user-path-and-token")
- );
+ assert!(!result
+ .unwrap_err()
+ .to_string()
+ .contains("private-user-path-and-token"));
}
#[cfg(not(feature = "modules"))]
@@ -126,7 +124,7 @@ impl BusFixture {
#[cfg(all(feature = "modules", feature = "crash-reporting"))]
#[test]
fn independent_invocation_faults_report_separately_around_a_success() {
- use tinybus::{Connection, ObjectPath, broker::Broker, transport::memory::MemoryBus};
+ use tinybus::{broker::Broker, transport::memory::MemoryBus, Connection, ObjectPath};
let runtime = tokio::runtime::Builder::new_current_thread()
.enable_all()
.build()
@@ -191,7 +189,7 @@ fn independent_invocation_faults_report_separately_around_a_success() {
#[cfg(all(feature = "modules", feature = "crash-reporting"))]
#[test]
fn cached_native_module_unavailability_is_reported_once() {
- use tinybus::{Connection, ObjectPath, broker::Broker, transport::memory::MemoryBus};
+ use tinybus::{broker::Broker, transport::memory::MemoryBus, Connection, ObjectPath};
let runtime = tokio::runtime::Builder::new_current_thread()
.enable_all()
.build()
@@ -245,7 +243,7 @@ fn cached_native_module_unavailability_is_reported_once() {
#[cfg(feature = "modules")]
#[tokio::test]
async fn bus_calls_preserve_tuple_arity_and_never_downgrade_confidentiality() {
- use tinybus::{Connection, ObjectPath, broker::Broker, transport::memory::MemoryBus};
+ use tinybus::{broker::Broker, transport::memory::MemoryBus, Connection, ObjectPath};
let bus = MemoryBus::new();
Broker::new().spawn(bus.clone());
let service = Connection::connect(bus.connect().await.unwrap())
@@ -293,7 +291,7 @@ async fn bus_calls_preserve_tuple_arity_and_never_downgrade_confidentiality() {
#[cfg(feature = "modules")]
#[test]
fn configured_client_timeout_overrides_the_default_for_fixture_calls() {
- use tinybus::{Connection, ObjectPath, broker::Broker, transport::memory::MemoryBus};
+ use tinybus::{broker::Broker, transport::memory::MemoryBus, Connection, ObjectPath};
let runtime = tokio::runtime::Builder::new_current_thread()
.enable_all()
.build()
@@ -332,7 +330,7 @@ fn configured_client_timeout_overrides_the_default_for_fixture_calls() {
#[cfg(all(feature = "modules", feature = "crash-reporting"))]
#[test]
fn malformed_inner_json_from_a_real_bus_reply_is_reported_as_a_sanitized_fault() {
- use tinybus::{Connection, ObjectPath, broker::Broker, transport::memory::MemoryBus};
+ use tinybus::{broker::Broker, transport::memory::MemoryBus, Connection, ObjectPath};
let runtime = tokio::runtime::Builder::new_current_thread()
.enable_all()
.build()
diff --git a/crates/openhuman-core/src/tools/ops.rs b/crates/openhuman-core/src/tools/ops.rs
index 5d559e3cbc..4492bf7624 100644
--- a/crates/openhuman-core/src/tools/ops.rs
+++ b/crates/openhuman-core/src/tools/ops.rs
@@ -1,5 +1,4 @@
use super::*;
-
use crate::agent::host_runtime::{NativeRuntime, RuntimeAdapter};
use crate::config::{Config, DelegateAgentConfig};
use crate::security::{AuditLogger, SecurityPolicy};
diff --git a/docs/module-boundary-inventory.md b/docs/module-boundary-inventory.md
index 2f7afea2ca..43e1a6fd1d 100644
--- a/docs/module-boundary-inventory.md
+++ b/docs/module-boundary-inventory.md
@@ -242,3 +242,26 @@ The TinyRuntime scope exclusion removes its temporary exception from this
branch's acceptance count (31 remaining exceptions before the next module
cut). This is an inventory scope change, not a dependency reduction or a
TinyRuntime implementation change.
+
+## Released cutover integration (2026-10-11)
+
+The `module-released-cutover` branch integrates the prepared foundation,
+Connectors, Hosts, Juice, and document adapters onto OpenHuman main
+`9f46749f173263487116b0fb8bf3ddefccb3b5b2`. Search is already on that base.
+The existing TinyRuntime removal is preserved; runtime worker migration and
+further bus error-reporting work remain outside this integration.
+
+The host compiles TinyConnectors v0.14.0, TinyHosts v0.3.0, TinyJuice v0.7.1,
+and TinyDocs v0.2.0 contracts and executes their affected operations through
+released modules. The module boundary audit reports zero violations and zero
+stale exceptions, with 27 temporary exceptions and one pending contract.
+The migration is therefore still incomplete. The flows dependency simulator
+measures 326 packages, 304 unique crate names, and two native builds
+(`libsqlite3-sys`, `ring`), compared with current main's 337 packages and
+315 names. Package counts do not establish build-time or binary-size savings.
+
+The full pin gate still reports pre-existing Computer and MCP source/artifact
+drift. Their pending host cutovers must reconcile these pins; no new exception
+hides this mismatch. All eleven Juice v0.7.1 archive bytes were independently
+verified against the host registry, release checksum manifest, and GitHub asset
+digests. Local Docs and Hosts archives also match the registry SHA-256 pins.
diff --git a/scripts/ci/check-dep-sim-calibration.sh b/scripts/ci/check-dep-sim-calibration.sh
index f5c6acb977..fa718f2e69 100755
--- a/scripts/ci/check-dep-sim-calibration.sh
+++ b/scripts/ci/check-dep-sim-calibration.sh
@@ -113,9 +113,11 @@ cd "$(dirname "$0")/../.."
# 316 -> 317: storage-file adds the first-party file driver.
# 317 -> 318: pre-core registry vocabulary adds the pure tinycomputer-bus.
-# This matches the current `flows:335:313:2` entry in
+# This matches the current `flows:326:304:2` entry in
# scripts/kernel-floor.limits; its preceding entries are historical.
# 318 -> 313: connector implementation cut (-8) and explicit flows loader (+3).
-EXPECTED_NAMES=313
+# 313 -> 304: current-main runtime removal and combined released module cuts.
+# Measured by dep-sim --cut-nothing on the integrated branch.
+EXPECTED_NAMES=304
exec python3 scripts/dep-sim.py --cut-nothing --expect-names "${EXPECTED_NAMES}"
diff --git a/scripts/ci/check-openhuman-rust-layout.mjs b/scripts/ci/check-openhuman-rust-layout.mjs
index 10e5e83ab0..07d7f2644a 100644
--- a/scripts/ci/check-openhuman-rust-layout.mjs
+++ b/scripts/ci/check-openhuman-rust-layout.mjs
@@ -54,8 +54,8 @@ const LEGACY_LIMIT_ENTRIES = [
// their current sizes while follow-up work separates their test concerns.
// `core/` was pruned from the line limit by name until these pins; its
// oversized files are pinned at the size they had when enforcement began.
- ["crates/openhuman-core/src/core/all.rs", 1349],
- ["crates/openhuman-core/src/core/all_tests.rs", 1522],
+ ["crates/openhuman-core/src/core/all.rs", 1340],
+ ["crates/openhuman-core/src/core/all_tests.rs", 1492],
["crates/openhuman-core/src/core/events.rs", 1789],
["crates/openhuman-core/src/core/events_tests.rs", 997],
["crates/openhuman-core/src/core/observability.rs", 3493],
diff --git a/scripts/kernel-floor.limits b/scripts/kernel-floor.limits
index 9fd03aaa40..7213d736cd 100644
--- a/scripts/kernel-floor.limits
+++ b/scripts/kernel-floor.limits
@@ -688,4 +688,7 @@
# profile; making flows enable the loader adds three.
# Measured net change: five fewer packages/names, with
# the same two native builds. No binary-size claim.
-flows:335:313:2
+# 326/304/2 2026-10-11 Combined released module adapters on current main,
+# including the existing managed-runtime removal.
+# Measured with dep-sim --cut-nothing; no size claim.
+flows:326:304:2