The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
feat(agent): add harness initialization with bus and registry
Steven Enamakelc7c5c910178b
diff --git a/crates/openhuman-core/src/agent/harness_init/bus.rs b/crates/openhuman-core/src/agent/harness_init/bus.rsindex 6e85f408d9..86f954278a 100644--- a/crates/openhuman-core/src/agent/harness_init/bus.rs+++ b/crates/openhuman-core/src/agent/harness_init/bus.rs@@ -3,4 +3,4 @@//! Progress events are published directly from [`super::store::update_step`],//! so no subscriber is required today. This module is kept for canonical//! module shape and as the home for any future health re-publishing (e.g.-//! mirroring spaCy/Node readiness into the `health` domain).+//! mirroring Python/Node readiness into the `health` domain).diff --git a/crates/openhuman-core/src/agent/harness_init/mod.rs b/crates/openhuman-core/src/agent/harness_init/mod.rsindex 862d5a5fad..679020dd1e 100644--- a/crates/openhuman-core/src/agent/harness_init/mod.rs+++ b/crates/openhuman-core/src/agent/harness_init/mod.rs@@ -1,7 +1,7 @@//! `harness_init` — first-class orchestration of one-time, first-run setup.//!//! On a fresh install several provisioning steps (managed Python runtime,-//! spaCy + model, Kompress/torch, managed Node runtime) used to run lazily on+//! Kompress/torch, managed Node runtime) used to run lazily on//! first use, with no user-visible feedback. This domain runs them eagerly at//! core startup (spawned non-blocking after the RPC server is ready), tracks//! per-step progress in an in-memory snapshot, and exposes it over@@ -9,7 +9,7 @@//! frontend initialization screen.//!//! Steps delegate to the existing idempotent provisioning code-//! (`crate::runtime::python`, `crate::runtime::python_server` for spaCy and+//! (`crate::runtime::python`, `crate::runtime::python_server` for//! Kompress, `crate::runtime::node`) — this module orchestrates and reports,//! it does not reimplement downloads.diff --git a/crates/openhuman-core/src/agent/harness_init/registry.rs b/crates/openhuman-core/src/agent/harness_init/registry.rsindex 753ded2221..532a0b8cd5 100644--- a/crates/openhuman-core/src/agent/harness_init/registry.rs+++ b/crates/openhuman-core/src/agent/harness_init/registry.rs@@ -82,7 +82,7 @@ fn python_runtime_step() -> HarnessInitStep {}/// Whether the managed interpreter must be provisioned **eagerly at boot**.-/// True only when Python is enabled AND a Python backend (spaCy / Kompress)+/// True only when Python is enabled AND a Python backend (Kompress)/// actually needs it. When no backend is enabled we skip the speculative/// managed-CPython download entirely (#5056) — lazy consumers (Python tools //// skills, Python MCP servers) still resolve the interpreter on first use.diff --git a/crates/openhuman-core/src/agent/harness_init/registry_tests.rs b/crates/openhuman-core/src/agent/harness_init/registry_tests.rsindex 42c5b30bea..e71245683d 100644--- a/crates/openhuman-core/src/agent/harness_init/registry_tests.rs+++ b/crates/openhuman-core/src/agent/harness_init/registry_tests.rs@@ -37,7 +37,7 @@ fn provisioning_classification_excludes_service_startup() {}/// #5056: on a fresh install (`Config::default()`) `runtime_python.enabled`-/// is `true` but no Python backend (spaCy/Kompress) is on, so the+/// is `true` but no Python backend (Kompress) is on, so the/// `python_runtime` step must report itself already `Done` and `run` must/// be a no-op — proving the eager managed-CPython download is skipped/// when nothing at boot needs it. This is a pure gating check@@ -60,7 +60,7 @@ async fn python_runtime_step_is_done_by_default_with_no_backend_enabled() {);}-/// Inverse of the above: once a backend (spaCy) is enabled, the step must+/// Inverse of the above: once a backend (Kompress) is enabled, the step must/// no longer be trivially `Done` via the eager-skip branch — proving the/// gate still allows provisioning when a backend genuinely needs Python./// We only assert the gating predicate here (not `is_done`/`run`), so thediff --git a/crates/openhuman-core/src/config/schema/runtime_python.rs b/crates/openhuman-core/src/config/schema/runtime_python.rsindex e1d87465f1..f0b3b67f1f 100644--- a/crates/openhuman-core/src/config/schema/runtime_python.rs+++ b/crates/openhuman-core/src/config/schema/runtime_python.rs@@ -27,7 +27,7 @@ pub struct RuntimePythonConfig {/// (incl. pre-release lines like 3.15.x betas, whose `bN` suffix the/// version parser drops — so they look like a stable `3.15.0`). Capping/// selection below this keeps us on a stable line with prebuilt wheels for- /// dependencies such as spaCy. Empty string disables the cap. Default+ /// dependencies such as torch. Empty string disables the cap. Default/// `3.14.0` → selects the latest `3.13.x`.#[serde(default = "default_maximum_version")]pub maximum_version: String,diff --git a/crates/openhuman-core/src/core/all.rs b/crates/openhuman-core/src/core/all.rsindex 34e78ec5f1..a68112943a 100644--- a/crates/openhuman-core/src/core/all.rs+++ b/crates/openhuman-core/src/core/all.rs@@ -544,7 +544,7 @@ fn build_registered_controllers() -> Vec<GroupedController> {DomainGroup::Platform,crate::core::subsystem::all_subsystems_registered_controllers(),);- // One-time first-run initialization (Python/spaCy/Node provisioning)+ // One-time first-run initialization (Python/Node provisioning)push(&mut controllers,DomainGroup::Agent,diff --git a/crates/openhuman-core/src/core/runtime/bootstrap.rs b/crates/openhuman-core/src/core/runtime/bootstrap.rsindex 391ded80e5..2b4e400d14 100644--- a/crates/openhuman-core/src/core/runtime/bootstrap.rs+++ b/crates/openhuman-core/src/core/runtime/bootstrap.rs@@ -360,7 +360,7 @@ pub(crate) async fn start_core_runtime_services(};// Long-lived bootstrap loops selected by ServiceSet.- // One-time first-run initialization (managed Python runtime, spaCy model,+ // One-time first-run initialization (managed Python runtime, Kompress,// managed Node runtime). Spawned AFTER subscribers are live but does NOT// block the ready signal — the core becomes RPC-ready immediately and the// frontend watches per-step progress via `openhuman.harness_init_status`.diff --git a/crates/openhuman-core/src/core/runtime/builder.rs b/crates/openhuman-core/src/core/runtime/builder.rsindex 3c0459eb4f..c58bcff0b2 100644--- a/crates/openhuman-core/src/core/runtime/builder.rs+++ b/crates/openhuman-core/src/core/runtime/builder.rs@@ -166,7 +166,7 @@ impl ServiceSet {pub struct DomainSet {/// Agent definition/registry/experience, orchestration, session DB/import.pub agent: bool,- /// Documents, knowledge graph, memory tree/sources/sync/diff/goals.+ /// Memory v2: engine, recall/fetch/learn, sources, conversations, context.md, import.pub memory: bool,/// Conversation threads, per-thread goals, todos.pub threads: bool,