From bd17aed5fe72adf31dce99bbca81c435e8f6d99a Mon Sep 17 00:00:00 2001 From: Philipp Date: Thu, 1 Oct 2026 11:38:07 +0200 Subject: [PATCH] test(routing): use the real clock for the routed-session backlog check Routing stamps `session_topics.created_at` with the real time, but the test built the backlog with a fixed 2026-09-29 clock. From 30 Sep the routed sessions looked like they were in the future and were dropped. Production uses the real clock on both sides and is unaffected. Co-authored-by: Isaac --- tests/test_topic_routing.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test_topic_routing.py b/tests/test_topic_routing.py index 3bf325d..d38c8fb 100644 --- a/tests/test_topic_routing.py +++ b/tests/test_topic_routing.py @@ -333,7 +333,8 @@ def chat(prompt: str, request: dict[str, Any], schema: dict[str, Any]) -> dict[s quick: None, } with store.connection() as conn: - backlog = load_curation_backlog(conn, home=HOME, now=NOW) + # Routing stamps the real time, so the backlog must use the real clock too. + backlog = load_curation_backlog(conn, home=HOME, now=datetime.now(timezone.utc)) assert {item["living_page"] for item in backlog} == { "topics/unity-gateway", "topics/agent-atlas",