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
chore: update tier slug references from legacy `-v1` format to `hint:` prefix
Steven Enamakel47536d22a839
diff --git a/crates/openhuman-core/src/agent/cost.rs b/crates/openhuman-core/src/agent/cost.rsindex 77ab63aebf..77a12da245 100644--- a/crates/openhuman-core/src/agent/cost.rs+++ b/crates/openhuman-core/src/agent/cost.rs@@ -18,7 +18,7 @@//! backend always wins when available.//!//! The pricing table is intentionally tiny: the managed default model,-//! with the retired tier slugs (`chat-v1`, …) still resolving to its rate so+//! with the retired tier slugs (`hint:chat`, …) still resolving to its rate so//! older cost records estimate sanely. Every other model — catalog ids the//! user pins, BYOK vendor models — is priced from the vendor catalog.diff --git a/crates/openhuman-core/src/agent/harness/definition/tier.rs b/crates/openhuman-core/src/agent/harness/definition/tier.rsindex b19a5b3c2e..73d734c170 100644--- a/crates/openhuman-core/src/agent/harness/definition/tier.rs+++ b/crates/openhuman-core/src/agent/harness/definition/tier.rs@@ -26,7 +26,7 @@ pub enum AgentTier {/// reasoning. May delegate to `Reasoning` or `Worker`; must NOT/// delegate to another `Chat` agent.Chat,- /// Deep-thinking agent on a `reasoning-v1`-style model (e.g. the+ /// Deep-thinking agent on a `hint:reasoning`-style model (e.g. the/// Planner). Decomposes long-running tasks and delegates execution/// to one or more `Worker`s. Must NOT delegate to another/// `Reasoning` agent.diff --git a/crates/openhuman-core/src/agent/progress.rs b/crates/openhuman-core/src/agent/progress.rsindex 877c4ec387..500882c6af 100644--- a/crates/openhuman-core/src/agent/progress.rs+++ b/crates/openhuman-core/src/agent/progress.rs@@ -328,7 +328,7 @@ pub enum AgentProgress {model: String,/// Provider that served this call (`"managed"`, `"openai"`,/// `"ollama"`, …). Trace exporters render the Langfuse model as- /// `{provider_id}.{model}` (e.g. `managed.chat-v1`).+ /// `{provider_id}.{model}` (e.g. `managed.hint:chat`).provider_id: String,/// Owning subagent task id when this call ran inside a child run/// (`spawn_subagent` / Context Scout). `None` for parent-scope calls.diff --git a/crates/openhuman-core/src/agent/progress_tracing.rs b/crates/openhuman-core/src/agent/progress_tracing.rsindex 44a45999d9..5e89cc4bc7 100644--- a/crates/openhuman-core/src/agent/progress_tracing.rs+++ b/crates/openhuman-core/src/agent/progress_tracing.rs@@ -25,7 +25,7 @@//!//! Spans always carry *metadata* — span names, counts, timings, and//! token/cost figures (model labels are `{provider_id}.{model}`, e.g.-//! `managed.chat-v1`). While `observability.agent_tracing.capture_content` is+//! `managed.hint:chat`). While `observability.agent_tracing.capture_content` is//! on, content is additionally recorded as span `input`/`output` — the turn's//! prompt/reply, each generation's **truncated** request messages (system//! prompt included) + completion, **truncated** tool arguments/results, anddiff --git a/crates/openhuman-core/src/agent/progress_tracing/collector/model_call.rs b/crates/openhuman-core/src/agent/progress_tracing/collector/model_call.rsindex 2400193ebd..740a7cc4da 100644--- a/crates/openhuman-core/src/agent/progress_tracing/collector/model_call.rs+++ b/crates/openhuman-core/src/agent/progress_tracing/collector/model_call.rs@@ -27,7 +27,7 @@ impl SpanCollector {/// a delegation (e.g. the Context Scout) surfaces its model natively.////// The Langfuse-facing model label is `{provider_id}.{model}` (e.g.- /// `managed.chat-v1`, `openai.gpt-4o`).+ /// `managed.hint:chat`, `openai.gpt-4o`).////// Generation start is approximated by the enclosing iteration span's/// start (the iteration opens on `ModelStarted`); end is the observationdiff --git a/crates/openhuman-core/src/agent/registry/agents/context_scout/agent.toml b/crates/openhuman-core/src/agent/registry/agents/context_scout/agent.tomlindex 933ca4b014..0e24326214 100644--- a/crates/openhuman-core/src/agent/registry/agents/context_scout/agent.toml+++ b/crates/openhuman-core/src/agent/registry/agents/context_scout/agent.toml@@ -34,7 +34,7 @@ omit_memory_md = false# Multi-step gathering loop (recall → maybe fetch → assess). Rides the# high-throughput `burst` tier: the scout is a cheap, latency-tolerant,# non-reasoning pre-flight pass, so raw throughput on a fast model beats the-# pricier agentic/reasoning tiers. Resolves to `burst-v1` on the managed backend.+# pricier agentic/reasoning tiers. Resolves to `hint:burst` on the managed backend.hint = "burst"[tools]diff --git a/crates/openhuman-core/src/agent/registry/agents/flow_memory_agent/agent.toml b/crates/openhuman-core/src/agent/registry/agents/flow_memory_agent/agent.tomlindex fdce21da84..787972e965 100644--- a/crates/openhuman-core/src/agent/registry/agents/flow_memory_agent/agent.toml+++ b/crates/openhuman-core/src/agent/registry/agents/flow_memory_agent/agent.toml@@ -35,7 +35,7 @@ omit_memory_md = false# shape as `context_scout`. Rides the high-throughput `burst` tier: this is a# cheap, latency-tolerant, non-reasoning retrieval pass invoked from inside a# flow run, so raw throughput on a fast model beats the pricier-# agentic/reasoning tiers. Resolves to `burst-v1` on the managed backend.+# agentic/reasoning tiers. Resolves to `hint:burst` on the managed backend.hint = "burst"[tools]diff --git a/crates/openhuman-core/src/agent/registry/agents/orchestrator/agent.toml b/crates/openhuman-core/src/agent/registry/agents/orchestrator/agent.tomlindex 582890b063..7fea4a2e0a 100644--- a/crates/openhuman-core/src/agent/registry/agents/orchestrator/agent.toml+++ b/crates/openhuman-core/src/agent/registry/agents/orchestrator/agent.toml@@ -120,7 +120,7 @@ allowlist = ["agent_memory",# Image-understanding specialist. Route anything that hinges on the content# of an attached or on-disk user-provided image file here — it rides the- # multimodal `vision-v1` tier, so it can actually see the image.+ # multimodal `hint:vision` tier, so it can actually see the image."vision_agent",# Image-generation specialist. Synthesised into a `delegate_create_image`# tool. Route make/generate/edit an image requests here — it owns promptdiff --git a/crates/openhuman-core/src/agent/registry/agents/vision_agent/agent.toml b/crates/openhuman-core/src/agent/registry/agents/vision_agent/agent.tomlindex c95cd51db9..60d6c01de1 100644--- a/crates/openhuman-core/src/agent/registry/agents/vision_agent/agent.toml+++ b/crates/openhuman-core/src/agent/registry/agents/vision_agent/agent.toml@@ -10,7 +10,7 @@ omit_identity = trueomit_memory_context = trueomit_safety_preamble = true-# Multimodal tier. `ModelSpec::Hint("vision")` resolves to `vision-v1`, which+# Multimodal tier. `ModelSpec::Hint("vision")` resolves to `hint:vision`, which# `oh_tier_supports_vision` reports as vision-capable — so this sub-agent's# model is always treated as image-enabled (managed or BYOK), and the turn# engine never strips the attached image at the vision gate.diff --git a/crates/openhuman-core/src/agent/session_host/builder/factory.rs b/crates/openhuman-core/src/agent/session_host/builder/factory.rsindex 71e7f0953e..9ed2d853b0 100644--- a/crates/openhuman-core/src/agent/session_host/builder/factory.rs+++ b/crates/openhuman-core/src/agent/session_host/builder/factory.rs@@ -256,7 +256,7 @@ impl OpenHumanSessionHost {// tuple — the resolved model wins over the legacy `default_model`// fallback so explicit picks like `anthropic:claude-sonnet-4-5`// actually use claude-sonnet-4-5 end to end (sending the abstract- // "reasoning-v1" tier name to Anthropic would 404).+ // "hint:reasoning" tier name to Anthropic would 404).//// When `reasoning_provider` is unset or `"cloud"`, the factory// resolves to the primary cloud (OpenHuman by default), so the@@ -274,7 +274,7 @@ impl OpenHumanSessionHost {// the configured chat default. Other specialised roles still select// their model in the sub-agent runner.// Only the explicit `hint:<role>` form routes to a specialised- // workload — legacy tier literals like `reasoning-v1` (which the+ // workload — legacy tier literals like `hint:reasoning` (which the// bootstrap historically pinned as `default_model` for everyone)// fall through to `chat`. This preserves `config.chat_provider` for// legacy callers. A built-in Master OpenHumanSessionHost has an explicitdiff --git a/crates/openhuman-core/src/agent/subagent_host/extract_tool.rs b/crates/openhuman-core/src/agent/subagent_host/extract_tool.rsindex 51f43038b2..35aac34c21 100644--- a/crates/openhuman-core/src/agent/subagent_host/extract_tool.rs+++ b/crates/openhuman-core/src/agent/subagent_host/extract_tool.rs@@ -9,10 +9,10 @@//! directly. Both the provider AND the model id are resolved by the runner//! through the `summarization` role (`create_chat_provider("summarization")`)//! and handed in, so this extraction follows the user's `memory_provider`-//! routing — managed (`summarization-v1`), BYOK, or local — exactly like every+//! routing — managed (`hint:summarization`), BYOK, or local — exactly like every//! other summarization path, instead of borrowing the parent agent's provider//! with a hardcoded tier string (which 400'd on BYOK/local providers that don't-//! know the literal `summarization-v1`).+//! know the literal `hint:summarization`).//!//! Transcript discipline: the LLM call still costs tokens, so every//! extraction round-trip is persisted as its own `session_raw/` JSONL (+diff --git a/crates/openhuman-core/src/agent/subagent_host/ops/runner.rs b/crates/openhuman-core/src/agent/subagent_host/ops/runner.rsindex 41c0b9fb42..ae64d09b43 100644--- a/crates/openhuman-core/src/agent/subagent_host/ops/runner.rs+++ b/crates/openhuman-core/src/agent/subagent_host/ops/runner.rs@@ -1221,10 +1221,10 @@ async fn run_typed_mode(//// When summarization routes to the **managed** backend, the parent// provider already speaks the managed tier names, so we reuse it with the- // fixed `summarization-v1` model — no redundant provider build, and (with+ // fixed `hint:summarization` model — no redundant provider build, and (with// no live backend) no network dependency. Only when summarization routes// to a **concrete BYOK/local** provider — exactly where passing the- // parent agent's (agentic) provider the literal `summarization-v1` would+ // parent agent's (agentic) provider the literal `hint:summarization` would// 400/404 — do we build the dedicated summarization provider so the call// lands on the right endpoint + model.//diff --git a/crates/openhuman-core/src/agent/tinyagents/harness_assembly.rs b/crates/openhuman-core/src/agent/tinyagents/harness_assembly.rsindex c5c3c61501..6b7a7f3208 100644--- a/crates/openhuman-core/src/agent/tinyagents/harness_assembly.rs+++ b/crates/openhuman-core/src/agent/tinyagents/harness_assembly.rs@@ -137,7 +137,7 @@ pub(super) fn assemble_turn_harness(// Cross-route fallback ownership (issue #4249, Workstream 02.2): populate the// SDK `RunPolicy.fallback` with the ordered same-family route chain for this// turn's primary model so the harness fails over to a sibling workload tier- // (e.g. chat-v1 → burst-v1) when the primary route errors. Retry stays pinned+ // (e.g. hint:chat → hint:burst) when the primary route errors. Retry stays pinned// to a single attempt (see `run_policy_for`) — fallback and retry are// independent knobs, and only fallback is enabled here because `ReliableProvider`// (still wrapped) does not fail over across the registered tier routes.@@ -220,7 +220,7 @@ pub(super) fn assemble_turn_harness(harness.push_model_middleware(Arc::new(routes::ResolvedRouteMiddleware));// Per-call capability gate (issue #4249, Workstream 02.1): when the turn has- // derivable capability needs (today: vision for a `vision-v1` turn), stamp+ // derivable capability needs (today: vision for a `hint:vision` turn), stamp// them onto every `ModelRequest` via `with_required_capabilities` so an unfit// model is rejected pre-dispatch (and, once 02.2 lands, a capable fallback is// selected) instead of failing at the provider.diff --git a/crates/openhuman-core/src/agent/tinyagents/host/model_resolver.rs b/crates/openhuman-core/src/agent/tinyagents/host/model_resolver.rsindex 5e245868e3..4c35b3b508 100644--- a/crates/openhuman-core/src/agent/tinyagents/host/model_resolver.rs+++ b/crates/openhuman-core/src/agent/tinyagents/host/model_resolver.rs@@ -118,7 +118,7 @@ const LEAD_DEFAULT_ROLE: &str = "chat";/// already lands.const SUBAGENT_DEFAULT_ROLE: &str = "chat";-/// Whether `lowered` is a retired tier slug (`reasoning-v1`, …) that+/// Whether `lowered` is a retired tier slug (`hint:reasoning`, …) that/// `role_for_model_tier` still recognises as its role, rather than merely/// something that ends in `-v1`. Delegates to the config's own legacy table so/// this adapter never restates it.@@ -131,7 +131,7 @@ fn is_known_model_tier(lowered: &str) -> bool {/// This function *is* the product policy the seam exists to hold:////// * an explicit role wins, after normalisation — a caller may spell it as a-/// plain workload role (`"reasoning"`), as a model tier (`"reasoning-v1"`), or+/// plain workload role (`"reasoning"`), as a model tier (`"hint:reasoning"`), or/// as an agent-definition hint (`"hint:agentic"`), and all three are in live/// use across `agent.toml` files and the channel routes;/// * otherwise the structural lead/subagent split decides, which is the onediff --git a/crates/openhuman-core/src/agent/tinyagents/observability/event_bridge.rs b/crates/openhuman-core/src/agent/tinyagents/observability/event_bridge.rsindex a530e37ae7..0d275ce31c 100644--- a/crates/openhuman-core/src/agent/tinyagents/observability/event_bridge.rs+++ b/crates/openhuman-core/src/agent/tinyagents/observability/event_bridge.rs@@ -306,7 +306,7 @@ impl OpenhumanEventBridge {.pop_front();// Estimate as the floor via the tier-aware `agent::cost` table (managed- // handles like `chat-v1`/`burst-v1` + the vendor catalog + heuristics —+ // handles like `hint:chat`/`hint:burst` + the vendor catalog + heuristics —// the catalog-only lookup priced every managed-tier call as $0); prefer// the provider's own charged amount when it reported one (charged >// estimate precedence, so credit-metered backends surface real billing@@ -422,7 +422,7 @@ impl OpenhumanEventBridge {/// Estimate one call's USD cost. Uses the tier-aware/// [`agent::cost`](crate::agent::cost) table (managed handles- /// like `chat-v1`/`burst-v1` + the vendor catalog + heuristics) — the+ /// like `hint:chat`/`hint:burst` + the vendor catalog + heuristics) — the/// previous `cost::catalog::estimate_cost_usd` only knew concrete vendor/// ids, so every managed-tier call priced as $0 in traces and the footer.pub(super) fn estimate_call_cost(model: &str, usage: &Usage) -> f64 {diff --git a/crates/openhuman-core/src/agent/tinyagents/routes.rs b/crates/openhuman-core/src/agent/tinyagents/routes.rsindex 83dab20a35..22532f19f9 100644--- a/crates/openhuman-core/src/agent/tinyagents/routes.rs+++ b/crates/openhuman-core/src/agent/tinyagents/routes.rs@@ -87,7 +87,7 @@ static OH_WORKLOAD_ROUTER: LazyLock<WorkloadRouter> = LazyLock::new(|| {/// cheaply available at harness-assembly time.////// Today the only reliably-derivable, safe-to-require signal is **vision**: when-/// the turn's effective model is the dedicated `vision-v1` tier the turn was+/// the turn's effective model is the dedicated `hint:vision` tier the turn was/// routed there because it carries image input (this is exactly what the/// `model_vision` selection in `subagent_host/ops/graph.rs` encodes), so we/// require `image_in` — which keeps the primary vision model selectable whilediff --git a/crates/openhuman-core/src/agent/tinyagents/turn_models.rs b/crates/openhuman-core/src/agent/tinyagents/turn_models.rsindex 744b73b503..728c6b37e2 100644--- a/crates/openhuman-core/src/agent/tinyagents/turn_models.rs+++ b/crates/openhuman-core/src/agent/tinyagents/turn_models.rs@@ -96,14 +96,14 @@ impl TurnModels {/// the turn's lead (the depth-0 agent, `is_team_lead`) it always wins. The/// harness forwards the definition's `[model] hint`/`model` as `model_pin`/// on every resolve; honouring it for the lead let the orchestrator's-/// `hint = "coding"` silently reroute every chat turn onto `coding-v1`+/// `hint = "coding"` silently reroute every chat turn onto `hint:coding`/// (DeepSeek V4 Pro) no matter which model the user picked in the UI, since-/// `coding-v1` is always a registered tier route. A pin is advisory+/// `hint:coding` is always a registered tier route. A pin is advisory/// (`ModelResolveRequest::model_pin` docs) and the lead's selection is the/// stronger, more explicit signal.////// Sub-agents (depth > 0) keep resolving their pin against the tier routes —-/// that is how `integrations_agent`'s `hint = "burst"` reaches `burst-v1` —+/// that is how `integrations_agent`'s `hint = "burst"` reaches `hint:burst` —/// and fall back to the primary when the pin names no built route.pub(crate) struct TurnModelResolver {primary: TurnChatModel,diff --git a/crates/openhuman-core/src/agent/triage/routing.rs b/crates/openhuman-core/src/agent/triage/routing.rsindex 1ca80030e7..6b77a66eb2 100644--- a/crates/openhuman-core/src/agent/triage/routing.rs+++ b/crates/openhuman-core/src/agent/triage/routing.rs@@ -132,7 +132,7 @@ fn is_local_cli_route(provider_string: &str) -> bool {/// "Subconscious" provider control governs triage classification.////// The managed model id comes from `make_openhuman_backend` →-/// [`managed_tier_for_role`]`("subconscious")` (i.e. `chat-v1`), the same+/// [`managed_tier_for_role`]`("subconscious")` (i.e. `hint:chat`), the same/// registry the subconscious tick and the agent harness use — NOT from/// `default_model`. So triage stays consistent with the tick: one place pins/// the managed model.diff --git a/crates/openhuman-core/src/config/schema/types/config.rs b/crates/openhuman-core/src/config/schema/types/config.rsindex b169714ecd..b74a7f8bdc 100644--- a/crates/openhuman-core/src/config/schema/types/config.rs+++ b/crates/openhuman-core/src/config/schema/types/config.rs@@ -396,7 +396,7 @@ pub struct Config {pub coding_provider: Option<String>,/// Provider string for the multimodal / image-understanding workload- /// (the vision sub-agent). Managed default resolves to `vision-v1`.+ /// (the vision sub-agent). Managed default resolves to `hint:vision`.#[serde(default)]pub vision_provider: Option<String>,diff --git a/crates/openhuman-core/src/cron/scheduler/agent_run.rs b/crates/openhuman-core/src/cron/scheduler/agent_run.rsindex 7487efa2a5..52a79c1e39 100644--- a/crates/openhuman-core/src/cron/scheduler/agent_run.rs+++ b/crates/openhuman-core/src/cron/scheduler/agent_run.rs@@ -50,7 +50,7 @@ pub(super) async fn run_agent_job(// exact model id. `ModelSpec::resolve` synthesises// `{hint}-v1` for Hint specs, which only the OpenHuman// backend understands as a tier hint — Anthropic and- // every other provider 404 on names like `agentic-v1`.+ // every other provider 404 on names like `hint:agentic`.// Route Hint specs through the per-workload factory so// we get the exact model the user has configured for// that workload, regardless of which provider it livesdiff --git a/crates/openhuman-core/src/flows/tinyflows/caps/agent.rs b/crates/openhuman-core/src/flows/tinyflows/caps/agent.rsindex b81ada4117..f4b13e7d98 100644--- a/crates/openhuman-core/src/flows/tinyflows/caps/agent.rs+++ b/crates/openhuman-core/src/flows/tinyflows/caps/agent.rs@@ -232,7 +232,7 @@ pub(crate) fn node_request_to_prompt(request: &Value) -> String {/// Model precedence for an agent node, returning the raw model string as/// written:-/// 1. node `config.model` — a managed tier (`reasoning-v1`, `chat-v1`, …) or a+/// 1. node `config.model` — a managed tier (`hint:reasoning`, `hint:chat`, …) or a/// `hint:*` alias;/// 2. the registry `entry_model` (custom agents);/// 3. `None` — no override, so the harness definition's / role default stands.@@ -259,12 +259,12 @@ pub(crate) fn resolve_node_model(request: &Value, entry_model: Option<&str>) ->/// value that routes a freshly-built harness [`Agent`](crate::agent::OpenHumanSessionHost)/// to the workload serving that tier. The session builder's `provider_role_for`/// only routes the `hint:<role>` form to a specialised workload, so a bare tier-/// name (`reasoning-v1`) must be normalised to `hint:reasoning` here — otherwise+/// name (`hint:reasoning`) must be normalised to `hint:reasoning` here — otherwise/// it would silently fall through to the chat workload.////// A **raw/BYOK** model id (e.g. `claude-opus-4`) is instead forwarded verbatim:/// wrapping it in `hint:chat` would collapse the user's explicit per-node model-/// onto the managed `chat-v1` tier (issue #4598). Left verbatim, it flows through+/// onto the managed `hint:chat` tier (issue #4598). Left verbatim, it flows through/// the session builder's generic `chat` role — which inherits/// `config.default_model` — to `make_openhuman_backend`, which forwards non-tier/// ids to the backend unchanged. Mirrors the per-node routingdiff --git a/crates/openhuman-core/src/flows/tinyflows/caps/llm.rs b/crates/openhuman-core/src/flows/tinyflows/caps/llm.rsindex 62a04a07c1..151c9c6659 100644--- a/crates/openhuman-core/src/flows/tinyflows/caps/llm.rs+++ b/crates/openhuman-core/src/flows/tinyflows/caps/llm.rs@@ -54,7 +54,7 @@ impl LlmProvider for OpenHumanLlm {.unwrap_or("summarization");// Per-node model selection: an `agent` node may pin a **managed tier**- // (`config.model = "reasoning-v1"` / `"chat-v1"`, or a `hint:*` alias).+ // (`config.model = "hint:reasoning"` / `"hint:chat"`, or a `hint:*` alias).// Map that tier back to the workload role whose provider serves it so// the completion routes to that tier on the managed backend (or the// role's BYOK model) instead of the node's default `role`. Unknown /diff --git a/crates/openhuman-core/src/inference/README.md b/crates/openhuman-core/src/inference/README.mdindex 2fd5dae44a..b4c783d22c 100644--- a/crates/openhuman-core/src/inference/README.md+++ b/crates/openhuman-core/src/inference/README.md@@ -14,7 +14,7 @@ compatibility aliases in `crates/openhuman-core/src/core/legacy_aliases.rs`.- Manage the local AI runtime: detect/spawn/adopt `ollama serve`, probe LM Studio over HTTP (never spawned), select OpenHuman-owned artifact paths, invoke TinyInference's Ollama/Piper installers, and enforce a minimum-context-window floor. Local STT (whisper.cpp) was retired; STT is now cloud/engine-configurable via `voice_server.stt_engine` (see `config/migrations/retire_local_whisper_stt.rs`).- Provide chat, vision (multimodal), summarization, embeddings, sentiment, and "should react" inference operations.- Preserve product-specific config-rejection, billing, and authentication policy while TinyInference owns provider-failure classification and TinyAgents owns model-call retry execution.-- Resolve abstract tier names (`reasoning-v1`, `agentic-v1`, `coding-v1`, etc.) through the TinyAgents `ModelRouter` in `crates/openhuman-core/src/agent/tinyagents/routes.rs` and the provider factory here.+- Resolve abstract tier names (`hint:reasoning`, `hint:agentic`, `hint:coding`, etc.) through the TinyAgents `ModelRouter` in `crates/openhuman-core/src/agent/tinyagents/routes.rs` and the provider factory here.- Run ChatGPT/Codex OAuth (PKCE) for the `openai` cloud slug and persist tokens in the encrypted auth-profile store.- Expose an OpenAI-compatible `/v1/*` HTTP endpoint guarded by a stable user-managed external bearer.- Detect device hardware profile and recommend/apply local model presets/tiers.diff --git a/crates/openhuman-core/src/inference/provider/factory/managed_backend.rs b/crates/openhuman-core/src/inference/provider/factory/managed_backend.rsindex 7cf69fa832..48e65391da 100644--- a/crates/openhuman-core/src/inference/provider/factory/managed_backend.rs+++ b/crates/openhuman-core/src/inference/provider/factory/managed_backend.rs@@ -4,7 +4,7 @@use super::*;/// The managed summarization model. Historically a dedicated-/// `summarization-v1` tier; now the managed default like every other role.+/// `hint:summarization` tier; now the managed default like every other role./// Kept as a named seam because the memory tree, the chat-turn payload/// summarizer and the `extract` sub-agent all read it.pub(crate) fn summarization_tier_model() -> &'static str {@@ -85,7 +85,7 @@ pub(super) fn resolve_managed_backend_with_model_override(// `model` is the managed default here, never a hint or a retired tier// slug; a caller's own `hint:*` / tier value only ever arrives through// `model_override`, translated below.- // An override that is itself a managed alias (`hint:coding`, `chat-v1`)+ // An override that is itself a managed alias (`hint:coding`, `hint:chat`)// means "this role on the managed backend" — the default model. A concrete// id (`openrouter/deepseek/deepseek-v4-pro`) is forwarded verbatim; the// backend is authoritative over its validity (issue #4598).diff --git a/crates/openhuman-core/src/inference/provider/factory/routing.rs b/crates/openhuman-core/src/inference/provider/factory/routing.rsindex 96772e5666..12818c9c7d 100644--- a/crates/openhuman-core/src/inference/provider/factory/routing.rs+++ b/crates/openhuman-core/src/inference/provider/factory/routing.rs@@ -18,10 +18,10 @@ pub(super) fn configured_route_for_role<'a>(role: &str, config: &'a Config) -> O"coding" => config.coding_provider.as_deref(),// Burst uses the existing Agentic workload route for BYOK/local parity.// If unset, it falls through to the managed backend and is pinned to- // `burst-v1` by `managed_tier_for_role`.+ // `hint:burst` by `managed_tier_for_role`."burst" => config.agentic_provider.as_deref(),// Tier-specific multimodal model; when unset it falls through to- // `primary_cloud` (→ managed `vision-v1`), as every unset route now does.+ // `primary_cloud` (→ managed `hint:vision`), as every unset route now does."vision" => config.vision_provider.as_deref(),// `memory_provider` covers both the memory-tree extract path and// the summarizer sub-agent (whose definition declaresdiff --git a/crates/openhuman-core/src/inference/provider/factory/tiers.rs b/crates/openhuman-core/src/inference/provider/factory/tiers.rsindex 3401bf6522..ac74a63a33 100644--- a/crates/openhuman-core/src/inference/provider/factory/tiers.rs+++ b/crates/openhuman-core/src/inference/provider/factory/tiers.rs@@ -5,7 +5,7 @@//! (`chat`, `reasoning`, `coding`, …) remain the routing vocabulary — a role//! picks its `*_provider` route — but on the managed backend every role runs on//! one concrete model: the pinned default (`config.default_model`) or-//! [`MODEL_MANAGED_DEFAULT`]. The old `chat-v1`-style tier slugs are accepted+//! [`MODEL_MANAGED_DEFAULT`]. The old `hint:chat`-style tier slugs are accepted//! as aliases of their role so un-migrated callers keep routing.use super::*;diff --git a/crates/openhuman-core/src/inference/provider/fallback_diagnostics.rs b/crates/openhuman-core/src/inference/provider/fallback_diagnostics.rsindex 8be894da95..d560df9026 100644--- a/crates/openhuman-core/src/inference/provider/fallback_diagnostics.rs+++ b/crates/openhuman-core/src/inference/provider/fallback_diagnostics.rs@@ -12,8 +12,8 @@//! [`super::factory::provider_for_role`] deliberately routes the background//! roles (`vision`, `embeddings`, `memory`, `heartbeat`, `learning`,//! `subconscious`, `agentic`, `burst`) to the primary cloud provider when their-//! own route is unset: they run tier-specific models (`vision-v1`,-//! `summarization-v1`, …) that local runtimes and BYOK slugs do not serve. A+//! own route is unset: they run tier-specific models (`hint:vision`,+//! `hint:summarization`, …) that local runtimes and BYOK slugs do not serve. A//! user on a local chat model with a managed subscription genuinely wants those//! workloads on the cloud, so the fallback must stay.//!diff --git a/crates/openhuman-core/src/inference/provider/ops/models/catalog_listing.rs b/crates/openhuman-core/src/inference/provider/ops/models/catalog_listing.rsindex 7ef11265e4..ecd8b9504b 100644--- a/crates/openhuman-core/src/inference/provider/ops/models/catalog_listing.rs+++ b/crates/openhuman-core/src/inference/provider/ops/models/catalog_listing.rs@@ -124,7 +124,7 @@ pub async fn list_configured_models_from_config(// request would go out unauthenticated (401).//// `?catalog=openrouter` is required: without it the backend returns only- // the curated tier list (chat-v1, reasoning-v1, ...), which is deliberately+ // the curated tier list (hint:chat, hint:reasoning, ...), which is deliberately// byte-identical to the legacy payload. The catalog listing is gated// server-side by OPENROUTER_PASSTHROUGH_ENABLED and returns an empty set// when the passthrough is off, so this degrades to "no models" rather thandiff --git a/crates/openhuman-core/src/platform/cost/route.rs b/crates/openhuman-core/src/platform/cost/route.rsindex 27dfe65fc3..5f833b5274 100644--- a/crates/openhuman-core/src/platform/cost/route.rs+++ b/crates/openhuman-core/src/platform/cost/route.rs@@ -37,7 +37,7 @@ impl CostRoute {}}-/// The retired managed tier slugs (`chat-v1`, …). Older cost records still+/// The retired managed tier slugs (`hint:chat`, …). Older cost records still/// carry them, and they were only ever served — and billed — by the managed/// backend, so they classify as managed. A BYOK provider is always addressed/// by its real model id (`minimax/minimax-m3`, `llama3:8b`), never by a slug.@@ -96,8 +96,8 @@ fn is_managed_passthrough_id(normalized: &str) -> bool {////// Stripping loops until neither prefix applies, so the two decorations are/// **order-independent**. A single fixed-order pass classified-/// `openhuman/hint:chat-v1` as BYOK (it stripped `openhuman/`, leaving-/// `hint:chat-v1`, which is not a managed slug) while `hint:openhuman/chat-v1`+/// `openhuman/hint:hint:chat` as BYOK (it stripped `openhuman/`, leaving+/// `hint:hint:chat`, which is not a managed slug) while `hint:openhuman/hint:chat`/// classified as Managed — meaning managed spend could silently stop counting/// toward the cap depending only on which decoration a recording site applied/// first.diff --git a/crates/openhuman-core/src/web_chat/session.rs b/crates/openhuman-core/src/web_chat/session.rsindex eb45d07937..5d9452d490 100644--- a/crates/openhuman-core/src/web_chat/session.rs+++ b/crates/openhuman-core/src/web_chat/session.rs@@ -32,7 +32,7 @@ pub(crate) fn normalize_model_override(model_override: Option<String>) -> Option}pub(crate) fn provider_role_for_model_override(model_override: Option<&str>) -> &'static str {- // A role alias (`hint:coding`) or a retired tier slug (`coding-v1`) picks+ // A role alias (`hint:coding`) or a retired tier slug (`hint:coding`) picks// that workload's route; a concrete model id rides the chat route.match model_override.map(str::trim) {Some(value) if value.starts_with("hint:") || crate::config::is_legacy_tier_model(value) => {