WarUI

Out-of-order response handling

GRID-A04-F20P0beyond-baselinePlanned

Tags each request with a model version and a sequence number, so responses that arrive late or out of order are applied only if they still match the current model. Responses for the same block keep only the newest. This guarantees the grid never shows data from an old sort or filter.

Planned. This page shows the specification from issue #180. The live example, source for every framework and the API reference replace it when the feature ships.

Live example

Randomised latency (100-3000 ms) per request makes reordering likely.

Expected behavior

With protection on, the log shows 'discarded: staleModel' for late responses, and the grid always matches the final filter. With protection off, the grid visibly shows wrong rows, demonstrating why protection matters.

Planned API surface

request.modelVersionrequest.sequenceWindowResult.dataVersionevent: responseDiscarded (reason)

Acceptance criteria

  • A response whose modelVersion is older than the current model is never applied. (pending)
  • For the same block and model version, a response with a lower sequence than one already applied is discarded. (pending)
  • When the server provides dataVersion, a response with an older dataVersion than the cached data is discarded. (pending)
  • The protection-off mode exists only in the docs demo harness, not as a public option. (pending)