docs(evidence): add M1 soak and TF transition results (#3)

## 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]>
This commit is contained in:
Lain
2026-08-31 11:33:03 +08:00
committed by GitHub
co-authored by lain
parent d73cadbcd6
commit b6ed3234a1
45 changed files with 12103 additions and 0 deletions
@@ -0,0 +1,19 @@
18:09:06 phase-1: hard reset; capture boot + telemetry 45s (sliced for arrival timing)
18:09:51 boot telemetry n=4 seqs=[1, 3, 4, 5] first-line 3.7s after reset (READY classification precedes first append; logging starts same loop pass)
18:09:51 phase-1b: 25s live cadence watch (expect 2-3 telemetry lines ~10s apart)
18:10:10 telemetry lines added during <=25s watch: 2
18:10:14 status --json after boot: tf_logging=True logging_error=0
18:10:14 [PASS-a] telemetry n=4 >=3, schema=1, event=status, crc32c 8hex all, sequence strictly increasing [1, 3, 4, 5], first JSONL 3.7s after reset (<=15s: append only runs in READY state => JSONL within 10s of READY holds), cadence 2 lines/25s, status tf_logging=true logging_error=0
18:10:18 [FAIL-b] rtc_valid=True utc=2026-01-06T07:58:09Z partitions_ok=True sensor_valid=True temp=274 hum=368; utc did not advance between rounds
18:10:22 >>> PLEASE PRESS KEY: exactly 2 SHORT (<1s) + 2 LONG (>=1s) presses.
18:10:22 >>> KEY WINDOW OPEN 180s -- press now
18:13:26 >>> KEY WINDOW CLOSED (baseline short=0 long=0; final short=0 long=0)
18:13:26 [DEFERRED-c] no presses observed during 180s window (user unavailable); deferred
18:13:26 >>> PLEASE PULL TF CARD NOW (keep it out until asked)
Traceback (most recent call last):
File "/tmp/opencode/m1-verify/t5_verify.py", line 335, in <module>
main()
File "/tmp/opencode/m1-verify/t5_verify.py", line 233, in main
dev.note(f"pull happened within poll gap {pull_gap:.1f}s (last non-ABSENT poll -> first ABSENT "
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: unsupported format string passed to NoneType.__format__