Skip to content

Commit fc9cc4c

Browse files
committed
Fingerprint repeated eval tool calls as a JSON name-args tuple
A NUL delimiter made git treat the metrics module as binary. A JSON array owns the name/args boundary without a magic separator.
1 parent 5642bd6 commit fc9cc4c

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

‎evals/capability/behaviors.ts‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,10 @@ export function deriveBehaviorMetrics(summary: CapturedRunSummary): BehaviorMetr
225225
}
226226
for (const call of turn.toolCalls) {
227227
toolCallsByName[call.name] = (toolCallsByName[call.name] ?? 0) + 1;
228-
const signature = `${call.name}\0${normalizeToolArguments(call.arguments)}`;
228+
const signature = JSON.stringify([
229+
call.name,
230+
normalizeToolArguments(call.arguments),
231+
]);
229232
if (seenCalls.has(signature)) repeatedSearchCount++;
230233
else seenCalls.add(signature);
231234

‎src/tui/geometry.test.ts‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -560,4 +560,3 @@ describe("resolveGeometry — stack-only layout", () => {
560560
expect(layout.regions.agents).toBeUndefined();
561561
});
562562
});
563-

0 commit comments

Comments
 (0)