Skip to content

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

feat(about_app): remove model download and installer capabilities from catalog

Steven Enamakel912f288fe8e0
diff --git a/crates/openhuman-core/src/platform/about_app/README.md b/crates/openhuman-core/src/platform/about_app/README.md
index 6460fce9cd..ded4898ba7 100644
--- a/crates/openhuman-core/src/platform/about_app/README.md
+++ b/crates/openhuman-core/src/platform/about_app/README.md
@@ -39,7 +39,7 @@ Namespace `about_app`, registered into the global controller registry via `crate
| Method | Inputs | Output | Description |
| --- | --- | --- | --- |
| `about_app.list` | `category` (optional enum) | `capabilities: Capability[]` | List all capabilities, optionally filtered by category. |
-| `about_app.lookup` | `id` (string, required) | `capability: Capability` | Look up one capability by stable id (e.g. `local_ai.download_model`); errors on unknown id. |
+| `about_app.lookup` | `id` (string, required) | `capability: Capability` | Look up one capability by stable id (e.g. `local_ai.configure_provider`); errors on unknown id. |
| `about_app.search` | `query` (string, required) | `capabilities: Capability[]` | Keyword search; empty query returns all. |
Handlers deserialize params, log at `debug`, and emit `Outcome` via `into_cli_compatible_json()`. The `category` input is schema-typed as an `Option<Enum>` of all `CapabilityCategory` wire names.
diff --git a/crates/openhuman-core/src/platform/about_app/catalog_conversation_intelligence.rs b/crates/openhuman-core/src/platform/about_app/catalog_conversation_intelligence.rs
index 11ca959383..a26b1c9580 100644
--- a/crates/openhuman-core/src/platform/about_app/catalog_conversation_intelligence.rs
+++ b/crates/openhuman-core/src/platform/about_app/catalog_conversation_intelligence.rs
@@ -512,9 +512,9 @@ Capability {
managed cloud (default, Voyage-backed via api.tinyhumans.ai), OpenAI, \
Cohere, local Ollama, or a custom OpenAI-compatible endpoint. API keys \
are stored encrypted via the local keyring under `embeddings:<slug>`; \
- model name and embedding dimensions are tunable per provider. The \
- legacy `inference_embed` RPC is aliased to `embeddings_embed` so \
- existing callers continue to work.",
+ model name and embedding dimensions are tunable per provider. A \
+ local Ollama model must already be pulled (`ollama pull bge-m3`); \
+ OpenHuman does not download it.",
how_to: "Connections → API keys → Embeddings",
status: CapabilityStatus::Beta,
// Privacy depends on the selected provider — see
diff --git a/crates/openhuman-core/src/platform/about_app/catalog_data.rs b/crates/openhuman-core/src/platform/about_app/catalog_data.rs
index b0e094d9ba..c0565ea237 100644
--- a/crates/openhuman-core/src/platform/about_app/catalog_data.rs
+++ b/crates/openhuman-core/src/platform/about_app/catalog_data.rs
@@ -80,12 +80,6 @@ const DIAGNOSTICS_TO_BACKEND: Option<CapabilityPrivacy> = Some(CapabilityPrivacy
destinations: &["OpenHuman backend"],
});
-const MODEL_DOWNLOAD: Option<CapabilityPrivacy> = Some(CapabilityPrivacy {
- leaves_device: true,
- data_kind: PrivacyDataKind::Metadata,
- destinations: &["Hugging Face"],
-});
-
// Self-update flows talk to GitHub Releases directly, not the OpenHuman
// backend. The outbound payload is metadata only (release list query for
// `update.check`, asset download URL request for `update.apply`) so
diff --git a/crates/openhuman-core/src/platform/about_app/catalog_tests.rs b/crates/openhuman-core/src/platform/about_app/catalog_tests.rs
index 1289cccb88..47dacee80b 100644
--- a/crates/openhuman-core/src/platform/about_app/catalog_tests.rs
+++ b/crates/openhuman-core/src/platform/about_app/catalog_tests.rs
@@ -2,7 +2,7 @@ use super::*;
#[test]
fn lookup_returns_expected_capability() {
- let capability = lookup("local_ai.download_model").expect("capability should exist");
+ let capability = lookup("local_ai.configure_provider").expect("capability should exist");
assert_eq!(capability.category, CapabilityCategory::LocalAI);
assert_eq!(capability.status, CapabilityStatus::Beta);
}
@@ -516,14 +516,33 @@ fn catalog_how_to_uses_connections_nav_not_legacy_settings_paths() {
/// real route satisfies the check.
/// 2. The panel stays gone — then each entry either points at the surface that
/// actually serves it, or states in prose that the capability has no user
-/// control yet. `local_ai.python_runtime_installer` in the same table is
-/// the in-repo precedent for the second shape: no breadcrumb, status
-/// unchanged, the `how_to` says where the behaviour lives instead.
+/// control yet: no breadcrumb, status unchanged, the `how_to` says where
+/// the behaviour lives instead (see `local_ai.model_context_check`).
///
/// What this cannot assert: that the route named by a breadcrumb resolves in
/// the React router. That tie is cross-language and belongs to a VU or PW case.
/// This is the part that can be pinned from Rust — that no `local_ai` entry
/// names a panel title this repo no longer contains.
+/// OpenHuman no longer downloads local models, installs Piper or a managed
+/// Python runtime for local AI: the user runs their own runtime. The catalog
+/// must not advertise those capabilities.
+#[test]
+fn local_ai_catalog_does_not_advertise_model_downloads_or_installers() {
+ for removed in [
+ "local_ai.download_model",
+ "local_ai.manage_model_assets",
+ "local_ai.piper_installer",
+ "local_ai.python_runtime_installer",
+ ] {
+ assert!(lookup(removed).is_none(), "`{removed}` is still advertised");
+ }
+ let provider = lookup("local_ai.configure_provider").expect("configure_provider");
+ assert!(
+ provider.description.contains("ollama pull"),
+ "configure_provider should tell the user to pull models themselves"
+ );
+}
+
#[test]
fn local_ai_capabilities_do_not_point_at_the_removed_local_ai_model_panel() {
const REMOVED_PANEL: &str = "Local AI Model";
diff --git a/crates/openhuman-core/src/platform/about_app/schemas.rs b/crates/openhuman-core/src/platform/about_app/schemas.rs
index a3bc900942..e1a79b6bf5 100644
--- a/crates/openhuman-core/src/platform/about_app/schemas.rs
+++ b/crates/openhuman-core/src/platform/about_app/schemas.rs
@@ -71,7 +71,7 @@ pub fn about_app_schemas(function: &str) -> ControllerSchema {
description: "Look up one user-facing capability by its stable id.",
inputs: vec![required_string(
"id",
- "Capability id, such as local_ai.download_model.",
+ "Capability id, such as local_ai.configure_provider.",
)],
outputs: vec![capability_output(
"capability",
diff --git a/crates/openhuman-core/src/runtime/python_server/README.md b/crates/openhuman-core/src/runtime/python_server/README.md
index 44420164f5..4f6941e66e 100644
--- a/crates/openhuman-core/src/runtime/python_server/README.md
+++ b/crates/openhuman-core/src/runtime/python_server/README.md
@@ -102,10 +102,7 @@ is returned by `status()` and reflects the cache directly: `Empty` reports
`ready` flag from the worker's handshake `backends` list. There is no public
RPC method for this; `crates/openhuman-core/src/agent/harness_init/registry.rs`
reads `status().running` to decide whether the `runtime_python_server` init
-step is done. The about-app capability catalog
-(`platform/about_app/catalog_localai_settings_mobile.rs`, id `local_ai.python_runtime_installer`,
-domain `runtime_python`) describes the managed-interpreter capability this
-worker depends on, not this module's own status.
+step is done.
## Persistence
diff --git a/tests/json_rpc_e2e.rs b/tests/json_rpc_e2e.rs
index 11f0c99d1c..736a579fef 100644
--- a/tests/json_rpc_e2e.rs
+++ b/tests/json_rpc_e2e.rs
@@ -7627,6 +7627,9 @@ async fn about_app_rpc_list_lookup_and_search() {
"expected large capability catalog, got: {list_result}"
);
assert!(capabilities.iter().any(|capability| {
+ capability.get("id").and_then(Value::as_str) == Some("local_ai.configure_provider")
+ }));
+ assert!(!capabilities.iter().any(|capability| {
capability.get("id").and_then(Value::as_str) == Some("local_ai.download_model")
}));