Trace an Encoded Temperature Reading
Trace an Encoded Temperature Reading
Follow a raw count across the handoff
Integration testingLocal checks use different expectations
Firmware
Local check passes: encodes tenths.
Contract reading: r/10 degrees
Message link
Raw count r, r ≠ 0 · waiting to send
Service decoder
Local check passes: interprets whole degrees.
Old interpretation: r degrees
Store · far-side observation
The same raw count arrives
Firmware
Local check passes: encodes tenths.
Contract reading: r/10 degrees
Message link
Send succeeded.
Service decoder
Received raw count r, r ≠ 0
Local check passes: interprets whole degrees.
Old interpretation: r degrees
Store · far-side observation
Inspect what the service stores
Firmware
Local check passes: encodes tenths.
Contract reading: r/10 degrees
Message link
Raw count r, r ≠ 0 · send succeeded.
Service decoder
Local check passes: interprets whole degrees.
Old interpretation: r degrees
Store · far-side observation
Observed r degrees · mismatch
Check both ends against the shared contract
Firmware
Independent shared-contract check passes.
Contract reading: r/10 degrees
Message link
Raw count r, r ≠ 0 · send succeeded.
Service decoder
Independent shared-contract check fails under the old interpretation.
Old interpretation: r degrees
Shared contract at receiver: r/10 degrees
Store · far-side observation
Previous run: observed r degrees · mismatch
Replay with the corrected decoder
Firmware
Independent shared-contract check passes.
Contract reading: r/10 degrees
Message link
Raw count r, r ≠ 0 · send succeeded.
Service decoder
Corrected decoder interprets tenths.
Old interpretation: r degrees (previous run)
Shared contract at receiver: r/10 degrees
Store · far-side observation
Observed r/10 degrees · matches the contract
Each component passes its own check while the two sides expect different units.
Technical boundaries. The example uses a symbolic nonzero count r, with the link delivering that count intact. The store is the far-side observation used to check interpretation. The replay covers a unit mismatch and its correction. A change to the unit or encoding reopens the test.