Keep the ride local when the sensor goes silent

A server authoritative simulation would give CyclingPlay a canonical session state and a clear place to validate incoming measurements. That is a credible choice where shared results must be adjudicated centrally, but it makes continued riding depend on remote availability. For the keyboard MVP and its planned sensor integration, this decision record proposes local simulation authority with an explicit boundary around input validity.

The rejected option has a legitimate advantage

Central execution concentrates validation and makes session reconstruction easier because accepted inputs pass through the same authority. Its operational cost is that preserving the ride during disconnection requires either speculative local state or a deliberate pause. Speculation then introduces reconciliation into a product whose immediate requirement is responsive pedalling. The proposal rejects that dependency, while accepting that locally produced results cannot carry the same competitive trust.

A silent sensor must lose authority

An expired measurement must stop contributing propulsion even while the scene continues to render.

Put freshness at the input boundary

The proposed sensor adapter uses Bluetooth fitness services for interoperability, but converts received measurements into an internal input contract before the simulation sees them. That contract carries validity and a local monotonic receipt timestamp, with a proposed freshness limit of 500 ms to be verified against the reporting behaviour of supported devices. The failure under review is a silent sensor whose last cadence value remains cached, which could otherwise sustain fictitious effort indefinitely. The simulation checks expiry independently of the adapter callback, withdraws propulsion on expiry and lets the existing motion model determine how the bicycle slows. Keyboard control remains an explicit user selection, so stale sensor data cannot silently become a different source of effort.

The condition that would reverse the decision

Keep authority local while uninterrupted individual exercise matters more than centrally enforceable results. Reconsider server authority if adjudicated competition becomes a product requirement and stopping a session when that authority is unavailable becomes acceptable. Before design freeze, test the proposed boundary by suppressing sensor notifications while rendering continues, and require propulsion to expire without another notification arriving. The remaining decision is how long each supported device may legitimately remain quiet, because an overly short limit turns normal reporting behaviour into repeated loss of effort.

Back to CyclingPlay · Domains

← Back to CyclingPlay
Engineering & Architecture Brief

Keep the ride local when the sensor goes silent

A server authoritative simulation would give CyclingPlay a canonical session state and a clear place to validate incoming measurements. That is a credible choice where shared results must be adjudicated centrally, but it makes continued riding depend on remote availability. For the keyboard MVP and its planned sensor integration, this decision record proposes local simulation authority with an explicit boundary around input validity.

The rejected option has a legitimate advantage

Central execution concentrates validation and makes session reconstruction easier because accepted inputs pass through the same authority. Its operational cost is that preserving the ride during disconnection requires either speculative local state or a deliberate pause. Speculation then introduces reconciliation into a product whose immediate requirement is responsive pedalling. The proposal rejects that dependency, while accepting that locally produced results cannot carry the same competitive trust.

A silent sensor must lose authority

An expired measurement must stop contributing propulsion even while the scene continues to render.

Put freshness at the input boundary

The proposed sensor adapter uses Bluetooth fitness services for interoperability, but converts received measurements into an internal input contract before the simulation sees them. That contract carries validity and a local monotonic receipt timestamp, with a proposed freshness limit of 500 ms to be verified against the reporting behaviour of supported devices. The failure under review is a silent sensor whose last cadence value remains cached, which could otherwise sustain fictitious effort indefinitely. The simulation checks expiry independently of the adapter callback, withdraws propulsion on expiry and lets the existing motion model determine how the bicycle slows. Keyboard control remains an explicit user selection, so stale sensor data cannot silently become a different source of effort.

The condition that would reverse the decision

Keep authority local while uninterrupted individual exercise matters more than centrally enforceable results. Reconsider server authority if adjudicated competition becomes a product requirement and stopping a session when that authority is unavailable becomes acceptable. Before design freeze, test the proposed boundary by suppressing sensor notifications while rendering continues, and require propulsion to expire without another notification arriving. The remaining decision is how long each supported device may legitimately remain quiet, because an overly short limit turns normal reporting behaviour into repeated loss of effort.

Related Architecture Specifications (CYCLINGPLAY): vrindoorcycling.com · cyclingplay.com

More Technical Articles on vrindoor.com

Decoupling Cadence Ingestion from Frame Stepping in Browser Cycling Simulation →