Skip to content

Commit cddebc6

Browse files
test(server): assert the read-only on-request write by its permission
The shared tool_call_read_only_on_request assertion pinned a shell command and a `command` request, so it only held when the agent picked the shell. The prompt allows a shell command or a file edit; live Grok uses its write tool, which asks for a file change. One assertion now covers Codex, Claude, Grok and the ACP registry agent: exactly one request, accepted and resolved, of kind command or file-change; one approval card for it; a completed command_execution or file_change for the probe file whose content, when projected, is the requested text. The Grok variant is re-recorded live, and the registry's synthetic command now writes the requested text. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
1 parent 8d09ecb commit cddebc6

6 files changed

Lines changed: 256 additions & 102 deletions

File tree

‎apps/server/src/orchestration-v2/testkit/fixtures/index.ts‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,7 @@ import {
8585
import { assertToolCallReadOnlyClaudeOutput } from "./tool_call_read_only/claude_output.ts";
8686
import { assertToolCallReadOnlyCursorOutput } from "./tool_call_read_only/cursor_output.ts";
8787
import { toolCallReadOnlyInput } from "./tool_call_read_only/input.ts";
88-
import { assertToolCallReadOnlyOnRequestClaudeOutput } from "./tool_call_read_only_on_request/claude_output.ts";
89-
import { assertToolCallReadOnlyOnRequestOutput } from "./tool_call_read_only_on_request/codex_output.ts";
88+
import { assertToolCallReadOnlyOnRequestOutput } from "./tool_call_read_only_on_request/output.ts";
9089
import { toolCallReadOnlyOnRequestInput } from "./tool_call_read_only_on_request/input.ts";
9190
import { assertToolCallRestrictedGranularClaudeOutput } from "./tool_call_restricted_granular/claude_output.ts";
9291
import { assertToolCallRestrictedGranularOutput } from "./tool_call_restricted_granular/codex_output.ts";
@@ -445,7 +444,7 @@ export const ORCHESTRATOR_REPLAY_FIXTURES: ReadonlyArray<OrchestratorReplayFixtu
445444
),
446445
modelSelection: CLAUDE_MODEL_SELECTION,
447446
runtimePolicyOverride: READ_ONLY_ON_REQUEST_POLICY,
448-
assertOutput: assertToolCallReadOnlyOnRequestClaudeOutput,
447+
assertOutput: assertToolCallReadOnlyOnRequestOutput,
449448
},
450449
{
451450
driver: ProviderDriverKind.make("grok"),

‎apps/server/src/orchestration-v2/testkit/fixtures/tool_call_read_only_on_request/claude_output.ts‎

Lines changed: 0 additions & 50 deletions
This file was deleted.

‎apps/server/src/orchestration-v2/testkit/fixtures/tool_call_read_only_on_request/codex_output.ts‎

Lines changed: 0 additions & 36 deletions
This file was deleted.

0 commit comments

Comments
 (0)