Jalal Hussein’s dinosaur runner asks TypeSafe’s Jev to choose JUMP or WAIT. The cactus keeps moving while the model answers. The browser handles movement and collisions, so it can measure whether the jump actually came in time.

Give the model a forecast

  • The question builder estimates where the cactus will be when the answer arrives, using the previous browser round trip. It gives Jev the dinosaur’s predicted foot height both when the nose reaches the cactus and when the tail clears it.
  • The browser checks the run, request and obstacle before applying a reply. A JUMP for an obstacle that has passed gets discarded. A jump for the current obstacle can still be early or late enough to hit it.

Keep the timing and outcome in the same trace

  • The run export records the provider response time, browser round trip and when the game applied the action. It also records the safe takeoff window, calculated from the game’s physics.
  • Two recorded early jumps in the repo’s test fixtures cleared the cactus at the nose but hit it on the way down. The local replays reproduced those collisions. Waiting until the next sampling opportunity cleared the cactus in both fixtures.

Caveat: All 16 local tests passed, and the app built. Live Jev play requires operator access, so the checks establish the game’s timing behavior, not Jev’s live latency or clear rate.