The scenario: update the screen quickly without replacing authority
A live queue event can highlight a newly called token quickly, while a full snapshot remains necessary to reconstruct the complete display state. After a reconnect, the display may receive both forms for one call, a late event or a sequence that restarted after an operational change. Treating every message as an interchangeable full screen can move the display backwards or leave it stuck.
This Movo-X case combines selected source history with 19 local JVM cases: seven DTO cases, six line-parser cases and six virtual-time engine scenarios. Fake services, a recording player and synthetic queue data isolate the client contract. They do not reproduce an actual clinic display or backend restore.
Trace the contract alignment before describing current behaviour
A selected 19 October 2026 source change introduced explicit delta-event models, snapshot configuration metadata and revised announcement timing fields. Its model diff also changed the heartbeat wire value for a live stream to connected and represented the uniform error code field. The companion HTTP diff changed selected heartbeat decoding and acknowledgement request-body construction.
Only those two historical files were compared; the earlier revision was not built or deployed here. The current local cases run against the later pinned application revision. This is evidence of selected implementation evolution, not recovery of every design discussion, complete commit acceptance or proof of what was running on a TV on that date.
Keep full projections and event deltas as different models
The current DTO fixtures decode a synthetic full snapshot with facility, policy, rooms, waiting tokens and announcement information, plus a separate queue event containing its sequence, type and ticket. Other selected cases cover optional/null and unknown fields, configuration defaults, error code and heartbeat serialization.
The decoder deliberately tolerates selected additions from a newer server. That compatibility choice is not a replacement for server-side disclosure policy: a client that ignores an unknown field cannot prevent the server from sending it. The earlier public-projection chapter addresses that distinct boundary. Required identity, version interpretation and displayed content still need their own acceptance.
Parse event framing without calling it complete network acceptance
The six parser cases cover selected event types and identifiers, comments, multiline data, CRLF input, carried identifiers, default message type, a retry field and a field without a colon. They feed lines directly into a parser.
Those examples do not exercise arbitrary byte chunking, UTF-8 decoding, stream size limits, every protocol-conformance edge or a real HTTP connection. The engine owns reconnection separately from line framing. A release package should state which layer was tested rather than turning successful line examples into a broad claim that every server-sent event path is correct or bounded.
Patch a known room promptly and ask for a full refresh
The selected event scenario starts from a synthetic snapshot, injects a newer call for a displayed room and observes the serving token and sequence change. Its recording player receives the event identifier, and a later virtual-time advance observes another snapshot request. The source schedules an authoritative refresh for accepted newer events.
That fast patch is deliberately partial. It cannot reconstruct every queue count, transfer or policy result from a ticket delta alone. The selected test proves one room-call path with fake services; it does not measure screen latency, server ordering, physical audio or the correctness of every event type.
Do not move the screen backwards for an older event
A selected engine fixture delivers sequence 12 before 11. The screen remains at 12 and the next fake stream open receives the selected resume identifier. A separate replay scenario starts from a newer snapshot, offers a fresh older call twice and an aged call, and observes one recorded fresh announcement without moving the displayed serving token backwards.
The source treats screen ordering and announcement eligibility as separate decisions. A late but fresh call may still be offered to the gate even when its sequence cannot patch the screen. That is a recorded product policy to review, not a universal rule for every queue. The recording player establishes invocation, not audibility.
Deduplicate an event and snapshot by call identity
Another selected engine case supplies the same synthetic call identifier through both an event and snapshot while virtual time advances through repeated refreshes. The recording player receives one entry for that identifier. The gate’s separate chapter explains the selected age and bounded-memory conditions behind that outcome.
This result is intentionally narrower than exactly-once delivery. It covers one selected client instance and retained state. A process restart, storage failure, evicted identifier, missed queue item or a person who did not hear the speaker needs separate handling and evidence.
Recover a lower sequence without freezing on an ETag
The inspected snapshot policy initially refuses a lower sequence and accepts a second lower polling result as a reset. One selected virtual-time fixture demonstrates that sequence. It is a recovery heuristic, not proof that the backend actually performed a restore or that every lower response should always replace the screen.
The accompanying ETag case is important: the engine retains a response tag only when it accepts that snapshot. The fake endpoint changes both sequence and tag; the test observes eventual acceptance instead of getting stuck on not-modified responses for a previously rejected body. Real proxy validators, polling races and server sequence policy were not exercised.
A practical display-reconciliation handover
Keep the 19 scoped cases with their JUnit records and source revisions. Add controlled engine tests for the remaining event types, malformed bodies, unavailable room context, competing refreshes and configuration changes. Inspect HTTP framing and validator behaviour separately, then run approved hardware acceptance using synthetic tokens.
For a founder or CTO, this makes a live display understandable as several contracts: a wire model decodes, a newer event can patch selected state, a snapshot restores the full projection, a cursor resumes the stream and a separate gate controls announcement attempts. Historical source explains how selected contracts changed; it does not establish current runtime, complete correctness or actual clinic outcomes.
Compare the reviewed boundaries
Reconciliation boundaries and their evidence
On smaller screens, scroll across to compare every column. Keyboard users can focus the table and use the arrow keys.
| Boundary | Selected local evidence | Separate acceptance |
|---|---|---|
| Wire compatibility | Seven DTO and six line-parser cases | Complete protocol and HTTP limits |
| Fast event patch | Virtual-time known-room call scenario | All event types and real latency |
| Replay/cursor | Selected ordering and duplicate-ID scenarios | Gateway history, storage and interruption |
| Snapshot reset/ETag | Two selected recovery fixtures | Authoritative reset policy and actual proxies |
Illustrative control flow
Pseudocode summarizing the decision boundary. It is not copied production code or a deployment instruction.
on_event(event):
offer_eligible_call_identity_to_the_announcement_gate(event)
if event.seq > displayed.seq:
patch_supported_fields(event)
request_authoritative_snapshot()
on_snapshot(reply):
if accept_projection_under_reset_policy(reply):
replace_displayed_projection(reply)
retain_reply_etag()About this engineering series
Written by Omer Muneer Qazi from a review of Movo-X implementation and dated engineering records. This article explains source behaviour and historical observations; current production, clinical outcomes and store availability require their own verification. Examples are synthetic and proposed test cases are identified as such.
Explore the Movo-X engineering series → · Related implementation experience →
Discuss a similar engineering problem
Send the workflow, current platform and the decision your team needs to make. I can help define an implementation or review scope with concrete acceptance evidence.
Discuss your project on WhatsApp ↗