Skip to content

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

chore: files changed CONTRIBUTING.md,crates/openhuman-core/src/agent/task_dispatcher/README.md,crate

Steven Enamakel5c46dcce296d
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index c5c0a34a54..4e23b4517e 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -121,7 +121,7 @@ clang -v
- **Web-only development** needs Node, pnpm, and the Rust toolchain present in the repo. You can usually ignore desktop-only system packages.
- **Desktop development** uses Tauri with Wry as its webview on macOS and Linux. Windows additionally requires the CEF toolchain staged by `scripts/run-dev-win.sh`. Use `pnpm --filter openhuman-app dev:app` on macOS and `pnpm dev:app:win` on native Windows.
- **Linux desktop builds** require extra system packages beyond Node/Rust. Follow the distro-specific Tauri dependency list before running desktop commands, then use the OpenHuman scripts below. For deeper platform troubleshooting, see [`gitbooks/developing/getting-set-up.md`](gitbooks/developing/getting-set-up.md).
-- **Windows 10 WSL + classic X11 forwarding** is unsupported for the desktop app. The Tauri/CEF stack can hang, render blank windows, or crash before useful app logs are available. Use native Windows development, or Windows 11 WSLg if you need a Linux GUI workflow. OpenHuman logs a startup warning when it detects WSL with `DISPLAY` set but no `WAYLAND_DISPLAY`/WSLg markers.
+- **Windows 10 WSL + classic X11 forwarding** is unsupported for the desktop app. The Tauri/CEF stack on Windows can hang, render blank windows, or crash before useful app logs are available. Use native Windows development, or Windows 11 WSLg if you need a Linux GUI workflow. OpenHuman logs a startup warning when it detects WSL with `DISPLAY` set but no `WAYLAND_DISPLAY`/WSLg markers.
- **Windows desktop builds** additionally require Visual Studio C++ Build Tools (MSVC v143), LLVM/Clang, CMake, and Ninja. See [Windows-specific setup](#windows-specific-setup) for the full list and install order.
- **macOS desktop builds** require a one-time codesigning cert. After cloning, run `bash scripts/setup-dev-codesign.sh` once to create the local "OpenHuman Dev Signer" self-signed certificate that Tauri uses when bundling dev builds. Without it, `pnpm --filter openhuman-app dev:app` fails at the bundle/sign step with `OpenHuman Dev Signer: no identity found`.
- **Skills development** happens in the separate [`tinyhumansai/openhuman-skills`](https://github.com/tinyhumansai/openhuman-skills) repository. This repo consumes built skill bundles from GitHub or a local override path; it does not vendor the skills source as a submodule.
diff --git a/crates/openhuman-core/src/agent/task_dispatcher/README.md b/crates/openhuman-core/src/agent/task_dispatcher/README.md
index 6e262f1ec4..abcae43a07 100644
--- a/crates/openhuman-core/src/agent/task_dispatcher/README.md
+++ b/crates/openhuman-core/src/agent/task_dispatcher/README.md
@@ -10,14 +10,19 @@ Two dispatch paths converge on `dispatch_card`, so the claim is what keeps
them from racing:
- the **board poller** (`poller.rs`, `start_board_poller`) — a periodic sweep
- spawned from `channels/runtime/startup_part_01.rs`, catching cards that
- arrive without a proactive trigger.
-- **proactive triage** (`agent::triage::escalation`) — dispatches a card once
- it has decided to act on it.
+ catching cards that arrive without a proactive trigger. Spawned from both
+ `core/runtime/services.rs` (under `ServiceSet::proactive_task_pollers`) and
+ `channels/runtime/startup_part_01.rs`; a `OnceLock` makes the second call a
+ no-op.
+- **proactive triage** (`agent::triage::escalation`, `apply_decision` →
+ `dispatch_linked_card`) — dispatches a card once triage has decided to act
+ on it.
-The dispatcher only ever sweeps the `user-tasks` and `task-sources` boards. It
-never sweeps conversation-thread boards; a chat-turn plan is gated on the turn
-itself instead (see `agent::plan_review`).
+The poller sweeps only two boards: `user-tasks` (always, but only cards with
+an `assigned_agent`, so a human's manually-created card is never auto-run)
+and `task-sources` (only when `config.task_sources.enabled`). It never sweeps
+conversation-thread boards; a chat-turn plan is gated on the turn itself
+instead (see `agent::plan_review`).
## Files
@@ -41,7 +46,8 @@ itself instead (see `agent::plan_review`).
names (`memory_recall`, `update_task`).
- `registry.rs` — in-flight run registry keyed by session `thread_id`;
`cancel_session` / `cancel_session_scoped` abort a detached run and drive its
- cancellation write-back for the web-channel Cancel button.
+ cancellation write-back. `web_chat` calls the scoped variant as the
+ `channel_web_cancel` fallback when no web-channel turn matched the thread.
- `types.rs` — `DispatchOutcome` (`Running` / `AwaitingApproval`),
`ResolvedExecutor`, and the crate-backed `ActiveRun` alias.
diff --git a/crates/openhuman-core/src/security/prompt_injection/README.md b/crates/openhuman-core/src/security/prompt_injection/README.md
index 2281902770..c9947c6cb6 100644
--- a/crates/openhuman-core/src/security/prompt_injection/README.md
+++ b/crates/openhuman-core/src/security/prompt_injection/README.md
@@ -16,7 +16,7 @@ Centralized, deterministic prompt-injection screening. Given a user-provided pro
| --- | --- |
| `crates/openhuman-core/src/security/prompt_injection/mod.rs` | Module docstring + re-exports of the public surface. No logic. |
| `crates/openhuman-core/src/security/prompt_injection/detector.rs` | All logic: types, normalization, detection rules + `RegexSet`, heuristics, optional classifier, scoring/thresholds, and the `enforce_prompt_input` entry point. |
-| `crates/openhuman-core/src/security/prompt_injection/tests.rs` | `#[cfg(test)]` suite (~40 cases) covering allow/review/block verdicts, obfuscation handling, and known false-positive regressions (TAURI-140, issue #1940). |
+| `crates/openhuman-core/src/security/prompt_injection/prompt_injection_tests.rs` | `#[cfg(test)]` suite (~40 cases) covering allow/review/block verdicts, obfuscation handling, and known false-positive regressions (TAURI-140, issue #1940). |
## Public surface
diff --git a/docs/TEST-COVERAGE-MATRIX.md b/docs/TEST-COVERAGE-MATRIX.md
index 6c2543b29c..e0486b429f 100644
--- a/docs/TEST-COVERAGE-MATRIX.md
+++ b/docs/TEST-COVERAGE-MATRIX.md
@@ -44,7 +44,7 @@ Canonical mapping of every product feature to its test source(s). Drives gap-fil
| 0.2.2 | Gatekeeper Validation | MS | release-manual-smoke | 🚫 | OS-level signature check |
| 0.2.3 | Code Signing Verification | MS | release-manual-smoke | 🚫 | `codesign --verify` capture in checklist |
| 0.2.4 | First Launch Permissions Prompt | MS | release-manual-smoke | 🚫 | TCC prompts non-driver-automatable |
-| 0.2.5 | First-Run Harness Init (Python/spaCy/Node) | RU+RI+VU | `crates/openhuman-core/src/agent/harness_init/*` (`#[cfg(test)]`), `crates/openhuman-core/src/runtime/python/downloader_tests.rs`, `tests/json_rpc_e2e.rs`, `app/src/services/harnessInitService.test.ts`, `app/src/components/InitProgressScreen/InitProgressScreen.test.tsx` | ✅ | Eager startup provisioning + `harness_init_status`/`_run` RPC + blocking init overlay; managed CPython pinned to 3.13.x. Live download/model fetch is `MS` (network) |
+| 0.2.5 | First-Run Harness Init (Python/spaCy/Node) | RU+RI+VU | `crates/openhuman-core/src/agent/harness_init/*` (`#[cfg(test)]`), `crates/openhuman-core/src/runtime/python/bootstrap_tests.rs`, `tests/json_rpc_e2e.rs`, `app/src/services/harnessInitService.test.ts`, `app/src/components/InitProgressScreen/InitProgressScreen.test.tsx` | ✅ | Eager startup provisioning + `harness_init_status`/`_run` RPC + blocking init overlay; managed CPython pinned to 3.13.x. Live download/model fetch is `MS` (network) |
### 0.3 Updates & Reinstallation
@@ -124,8 +124,8 @@ Canonical mapping of every product feature to its test source(s). Drives gap-fil
| ----- | ------------------------------------- | ----- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------ | -------------------------------------------------------------------------------------------------------------------- |
| 3.1.1 | Model Detection | RU+WD | `crates/openhuman-core/src/local_ai/`, `local-model-runtime.spec.ts` | ✅ | |
| 3.1.2 | Model Download & Installation | WD | `local-model-runtime.spec.ts` | ✅ | |
-| 3.1.3 | Model Version Handling | RU | `crates/openhuman-core/src/local_ai/model_ids.rs` | ✅ | |
-| 3.1.4 | LM Studio Model Discovery | RU+RI | `crates/openhuman-core/src/local_ai/service/ollama_admin_tests.rs`, `tests/json_rpc_e2e.rs` | ✅ | Uses LM Studio's OpenAI-compatible `/v1/models` surface |
+| 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+VU | `crates/openhuman-core/src/inference/local/model_requirements.rs`, `crates/openhuman-core/src/inference/local/ollama.rs`, `crates/openhuman-core/src/inference/local/service/ollama_admin_tests.rs`, `app/src/components/settings/panels/local-model/ModelStatusSection.test.tsx` | ✅ | Rejects Ollama models whose native context window is below the memory-layer minimum (`local_ai.model_context_check`) |
### 3.2 Runtime Execution
@@ -133,9 +133,9 @@ Canonical mapping of every product feature to its test source(s). Drives gap-fil
| ID | Feature | Layer | Test path(s) | Status | Notes |
| ----- | ---------------------------------- | ----- | ------------------------------------------------------------------------------- | ------ | -------------------------------------------------------- |
| 3.2.1 | Local Inference Execution | WD | `local-model-runtime.spec.ts` | ✅ | |
-| 3.2.2 | Resource Handling (CPU/GPU/Memory) | RU | `crates/openhuman-core/src/local_ai/device.rs` | 🟡 | Detection unit; runtime constraint manual |
+| 3.2.2 | Resource Handling (CPU/GPU/Memory) | RU | `crates/openhuman-core/src/inference/device.rs` | 🟡 | Detection unit; runtime constraint manual |
| 3.2.3 | Runtime Failure Handling | RU+WD | `local-model-runtime.spec.ts` | ✅ | |
-| 3.2.4 | LM Studio Chat Completions | RU+RI | `crates/openhuman-core/src/local_ai/service/public_infer_tests.rs`, `tests/json_rpc_e2e.rs` | ✅ | Covers prompt/chat success and non-success status errors |
+| 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 |
### 3.3 Runtime Configuration
@@ -144,9 +144,9 @@ Canonical mapping of every product feature to its test source(s). Drives gap-fil
| ID | Feature | Layer | Test path(s) | Status | Notes |
| ------- | -------------------------- | ----- | -------------------------------------------- | ------ | ----------------------------------- |
| 3.3.1.1 | RAM Limit Selection | VU | `app/src/components/settings/` (panel-level) | 🟡 | UI present; assertion shallow |
-| 3.3.1.2 | RAM Availability Detection | RU | `crates/openhuman-core/src/local_ai/device.rs` | ✅ | |
-| 3.3.1.3 | Over-Allocation Prevention | RU | `crates/openhuman-core/src/local_ai/ops.rs` | 🟡 | Guard exists; explicit test pending |
-| 3.3.1.4 | Under-Allocation Handling | RU | `crates/openhuman-core/src/local_ai/ops.rs` | 🟡 | Same |
+| 3.3.1.2 | RAM Availability Detection | RU | `crates/openhuman-core/src/inference/device.rs` | ✅ | |
+| 3.3.1.3 | Over-Allocation Prevention | RU | `crates/openhuman-core/src/inference/local/ops.rs` | 🟡 | Guard exists; explicit test pending |
+| 3.3.1.4 | Under-Allocation Handling | RU | `crates/openhuman-core/src/inference/local/ops.rs` | 🟡 | Same |
#### 3.3.2 Dynamic Resource Adjustment