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
ci: restore current memory and delegation integration fixtures
Toyo Sagac8cc3e59eaa2
diff --git a/scripts/__tests__/self-hosted-lanes.test.mjs b/scripts/__tests__/self-hosted-lanes.test.mjsindex 6a5afc2115..31d0105c0d 100644--- a/scripts/__tests__/self-hosted-lanes.test.mjs+++ b/scripts/__tests__/self-hosted-lanes.test.mjs@@ -69,6 +69,27 @@ test("every hosted group resolves on its own, and every hosted lane has exactlyassert.deepEqual(grouped, plan.lanes.map((l) => l.name).sort());});+test("Rust coverage installs the mock backend dependencies without a frontend area", () => {+ for (const profile of ["hosted", "ex63"]) {+ const plan = buildPlan({+ profile,+ areas: { ...NONE, rustCore: true },+ env: profile === "ex63" ? EX63_ENV : {},+ });+ const selected = selectLanes(plan, ["rust-cov"]);+ assert.deepEqual(validatePlan(selected), []);+ const checks = selected.lanes[0].checks;+ const install = checks.find((c) => c.name === "pnpm-install");+ assert.equal(install.when, true);+ assert.equal(install.run, "pnpm install --frozen-lockfile");+ assert.ok(+ checks+ .find((c) => c.name === "rust-core-coverage")+ .needs.includes("pnpm-install"),+ );+ }+});+test("commands are static: no suite is ever narrowed to the diff", () => {for (const plan of plans()) {for (const run of allRuns(plan)) {diff --git a/scripts/ci/self-hosted/lanes-plan.mjs b/scripts/ci/self-hosted/lanes-plan.mjsindex 71e5242cd6..d37a6b6ebc 100644--- a/scripts/ci/self-hosted/lanes-plan.mjs+++ b/scripts/ci/self-hosted/lanes-plan.mjs@@ -288,6 +288,13 @@ export function buildPlan({ profile, areas, env = {}, isPullRequest = true }) {targetDir: targetDir("cov"),env: covEnv,checks: [+ {+ name: "pnpm-install",+ when: core,+ // Memory integration tests launch the shared Node mock backend,+ // which imports ws. Hosted Rust jobs do not share frontend installs.+ run: "pnpm install --frozen-lockfile",+ },{name: "test-modules",when: core,@@ -303,7 +310,7 @@ export function buildPlan({ profile, areas, env = {}, isPullRequest = true }) {{name: "rust-core-coverage",when: core,- needs: ["test-modules"],+ needs: ["test-modules", "pnpm-install"],// Doctests and tui coverage run on pushes to main instead (see above).// ex63: the core's unit tests run under cargo-nextest, one process// per test and in parallel (the guest image ships cargo-nextest).diff --git a/tests/agent_harness_e2e.rs b/tests/agent_harness_e2e.rsindex 2b194a5beb..9c07f52194 100644--- a/tests/agent_harness_e2e.rs+++ b/tests/agent_harness_e2e.rs@@ -943,6 +943,9 @@ fn subagent_delegation_happy_path() {);}+// A valid 1x1 RGB PNG: vision delegation requires an actual image reference.+const VISION_FIXTURE_IMAGE: &str = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAIAAACQd1PeAAAADElEQVR4nGP4z8AAAAMBAQDJ/pLvAAAAAElFTkSuQmCC";+async fn subagent_delegation_happy_path_inner() {let _lock = env_lock();reset_script(vec![@@ -950,7 +953,7 @@ async fn subagent_delegation_happy_path_inner() {// (vision_agent's delegate_name).tool_call_completion("analyze_image",- json!({ "prompt": "Find the marker phrase", "blocking": true }),+ json!({ "prompt": format!("Find the marker phrase [IMAGE:{VISION_FIXTURE_IMAGE}]"), "blocking": true }),),// request[1]: vision_agent subagent inner LLM call returns its canary.text_completion("MEMORY_CANARY_42 is the marker."),@@ -2154,7 +2157,7 @@ async fn multi_hop_delegation_chain_inner() {// `analyze_image` (its delegate_name, agent/registry/agents/vision_agent/agent.toml:3).tool_call_completion("analyze_image",- json!({ "prompt": "deep question", "blocking": true }),+ json!({ "prompt": format!("deep question [IMAGE:{VISION_FIXTURE_IMAGE}]"), "blocking": true }),),// request[1]: vision_agent first inner LLM call → scripts file_write.// file_write is NOT in vision_agent's read-only named toolsdiff --git a/tests/in_process/config_auth_app_state_connectivity_e2e.rs b/tests/in_process/config_auth_app_state_connectivity_e2e.rsindex d4b4367192..f7b6afc428 100644--- a/tests/in_process/config_auth_app_state_connectivity_e2e.rs+++ b/tests/in_process/config_auth_app_state_connectivity_e2e.rs@@ -1868,13 +1868,13 @@ async fn worker_a_controller_schemas_are_fully_exposed() {("memory",vec![- "openhuman.memory_context_get",- "openhuman.memory_context_refresh",- "openhuman.memory_context_set",+ "openhuman.memory_agents_list",+ "openhuman.memory_brain_forget",+ "openhuman.memory_brain_ingest",+ "openhuman.memory_brain_search",+ "openhuman.memory_brain_sources","openhuman.memory_conversations_backfill_start","openhuman.memory_conversations_backfill_status",- "openhuman.memory_conversations_get",- "openhuman.memory_conversations_set","openhuman.memory_engine_get","openhuman.memory_engine_set","openhuman.memory_engines_list",@@ -1886,7 +1886,12 @@ async fn worker_a_controller_schemas_are_fully_exposed() {"openhuman.memory_import_status","openhuman.memory_items_get","openhuman.memory_items_list",+ "openhuman.memory_jobs_list",+ "openhuman.memory_jobs_run","openhuman.memory_learn",+ "openhuman.memory_pack_preview",+ "openhuman.memory_policy_get",+ "openhuman.memory_policy_set","openhuman.memory_recall","openhuman.memory_sources_add","openhuman.memory_sources_list",diff --git a/tests/in_process/worker_c_modules_e2e.rs b/tests/in_process/worker_c_modules_e2e.rsindex afffc29945..dedcebe896 100644--- a/tests/in_process/worker_c_modules_e2e.rs+++ b/tests/in_process/worker_c_modules_e2e.rs@@ -733,9 +733,9 @@ async fn memory_v2_controller_surface_is_reachable() {"openhuman.memory_engines_list","openhuman.memory_engine_get","openhuman.memory_items_list",- "openhuman.memory_conversations_get",+ "openhuman.memory_policy_get","openhuman.memory_sources_list",- "openhuman.memory_context_get",+ "openhuman.memory_agents_list","openhuman.memory_import_scan","openhuman.memory_import_status",];@@ -744,6 +744,22 @@ async fn memory_v2_controller_surface_is_reachable() {let response = rpc(&harness.rpc_base, 100 + offset as i64, method, json!({})).await;assert_rpc_completed(&response, method);}+ for (offset, method) in [+ "openhuman.memory_conversations_get",+ "openhuman.memory_context_get",+ ]+ .into_iter()+ .enumerate()+ {+ let response = rpc(&harness.rpc_base, 200 + offset as i64, method, json!({})).await;+ let message = response["error"]["message"]+ .as_str()+ .expect("retired memory method returns a dispatch error");+ assert!(+ message.starts_with(UNKNOWN_METHOD_PREFIX),+ "{method}: {response}"+ );+ }}async fn serve_source_fixtures() -> (String, tokio::task::JoinHandle<Result<(), std::io::Error>>) {diff --git a/tests/raw_coverage/composio_raw_coverage_e2e.rs b/tests/raw_coverage/composio_raw_coverage_e2e.rsindex 0bdc36dfa8..6d6eddb11a 100644--- a/tests/raw_coverage/composio_raw_coverage_e2e.rs+++ b/tests/raw_coverage/composio_raw_coverage_e2e.rs@@ -214,7 +214,8 @@ async fn composio_controller_registry_and_scope_handlers_cover_validation_edges(// the test to an isolated workspace so the scope store does not depend on// a developer's local config.let workspace = tempdir().expect("isolated workspace");- let _workspace = WorkspaceEnvGuard::set(workspace.path());+ let workspace_dir = workspace.path().join("workspace");+ let _workspace = WorkspaceEnvGuard::set(&workspace_dir);let schemas = all_composio_controller_schemas();let registered = all_composio_registered_controllers();assert_eq!(schemas.len(), registered.len());@@ -269,8 +270,7 @@ async fn composio_controller_registry_and_scope_handlers_cover_validation_edges(assert_eq!(reread.pointer("/admin"), Some(&json!(true)));assert_eq!(reread.pointer("/write"), Some(&json!(false)));assert!(- workspace- .path()+ workspace_dir.join("integrations").join("composio_user_scopes.json").exists(),