From 10be45ec5521e22a55f65f3b8750d10a7eeed74a Mon Sep 17 00:00:00 2001 From: dingo Date: Wed, 21 Oct 2026 22:32:59 -0400 Subject: [PATCH] fix(server): sessions see the open batch's simulated tick With commits every flush interval the session layer still read the committed head as the simulated tick, so clients saw time advance 20 ticks at once and scheduled their actions for ticks the server had already simulated, which were refused (poor movement). Sessions now get the open batch's working tick, so welcome ticks, receipts, the simulated watermark and action admission follow what has actually been simulated. Refreshes the DEV session window. Co-Authored-By: Claude Opus 5.5 --- apps/evo-server/main.cpp | 8 +++++++- deploy/kubernetes/region/dev-session-route/listener.yaml | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/apps/evo-server/main.cpp b/apps/evo-server/main.cpp index 491f805..baf5d88 100644 --- a/apps/evo-server/main.cpp +++ b/apps/evo-server/main.cpp @@ -1014,7 +1014,13 @@ int serve_cellular(Options& o) { std::chrono::system_clock::now().time_since_epoch()) .count()); static_cast(bridge->accepting(wall)); - bridge->poll(status, wall); + // Sessions schedule and admit against what has been simulated: the open batch's + // working tick runs up to a flush interval ahead of the committed head. + auto session_status = status; + if (batch_builder) + session_status.simulated_tick = + std::max(session_status.simulated_tick, batch_builder->candidate().tick()); + bridge->poll(session_status, wall); deliver_finalized(); set_ready(status.ready); if (!phase || *phase != status.phase) { diff --git a/deploy/kubernetes/region/dev-session-route/listener.yaml b/deploy/kubernetes/region/dev-session-route/listener.yaml index 6e8e790..46f02eb 100644 --- a/deploy/kubernetes/region/dev-session-route/listener.yaml +++ b/deploy/kubernetes/region/dev-session-route/listener.yaml @@ -12,7 +12,7 @@ spec: env: - {name: REGION_SESSION, value: "dev"} - {name: REGION_SESSION_LISTEN, value: "0.0.0.0:7400"} - - {name: REGION_SESSION_WINDOW, value: "dev-20261022T015607-b508b4f9:1792648567"} + - {name: REGION_SESSION_WINDOW, value: "dev-20261022T023259-137c9cf6:1792650779"} - {name: REGION_M10_MAX_GRANT_LIFETIME, value: "14400"} ports: # QUIC (ADR-0090): UDP only; nothing listens on TCP 7400.