From 1304ab927cd6ef0c8cc0404dacec41fbea3d4da9 Mon Sep 17 00:00:00 2001 From: James Lin Date: Sat, 28 Mar 2026 03:03:22 +0800 Subject: [PATCH] fix test: update hardcoded seed date to stay within 14-day age limit The reflection-bypass-hook test seeds derived entries with runAt = 2026-03-12, which is now 15 days old and exceeds DEFAULT_REFLECTION_DERIVED_MAX_AGE_MS (14 days). The age filter in rankReflectionLines() correctly filters out the expired entry, causing all derived assertions to fail. Updated to 2026-03-26 (2 days ago) to keep the entry well within the window. Fixes #384. --- test/reflection-bypass-hook.test.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/reflection-bypass-hook.test.mjs b/test/reflection-bypass-hook.test.mjs index 87b5a95..8631595 100644 --- a/test/reflection-bypass-hook.test.mjs +++ b/test/reflection-bypass-hook.test.mjs @@ -96,7 +96,7 @@ async function seedReflection(dbPath, agentId) { command: "command:new", scope: "global", toolErrorSignals: [], - runAt: Date.UTC(2026, 2, 12, 15, 0, 0), + runAt: Date.UTC(2026, 2, 26, 15, 0, 0), // 2026-03-26 — within 14-day derive age limit usedFallback: false, embedPassage: async () => FIXED_VECTOR, vectorSearch: async () => [],