Audit 4 - protocol, state machine, and safety
Result: PASS at frozen-contract level.
Independent behavior review
- SET_TARGET accepts only one byte: 0 or 20..70. Legal commit precedes a zero-length
0x81 ACK. All invalid requests are silent drops.
- GET_SNAPSHOT is zero-length and returns only
0x82 data. There is one outstanding Host transaction and no queue or sequence matching.
- Port selection locks at the first start bit and survives through response completion; only the selected TX is active.
- The BMC parser is streaming, case-insensitive, separator-tolerant, and commits exactly 48 bytes. Partial, short, long, invalid, timed-out, echo-only, or UART-error input cannot advance the epoch.
- PREHEAT depends on valid CT, AUTO depends on three distinct BMC epochs, and repeated GET cannot cause repeated PI integration.
- Global BMC stale forces all PTC off/all fans 100. Invalid and 74/76/77 C actions are more immediate than normal PI requests.
- STOPPED keeps acquisition/GET active and requires safe requalification before returning to heat.
- Identification stimulus has a hardware expiry and is absent from production source closure.
- Snapshot locks bank and epoch identity for the whole frame.
Correction made before PASS
The pre-existing Host watchdog and direct 32-duty SET_ALL were removed from the frozen 6400 behavior. Host disconnection now has no autonomous-state effect.
Follow-up gates
Simulation/fuzz/formal must test bad CRC no target change, ACK-after-commit only, stale/invalid/hard-limit priority, epoch gating, recovery, port lock, stimulus expiry, and reset-safe outputs.