Choosing Current State, Replayable History, and Telemetry
Choosing Current State, Replayable History, and Telemetry
What should the twin remember?
Event replayAsset and synchronization path
Gateway records
- Current stateController A is authoritative for its asset observations.Mode: normal · Health: normal · Alarm: clearCommand status: no command issuedFreshness: last synchronized observation
- Event historyRetain replayable events.
Source sequences remain scoped to their controller.
Cloud view
- Current state copyLast synchronized operating state
Asset and synchronization path
Gateway records
- Current state · Later summaryController A is authoritative for its asset observations.Mode: inspection · Health: review pending · Alarm: raisedCommand status: no command issuedFreshness: local observation tₐ′
- Event historyBuffer alarm and later transition by source sequence.
- AlarmSource: controller A · Observation: tₐSource sequence: A-before
- State transitionSource: controller A · Observation: tₐ′Source sequence: A-after
- Raw telemetrySummarize measurements where the decision permits.
- Full resolution when the decision requires itRetain the underlying measurement stream.
Cloud view
- Stale / last synchronizedPrior state during the outage
Asset and synchronization path
Gateway records
- Current state · Later summaryController A is authoritative for its asset observations.Mode: inspection · Health: review pending · Alarm: raisedCommand status: no command issuedFreshness: local observation tₐ′
- Event historyBuffer alarm and later transition by source sequence.
Source sequences remain scoped to their controller.
- Raw telemetrySummarize measurements where the decision permits.
- Full resolution when the decision requires itRetain the underlying measurement stream.
Single-slot, max-observation-timestamp policy for summaries and events
- Arrival orderLater state summary tₐ′ → Older alarm tₐ
- Shared per-asset slotKeeps the later summary because tₐ < tₐ′
- Arriving alarmDiscarded: older observation timestamp
Separate current state and event history
- Current state · Later summaryController A is authoritative for its asset observations.Mode: inspection · Health: review pending · Alarm: raisedCommand status: no command issuedFreshness: local observation tₐ′
Append the arriving alarm to event history at its original observation time.
- Alarm · ReplayedSource: controller A · Observation: tₐSource sequence: A-before
Asset and synchronization path
Gateway records
- Current state · Later summaryController A is authoritative for its asset observations.Mode: inspection · Health: review pending · Alarm: raisedCommand status: no command issuedFreshness: local observation tₐ′
- Event historyBuffer alarm and later transition by source sequence.
Source sequences remain scoped to their controller.
- Raw telemetrySummarize measurements where the decision permits.
- Full resolution when the decision requires itRetain the underlying measurement stream.
Single-slot, max-observation-timestamp policy for summaries and events
- Arrival orderLater state summary tₐ′ → Older alarm tₐ
- Shared per-asset slotKeeps the later summary because tₐ < tₐ′
- Arriving alarmDiscarded: older observation timestamp
Separate current state and event history
- Current state · Later summaryController A is authoritative for its asset observations.Mode: inspection · Health: review pending · Alarm: raisedCommand status: no command issuedFreshness: local observation tₐ′
Repeat alarm: source A and sequence A-before match the existing entry. Keep a single alarm entry. Replay the transition after it by source sequence.
- Alarm · ReplayedSource: controller A · Observation: tₐSource sequence: A-before
- State transition · ReplayedSource: controller A · Observation: tₐ′Source sequence: A-after
Asset and synchronization path
Gateway records
- Current state · Later summaryController A is authoritative for its asset observations.Mode: inspection · Health: review pending · Alarm: raisedCommand status: no command issuedFreshness: local observation tₐ′
- Event historyBuffer alarm and later transition by source sequence.
Source sequences remain scoped to their controller.
- Raw telemetrySummarize measurements where the decision permits.
- Full resolution when the decision requires itRetain the underlying measurement stream.
Single-slot, max-observation-timestamp policy for summaries and events
- Arrival orderLater state summary tₐ′ → Older alarm tₐ
- Shared per-asset slotKeeps the later summary because tₐ < tₐ′
- Arriving alarmDiscarded: older observation timestamp
Separate current state and event history
- Current state · Later summaryController A is authoritative for its asset observations.Mode: inspection · Health: review pending · Alarm: raisedCommand status: no command issuedFreshness: local observation tₐ′
Repeat alarm: source A and sequence A-before match the existing entry. Keep a single alarm entry. Replay the transition after it by source sequence.
- Alarm · ReplayedSource: controller A · Observation: tₐSource sequence: A-before
- State transition · ReplayedSource: controller A · Observation: tₐ′Source sequence: A-after
Cross-controller ordering
- Historical outage snapshotStale / last synchronized
Controller A · Source sequence
- A-earlier → A-laterTime a · Sequence A-beforeTime a′ · Sequence A-after
Controller B · Source sequence
- B-earlier → B-laterTime b · Sequence B-beforeTime b′ · Sequence B-after
Use A as reference. Add the assumed offset δ to both B timestamps.
Assume δ-low
- b′ + δ-low < a′B-later → A-later
Assume δ-high
- a′ < b′ + δ-highA-later → B-later
Pair order · Unresolved without trustworthy cross-source evidence
The target site must define how replay handles controller restarts.
Classify the records
The gateway keeps current state and replayable events. Raw measurements feed a summary or stay at full resolution as needed.
Technical boundaries. The replay uses symbolic observation times and assumes clock offsets to demonstrate how the proposed order between controllers can reverse. Sequence numbers order records within each controller’s stream, and the site must define what replay does after a controller restarts.