MCPcopy
hub / github.com/Doorman11991/smallcode / dedup_idempotent.test.js

File dedup_idempotent.test.js

test/dedup_idempotent.test.js:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1// Regression tests for per-turn idempotent-write dedup.
2//
3// Closes the gap where small models could spam memory_remember with the same
4// args dozens of times in one turn (observed: 36 calls before the tool-call

Callers

nothing calls this directly

Calls 10

idempotentWriteKeyFunction · 0.85
getIdempotentWriteSetFunction · 0.85
resetIdempotentWriteSetFunction · 0.85
isIdempotentMethod · 0.80
shortCircuitResultMethod · 0.80
hasMethod · 0.45
recordMethod · 0.45
newTurnMethod · 0.45
statsMethod · 0.45

Tested by

no test coverage detected