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
fix(ci): reconcile current module and runtime contracts
Steven Enamakel2dad535abd1c
diff --git a/app/src/features/conversations/tools/__fixtures__/coreToolNames.json b/app/src/features/conversations/tools/__fixtures__/coreToolNames.jsonindex da540abb3f..c2897359dd 100644--- a/app/src/features/conversations/tools/__fixtures__/coreToolNames.json+++ b/app/src/features/conversations/tools/__fixtures__/coreToolNames.json@@ -85,6 +85,7 @@"install_workflow_from_url","juice_extract","juice_find",+ "juice_retrieve","juice_summarize","learning_cache_stats","learning_enrich_profile",@@ -107,9 +108,6 @@"list_subagents","list_workflow_runs","list_workflows",- "mcp_call_tool",- "mcp_list_servers",- "mcp_list_tools","mcp_registry_connect","mcp_registry_disconnect","mcp_registry_get",@@ -193,7 +191,6 @@"task_source_remove","task_source_status","task_source_update",- "juice_retrieve","todo","tool_search","uninstall_workflow",diff --git a/crates/openhuman-embed/tests/runtime_agents.rs b/crates/openhuman-embed/tests/runtime_agents.rsindex a7fb709f4a..78b9cabd67 100644--- a/crates/openhuman-embed/tests/runtime_agents.rs+++ b/crates/openhuman-embed/tests/runtime_agents.rs@@ -11,9 +11,7 @@mod common;-#[cfg(feature = "mcp")]-use common::tool_results;-use common::{chat_completion, offline_config, runtime, stub_backend, tool_call_completion};+use common::{chat_completion, offline_config, runtime, stub_backend};use openhuman_embed::{Access, AgentDefinitionSpec, AgentError, AgentSpec, Provider, Runtime, SandboxModeSpec,Workspace,@@ -67,22 +65,8 @@ fn one_runtime_hosts_independently_configured_agents() {.mount(&backend).await;- // Each provider first asks for `mcp_list_servers` once, so the- // tool's result — which names the servers the agent can see —- // comes back in the second request of that first turn.let provider_a = wiremock::MockServer::start().await;let provider_b = wiremock::MockServer::start().await;- for server in [&provider_a, &provider_b] {- Mock::given(method("POST"))- .and(path("/v1/chat/completions"))- .respond_with(- ResponseTemplate::new(200)- .set_body_json(tool_call_completion("mcp_list_servers", "{}")),- )- .up_to_n_times(1)- .mount(server)- .await;- }Mock::given(method("POST")).and(path("/v1/chat/completions")).respond_with(ResponseTemplate::new(200).set_body_json(chat_completion("alpha-ok")))@@ -245,49 +229,28 @@ fn one_runtime_hosts_independently_configured_agents() {assert!(alpha.access().turn_origin().is_none());assert!(beta.access().turn_origin().is_some());- // Turns land on each agent's own provider. The first turn on each- // is the `mcp_list_servers` probe: two requests (tool call, then- // the final text).- let a0 = alpha.run("which mcp servers?").await.expect("alpha probe");+ // Turns land on each agent's own provider, and each agent keeps+ // only its own configured MCP servers (asserted above).+ let a0 = alpha.run("hello from alpha").await.expect("alpha turn");assert!(a0.reply.contains("alpha-ok"), "{:?}", a0.reply);- assert_eq!(provider_a.received_requests().await.unwrap().len(), 2);+ assert_eq!(provider_a.received_requests().await.unwrap().len(), 1);assert_eq!(provider_b.received_requests().await.unwrap().len(), 0);- let b0 = beta.run("which mcp servers?").await.expect("beta probe");+ let b0 = beta.run("hello from beta").await.expect("beta turn");assert!(b0.reply.contains("beta-ok"), "{:?}", b0.reply);- assert_eq!(provider_b.received_requests().await.unwrap().len(), 2);+ assert_eq!(provider_b.received_requests().await.unwrap().len(), 1);let a1 = alpha.run("hello from alpha").await.expect("alpha turn");assert!(a1.reply.contains("alpha-ok"), "{:?}", a1.reply);- assert_eq!(provider_a.received_requests().await.unwrap().len(), 3);- assert_eq!(provider_b.received_requests().await.unwrap().len(), 2);+ assert_eq!(provider_a.received_requests().await.unwrap().len(), 2);+ assert_eq!(provider_b.received_requests().await.unwrap().len(), 1);- // The request bodies carry each agent's own model, and the MCP- // servers each agent can list are its own (plus the host-seeded- // documentation server every agent gets, as on the desktop).+ // The request bodies carry each agent's own model.let a_reqs = provider_a.received_requests().await.unwrap();let b_reqs = provider_b.received_requests().await.unwrap();let a_body: serde_json::Value = serde_json::from_slice(&a_reqs[0].body).unwrap();let b_body: serde_json::Value = serde_json::from_slice(&b_reqs[0].body).unwrap();assert_eq!(a_body["model"], "alpha-model");assert_eq!(b_body["model"], "beta-model");- #[cfg(feature = "mcp")]- {- let a_servers = tool_results(&a_reqs[1]);- let b_servers = tool_results(&b_reqs[1]);- assert!(- a_servers.contains("alpha-mcp"),- "alpha must see the server it declared: {a_servers}"- );- assert!(- !b_servers.contains("alpha-mcp"),- "beta must not see alpha's server: {b_servers}"- );- assert!(- a_servers.contains("gitbooks") && b_servers.contains("gitbooks"),- "both see the host-seeded docs server: {a_servers} / {b_servers}"- );- }-// Transcripts are keyed by agent, and a thread resumes its own history.let transcripts: Vec<String> = std::fs::read_dir(alpha.transcripts_dir()).expect("transcript dir")@@ -338,7 +301,7 @@ fn one_runtime_hosts_independently_configured_agents() {.await.expect("alpha second turn");assert_eq!(a2.session_id, a1.session_id);- let a2_req = provider_a.received_requests().await.unwrap().remove(3);+ let a2_req = provider_a.received_requests().await.unwrap().remove(2);let a2_body: serde_json::Value = serde_json::from_slice(&a2_req.body).unwrap();let a2_messages = a2_body["messages"].as_array().cloned().unwrap_or_default();assert!(@@ -392,8 +355,8 @@ fn one_runtime_hosts_independently_configured_agents() {}}assert_eq!((a_count, b_count), (25, 25));- assert_eq!(provider_a.received_requests().await.unwrap().len(), 4 + 25);- assert_eq!(provider_b.received_requests().await.unwrap().len(), 2 + 25);+ assert_eq!(provider_a.received_requests().await.unwrap().len(), 3 + 25);+ assert_eq!(provider_b.received_requests().await.unwrap().len(), 1 + 25);// Ids are unique while alive, and validated.let err = runtimediff --git a/scripts/ci/module-pin-exemptions.json b/scripts/ci/module-pin-exemptions.jsonindex a0f8bbea1c..1997617830 100644--- a/scripts/ci/module-pin-exemptions.json+++ b/scripts/ci/module-pin-exemptions.json@@ -12,65 +12,10 @@"stopped being true fails the gate too — `expect` must still match."],"exemptions": [- {- "id": "tinycomputer",- "expect": "v0.9.0-1-g8b73151a",- "reason": "Pin carries the legacy test-file rename commits (#6903) past the release tag; re-pin to the next release of this module once its rename PR is released."- },- {- "id": "tinysearch",- "expect": "v0.3.4-2-g2a71ea9d",- "reason": "Pin carries the legacy test-file rename commits (#6903) past the release tag; re-pin to the next release of this module once its rename PR is released."- },- {- "id": "tinydocs",- "expect": "v0.1.19-3-g25290eb",- "reason": "Pin carries the legacy test-file rename commits (#6903) past the release tag; re-pin to the next release of this module once its rename PR is released."- },- {- "id": "tinywallet",- "expect": "v0.7.2-2-g5b18a06",- "reason": "Pin carries the legacy test-file rename commits (#6903) past the release tag; re-pin to the next release of this module once its rename PR is released."- },- {- "id": "tinymemory",- "expect": "v1.22.3-3-ge5e2cbbc",- "reason": "Pin carries the legacy test-file rename commits (#6903) past the release tag; re-pin to the next release of this module once its rename PR is released."- },- {- "id": "tinyjuice",- "expect": "v0.5.1-5-g9cb1693a",- "reason": "Pin carries the legacy test-file rename commits (#6903) and upstream main updates past the release tag; re-pin to the next release of this module once its rename PR is released."- },- {- "id": "tinyvoice",- "expect": "v0.1.10-2-gb8594d5",- "reason": "Pin carries the legacy test-file rename commits (#6903) past the release tag; re-pin to the next release of this module once its rename PR is released."- },{"id": "tinymcp",- "expect": "v0.3.6-8-g8a25ea4",- "reason": "Pin carries the legacy test-file rename commits (#6903) past the release tag; re-pin to the next release of this module once its rename PR is released."- },- {- "id": "tinyconnectors",- "expect": "v0.12.2-2-g8d54a88",- "reason": "Pin carries the legacy test-file rename commits (#6903) past the release tag; re-pin to the next release of this module once its rename PR is released."- },- {- "id": "tinybox",- "expect": "v0.1.12-2-g9106bf33",- "reason": "Pin carries the legacy test-file rename commits (#6903) past the release tag; re-pin to the next release of this module once its rename PR is released."- },- {- "id": "tinychannels",- "expect": "v0.1.8-2-gb5efe588",- "reason": "Pin carries the legacy test-file rename commits (#6903) past the release tag; re-pin to the next release of this module once its rename PR is released."- },- {- "id": "tinyhosts",- "expect": "v0.2.1-2-gd39dc164",- "reason": "Pin carries the legacy test-file rename commits (#6903) past the release tag; re-pin to the next release of this module once its rename PR is released."+ "expect": "v0.3.6-6-g3a9a27ac",+ "reason": "The upstream/main gitlink update selects this post-tag commit; reconcile the runtime artifact pin when tinymcp publishes the corresponding release."}]}