## M1 soak evidence (1h) + TF/KEY assist windows **Manifest verdict: FAIL — one criterion.** Console `wifi reconnect` never returns to CONNECTED (0/5 soak cycles + 0/1 controlled repro). Root cause: `wifi_service.cc reconnect()` calls `esp_wifi_connect()` while still associated; IDF v6 rejects it (`sta is connected, disconnect before connecting to new ap`), no disconnect event fires, so the event-driven auto-reconnect never engages. Boot auto-connect and the portal path are unaffected (`connect_stored` disconnects first). Fix tracked as a follow-up task. ### Soak metrics (3600s, run m1-20260831T021427Z) | criterion | result | | --- | --- | | JSONL count 360±10 | 358 PASS | | sequence strictly monotonic | 25..384 PASS | | status:FAILED lines | 0 PASS | | reset_reason constant | 11 everywhere PASS | | tf state | READY all samples PASS | | wifi reconnect → CONNECTED | 0/5 **FAIL** | | internal_free decline <15% | N/A (heap not instrumented) | ### Assist windows - W1 KEY ≥3s portal hold: PASS (AP up, auto-recovery to CONNECTED ≤120s) - W1 short/long: +2/+2 exact, no spurious (via retry window) PASS - W2 TF: 2 pull→insert cycles, 4/4 transitions PASS - W3 absent-boot: classified ≤0.9s, DEGRADED never FAILED, logging resumed PASS ### Tooling `frame-m1-capture` gains `--command`/`--command-interval` (periodic `wifi reconnect`) with pytest coverage. Gates: ruff/pyright/pytest/frame-partitions/frame-evidence/frame-doc-links/frame-sbom all green locally. Co-authored-by: ania-lain <[email protected]>
Architecture Proofs of Concept
This tree is isolated from the product firmware. It may implement only the minimum code needed to prove or disprove the gates in _doc/project.md.
Every board PoC under apps/ is a standard ESP-IDF project, and every shared firmware component
under common/components/ uses idf_component_register. The checked-in CMake presets, VS Code
ESP-IDF extension, and CI all use the same generated sdkconfig location. Board evidence may be
collected with the extension or the documented idf.py commands; ordinary host CMake must not link
ESP-IDF firmware targets.
Gate Order
- PoC-A: toolchain, dynamic ELF, scheduler, cancellation, and memory behavior
- PoC-B: display latency and SPI bandwidth
- PoC-C: lifecycle, update rollback, watchdog, and fault handling
- PoC-D: system/SD storage isolation and recovery
- PoC-E: power-loss durability, package fuzzing, and production security
A failed gate stops later gates and returns the architecture to review. PoC code must not be linked into the product components before all gates pass and the architecture is signed again.
Host-Only Contract Tests
host/ is the only ordinary CMake project. It produces test executables for ABI headers and pure state models; it does not produce ESP32 firmware or compile ESP-IDF components.
cmake -S poc/host -B .build/poc-host -DENABLE_SANITIZERS=ON
cmake --build .build/poc-host
ctest --test-dir .build/poc-host --output-on-failure
PoC-A provides the first ESP-IDF test application. Later board applications and pytest-embedded drivers are added one gate at a time after their required hardware and loader decisions are accepted.