Yijia-Xiao
8db41f6bca
fix(memory): gate past-context lessons to point-in-time in backtests
...
- get_past_context returned every resolved lesson regardless of the run date, so
a historical run could learn from an outcome that had not happened yet
- record each resolved entry's resolution date (the last price bar used) and
filter get_past_context(as_of=trade_date) on it for a historical run; a
current-date run passes None so live behavior and pre-migration entries (no
stored resolution date, conservatively excluded from backtests) are unaffected #1251
2026-08-30 07:03:06 +00:00
..
2026-04-18 20:42:11 +08:00
2026-06-21 23:50:33 +00:00
2026-07-05 14:29:06 +00:00
2026-06-21 22:31:35 +00:00
2026-07-05 14:29:07 +00:00
2026-06-14 16:38:36 +00:00
2026-07-05 14:29:07 +00:00
2026-06-14 17:03:17 +00:00
2026-08-30 06:47:00 +00:00
2026-07-05 14:29:07 +00:00
2026-06-21 21:03:05 +00:00
2026-06-21 21:03:05 +00:00
2026-07-18 06:28:38 +00:00
2026-06-13 20:50:21 +00:00
2026-04-18 20:42:11 +08:00
2026-05-11 02:30:24 +00:00
2026-06-13 21:30:11 +00:00
2026-08-30 06:18:59 +00:00
2026-06-14 16:38:36 +00:00
2026-06-21 21:03:05 +00:00
2026-08-30 06:18:59 +00:00
2026-06-21 21:03:05 +00:00
2026-06-21 21:03:05 +00:00
2026-06-14 15:56:59 +00:00
2026-05-30 23:56:32 +00:00
2026-07-05 14:29:07 +00:00
2026-08-30 06:26:57 +00:00
2026-05-31 01:58:32 +00:00
2026-06-14 02:46:29 +00:00
2026-08-30 07:03:06 +00:00
2026-08-30 07:03:06 +00:00
2026-05-31 06:20:55 +00:00
2026-04-25 07:41:36 +00:00
2026-07-05 14:29:07 +00:00
2026-07-18 06:28:38 +00:00
2026-06-14 16:38:36 +00:00
2026-07-18 06:28:38 +00:00
2026-06-14 16:38:36 +00:00
2026-06-21 22:09:43 +00:00
2026-06-21 21:03:05 +00:00
2026-06-14 07:23:19 +00:00
2026-06-14 18:49:02 +00:00
2026-06-14 06:30:43 +00:00
2026-06-14 04:13:39 +00:00
2026-07-05 14:29:07 +00:00
2026-06-21 23:22:30 +00:00
2026-07-05 14:29:07 +00:00
2026-05-31 22:38:47 +00:00
2026-08-30 06:38:15 +00:00
2026-08-30 06:18:59 +00:00
2026-05-31 00:51:30 +00:00
2026-07-05 14:29:07 +00:00
2026-07-18 06:28:38 +00:00
2026-06-21 22:31:35 +00:00
2026-08-30 07:03:06 +00:00
2026-07-05 14:29:07 +00:00
2026-07-05 14:29:07 +00:00
2026-05-31 06:13:35 +00:00
2026-06-14 07:10:15 +00:00
2026-06-21 21:28:59 +00:00
2026-06-14 07:10:15 +00:00