## Fix
The M1 soak (m1-20260831, PR #3) found console `wifi reconnect` never
returns to CONNECTED: **0/5 soak cycles + 0/1 controlled repro = 0/6**.
Root cause: `wifi_service.cc reconnect()` called `esp_wifi_connect()`
while the STA was still associated — IDF v6 rejects it (`sta is
connected, disconnect before connecting to new ap`), no
`WIFI_EVENT_STA_DISCONNECTED` fires, so the event-driven retry never
engaged and the app stayed CONNECTING indefinitely.
`reconnect()` now calls `esp_wifi_disconnect()`; the existing disconnect
handler drives `esp_wifi_connect()` while `configured_`. Already-idle
(`ESP_ERR_WIFI_NOT_CONNECT`) keeps a direct connect.
`connect_sta`/`initialize`/portal paths unchanged (already disconnect
first).
## On-device re-verify (fixed build, /dev/ttyACM0)
- **3/3 cycles** `wifi reconnect` → CONNECTED again in **~10s**, same IP
restored (192.168.50.178); telemetry `CONNECTED→DISCONNECTED→CONNECTED`
per cycle proves the handler path (DISCONNECTED state is only set by the
event handler); IDF log shows `state: init→auth→assoc→run` → `connected`
→ `sta ip:`; zero `Reconnect failed:` warnings. [PASS-fix-cycle-1..3]
- Boot regression: auto-connect GOT_IP, JSONL `ap_setup:false`,
`tf_logging:true`. [PASS-fix-boot]
## Evidence amendment
`poc/evidence/m1-20260831/manifest.json`: verdict FAIL → **PASS** with
the fix commit recorded (`d084276`) and re-verify stats added to
metrics; soak artifacts and the historical FAIL notes kept unchanged.
`frame-evidence` green.
Diff: 5 insertions / 1 deletion in `wifi_service.cc` + manifest note.
---------
Co-authored-by: ania-lain <[email protected]>
Add the M1 milestone tree under poc/ (m1_hardware + poc_a apps,
shared common components, evidence schema). Merges the plan's
'm1 baseline+fixes' and 'wifi provisioning' batches: the poc/ tree is
entirely untracked and both concerns share files.
M1 hardware baseline:
- landscape ST7305 RIP display via LVGL I1 driver
- TF-card status log: JSONL telemetry with CRC32C per line; append
buffer widened to line[640] after the 512-byte truncation defect
(payload ~550B with real values) was root-caused on-device
- PCF85063 RTC read, SHTC3 temperature/humidity with plausibility
checks, KEY input with short/long/portal press thresholds
- boot-time partition identity check and M1-002 boot record fields
(device_id, image_sha256, reset_reason, services status)
WiFi web provisioning:
- softAP portal Frame-Setup-xxxx with HTTP endpoints /scan, /connect,
/clear; httpd handlers never call httpd_stop (deadlock hazard) — a
1s monitor task executes stop/start/connect actions
- credentials persist to system_fs wifi.json (littlefs) per the
SEC-010 development exception (plaintext, documented in _doc)
- fallback: 5 disconnects without IP or 60s no-IP -> stop retry,
portal returns; GOT_IP tears the AP down
- KEY >=3s hold requests the portal; prov start/stop/status console
commands; ap_active/ap_mode_requested surfaces in status JSON/text
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)
Co-authored-by: Sisyphus <[email protected]>