Skip to content

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

chore: files changed crates/openhuman-core/src/agent/harness_init/registry.rs,crates/openhuman-core/

Steven Enamakel3f31ec96627e
diff --git a/crates/openhuman-core/src/agent/harness_init/registry.rs b/crates/openhuman-core/src/agent/harness_init/registry.rs
index 73b597e927..753ded2221 100644
--- a/crates/openhuman-core/src/agent/harness_init/registry.rs
+++ b/crates/openhuman-core/src/agent/harness_init/registry.rs
@@ -9,16 +9,11 @@
//! Python backend is actually enabled (`enabled_backends` non-empty);
//! otherwise it is a no-op and lazy consumers (Python tools / skills)
//! resolve the interpreter on first use (#5056).
-//! 2. `spacy` — spaCy venv + `en_core_web_sm` model. Opt-in
-//! (`memory_tree.spacy_enabled`, default OFF) so a fresh install does not
-//! provision it — nor spawn the runtime Python server — on launch.
-//! 3. `kompress` — dedicated torch venv for the TokenJuice ML
-//! compressor. Only when `tokenjuice.ml_compression_enabled` and spaCy is
-//! off; with spaCy on, the server launch step installs torch into the
-//! shared spaCy venv instead.
-//! 4. `runtime_python_server` — long-running Python backend host. Derived:
+//! 2. `kompress` — dedicated torch venv for the TokenJuice ML
+//! compressor. Only when `tokenjuice.ml_compression_enabled`.
+//! 3. `runtime_python_server` — long-running Python backend host. Derived:
//! launches only when `enabled_backends` is non-empty.
-//! 5. `node_runtime` — managed Node.js (skills / MCP); absent when the
+//! 4. `node_runtime` — managed Node.js (skills / MCP); absent when the
//! `runtime-node` feature is compiled out.
//!
//! Voice models (Piper) and Ollama stay lazy/opt-in and are
@@ -64,7 +59,6 @@ pub struct HarnessInitStep {
pub fn all_steps() -> Vec<HarnessInitStep> {
vec![
python_runtime_step(),
- spacy_step(),
kompress_step(),
runtime_python_server_step(),
// Registration-site gate: no managed toolchain to provision when
@@ -131,8 +125,6 @@ async fn python_run(config: &Config) -> Result<(), String> {
.map_err(|e| format!("{e:#}"))
}
-// ── spacy ─────────────────────────────────────────────────────────────────
-
fn runtime_python_server_step() -> HarnessInitStep {
HarnessInitStep {
id: "runtime_python_server",
@@ -140,7 +132,7 @@ fn runtime_python_server_step() -> HarnessInitStep {
required: false,
// Routine service startup, not an install: launching an already
// provisioned server must stay silent (its venv is provisioned by the
- // `spacy` / `kompress` steps, which are the ones that surface progress).
+ // `kompress` step, which is the one that surfaces progress).
provisioning: false,
is_done: |config| Box::pin(runtime_python_server_is_done(config)),
run: |config| Box::pin(runtime_python_server_run(config)),
@@ -167,36 +159,6 @@ async fn runtime_python_server_run(config: &Config) -> Result<(), String> {
.map_err(|e| format!("{e:#}"))
}
-fn spacy_step() -> HarnessInitStep {
- HarnessInitStep {
- id: "spacy",
- label: "spaCy language model",
- required: false,
- provisioning: true,
- is_done: |config| Box::pin(spacy_is_done(config)),
- run: |config| Box::pin(spacy_run(config)),
- }
-}
-
-async fn spacy_is_done(config: &Config) -> bool {
- if !config.runtime_python.enabled || !config.memory_tree.spacy_enabled {
- return true;
- }
- crate::runtime::python_server::spacy_provisioned(config)
-}
-
-async fn spacy_run(config: &Config) -> Result<(), String> {
- if !config.runtime_python.enabled || !config.memory_tree.spacy_enabled {
- return Ok(());
- }
- crate::runtime::python_server::ensure_spacy(config)
- .await
- .map(|_| {
- log::info!("[harness_init] spaCy provisioned");
- })
- .map_err(|e| format!("{e:#}"))
-}
-
// ── node_runtime ────────────────────────────────────────────────────────────
fn kompress_step() -> HarnessInitStep {
@@ -210,14 +172,9 @@ fn kompress_step() -> HarnessInitStep {
}
}
-/// Whether this step should provision a *dedicated* Kompress venv. When spaCy is
-/// also enabled, the single runtime-python server must share one interpreter, so
-/// `runtime_python_server_step` installs torch into the spaCy venv instead — a
-/// dedicated venv here would be unused and double the (heavy) provisioning work.
+/// Whether this step should provision the Kompress venv.
fn kompress_needs_dedicated_venv(config: &Config) -> bool {
- config.runtime_python.enabled
- && config.tokenjuice.ml_compression_enabled
- && !config.memory_tree.spacy_enabled
+ config.runtime_python.enabled && config.tokenjuice.ml_compression_enabled
}
async fn kompress_is_done(config: &Config) -> bool {
@@ -229,7 +186,6 @@ async fn kompress_is_done(config: &Config) -> bool {
async fn kompress_run(config: &Config) -> Result<(), String> {
if !kompress_needs_dedicated_venv(config) {
- // Shared-venv case (spaCy on) is provisioned by the server launch step.
return Ok(());
}
crate::runtime::python_server::ensure_kompress(config)
diff --git a/crates/openhuman-core/src/agent/harness_init/registry_tests.rs b/crates/openhuman-core/src/agent/harness_init/registry_tests.rs
index 6a9706f500..42c5b30bea 100644
--- a/crates/openhuman-core/src/agent/harness_init/registry_tests.rs
+++ b/crates/openhuman-core/src/agent/harness_init/registry_tests.rs
@@ -6,7 +6,6 @@ fn all_steps_have_stable_ids_and_are_non_required() {
let ids: Vec<_> = steps.iter().map(|s| s.id).collect();
let mut expected = vec![
"python_runtime",
- "spacy",
"kompress",
"runtime_python_server",
];
@@ -66,17 +65,6 @@ async fn python_runtime_step_is_done_by_default_with_no_backend_enabled() {
/// gate still allows provisioning when a backend genuinely needs Python.
/// We only assert the gating predicate here (not `is_done`/`run`), so the
/// test never attempts a real interpreter probe/download.
-#[test]
-fn python_needed_eagerly_true_when_spacy_backend_enabled() {
- let mut config = Config::default();
- config.runtime_python.enabled = true;
- config.memory_tree.spacy_enabled = true;
- assert!(
- python_needed_eagerly(&config),
- "python should be needed eagerly once a Python backend is enabled"
- );
-}
-
#[tokio::test]
async fn disabled_runtimes_report_done_without_work() {
let mut config = Config::default();
diff --git a/crates/openhuman-core/src/security/credentials/ops/credential.rs b/crates/openhuman-core/src/security/credentials/ops/credential.rs
index 5cf8c38c54..7b41ff2441 100644
--- a/crates/openhuman-core/src/security/credentials/ops/credential.rs
+++ b/crates/openhuman-core/src/security/credentials/ops/credential.rs
@@ -302,12 +302,6 @@ pub async fn set_credential(
logs.push("process globals rebound after credential install".to_string());
start_credential_gated_services(&effective_config).await;
logs.push("credential-gated services started".to_string());
- crate::memory::ops::maintenance::reembed_best_effort(
- &effective_config,
- "credential stored",
- )
- .await;
- logs.push("memory re-embed backfill checked".to_string());
}
// Open the scheduler gate now that a live credential is in place; workers
diff --git a/crates/openhuman-core/src/skills/catalog/agent/skill_setup/prompt.rs b/crates/openhuman-core/src/skills/catalog/agent/skill_setup/prompt.rs
index 8056400ce5..8f53649897 100644
--- a/crates/openhuman-core/src/skills/catalog/agent/skill_setup/prompt.rs
+++ b/crates/openhuman-core/src/skills/catalog/agent/skill_setup/prompt.rs
@@ -1,8 +1,6 @@
//! System prompt builder for the `skill_setup` built-in agent.
-use crate::agent::prompts::{
- render_safety, render_tools, render_user_files, render_workspace, PromptContext,
-};
+use crate::agent::prompts::{render_safety, render_tools, render_workspace, PromptContext};
use anyhow::Result;
const ARCHETYPE: &str = include_str!("prompt.md");
@@ -12,12 +10,6 @@ pub fn build(ctx: &PromptContext<'_>) -> Result<String> {
out.push_str(ARCHETYPE.trim_end());
out.push_str("\n\n");
- let user_files = render_user_files(ctx)?;
- if !user_files.trim().is_empty() {
- out.push_str(user_files.trim_end());
- out.push_str("\n\n");
- }
-
let tools = render_tools(ctx)?;
if !tools.trim().is_empty() {
out.push_str(tools.trim_end());
diff --git a/crates/openhuman-core/src/tools/mod.rs b/crates/openhuman-core/src/tools/mod.rs
index 88323cfd20..0677e42038 100644
--- a/crates/openhuman-core/src/tools/mod.rs
+++ b/crates/openhuman-core/src/tools/mod.rs
@@ -13,7 +13,6 @@ pub(crate) mod user_filter;
pub(crate) mod implementations;
pub use crate::agent::artifacts::tools::*;
-pub use crate::agent::learning::tools::*;
pub use crate::agent::orchestration::tools::*;
pub use crate::agent::tools::*;
pub use crate::config::tools::*;