Skip to content

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

test(e2e, playwright): update shell-git specs to reflect orchestrator agent

Steven Enamakel697074372921
diff --git a/app/test/e2e/specs/tool-shell-git-flow.spec.ts b/app/test/e2e/specs/tool-shell-git-flow.spec.ts
index a1521a246f..93a3690e3f 100644
--- a/app/test/e2e/specs/tool-shell-git-flow.spec.ts
+++ b/app/test/e2e/specs/tool-shell-git-flow.spec.ts
@@ -28,12 +28,13 @@ const USER_ID = 'e2e-tool-shell-git';
* `crates/openhuman-core/src/tools/impl/filesystem/git_operations.rs`.
*
* What this spec proves end-to-end:
- * - 6.2.1 — the agent runtime is up and the `tools_agent` definition that
- * inherits the shell tool is wired into the live registry served over
- * JSON-RPC (`openhuman.agent_list_definitions`).
- * - 6.2.2 — the same agent definition surfaces the wildcard tool scope so
- * the security policy's command-allowlist check (validated in Rust unit
- * tests) is reachable through the live registry path. We additionally
+ * - 6.2.1 — the agent runtime is up and the `orchestrator` definition, which
+ * owns the coding surface directly (`shell`, `git_operations`,
+ * `file_write`; there is no separate tools/code specialist any more), is
+ * wired into the live registry served over JSON-RPC
+ * (`openhuman.agent_list_definitions`).
+ * - 6.2.2 — the security policy's command-allowlist check (validated in Rust
+ * unit tests) sits behind that same registry path. We additionally
* cross-check that a denial-class command returns `ok=false` when issued
* via the related shell-like surface (memory_write_file with a clearly
* invalid argument) — this confirms the RPC denial envelope shape callers
@@ -74,6 +75,7 @@ interface ServerStatus {
interface AgentDef {
id?: string;
tools?: unknown;
+ direct_tool_names?: string[];
disallowed_tools?: string[];
}
@@ -167,7 +169,7 @@ describe('System tools — Shell + Git (registry, denial envelope, fixture repo)
await stopMockServer();
});
- it('6.2.1 sidecar runtime is reachable and `tools_agent` (shell-bearing) is registered', async () => {
+ it('6.2.1 sidecar runtime is reachable and the orchestrator carries the shell/git tools', async () => {
// Probe the agent runtime — this is the same RPC the React UI's service
// page hits, so failure here means the entire system-tool surface is
// unreachable. core.ping is independent of agent-runtime bootstrap.
@@ -182,9 +184,9 @@ describe('System tools — Shell + Git (registry, denial envelope, fixture repo)
const statusPayload = (status.result as any)?.result ?? status.result;
expect(statusPayload?.running).toBe(true);
- // tools_agent inherits the orchestrator's full built-in tool surface
- // (shell, file_read, file_write, git_operations, browser_open, browser).
- // Asserting it is registered proves the registry path that resolves
+ // The orchestrator owns the inspect → edit → verify loop itself: shell,
+ // git_operations and file_write are direct tools on its belt. Asserting
+ // them on the live definition proves the registry path that resolves
// shell/git tools is live behind JSON-RPC.
const list = await callOpenhumanRpc<ListDefinitionsResult>(
'openhuman.agent_list_definitions',
@@ -195,11 +197,14 @@ describe('System tools — Shell + Git (registry, denial envelope, fixture repo)
});
expect(list.ok).toBe(true);
const defs = list.result?.definitions ?? [];
- const toolsAgent = defs.find(d => d?.id === 'tools_agent');
- expect(toolsAgent).toBeDefined();
- // The wildcard scope (`tools_agent.tools = { wildcard = {} }`) must
- // serialise as an object rather than an empty/null sentinel.
- expect(toolsAgent?.tools).toBeDefined();
+ const orchestrator = defs.find(d => d?.id === 'orchestrator');
+ expect(orchestrator).toBeDefined();
+ const direct = orchestrator?.direct_tool_names ?? [];
+ for (const tool of ['shell', 'git_operations', 'file_write']) {
+ expect(direct).toContain(tool);
+ }
+ // The retired `tools_agent` specialist must not come back.
+ expect(defs.find(d => d?.id === 'tools_agent')).toBeUndefined();
});
it('6.2.2 RPC denial envelope is structurally consistent (precondition for restricted-command surfacing)', async () => {
diff --git a/app/test/playwright/specs/tool-shell-git-flow.spec.ts b/app/test/playwright/specs/tool-shell-git-flow.spec.ts
index 32b924c8e4..9f422ca40e 100644
--- a/app/test/playwright/specs/tool-shell-git-flow.spec.ts
+++ b/app/test/playwright/specs/tool-shell-git-flow.spec.ts
@@ -102,7 +102,7 @@ test.describe('System tools - Shell + Git', () => {
await makeFixtureRepo(repoDir);
});
- test('sidecar runtime is reachable and tools_agent is registered', async () => {
+ test('sidecar runtime is reachable and the orchestrator carries the shell/git tools', async () => {
const ping = await callCoreRpc<{ ok?: boolean }>('core.ping', {});
expect(ping.ok).toBe(true);
@@ -111,9 +111,13 @@ test.describe('System tools - Shell + Git', () => {
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();
+ const orchestrator = defs.find(def => def?.id === 'orchestrator');
+ expect(orchestrator).toBeDefined();
+ const direct = orchestrator?.direct_tool_names ?? [];
+ for (const tool of ['shell', 'git_operations', 'file_write']) {
+ expect(direct).toContain(tool);
+ }
+ expect(defs.find(def => def?.id === 'tools_agent')).toBeUndefined();
});
test('denial envelope is structurally consistent for invalid write args', async () => {