Skip to content

Commit bfe2e4d

Browse files
committed
test(tools): cover additive top-level catalog contract
1 parent bcf7a3f commit bfe2e4d

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

‎tests/tool-catalog-nudge.test.ts‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ describe("non-OpenAI tool catalog nudge", () => {
1111
const note = buildNonOpenAIToolCatalogNudgeFromNames(["exec_command", "mcp__fs__read_file"]);
1212

1313
expect(note).toContain("current tool catalog as ground truth");
14-
expect(note).toContain("Valid top-level tool names for this turn are exactly `exec_command`, `mcp__fs__read_file`");
14+
expect(note).toContain("Valid tool names for this turn are exactly `exec_command`, `mcp__fs__read_file`");
15+
expect(note).toContain("These listed names are the complete top-level tool-call surface for this turn");
1516
expect(note).toContain("do not invent, translate, or rename tools");
1617
expect(note).toContain("Names mentioned only in instructions, tool descriptions, argument descriptions, or nested helper APIs are not additional top-level tools");
1718
expect(note).toContain("call the listed parent tool and use those helpers only inside that tool's input");
@@ -51,7 +52,8 @@ describe("non-OpenAI tool catalog nudge", () => {
5152
test("defines nested helper names as non-callable unless separately listed", () => {
5253
const note = buildNonOpenAIToolCatalogNudgeFromNames(["exec", "wait", "request_user_input"]);
5354

54-
expect(note).toContain("Valid top-level tool names for this turn are exactly `exec`, `wait`, `request_user_input`");
55+
expect(note).toContain("Valid tool names for this turn are exactly `exec`, `wait`, `request_user_input`");
56+
expect(note).toContain("complete top-level tool-call surface");
5557
expect(note).toContain("nested helper APIs are not additional top-level tools");
5658
expect(note).toContain("call the listed parent tool");
5759
expect(note).not.toContain("apply_patch");

0 commit comments

Comments
 (0)