Skip to content

Commit d51cca1

Browse files
committed
docs(openspec): add measurable per-board hardware gates
Replaces the generic hardware smoke tests with explicit gates for loop latency, watchdog, sensor reconnect and role stability, NVS write failure and power loss, pump fail-safe and a reconnect soak, measured on all three boards including the single-core ESP32-C6. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012JY8RZscs5W8tLQMuZB95K
1 parent ac5d31a commit d51cca1

3 files changed

Lines changed: 33 additions & 1 deletion

File tree

‎openspec/changes/composition-root-platform-layer/tasks.md‎

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,16 @@
1111
- [ ] Update native mocks to construct dependency graphs explicitly.
1212
- [ ] Move files into final layer directories only after dependency cleanup is complete.
1313
- [ ] Verify native tests and all PlatformIO board builds.
14-
- [ ] Run hardware smoke tests for sensors, relays, local UI, MQTT, Web and OTA.
14+
- [ ] Run hardware smoke tests for sensors, relays, local UI, MQTT, Web and OTA (see the hardware gates below).
15+
16+
## Hardware gates
17+
18+
Measured on `esp32dev`, `norvi_ae01_r` and the single-core `olimex_esp32_c6_evb`; a gate fails on any board.
19+
20+
- [ ] NVS write failure: with injected open/write failures, every command returns `PERSIST_FAILED` and the
21+
runtime state is unchanged.
22+
- [ ] Power loss: cut power during 20 consecutive settings writes; the device boots every time with a
23+
valid configuration and the relays in their safe default.
24+
- [ ] Reconnect soak: 72 h with forced WiFi and MQTT disconnects every 30 min; no reboot, the minimum free
25+
heap stays above the low-heap threshold, and Home Assistant entities recover after each reconnect.
26+
- [ ] Watchdog and latency: 0 task-WDT resets and worst-case `loop()` iteration ≤ 500 ms during the soak.

‎openspec/changes/dallas-bus-abstraction/tasks.md‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,13 @@
1212
- [ ] Verify all PlatformIO builds.
1313
- [ ] Verify real NORVI shared-bus hardware.
1414
- [ ] Verify real dedicated-bus ESP32 hardware.
15+
16+
## Hardware gates
17+
18+
Measured on `esp32dev`, `norvi_ae01_r` and the single-core `olimex_esp32_c6_evb`; a gate fails on any board.
19+
20+
- [ ] Sensor reconnect: unplug and replug each probe 10 times; the temperature is invalid while it is
21+
disconnected and valid again within two rescan cycles after reconnecting.
22+
- [ ] Role stability: across all reconnects and reboots, pool and solar roles never swap ROM addresses
23+
(NORVI shared bus included).
24+
- [ ] Loop latency during rescan: worst-case `loop()` iteration ≤ 500 ms while a bus rescan runs (C6 included).

‎openspec/changes/pure-control-engine/tasks.md‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,13 @@
1010
- [ ] Remove `RelayModuleNode*` dependencies from rule/domain classes.
1111
- [ ] Add exhaustive native decision-table tests and edge cases.
1212
- [ ] Verify relay safety suite and all PlatformIO board builds.
13+
14+
## Hardware gates
15+
16+
Measured on `esp32dev`, `norvi_ae01_r` and the single-core `olimex_esp32_c6_evb`; a gate fails on any board.
17+
18+
- [ ] Loop latency: worst-case `loop()` iteration ≤ 500 ms and p99 ≤ 100 ms over a 24 h run per board.
19+
- [ ] Watchdog: 0 task-WDT resets during a 72 h soak per board.
20+
- [ ] Pump fail-safe: after losing the solar probe, the solar relay is off within one measurement cycle; the
21+
filter pump follows the time fallback policy.
22+
- [ ] Decision parity: relay states over a 24 h replay of recorded inputs match the pre-refactor firmware.

0 commit comments

Comments
 (0)