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/README.md,crates/openhuman-core/src/config/migr

Steven Enamakelb2d4eab9a616
diff --git a/crates/openhuman-core/src/agent/README.md b/crates/openhuman-core/src/agent/README.md
index 7a570cd3d0..ec8d603b53 100644
--- a/crates/openhuman-core/src/agent/README.md
+++ b/crates/openhuman-core/src/agent/README.md
@@ -372,7 +372,7 @@ All controllers register under `DomainGroup::Agent` in [`core/all.rs`](../core/a
| `subagent` | [`orchestration/subagent_control.rs`](./orchestration/subagent_control.rs) | `cancel`, `steer` for running sub-agents |
`agent.chat` and `agent.chat_simple` load config and call
-`inference::host_runtime::rpc::agent_chat` / `agent_chat_simple`, which
+`inference::host_runtime::ops::agent_chat` / `agent_chat_simple`, which
build an `OpenHumanSessionHost`. `chat_simple` is a bare provider call with
no tools. The JSON-RPC server itself is in [`crates/openhuman-rpc`](../../../openhuman-rpc/).
diff --git a/crates/openhuman-core/src/config/migrations/mod.rs b/crates/openhuman-core/src/config/migrations/mod.rs
index d9cdda640f..b30b5c7f74 100644
--- a/crates/openhuman-core/src/config/migrations/mod.rs
+++ b/crates/openhuman-core/src/config/migrations/mod.rs
@@ -562,7 +562,7 @@ pub async fn run_pending(config: &mut Config) {
//
// The symptom is not subtle now that #6201 lists the managed OpenRouter
// catalog in the model picker: `inference_list_models("openhuman")` fails
- // its lookup in `inference::provider::ops::models` before any HTTP request
+ // its lookup in `inference::provider::models::catalog_listing` before any HTTP request
// is made, the picker renders "Could not load models from this provider.",
// and the failure reaches Sentry through `rpc.invoke_method` — the same
// string `is_unknown_provider_user_config` was written to keep out of it.
diff --git a/crates/openhuman-core/src/config/schema/cloud_providers.rs b/crates/openhuman-core/src/config/schema/cloud_providers.rs
index fca0bfc8d5..8037a93861 100644
--- a/crates/openhuman-core/src/config/schema/cloud_providers.rs
+++ b/crates/openhuman-core/src/config/schema/cloud_providers.rs
@@ -270,7 +270,7 @@ impl Default for CloudProviderCreds {
/// never reaches `make_cloud_provider_by_slug`. When no `cloud_providers`
/// row exists (config drift, upgrade from a build that only persisted
/// `config.local_ai.base_url`, flush-vs-probe race),
-/// `inference::provider::ops::list_configured_models`
+/// `inference::provider::models::catalog_listing::list_configured_models`
/// falls back to a synthetic entry via `synthesize_local_runtime_entry`
/// (Sentry TAURI-RUST-28Z fix). The same fallback applies to `lmstudio`.
pub fn is_slug_reserved(s: &str) -> bool {
diff --git a/crates/openhuman-core/src/config/schema/load_managed_provider_tests.rs b/crates/openhuman-core/src/config/schema/load_managed_provider_tests.rs
index cca1600722..6121cc6b92 100644
--- a/crates/openhuman-core/src/config/schema/load_managed_provider_tests.rs
+++ b/crates/openhuman-core/src/config/schema/load_managed_provider_tests.rs
@@ -16,7 +16,7 @@ use super::*;
/// it, because the workspace is already past every gate that would have.
///
/// This is what made `inference_list_models("openhuman")` fail its lookup in
-/// `inference::provider::ops::models` before any HTTP request was made, which
+/// `inference::provider::models::catalog_listing` before any HTTP request was made, which
/// is what #6201's model picker surfaced as "Could not load models from this
/// provider."
#[tokio::test]
diff --git a/crates/openhuman-core/src/core/events.rs b/crates/openhuman-core/src/core/events.rs
index 6867f8f093..f495813e1d 100644
--- a/crates/openhuman-core/src/core/events.rs
+++ b/crates/openhuman-core/src/core/events.rs
@@ -243,7 +243,7 @@ pub enum DomainEvent {
/// A BYO (bring-your-own-key) chat provider rejected the configured API
/// key with `401` / `403` — the third-party key is invalid or revoked.
///
- /// Published by `inference::provider::ops::http_error::
+ /// Published by `inference::provider::http_error::
/// log_byo_provider_auth_failure` (once per failure episode, via the
/// `auth_error_registry` latch — the underlying 401 repeats per retry).
/// The same rejection demotes the raw error from Sentry (it's
diff --git a/crates/openhuman-core/src/core/observability.rs b/crates/openhuman-core/src/core/observability.rs
index e2f0a6fae8..de91ef0373 100644
--- a/crates/openhuman-core/src/core/observability.rs
+++ b/crates/openhuman-core/src/core/observability.rs
@@ -517,7 +517,7 @@ pub fn expected_error_kind(message: &str) -> Option<ExpectedErrorKind> {
}
// TAURI-RUST-8FQ — the OpenAI ChatGPT/Codex OAuth access token expired with
// no usable refresh token. The provider HTTP layer
- // (`provider::ops::api_error` / `chat_via_responses`) already demotes its
+ // (`provider::http_error::api_error` / `chat_via_responses`) already demotes its
// own per-attempt event, but the same `anyhow::bail!` string re-raises here
// at the RPC boundary (`jsonrpc` → `report_error_or_expected`); route it to
// the shared `ProviderUserState` bucket so the re-report is demoted too
@@ -1707,7 +1707,7 @@ fn is_provider_user_state_message(lower: &str) -> bool {
return true;
}
- // OPENHUMAN-TAURI-YJ: `inference/provider/ops.rs::list_models` probed a
+ // OPENHUMAN-TAURI-YJ: `inference/provider/models/catalog_listing.rs::list_models` probed a
// user-configured custom-provider's `/models` endpoint and the upstream
// server returned 404. Wire shape emitted at `ops.rs:118-122`:
//
@@ -1727,7 +1727,7 @@ fn is_provider_user_state_message(lower: &str) -> bool {
// - 400: typically request-shape bugs in OUR client; must escalate.
// - 429 / 5xx: transient — handled by other matchers / retry policy.
//
- // No `inference/provider/ops.rs::list_models` other than this site emits
+ // No `inference/provider/models/catalog_listing.rs::list_models` other than this site emits
// the `provider returned NNN` prefix (verified via grep), so the prefix
// alone is a sufficient anchor.
//
diff --git a/crates/openhuman-core/src/core/observability_error_classification_user_state_tests.rs b/crates/openhuman-core/src/core/observability_error_classification_user_state_tests.rs
index 818db6a449..a0662809e2 100644
--- a/crates/openhuman-core/src/core/observability_error_classification_user_state_tests.rs
+++ b/crates/openhuman-core/src/core/observability_error_classification_user_state_tests.rs
@@ -631,7 +631,7 @@ fn does_not_classify_genuine_backend_500_without_cloudflare_body() {
#[test]
fn classifies_list_models_404_as_provider_user_state() {
- // OPENHUMAN-TAURI-YJ: `inference/provider/ops.rs::list_models` probed
+ // OPENHUMAN-TAURI-YJ: `inference/provider/models/catalog_listing.rs::list_models` probed
// a custom-provider's `/models` endpoint and the upstream server
// returned 404 because the base URL is wrong / doesn't host a models
// listing. User-config state — the model-dropdown probe already
diff --git a/crates/openhuman-core/src/core/session_expiry.rs b/crates/openhuman-core/src/core/session_expiry.rs
index 42c983a834..8b40b27a73 100644
--- a/crates/openhuman-core/src/core/session_expiry.rs
+++ b/crates/openhuman-core/src/core/session_expiry.rs
@@ -20,7 +20,7 @@
/// `"GET /teams failed (401 Unauthorized): {"success":false}"`. These always
/// start with an HTTP method verb followed by a space and a forward slash.
/// - **Provider / downstream 401s** (`api_error` in
-/// `crates/openhuman-core/src/inference/provider/ops.rs`): formatted as
+/// `crates/openhuman-core/src/inference/provider/models/catalog_listing.rs`): formatted as
/// `"{ProviderName} API error (401 Unauthorized): {body}"` or
/// `"Discord API error: ... (401): Unauthorized"`. These start with a
/// provider name, NOT an HTTP method verb.
@@ -37,7 +37,7 @@
/// - `"invalid token"` — too broad; also matches Discord / OAuth provider tokens.
///
/// Note: for inference-path OpenHuman backend 401s, `api_error` (in
-/// `inference/provider/ops.rs` lines 479–497) ALREADY publishes `SessionExpired`
+/// `inference/provider/models/catalog_listing.rs` lines 479–497) ALREADY publishes `SessionExpired`
/// directly, so there is no regression if this predicate misses them — the
/// subscriber is idempotent and a harmless double-publish would still be correct.
pub fn is_session_expired_error(msg: &str) -> bool {
diff --git a/crates/openhuman-core/src/cron/scheduler/failure_classification.rs b/crates/openhuman-core/src/cron/scheduler/failure_classification.rs
index 99e9982875..5624e4fd1c 100644
--- a/crates/openhuman-core/src/cron/scheduler/failure_classification.rs
+++ b/crates/openhuman-core/src/cron/scheduler/failure_classification.rs
@@ -87,7 +87,7 @@ pub(super) fn classify_agent_anyhow_for_user(err: &anyhow::Error) -> &'static st
/// Did this failed agent-job attempt hit the backend session-expired state?
///
/// When the OpenHuman backend returns 401 because the user's app JWT has
-/// lapsed, [`inference::provider::ops::api_error`] already publishes
+/// lapsed, [`inference::provider::http_error::api_error`] already publishes
/// [`crate::core::events::DomainEvent::SessionExpired`] (via
/// `publish_backend_session_expired`) and the credentials subscriber clears
/// the stored session + flips the scheduler-gate `signed_out` override. The
diff --git a/crates/openhuman-core/src/desktop/app_state/README.md b/crates/openhuman-core/src/desktop/app_state/README.md
index 2f5e5a0e16..7e2d871b72 100644
--- a/crates/openhuman-core/src/desktop/app_state/README.md
+++ b/crates/openhuman-core/src/desktop/app_state/README.md
@@ -35,7 +35,7 @@ The signed-in identity for prompts and Sentry is `security::credentials::identit
- `crate::config`: `config::rpc::load_config_with_timeout`.
- `crate::security::credentials`: `session_support::{load_app_session_profile, session_state_from_profile, session_token_from_profile}`; `crate::security::keyring_consent` for `KeyringStatus` / `ConsentPreference`.
-- `crate::inference`: `LocalAiStatus` via `inference::rpc::inference_status`.
+- `crate::inference`: `LocalAiStatus` via `inference::ops::inference_status`.
- `crate::platform::service`: `ServiceState` / `ServiceStatus`; `crate::platform::health::snapshot`.
## Called by
diff --git a/crates/openhuman-core/src/inference/README.md b/crates/openhuman-core/src/inference/README.md
index cf1bf3a809..99dec54195 100644
--- a/crates/openhuman-core/src/inference/README.md
+++ b/crates/openhuman-core/src/inference/README.md
@@ -157,7 +157,7 @@ A failed provider call passes through several layers, each with one job:
HTTP / transport error
|
v
- provider/ops/http_error.rs api_error(): tinyinference_llm::failure::http
+ provider/http_error.rs api_error(): tinyinference_llm::failure::http
| classifies; HostErrorReporter applies backend guards, demotion, Sentry
|
+--> auth_failure.rs: 401 from managed backend -> SessionExpired event
@@ -204,7 +204,7 @@ picks the provider the same way a provider string does.
| `provider/openai_codex.rs` | Codex routing metadata for the `openai` slug when Codex OAuth is connected. |
| [`provider/error_code.rs`](./provider/error_code.rs), [`provider/error_classify.rs`](./provider/error_classify.rs) | Managed `errorCode` extraction and Sentry ownership; OpenHuman policy over TinyInference's classifier. |
| `provider/fallback_diagnostics.rs` | Explains background-role fallback when it hits a provider with no credentials. |
-| [`provider/ops/`](./provider/ops/) | `http_error.rs` (host reporter over `tinyinference_llm::failure::http`, `api_error`), `models/` (model catalog listing, local-runtime and OpenRouter entries), `provider_factory.rs` (`ProviderRuntimeOptions`, `list_providers`). |
+| [`provider/`](./provider/) | `http_error.rs` (host reporter over `tinyinference_llm::failure::http`, `api_error`), `models/` (model catalog listing, local-runtime and OpenRouter entries), `factory/` (chat-model construction and cloud provider resolution). |
| [`provider/types.rs`](./provider/types.rs) | Host DTOs kept at product and RPC boundaries: `ChatResponse`, `ProviderDelta`, `BilledUsage`, `AGENT_TURN_MAX_OUTPUT_TOKENS`. |
| `host_runtime/` | Product policy, RPC and speech bindings over `tinyinference_local`. See [`host_runtime/README.md`](host_runtime/README.md). |
| `embedding_host/` | Embedding provider selection (managed, Voyage, OpenAI, Cohere, Ollama, custom, noop) and the `embeddings.*` RPC. See [`embedding_host/README.md`](embedding_host/README.md). |
@@ -230,7 +230,7 @@ picks the provider the same way a provider string does.
natively. `INFERENCE_AGENT_CHAT` (`schemas.rs`) is the wire method name hosts reference.
- `context_window_for_model` (`model_context.rs`) and `resolve_context_window`
(`context_window.rs`) answer window sizes.
-- `api_error` ([`provider/ops/http_error/dispatch.rs`](./provider/ops/http_error/dispatch.rs)) is the single entry for turning a failed
+- `api_error` ([`provider/http_error/dispatch.rs`](./provider/http_error/dispatch.rs)) is the single entry for turning a failed
provider response into a classified error.
- `auth_error_registry::{record, clear, snapshot}` track rejected BYO keys.
- `test_provider_override` (`provider/factory.rs`) injects a mock `ChatModel` process-wide. It
@@ -270,7 +270,7 @@ Outside JSON-RPC, `http::router()` serves `/v1/chat/completions` and `/v1/models
## Events and persistence
This domain publishes but does not subscribe; there is no `bus.rs`. `SessionExpired` comes from
-[`provider/ops/http_error/auth_failure.rs`](./provider/ops/http_error/auth_failure.rs) and `provider/openhuman_backend_model.rs` (the managed model itself is in `openhuman-tinyhumans`).
+[`provider/http_error/auth_failure.rs`](./provider/http_error/auth_failure.rs) and `provider/openhuman_backend_model.rs` (the managed model itself is in `openhuman-tinyhumans`).
`ProviderApiKeyRejected` comes from `auth_failure.rs`, gated by `auth_error_registry`.
There is no `store.rs`. Routing, provider and local settings persist through `config` (`config/ops/
diff --git a/crates/openhuman-core/src/inference/auth_error_registry.rs b/crates/openhuman-core/src/inference/auth_error_registry.rs
index 54ae542c3d..f7619e8d98 100644
--- a/crates/openhuman-core/src/inference/auth_error_registry.rs
+++ b/crates/openhuman-core/src/inference/auth_error_registry.rs
@@ -10,7 +10,7 @@
//! `openhuman.inference_provider_auth_errors` RPC ([`snapshot`]).
//!
//! Entries are recorded at the demote site
-//! ([`provider::ops::log_byo_provider_auth_failure`](super::provider::ops::log_byo_provider_auth_failure)) and cleared
+//! ([`provider::http_error::log_byo_provider_auth_failure`](super::provider::http_error::log_byo_provider_auth_failure)) and cleared
//! when the user updates or removes that provider's key
//! (`credentials::ops`). The [`record`] latch is what makes the notification
//! fire **once per failure episode** rather than once per retry: the
diff --git a/crates/openhuman-core/src/inference/ops.rs b/crates/openhuman-core/src/inference/ops.rs
index 1a61e9ac5f..f492b3863a 100644
--- a/crates/openhuman-core/src/inference/ops.rs
+++ b/crates/openhuman-core/src/inference/ops.rs
@@ -18,7 +18,7 @@ const LOG_PREFIX: &str = "[inference::ops]";
/// User picked a provider id (slug) that isn't registered in the cloud
/// provider list — e.g. selecting `"ollama"` as a cloud provider when it's
/// actually a local runtime. Matches the literal phrase emitted at
-/// `crates/openhuman-core/src/inference/provider/ops.rs:54`
+/// `crates/openhuman-core/src/inference/provider/models/catalog_listing.rs:54`
/// (`"no cloud provider with id or slug '{}' found"`).
///
/// Used by [`inference_list_models`] to demote this user-config case to
@@ -305,7 +305,7 @@ pub async fn inference_update_local_settings(
pub async fn inference_list_models(provider_id: &str) -> Result<Outcome<Value>, String> {
debug!(provider_id, "{LOG_PREFIX} list_models:start");
- let result = providers::ops::list_configured_models(provider_id).await;
+ let result = providers::models::catalog_listing::list_configured_models(provider_id).await;
match &result {
Ok(_) => debug!("{LOG_PREFIX} list_models:ok"),
Err(err) => {
diff --git a/crates/openhuman-core/src/inference/ops_tests.rs b/crates/openhuman-core/src/inference/ops_tests.rs
index 75d1f0acdf..8d002b85b7 100644
--- a/crates/openhuman-core/src/inference/ops_tests.rs
+++ b/crates/openhuman-core/src/inference/ops_tests.rs
@@ -262,7 +262,7 @@ async fn inference_openai_oauth_disconnect_returns_removed_flag() {
// which surfaces a `String` error when the user-selected provider id isn't
// registered in the cloud-provider list (e.g. picking "ollama" — a local
// runtime — as a cloud provider). The error string is emitted at
-// `crates/openhuman-core/src/inference/provider/ops.rs:54`. Before this fix the emit
+// `crates/openhuman-core/src/inference/provider/models/catalog_listing.rs:54`. Before this fix the emit
// site at `inference/ops.rs:248` escalated every such error to `error!`,
// which sentry-tracing ships to Sentry as `"[inference::ops]
// list_models:error"` — 5740+ events with the underlying error hidden in
@@ -272,7 +272,7 @@ async fn inference_openai_oauth_disconnect_returns_removed_flag() {
#[test]
fn is_unknown_provider_user_config_matches_canonical_emit_site_string() {
- // Verbatim shape from `provider/ops.rs:54`:
+ // Verbatim shape from `provider/models/catalog_listing.rs:54`:
// format!("no cloud provider with id or slug '{}' found", provider_id)
// Latest TAURI-RUST-X event (Sentry id 95) carried provider_id="ollama";
// every well-formed provider id slug must trigger the demote.
@@ -295,9 +295,9 @@ fn is_unknown_provider_user_config_rejects_other_list_models_failures() {
// strictly anchored on the "no cloud provider with id or slug" phrase
// so it can't accidentally silence them.
for raw in [
- // TAURI-RUST-12 (362 events) — provider/ops.rs JSON decode failure
+ // TAURI-RUST-12 (362 events) — provider/models/catalog_listing.rs JSON decode failure
"[providers][list_models] failed to parse JSON: error decoding response",
- // TAURI-RUST-2W (100 events) — provider/ops.rs reqwest builder failure
+ // TAURI-RUST-2W (100 events) — provider/models/catalog_listing.rs reqwest builder failure
"[providers][list_models] HTTP request failed: builder error",
// TAURI-RUST-JP (8 events) — local_ai ollama_admin transport failure
"[local_ai:ollama_admin] list_models: request send failed",
diff --git a/crates/openhuman-core/src/inference/provider/README.md b/crates/openhuman-core/src/inference/provider/README.md
index f3b1bf1ee5..ff66e880ca 100644
--- a/crates/openhuman-core/src/inference/provider/README.md
+++ b/crates/openhuman-core/src/inference/provider/README.md
@@ -87,8 +87,7 @@ consumers: the agent harness ([`agent/session_host/builder/factory.rs`](../../ag
- `ops/`: `http_error` (HTTP error
classification, Sentry routing, `api_error`), `models`
- (`list_configured_models`), `provider_factory` (`ProviderRuntimeOptions`,
- `list_providers`).
+ (`list_configured_models`), `tools/delegate.rs` (`ProviderRuntimeOptions`).
Preserves the original `pub use ops::*` contract split out of a single `ops.rs`.
- Claude Code CLI provider: `tinyagents_harness::providers::claude_code` in [`vendor/tinyagents`](../../../../../vendor/tinyagents/); see the [Claude Code provider guide](../../../../../docs/gitbooks/en/developing/providers/claude-code.md).
diff --git a/crates/openhuman-core/src/inference/registry.rs b/crates/openhuman-core/src/inference/registry.rs
index 81659f3f7e..4b7da92cde 100644
--- a/crates/openhuman-core/src/inference/registry.rs
+++ b/crates/openhuman-core/src/inference/registry.rs
@@ -7,7 +7,7 @@
//! | --- | --- | --- |
//! | chat models | `provider::factory` (every managed-provider construction) | [`ChatModelEntry`] |
//! | embeddings | `embedding_host::factory` (the managed embedding model) | [`EmbeddingFactory`] |
-//! | model catalogs | `provider::ops::models::catalog_listing`, `provider::factory::discovery` | [`CatalogEntry`] |
+//! | model catalogs | `provider::models::catalog_listing`, `provider::factory::discovery` | [`CatalogEntry`] |
//!
//! The id is the provider id the core already routes on (the managed provider
//! is [`PROVIDER_OPENHUMAN`](crate::inference::provider::factory::PROVIDER_OPENHUMAN)).
diff --git a/crates/openhuman-core/src/platform/doctor/README.md b/crates/openhuman-core/src/platform/doctor/README.md
index 9ad49af99a..93b16341d7 100644
--- a/crates/openhuman-core/src/platform/doctor/README.md
+++ b/crates/openhuman-core/src/platform/doctor/README.md
@@ -67,7 +67,7 @@ None of its own (no `store.rs`). It only **reads** existing state owned by other
- `crate::platform::service::daemon`: `state_file_path` for the daemon heartbeat/component snapshot.
- `crate::memory::status`: the memory engine's status (`ok`/`degraded`/`down`/`off`), taken by `ops` before the blocking hop and passed to `run` as a `MemoryEngineCheck`.
- `crate::inference::embedding_host::effective_embedding_settings`: resolves the intended embedding provider/model.
-- `crate::inference::{provider, local}`: `provider::list_providers` (model targets) and `local::ollama_base_url` (embedding probe).
+- `crate::inference::{provider, local}`: configured `cloud_providers` slugs (model targets) and `local::ollama_base_url` (embedding probe).
- `config.resolved_endpoints` (filled by the host's config enricher) for the inference base URL; `crate::security::credentials::jwt::get_session_token` for sign-in state.
- `crate::core::all::{ControllerFuture, RegisteredController}`, `crate::core::{ControllerSchema, FieldSchema, TypeSchema}`: controller/schema plumbing.
- `crate::rpc::RpcOutcome`: handler return contract.
@@ -82,7 +82,7 @@ None of its own (no `store.rs`). It only **reads** existing state owned by other
- `run()` is **strictly blocking** by contract (file system, sqlite, blocking HTTP). `reqwest::blocking::Client` panics inside a tokio runtime, so `ops::doctor_report` runs the whole thing in `tokio::task::spawn_blocking`. Do not add `.await` inside `core::run`.
- An async probe therefore arrives as an **argument**, resolved in `ops` before the blocking hop: `MemoryEngineCheck` is the first of them. Do not reach for `Handle::block_on` inside [`core`](./core): it panics on a current-thread runtime and deadlocks the multi-thread one whose worker it is already occupying.
- An engine that is down is reported as an error and memory being off as a warning, so the doctor names what is wrong instead of showing an empty store.
-- `run_models` / `doctor.models` is effectively a **stub**: it enumerates providers from `inference::provider::list_providers` but marks every entry `Skipped` with message "model catalog refresh removed" (catalog refresh was removed). It never actually probes auth/availability despite the schema description.
+- `run_models` / `doctor.models` is lists the configured provider slugs from the supplied config and marks each entry `Skipped` because catalog refresh is not part of doctor.
- The embedding probe is capped at a 3s timeout to avoid stalling on a slow Ollama daemon; non-ollama providers short-circuit to OK.
- `model_matches` treats `name` vs `name:tag` as a match only when at most one side is tagged; two differently-tagged names are not considered equal.
- Severity rollup: `DoctorSummary` counts `Ok`/`Warn`/`Error` items; checks are intentionally lenient (missing optional dirs/tools → `Warn`, not `Error`).
diff --git a/crates/openhuman-core/src/web_chat/web_errors/classify.rs b/crates/openhuman-core/src/web_chat/web_errors/classify.rs
index c666459f06..a5049362a1 100644
--- a/crates/openhuman-core/src/web_chat/web_errors/classify.rs
+++ b/crates/openhuman-core/src/web_chat/web_errors/classify.rs
@@ -57,7 +57,7 @@ pub(crate) struct ClassifiedError {
pub(crate) retry_after_ms: Option<u64>,
/// Provider name extracted from the leading
/// `"<provider> API error (...)"` envelope emitted by
- /// `inference::provider::ops::api_error`. `None` for non-provider
+ /// `inference::provider::http_error::api_error`. `None` for non-provider
/// errors (OpenHuman budget cap, agent loop) and for transport
/// failures that don't carry an identifiable provider prefix.
pub(crate) provider: Option<String>,
diff --git a/crates/openhuman-core/src/web_chat/web_tests.rs b/crates/openhuman-core/src/web_chat/web_tests.rs
index 4bc4469f3d..5ae4b82dd1 100644
--- a/crates/openhuman-core/src/web_chat/web_tests.rs
+++ b/crates/openhuman-core/src/web_chat/web_tests.rs
@@ -44,7 +44,7 @@ const LMSTUDIO_TEMPLATE_400: &str = "lmstudio returned: Engine protocol predict
/// Build a flattened managed-backend error string the way it reaches
/// `classify_inference_error` after the typed provider error is collapsed
/// to a `String` (the `"OpenHuman API error (<status>): <body>"` envelope
-/// from `inference::provider::ops::api_error`).
+/// from `inference::provider::http_error::api_error`).
fn managed_error(status: &str, body: &str) -> String {
format!("OpenHuman API error ({status}): {body}")
}
diff --git a/crates/openhuman-core/src/web_chat/web_tests_rate_limit_classification_tests.rs b/crates/openhuman-core/src/web_chat/web_tests_rate_limit_classification_tests.rs
index b92edbebfc..f69a146030 100644
--- a/crates/openhuman-core/src/web_chat/web_tests_rate_limit_classification_tests.rs
+++ b/crates/openhuman-core/src/web_chat/web_tests_rate_limit_classification_tests.rs
@@ -424,7 +424,7 @@ fn classify_inference_error_retryable_429_keeps_retry_flag() {
#[test]
fn classify_inference_error_extracts_provider_name_lowercase() {
// The "<provider> API error" envelope from
- // inference::provider::ops::api_error is the canonical source we
+ // inference::provider::http_error::api_error is the canonical source we
// pull the provider name from. Lowercased so the wire value is
// stable across providers' own capitalisation.
let cases: &[(&str, Option<&str>)] = &[