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
test(tool-browser-flow): update specs for orchestrator-based tool discovery
Steven Enamakel10fc10fd2455
diff --git a/app/test/e2e/specs/tool-browser-flow.spec.ts b/app/test/e2e/specs/tool-browser-flow.spec.tsindex 9b8e58d786..43aced908f 100644--- a/app/test/e2e/specs/tool-browser-flow.spec.ts+++ b/app/test/e2e/specs/tool-browser-flow.spec.ts@@ -24,9 +24,10 @@ const USER_ID = 'e2e-tool-browser';* `browser_tests.rs`.** What this spec proves end-to-end:- * - 7.1.1 — the agent runtime is up and the `tools_agent` definition that- * inherits the `browser_open` tool is wired into the live registry served- * over JSON-RPC. Plus: the mock backend correctly records arbitrary HTTP+ * - 7.1.1 — the agent runtime is up and the `orchestrator` definition is+ * wired into the live registry served over JSON-RPC with on-demand tool+ * discovery (`tool_search`), the route by which it reaches the browser+ * tools now that the `tools_agent` specialist is retired. Plus: the mock backend correctly records arbitrary HTTP* requests (proving the side-channel browser-automation flows would emit* against the mocked services is intact).* - 7.1.2 — the live built-in tool catalog contains `browser` and advertises@@ -56,6 +57,7 @@ interface ServerStatus {interface AgentDef {id?: string;tools?: unknown;+ direct_tool_names?: string[];}interface ListDefinitionsResult {@@ -94,10 +96,10 @@ describe('System tools — Browser (open URL + automation registry)', () => {await stopMockServer();});- it('7.1.1 sidecar runtime is reachable and `tools_agent` (browser-bearing) is registered', async () => {- // The registry path that resolves `browser_open` lives behind- // `agent_list_definitions`; failure to find tools_agent means the- // browser-tool surface is unreachable from JSON-RPC.+ it('7.1.1 sidecar runtime is reachable and the orchestrator can discover tools', async () => {+ // The registry path that resolves the orchestrator's belt lives behind+ // `agent_list_definitions`; failure to find it means the browser-tool+ // surface is unreachable from JSON-RPC.const status = await callOpenhumanRpc<ServerStatus>('openhuman.agent_server_status', {});stepLog('agent_server_status response', status);expect(status.ok).toBe(true);@@ -114,12 +116,12 @@ describe('System tools — Browser (open URL + automation registry)', () => {});expect(list.ok).toBe(true);const defs = list.result?.definitions ?? [];- const toolsAgent = defs.find(d => d?.id === 'tools_agent');- expect(toolsAgent).toBeDefined();- // Wildcard tool scope serialises as an object — same assertion as the- // shell-git spec, locked here too because browser_open is part of the- // same wildcard surface.- expect(toolsAgent?.tools).toBeDefined();+ const orchestrator = defs.find(d => d?.id === 'orchestrator');+ expect(orchestrator).toBeDefined();+ // Browser tools are off the orchestrator's up-front belt and reached+ // through on-demand discovery; the catalog itself is pinned by 7.1.2.+ expect(orchestrator?.direct_tool_names ?? []).toContain('tool_search');+ expect(defs.find(d => d?.id === 'tools_agent')).toBeUndefined();});it('7.1.1b mock backend captures HTTP traffic shape (browser-automation side-channel intact)', async () => {diff --git a/app/test/playwright/specs/tool-browser-flow.spec.ts b/app/test/playwright/specs/tool-browser-flow.spec.tsindex d7916bcc91..6feb28b5a0 100644--- a/app/test/playwright/specs/tool-browser-flow.spec.ts+++ b/app/test/playwright/specs/tool-browser-flow.spec.ts@@ -15,6 +15,7 @@ function unwrapStatus(raw: unknown): ServerStatus {interface AgentDef {id?: string;tools?: unknown;+ direct_tool_names?: string[];}interface ListDefinitionsResult {@@ -27,24 +28,21 @@ test.describe('System tools - Browser (open URL + automation registry)', () => {await bootAuthenticatedPage(page, 'pw-tool-browser-' + testSlug, '/home');});- test('agent runtime is reachable and tools_agent is registered', async () => {+ test('agent runtime is reachable and the orchestrator can discover tools', async () => {const status = unwrapStatus(await callCoreRpc<unknown>('openhuman.agent_server_status', {}));expect(status.running).toBe(true);const list = await callCoreRpc<ListDefinitionsResult>('openhuman.agent_list_definitions', {});const defs = list.definitions ?? [];- const toolsAgent = defs.find(def => def?.id === 'tools_agent');- expect(toolsAgent).toBeDefined();- expect(toolsAgent?.tools).toBeDefined();- });-- test('browser-bearing agent definitions are exposed in the live registry', async () => {- const list = await callCoreRpc<ListDefinitionsResult>('openhuman.agent_list_definitions', {});- const defs = list.definitions ?? [];- const browserBearing = defs.filter(def =>- ['tools_agent', 'integrations_agent', 'researcher', 'planner'].includes(def?.id ?? '')- );- expect(browserBearing.length).toBeGreaterThan(0);+ const orchestrator = defs.find(def => def?.id === 'orchestrator');+ expect(orchestrator).toBeDefined();+ // Browser tools are reached through on-demand discovery, not a+ // browser-bearing specialist (`tools_agent` / `integrations_agent` /+ // `researcher` are retired).+ expect(orchestrator?.direct_tool_names ?? []).toContain('tool_search');+ for (const retired of ['tools_agent', 'integrations_agent', 'researcher']) {+ expect(defs.find(def => def?.id === retired)).toBeUndefined();+ }});test.skip('future chat tool_calls drive browser_open end-to-end via deterministic mock LLM', async () => {});diff --git a/app/test/playwright/specs/tool-shell-git-flow.spec.ts b/app/test/playwright/specs/tool-shell-git-flow.spec.tsindex 9f422ca40e..a22a04ab86 100644--- a/app/test/playwright/specs/tool-shell-git-flow.spec.ts+++ b/app/test/playwright/specs/tool-shell-git-flow.spec.ts@@ -22,6 +22,7 @@ function unwrapStatus(raw: unknown): ServerStatus {interface AgentDef {id?: string;tools?: unknown;+ direct_tool_names?: string[];disallowed_tools?: string[];}