From 5731f10a38473c378d4a315a1a5e43b2b4a7a827 Mon Sep 17 00:00:00 2001 From: kim Date: Sun, 25 Oct 2026 10:56:17 +0900 Subject: [PATCH] =?UTF-8?q?tool-scope=20=ED=85=8C=EC=8A=A4=ED=8A=B8?= =?UTF-8?q?=EB=A5=BC=20memory=5Fstats=20=EC=83=88=20=EB=B0=A9=EC=B9=A8(?= =?UTF-8?q?=EA=B8=B0=EC=96=B5=C2=B7=EB=A9=94=EB=AA=A8=EB=A6=AC=20=EC=96=B4?= =?UTF-8?q?=ED=9C=98=EC=97=90=EC=84=9C=EB=A7=8C)=EC=97=90=20=EB=A7=9E?= =?UTF-8?q?=EC=B6=A4=20=E2=80=94=209ba718f=EA=B0=80=20=EB=B0=A9=EC=B9=A8?= =?UTF-8?q?=EC=9D=84=20=EB=B0=94=EA=BE=B8=EB=A9=B4=EC=84=9C=20"=ED=95=AD?= =?UTF-8?q?=EC=83=81=20=EB=82=A8=EB=8A=94=EB=8B=A4"=20=EB=8B=A8=EC=96=B8?= =?UTF-8?q?=202=EA=B0=9C=EA=B0=80=20=EC=8B=A4=ED=8C=A8=ED=95=9C=20?= =?UTF-8?q?=EC=B1=84=EB=A1=9C=20=EC=BB=A4=EB=B0=8B=EB=90=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 5.5 --- tests/tool-scope.test.ts | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/tests/tool-scope.test.ts b/tests/tool-scope.test.ts index c01b743..5a18361 100644 --- a/tests/tool-scope.test.ts +++ b/tests/tool-scope.test.ts @@ -40,10 +40,9 @@ describe('키워드 게이트 — 관련 없는 턴에서 도구가 따라붙지 test('핵심 도구는 항상 남는다', () => { const f = filterFor('안녕'); - // 2026-09-04: memory_read를 memory_stats로 바꿨다. memory_read는 이제 기억 의도가 있는 - // 턴에만 실린다(사용량 기준 게이팅). memory_stats는 벡터 스토어를 보므로 계속 무조건 남는다 - // — 실제로 13회 호출된 유일한 메모리 도구다. - for (const name of ['web_search', 'web_fetch', 'memory_stats', 'python_eval']) { + // 2026-09-04: memory_read를 memory_stats로 바꿨다. 2026-10-25: memory_stats도 빠졌다 — 18회 호출 중 + // 16회가 벤치·테스트 세션이라 기억·메모리 어휘에서만 연다(아래 '수동 메모리 도구' 묶음). + for (const name of ['web_search', 'web_fetch', 'python_eval']) { assert.equal(f(name), true, `${name} 이(가) 사라짐`); } }); @@ -476,9 +475,11 @@ describe('수동 메모리 도구는 기억 의도가 있을 때만 (2026-09-04 } }); - test('memory_stats는 벡터 스토어를 보므로 이 게이트와 무관하게 항상 남는다', () => { - // 실제로 13회 호출된 유일한 메모리 도구다("얼마나 기억하고 있어?" 류). - assert.equal(filterFor('안녕하세요')('memory_stats'), true); + test('memory_stats는 기억·메모리 어휘에서만 (2026-10-25)', () => { + // 18회 호출 중 16회가 벤치·테스트 세션의 "몇 개나 기억해?" — 매 턴 실을 이유가 없다. + assert.equal(filterFor('안녕하세요')('memory_stats'), false); + assert.equal(filterFor('너 나에 대해 기억하는 게 몇 개나 돼?')('memory_stats'), true); + assert.equal(filterFor('벡터 디비 자료는 얼마나 되지?')('memory_stats'), true); }); test('앞 턴 주제를 잇는 후속 발화도 잡는다', () => {