Recovering a Lost Valve Command Reply
Recovering a Lost Valve Command Reply
Recovering a Lost Valve Command Reply
Command replayTrack the phone, command service, and valve as evidence arrives at each boundary.
Technician phone
POST /v1/devices/{deviceId}/commands
Idempotency-Key · original key
Command type · symbolic command type
Target state · Open
Actor ID · symbolic actor
Reason · optional
API gateway and command service
Command request arrives
Device gateway and valve
Target · Open
- Phone
- API gateway and command service
Technician phone
Timeout
API gateway and command service
Stored command_id · original ID
Current state · Accepted
Device gateway and valve
Awaiting device feedback
Phone ← Service · Reply stops short of the phone
202 Accepted · reply lost before the phone
command_id · original ID
Current state · Accepted
Server timestamp · symbolic
Trace ID · symbolic
GET /v1/devices/{deviceId}/commands/{commandId}
Service → Valve · Original dispatch
Queue and device delivery need the command ID and a duplicate-delivery rule.
Technician phone
Retrying after timeout
POST /v1/devices/{deviceId}/commands
Idempotency-Key · original key
Command type · symbolic command type
Target state · Open
Actor ID · symbolic actor
Reason · optional
API gateway and command service
Saved Idempotency-Key · original key
Stored command_id · original ID
Current state · Accepted
Device gateway and valve
Awaiting device feedback
Retry within the client retry window covered by the saved key. The request key matches the saved key.
Service → Valve · Original dispatch
Queue and device delivery need the command ID and a duplicate-delivery rule.
Technician phone
Recovered command_id · original ID
Current state · Accepted
GET /v1/devices/{deviceId}/commands/{commandId}
API gateway and command service
Stored command_id · original ID
Current state · Accepted
Device gateway and valve
Awaiting device feedback
- Stored command ID returned
- Phone recovers status link
Service → Valve · Original dispatch
Queue and device delivery need the command ID and a duplicate-delivery rule.
Technician phone
GET /v1/devices/{deviceId}/commands/{commandId}
Returned state · Accepted
API gateway and command service
Stored command_id · original ID
Current state · Accepted
Device gateway and valve
Awaiting device feedback
Service → Valve · Original dispatch
Queue and device delivery need the command ID and a duplicate-delivery rule.
Technician phone
Displayed state · Accepted
API gateway and command service
Stored command_id · original ID
Stored state · Accepted
Device gateway and valve
Open reported · original command ID
Service ← Valve · Open feedback for the original command ID
Service → Valve · Original dispatch
Queue and device delivery need the command ID and a duplicate-delivery rule.
Technician phone
Displayed state · Accepted
API gateway and command service
Stored command_id · original ID
Stored state · Applied
Device gateway and valve
Open reported · original command ID
Open feedback received · Service records Applied
Service → Valve · Original dispatch
Queue and device delivery need the command ID and a duplicate-delivery rule.
Technician phone
Displayed state · Accepted
API gateway and command service
Stored command_id · original ID
Stored state · Applied
Device gateway and valve
Open reported · original command ID
Phone → Service · Fresh GET /v1/devices/{deviceId}/commands/{commandId}
Service → Valve · Original dispatch
Queue and device delivery need the command ID and a duplicate-delivery rule.
Technician phone
Displayed state · Applied
API gateway and command service
Stored command_id · original ID
Stored state · Applied
Device gateway and valve
Open reported · original command ID
Phone ← Service · Fresh GET response · Applied
Service → Valve · Original dispatch
Queue and device delivery need the command ID and a duplicate-delivery rule.
The technician requests a valve opening. The phone keeps the key for that logical request.
Technical boundaries. The request fields and response identifiers use symbolic values. This retry falls within the window covered by the saved key. The queue and device still need a command ID and their own duplicate-delivery rule, whose behavior is outside the trace.