fix(memory): score a decision from the first close after its date (#1518)

- settlement enters at the first session after the decision date, so news published after that day's close is not scored against the same day's close
This commit is contained in:
Yijia-Xiao
2026-10-16 21:12:51 +00:00
parent 7142746bde
commit f5e3eae3a8
8 changed files with 51 additions and 30 deletions
+1 -1
View File
@@ -54,7 +54,7 @@ def test_fetch_returns_normalizes_symbol(monkeypatch):
assert queried[0] == "GC=F" # stock symbol normalized (#984)
assert queried[1] == "SPY" # benchmark left as the canonical symbol
assert raw is not None and days is not None
assert resolved == "2025-01-07" # resolution date recorded (#1251)
assert resolved == "2025-01-08" # resolution date recorded (#1251)
def test_news_lookup_normalizes_symbol(monkeypatch):