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
docs: update test-coverage matrix to reflect retired local AI runtime features
Steven Enamakel45d1ccf6b0f2
diff --git a/docs/TEST-COVERAGE-MATRIX.md b/docs/TEST-COVERAGE-MATRIX.mdindex 224f771037..cadec21165 100644--- a/docs/TEST-COVERAGE-MATRIX.md+++ b/docs/TEST-COVERAGE-MATRIX.md@@ -119,50 +119,52 @@ Canonical mapping of every product feature to its test source(s). Drives gap-fil## 3. Local AI Runtime (Ollama + LM Studio)+Local inference runs against a runtime the user installs, starts, and pulls models into; OpenHuman only calls the endpoint (`crates/openhuman-core/src/inference/provider/factory/local_runtime.rs`, host bindings in `crates/openhuman-core/src/inference/host_runtime/`). Rows for model download, runtime install, daemon lifecycle, RAM tiers, and tier presets are kept for catalog continuity and marked **Retired**.+### 3.1 Model Management-| ID | Feature | Layer | Test path(s) | Status | Notes |-| ----- | ------------------------------------- | ----- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------ | -------------------------------------------------------------------------------------------------------------------- |-| 3.1.1 | Model Detection | RU+RI | `tests/json_rpc_e2e.rs` (`json_rpc_local_ai_lm_studio_config_diagnostics_and_prompt`), `vendor/tinyagents/vendor/tinyinference/crates/tinyinference-local/src/models.rs` | π‘ | Was β citing `local-model-runtime.spec.ts`. **That citation was false**: the spec was `describe.skip`ped and drove a panel deleted by `0ec68613af`; it now asserts only the route redirect. Detection itself is covered at RI; the model-list UI it used to drive no longer exists. β οΈ **`tinyinference-local` is not built by any OpenHuman lane** β `vendor` is in the root `[workspace] exclude` and no CI step names the package, so its unit tests are cited history, not executed coverage. |-| 3.1.2 | Model Download \& Installation | RI | `tests/raw_coverage/inference_local_services_round21_raw_coverage_e2e.rs` (`local_ai_download_asset`, `local_ai_downloads_progress`) | π‘ | Was β citing `local-model-runtime.spec.ts`, which never ran an assertion. The download RPCs are covered over loopback mocks at RI; **there is no user-facing download control** since `0ec68613af`, only `LocalAIDownloadSnackbar`. |-| 3.1.3 | Model Version Handling | RU | `crates/openhuman-core/src/inference/model_ids.rs` | β | |-| 3.1.4 | LM Studio Model Discovery | RU+RI | `crates/openhuman-core/src/inference/local/service/ollama_admin_tests.rs`, `tests/json_rpc_e2e.rs` | β | Uses LM Studio's OpenAI-compatible `/v1/models` surface |-| 3.1.5 | Model Context-Window Requirement Gate | RU | `vendor/tinyagents/vendor/tinyinference/crates/tinyinference-local/src/model_requirements.rs`, `vendor/tinyagents/vendor/tinyinference/crates/tinyinference-local/src/ollama.rs`, `vendor/tinyagents/vendor/tinyinference/crates/tinyinference-local/src/service/ollama_admin_tests.rs` | π‘ | Rejects Ollama models whose native context window is below the memory-layer minimum (`local_ai.model_context_check`). **Paths corrected**: the previous `crates/openhuman-core/src/inference/local/...` citations have not existed since the runtime was extracted upstream. β οΈ **`tinyinference-local` is not built by any OpenHuman lane** β `vendor` is in the root `[workspace] exclude` and no CI step names the package, so its unit tests are cited history, not executed coverage. The frontend unit test (`ModelStatusSection.test.tsx`) was removed with the local-model debug panel (`0ec68613af`) and has no VU replacement β and the panel it tested is gone, so a VU replacement is not the right fix. |+| ID | Feature | Layer | Test path(s) | Status | Notes |+| ----- | ------------------------------------- | ----- | ------------ | ------ | ----- |+| 3.1.1 | Model Detection | RU+RI | `tests/json_rpc_e2e.rs` (`json_rpc_local_ai_lm_studio_config_diagnostics_and_prompt`), `vendor/tinyagents/vendor/tinyinference/crates/tinyinference-local/src/models.rs` | π‘ | Detection here means listing the models the user's runtime already has (the provider model picker). The old `local-model-runtime.spec.ts` citation was false: the spec was skipped and now asserts only the legacy route redirect. β οΈ **`tinyinference-local` is not built by any OpenHuman lane** β `vendor` is in the root `[workspace] exclude` and no CI step names the package, so its unit tests are cited history, not executed coverage. |+| 3.1.2 | Model Download \& Installation | β | _retired_ | π« | **Retired.** OpenHuman no longer downloads models, installs runtimes, manages the Ollama daemon, or picks models by RAM tier: the user runs Ollama / LM Studio / MLX / an OpenAI-compatible server, pulls models themselves, and adds the endpoint as a provider. The download RPCs and `LocalAIDownloadSnackbar` were removed; users run `ollama pull <model>` (or load the model in LM Studio). |+| 3.1.3 | Model Version Handling | RU | `crates/openhuman-core/src/config/schema/types/model_ids.rs` | β | **Path corrected** (was `crates/openhuman-core/src/inference/model_ids.rs`). |+| 3.1.4 | LM Studio Model Discovery | RU+RI | `vendor/tinyagents/vendor/tinyinference/crates/tinyinference-local/src/service/ollama_admin_tests.rs` (LM Studio cases), `tests/json_rpc_e2e.rs` | β | Uses LM Studio's OpenAI-compatible `/v1/models` surface. **Path corrected** (was `crates/openhuman-core/src/inference/local/service/ollama_admin_tests.rs`, which moved upstream with the runtime). β οΈ **`tinyinference-local` is not built by any OpenHuman lane** β `vendor` is in the root `[workspace] exclude` and no CI step names the package, so its unit tests are cited history, not executed coverage. |+| 3.1.5 | Model Context-Window Requirement Gate | RU | `vendor/tinyagents/vendor/tinyinference/crates/tinyinference-local/src/model_requirements.rs`, `vendor/tinyagents/vendor/tinyinference/crates/tinyinference-local/src/ollama.rs` | π‘ | Rejects Ollama models whose native context window is below the memory-layer minimum (`local_ai.model_context_check`). The model is one the user pulled; OpenHuman no longer suggests or pulls a replacement. β οΈ **`tinyinference-local` is not built by any OpenHuman lane** β `vendor` is in the root `[workspace] exclude` and no CI step names the package, so its unit tests are cited history, not executed coverage. |### 3.2 Runtime Execution-| ID | Feature | Layer | Test path(s) | Status | Notes |-| ----- | ---------------------------------- | ----- | ------------------------------------------------------------------------------- | ------ | -------------------------------------------------------- |-| 3.2.1 | Local Inference Execution | RU+RI | `crates/openhuman-core/src/inference/provider/factory_crate_native_tests.rs`, `crates/openhuman-core/src/flows/ops_agent_binding_tests.rs`, `tests/json_rpc_e2e.rs` | β | Caller-owned model construction and local agent-flow readiness work without an OpenHuman session; cloud session refusal is retained. **`local-model-runtime.spec.ts` dropped from the citation** β it was skipped and asserted nothing; the remaining RU+RI evidence carries the row on its own. |-| 3.2.2 | Resource Handling (CPU/GPU/Memory) | RU | `vendor/tinyagents/vendor/tinyinference/crates/tinyinference-local/src/device.rs`, `crates/openhuman-core/src/config/ops/local_ai_presets_tests.rs` | π‘ | **Path corrected** (was `crates/openhuman-core/src/inference/device.rs`, which does not exist). β οΈ **`tinyinference-local` is not built by any OpenHuman lane** β `vendor` is in the root `[workspace] exclude` and no CI step names the package, so its unit tests are cited history, not executed coverage. OpenHuman-side consumption is now covered by `local_ai_presets_tests.rs`; runtime constraint enforcement remains manual. |-| 3.2.3 | Runtime Failure Handling | RU+RI | `vendor/tinyagents/vendor/tinyinference/crates/tinyinference-local/src/service/ollama_admin_adoption_and_recovery_tests.rs` (owned-spawn shutdown, external adoption, stale-marker crash recovery) | π‘ | Was β citing `local-model-runtime.spec.ts`, which was skipped. the tinyinference-local lifecycle tests cover the daemon-ownership failure modes; the UI-level "runtime unavailable" guidance it used to assert has no surface left to assert against. |-| 3.2.4 | LM Studio Chat Completions | RU+RI | `crates/openhuman-core/src/inference/local/service/public_infer_tests.rs`, `tests/json_rpc_e2e.rs` | β | Covers prompt/chat success and non-success status errors |+| ID | Feature | Layer | Test path(s) | Status | Notes |+| ----- | ---------------------------------- | ----- | ------------ | ------ | ----- |+| 3.2.1 | Local Inference Execution | RU+RI | `crates/openhuman-core/src/inference/provider/factory_crate_native_tests.rs`, `crates/openhuman-core/src/inference/host_runtime/ops_tests.rs`, `crates/openhuman-core/src/flows/ops_agent_binding_tests.rs`, `tests/json_rpc_e2e.rs` | β | Caller-owned model construction and local agent-flow readiness work without an OpenHuman session; cloud session refusal is retained. `host_runtime/ops_tests.rs` pins the disabled-runtime refusals. |+| 3.2.2 | Resource Handling (CPU/GPU/Memory) | β | _retired_ | π« | **Retired.** OpenHuman no longer downloads models, installs runtimes, manages the Ollama daemon, or picks models by RAM tier: the user runs Ollama / LM Studio / MLX / an OpenAI-compatible server, pulls models themselves, and adds the endpoint as a provider. Hardware sizing is the user's runtime's concern; `device.rs`-driven tier selection and `local_ai_presets` are no longer product behavior. |+| 3.2.3 | Runtime Failure Handling | VU | `app/src/components/settings/panels/ai/` (provider add-time probe) | π‘ | Daemon lifecycle rows (owned spawn, shutdown, adoption, stale-marker recovery) are **retired** with Ollama daemon management. What remains is an unreachable user-run runtime: adding the provider probes its model list and rolls the save back on failure. No dedicated assertion yet. |+| 3.2.4 | LM Studio Chat Completions | RU+RI | `vendor/tinyagents/vendor/tinyinference/crates/tinyinference-local/src/service/public_infer_tests.rs`, `tests/json_rpc_e2e.rs` | β | Covers prompt/chat success and non-success status errors. **Path corrected** (was `crates/openhuman-core/src/inference/local/service/public_infer_tests.rs`). β οΈ **`tinyinference-local` is not built by any OpenHuman lane** β `vendor` is in the root `[workspace] exclude` and no CI step names the package, so its unit tests are cited history, not executed coverage. |### 3.3 Runtime Configuration#### 3.3.1 RAM Allocation Control-| ID | Feature | Layer | Test path(s) | Status | Notes |-| ------- | -------------------------- | ----- | -------------------------------------------- | ------ | ----------------------------------- |-| 3.3.1.1 | RAM Limit Selection | RU | `crates/openhuman-core/src/config/ops/local_ai_presets_tests.rs` (`recommended_tier_tracks_host_ram_at_every_band_boundary`) | π‘ | Was VU/π‘ "UI present; assertion shallow" citing `app/src/components/settings/`. **There is no RAM-limit control in the product** β no `ram_limit`/`max_ram` field exists in `crates/` or `app/src/`. What a user actually selects is a *model tier*, and every band boundary of the RAMβtier mapping is now pinned. |-| 3.3.1.2 | RAM Availability Detection | RU+RI | `vendor/tinyagents/vendor/tinyinference/crates/tinyinference-local/src/device.rs`, `tests/json_rpc_e2e.rs` (`inference_device_profile` asserts `total_ram_bytes > 0`) | π‘ | Was β citing `crates/openhuman-core/src/inference/device.rs`, **which does not exist**. β οΈ **`tinyinference-local` is not built by any OpenHuman lane** β `vendor` is in the root `[workspace] exclude` and no CI step names the package, so its unit tests are cited history, not executed coverage. The RPC asserts only that detection returns a positive figure β it reads the real host, so no threshold can be exercised there. |-| 3.3.1.3 | Over-Allocation Prevention | RU | `crates/openhuman-core/src/config/ops/local_ai_presets_tests.rs` (`a_host_below_the_ram_floor_is_not_offered_local_inference`) | β | Was π‘ "guard exists; explicit test pending" at a dead path. A synthetic sub-floor `DeviceProfile` must fail `device_supports_local_ai` and select cloud fallback; the floor is read from `MIN_RAM_GB_FOR_LOCAL_AI`, not hard-coded. |-| 3.3.1.4 | Under-Allocation Handling | RU | `crates/openhuman-core/src/config/ops/local_ai_presets_tests.rs` (`a_host_at_the_ram_floor_is_offered_local_inference`) | β | Was π‘ at a dead path. The mirror case: a host **at** the inclusive floor qualifies and must not be pushed to cloud. Kept as a separate test so a regression that refuses every host fails one and passes the other. |+| ID | Feature | Layer | Test path(s) | Status | Notes |+| ------- | -------------------------- | ----- | ------------ | ------ | ----- |+| 3.3.1.1 | RAM Limit Selection | β | _retired_ | π« | **Retired.** OpenHuman no longer downloads models, installs runtimes, manages the Ollama daemon, or picks models by RAM tier: the user runs Ollama / LM Studio / MLX / an OpenAI-compatible server, pulls models themselves, and adds the endpoint as a provider. There was never a RAM-limit control; the RAMβtier mapping it stood for is gone. |+| 3.3.1.2 | RAM Availability Detection | β | _retired_ | π« | **Retired.** OpenHuman no longer downloads models, installs runtimes, manages the Ollama daemon, or picks models by RAM tier: the user runs Ollama / LM Studio / MLX / an OpenAI-compatible server, pulls models themselves, and adds the endpoint as a provider. OpenHuman no longer reads host RAM to gate or size local inference. |+| 3.3.1.3 | Over-Allocation Prevention | β | _retired_ | π« | **Retired.** OpenHuman no longer downloads models, installs runtimes, manages the Ollama daemon, or picks models by RAM tier: the user runs Ollama / LM Studio / MLX / an OpenAI-compatible server, pulls models themselves, and adds the endpoint as a provider. The `MIN_RAM_GB_FOR_LOCAL_AI` floor no longer decides whether local inference is offered. |+| 3.3.1.4 | Under-Allocation Handling | β | _retired_ | π« | **Retired.** OpenHuman no longer downloads models, installs runtimes, manages the Ollama daemon, or picks models by RAM tier: the user runs Ollama / LM Studio / MLX / an OpenAI-compatible server, pulls models themselves, and adds the endpoint as a provider. Mirror of 3.3.1.3. |#### 3.3.2 Dynamic Resource Adjustment-| ID | Feature | Layer | Test path(s) | Status | Notes |-| ------- | ------------------------------- | ----- | ------------ | ------ | ------------------ |-| 3.3.2.1 | Runtime Scaling Based on Load | RU | _not implemented_ | π« | Was β "track in follow-up". **No load-driven scaling exists anywhere in the tree** β nothing reads load to size a runtime. Catalog residue, not a coverage gap; reinstate as β if the feature is built. |-| 3.3.2.2 | Model Switching Based on Memory | RU+RI | `crates/openhuman-core/src/config/ops/local_ai_presets_tests.rs`, `tests/json_rpc_e2e.rs` (`inference_apply_preset` β `inference_presets` round-trip) | β | Was β "_missing_". **It was implemented and covered, at paths this matrix did not cite**: RAM β `recommend_tier` β `apply_preset_to_config`, reachable over RPC. Every band boundary and the invalid-tier rejection are now pinned. |+| ID | Feature | Layer | Test path(s) | Status | Notes |+| ------- | ------------------------------- | ----- | ------------ | ------ | ----- |+| 3.3.2.1 | Runtime Scaling Based on Load | β | _retired_ | π« | Never implemented; with the runtime now user-run, OpenHuman has nothing to scale. |+| 3.3.2.2 | Model Switching Based on Memory | β | _retired_ | π« | **Retired.** OpenHuman no longer downloads models, installs runtimes, manages the Ollama daemon, or picks models by RAM tier: the user runs Ollama / LM Studio / MLX / an OpenAI-compatible server, pulls models themselves, and adds the endpoint as a provider. RAM β `recommend_tier` β `apply_preset_to_config` is gone; the user picks the model. |#### 3.3.3 Configuration Persistence-| ID | Feature | Layer | Test path(s) | Status | Notes |-| ------- | ------------------------------ | -------- | ---------------------------------------------------------------------------------------------------------- | ------ | ------------------------------------------------------ |-| 3.3.3.1 | Save RAM Settings | RU+RI | `crates/openhuman-core/src/config/ops/local_ai_presets_tests.rs` (`applying_a_preset_round_trips_through_the_config_for_every_real_tier`), `tests/json_rpc_e2e.rs` | β | Was β "_missing_, settings slice". There is no RAM setting to save; what persists is the **tier preset**. The RPC round-trip was already covered for one tier; all five real tiers now round-trip through `apply_preset_to_config` β `current_tier_from_config`. |-| 3.3.3.2 | Apply on Restart | RI (needed) | _not written β see notes_ | π‘ | Was π‘ WD citing `local-model-runtime.spec.ts` ("restart not exercised"). **No current runner can restart the app mid-spec**: WDIO shares one Appium session and wipes in place (`app/test/e2e/helpers/reset-app.ts:5`), and the Playwright lane starts one core per shard. Only an RI target can hold two core lifetimes, and none does today β this needs harness support before a spec can be written honestly. |-| 3.3.3.3 | Reset to Default | RU | `crates/openhuman-core/src/config/ops/local_ai_presets_tests.rs` (`the_default_local_ai_config_already_matches_the_mvp_preset_tier`) | π‘ | Was β. There is no per-setting reset control; the reachable default is `LocalAiConfig::default()`, which a fresh install and a full data reset both land on. Pinned β and it is **not** `Custom`: the default ids match the `Ram2To4Gb` preset exactly, which is also `MVP_MAX_TIER`. |+| ID | Feature | Layer | Test path(s) | Status | Notes |+| ------- | ------------------------------ | -------- | ------------ | ------ | ----- |+| 3.3.3.1 | Save RAM Settings | β | _retired_ | π« | **Retired.** OpenHuman no longer downloads models, installs runtimes, manages the Ollama daemon, or picks models by RAM tier: the user runs Ollama / LM Studio / MLX / an OpenAI-compatible server, pulls models themselves, and adds the endpoint as a provider. There is no RAM setting or tier preset to persist. |+| 3.3.3.2 | Apply on Restart | β | _retired_ | π« | **Retired.** OpenHuman no longer downloads models, installs runtimes, manages the Ollama daemon, or picks models by RAM tier: the user runs Ollama / LM Studio / MLX / an OpenAI-compatible server, pulls models themselves, and adds the endpoint as a provider. The row tracked RAM/tier settings surviving a restart. Endpoint and provider persistence is covered by 3.3.3.4. |+| 3.3.3.3 | Reset to Default | β | _retired_ | π« | **Retired.** OpenHuman no longer downloads models, installs runtimes, manages the Ollama daemon, or picks models by RAM tier: the user runs Ollama / LM Studio / MLX / an OpenAI-compatible server, pulls models themselves, and adds the endpoint as a provider. The reachable default is `LocalAiConfig::default()` (local AI off); there is no preset tier to reset to. || 3.3.3.4 | Provider Selection Persistence | RU+RI+VU | `crates/openhuman-core/src/config/ops_tests.rs`, `tests/json_rpc_e2e.rs`, `app/src/utils/tauriCommands/config.test.ts` | β | Covers `lm_studio` normalization and config round-trip |---