tool-scope 테스트를 memory_stats 새 방침(기억·메모리 어휘에서만)에 맞춤 — 9ba718f가 방침을 바꾸면서 "항상 남는다" 단언 2개가 실패한 채로 커밋됨

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
kimandClaude Opus 5.5 committed 2026-10-25 10:56:17 +09:00
1 parent 9ba718fe68
commit 5731f10a38
1 file changed
+8 -7
+8 -7
View File
@@ -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('앞 턴 주제를 잇는 후속 발화도 잡는다', () => {