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/flows/authoring_host.rs,crates/openhuman-core/src/flo

Steven Enamakela385b4aff2bd
diff --git a/crates/openhuman-core/src/flows/authoring_host.rs b/crates/openhuman-core/src/flows/authoring_host.rs
index ebbb04c4c7..c8b67edbb9 100644
--- a/crates/openhuman-core/src/flows/authoring_host.rs
+++ b/crates/openhuman-core/src/flows/authoring_host.rs
@@ -57,7 +57,7 @@ impl Callbacks {
Ok(graph.map(|graph| serde_json::to_value(graph).expect("graph serializes")))
})
.await
- .map_err(|error| tinybus::Error::failed(error))
+ .map_err(tinybus::Error::failed)
}
async fn check_gate(&self, stage: String, graph: Value) -> BusResult<Vec<String>> {
@@ -84,7 +84,7 @@ impl Callbacks {
}
})
.await
- .map_err(|error| tinybus::Error::failed(error))
+ .map_err(tinybus::Error::failed)
}
async fn lookup_tool_contract(&self, slug: String) -> BusResult<Option<ToolContract>> {
@@ -109,7 +109,7 @@ impl Callbacks {
}))
})
.await
- .map_err(|error| tinybus::Error::failed(error))
+ .map_err(tinybus::Error::failed)
}
}
@@ -170,7 +170,7 @@ impl ApprovalCallbacks {
Ok(classes)
})
.await
- .map_err(|error| tinybus::Error::failed(error))
+ .map_err(tinybus::Error::failed)
}
}
diff --git a/crates/openhuman-core/src/flows/host_gates/agent_refs_tests.rs b/crates/openhuman-core/src/flows/host_gates/agent_refs_tests.rs
index c221f84396..36b2f6571b 100644
--- a/crates/openhuman-core/src/flows/host_gates/agent_refs_tests.rs
+++ b/crates/openhuman-core/src/flows/host_gates/agent_refs_tests.rs
@@ -130,7 +130,7 @@ async fn agent_ref_unknown_is_rejected() {
/// Pinned here rather than left to the vendor's own suite because the
/// `workflow_builder` agent can propose this shape, and the message a builder
/// sees on rejection is this host's contract with it.
-
+///
/// The agent-ref gate resolves a custom agent through the context it is handed,
/// not the one the calling task happens to run under: two tenants' registries
/// never cross.
diff --git a/docs/TEST-COVERAGE-MATRIX.md b/docs/TEST-COVERAGE-MATRIX.md
index f337ff7305..bf7e16e8fb 100644
--- a/docs/TEST-COVERAGE-MATRIX.md
+++ b/docs/TEST-COVERAGE-MATRIX.md
@@ -135,7 +135,7 @@ Local inference runs against a runtime the user installs, starts, and pulls mode
| 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.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`, `crates/openhuman-core/src/flows/host_gates/agent_refs_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/__tests__/AIPanel.test.tsx` (add-time probe and rollback) | 🟡 | 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 (`useProviderConnect.ts`). The cited tests cover the probe and rollback for key providers; the local-runtime branch has 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. |
@@ -428,7 +428,7 @@ The thread JSONL store moved to `tinyagents_session::threads` (`vendor/tinyagent
| ID | Feature | Layer | Test path(s) | Status | Notes |
| ----- | ------------------------------------------------ | ----- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
-| 9.5.1 | Approval manifest computation | RU | `crates/openhuman-core/src/flows/ops_tests.rs::{approval_manifest_lists_gated_nodes_and_skips_curated_reads,approval_manifest_marks_blocked_classes_under_readonly_tier,approval_manifest_dedupes_repeated_tools_and_flags_dynamic_slugs,approval_manifest_discloses_agent_ref_nodes_only}` | ✅ | `compute_approval_manifest` mirrors runtime gating: curated Composio reads excluded, tier-Blocked classes informational, trust-key dedupe, dynamic `=` slugs and `agent_ref` nodes disclosed. `flows.approval_manifest` RPC joins against existing `flow_tool_trust`. |
+| 9.5.1 | Approval manifest computation | RU | `crates/openhuman-core/src/flows/ops_approval_manifest_and_catalog_tests.rs::{approval_manifest_lists_gated_nodes_and_skips_curated_reads,approval_manifest_marks_blocked_classes_under_readonly_tier,approval_manifest_dedupes_repeated_tools_and_flags_dynamic_slugs,approval_manifest_discloses_agent_ref_nodes_only}`, `tests/tinyflows_published_prompt_e2e.rs::published_module_public_import_uses_authoring_bus_in_a_cold_process` | ✅ | `compute_approval_manifest` mirrors runtime gating: curated Composio reads excluded, tier-Blocked classes informational, trust-key dedupe, dynamic `=` slugs and `agent_ref` nodes disclosed. The published-module E2E also verifies Catalog.ApprovalManifest migration and host classification over TinyBus. `flows.approval_manifest` RPC joins against existing `flow_tool_trust`. |
| 9.5.2 | Flow trust store (list / delete / preauth audit) | RU | `crates/openhuman-core/src/security/approval/store.rs::tests::{list_flow_trust_returns_sorted_grants_scoped_to_flow,delete_flow_trust_named_removes_only_named_grants,delete_flow_trust_all_purges_only_that_flow,record_flow_preauthorization_lands_in_audit_not_pending}` | ✅ | Batch pre-grants via `approval.preauthorize_flow` are idempotent, flow-scoped, and each new grant lands as a born-decided `approve_always_for_flow` audit row (Approval history, never `list_pending`). Flow deletion purges the flow's grants. |
| 9.5.3 | Consolidated Approve-all/Deny card + enable flow | VU | `app/src/hooks/useFlowPreauthorization.test.ts`, `app/src/components/flows/FlowPreauthorizationCard.test.tsx` | ✅ | Hook: direct enable when nothing missing, grant-then-enable ordering on Approve all, Deny leaves the flow saved-but-disabled, fail-open on manifest RPC errors. Card: exactly two actions, per-kind rows (approvable/blocked/dynamic/agent), busy + error states. |