From 3261a919c29aefdabb2b9a2ffe1536643d154037 Mon Sep 17 00:00:00 2001 From: bchanot Date: Thu, 5 Nov 2026 17:47:33 +0100 Subject: [PATCH] feat(memory): rerank bound 5 s (measurement gate) --- mods/memory/hooks/register.test.ts | 2 +- mods/memory/hooks/register.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mods/memory/hooks/register.test.ts b/mods/memory/hooks/register.test.ts index f0e4771..9c369b6 100644 --- a/mods/memory/hooks/register.test.ts +++ b/mods/memory/hooks/register.test.ts @@ -2260,7 +2260,7 @@ test('IR1: the first prompt of a context asks and injects the block', await say($, GO) expect(w.asks).toHaveLength(1) expect(w.asks[0]).toMatchObject({ model: 'claude-haiku-5-5', - effort: 'low', maxTokens: 64, timeoutMs: 3000 }) + effort: 'low', maxTokens: 64, timeoutMs: 5000 }) expect(w.asks[0]?.prompt).toContain('BLK-001 | mod design | ') expect(seen).toEqual([[BLOCK1]]) }) diff --git a/mods/memory/hooks/register.ts b/mods/memory/hooks/register.ts index 05d0425..d1b1919 100644 --- a/mods/memory/hooks/register.ts +++ b/mods/memory/hooks/register.ts @@ -23,7 +23,7 @@ type State = { export const IDLE_MS = 1800000 export const RECALL_CAP = 1500 export const HAIKU = 'claude-haiku-5-5' -export const RERANK_MS = 3000 +export const RERANK_MS = 5000 const SWITCH_FILE = '.claude/memory.json' const MAX_SWITCH_BYTES = 65536