## Summary
Completes the remaining M1-008 evidence gaps and drafts the owner pass
record (requirement **M1-008**; heap/stack instrumentation also closes
the M1-006 soak heap-integrity note "internal_free not evaluable").
### Firmware: `metrics` console command (console_service.{cc,hh})
- Machine-parseable `heap internal|psram free=<u> largest=<u>
min_ever=<u>` (heap_caps 8-bit pools) and `task <name>
stack_hwm_bytes=<u>` per FreeRTOS task via `uxTaskGetSystemState` (all
tasks: frame-sd/board/display/prov-mon/console_repl/IDLE/ipc/Tmr
Svc/esp_timer/wifi/tcpip/sys_evt).
- ESP-IDF Xtensa reports the high-water mark directly in bytes
(`StackType_t` = uint8_t), so the unit is documented in the field name
itself.
- Companion one-line sdkconfig change:
`CONFIG_FREERTOS_USE_TRACE_FACILITY=y` (required for
`uxTaskGetSystemState`; necessary build-config companion to the mandated
API).
- No JSONL/display/snapshot changes; no new files; partitions untouched;
clang-format 18.1.8 clean; build 0 warnings.
### Evidence (poc/evidence/m1-20260831/)
- `build/m1_frame_m1_hardware.map` — linker map of the instrumented
build (binary sha256 a0e937ba… pinned in the manifest note).
- `build/m1_size_components.txt` — `idf.py size` summary + `idf.py
size-components` breakdown.
- `build/m1_metrics_samples.txt` — three on-device samples (t≈14 s
boot-ish / post-selftest / post-60 s-idle) + selftest + status --json.
Highlights: internal heap min_ever 123295 B (largest block 53248 B),
PSRAM min_ever 8362016 B, smallest task stack HWM ipc0 552 B,
console_repl 2652 B free of 6144 B, idle drift ~36 B/min.
- `M1-PASS-RECORD.md` — completeness table for every M1-008 artifact
(path+sha256), M1-001..007 one-line acceptance summary, known
limitations; **ships PENDING owner confirmation, does not record Pass**.
- manifest.json: 3 artifact entries (+notes); .gitignore: re-include
`poc/evidence/**/build/` (map/size/metrics), same mechanism as the
existing `!poc/evidence/**/*.log`.
## Requirement refs
- M1-008 (pass-record artifacts: linker map, size-components, heap/stack
metrics, owner record draft)
- M1-006 (heap-integrity: heap free/largest/min-ever + per-task stack
HWM now instrumented)
## Gates
Build 0 warnings (clean rebuild, evidence-logged); ruff format/check,
pyright (0 errors), pytest 31 passed 1 skipped, frame-evidence validated
(1 manifest, 47 artifacts).
Co-authored-by: ania-lain <[email protected]>
290 lines
16 KiB
JSON
290 lines
16 KiB
JSON
{
|
|
"schema_version": 1,
|
|
"gate": "M1",
|
|
"run_id": "m1-20260831T021427Z",
|
|
"verdict": "PASS",
|
|
"started_at": "2026-08-31T02:14:27Z",
|
|
"finished_at": "2026-08-31T03:14:28Z",
|
|
"source": {
|
|
"repository_commit": "d73cadbcd6666951418681bf3ece841351cd6057",
|
|
"dirty": true,
|
|
"project_document_sha256": "7c2dc241f0333f0c9bf5dde8a9b23f6aa68725ddbf3e7cdadbf1a1785c3dff76"
|
|
},
|
|
"platform": {
|
|
"idf_tag": "v6.0.2",
|
|
"compiler": "gcc-15.2.0 (xtensa-esp-elf)",
|
|
"target": "esp32s3",
|
|
"sdkconfig_sha256": "7d094856f83c6ba1a375a1acb182989a2b1f31344380f19e031723e2eec08cbf"
|
|
},
|
|
"hardware": {
|
|
"board_id": "Waveshare ESP32-S3-RLCD-4.2",
|
|
"board_revision": "N16R8",
|
|
"display_id": null,
|
|
"sd_card_id": null
|
|
},
|
|
"metrics": {
|
|
"jsonl_count": 358,
|
|
"sequence_min": 25,
|
|
"sequence_max": 384,
|
|
"soak_wall_seconds": 3601,
|
|
"reset_reason": 11,
|
|
"status_failed_lines": 0,
|
|
"wifi_reconnect_cycles": 5,
|
|
"wifi_reconnect_recovered": 0,
|
|
"tf_transitions_observed": 4,
|
|
"tf_absent_boot_classify_ms": 835,
|
|
"key_short_presses_window": 2,
|
|
"key_long_presses_window": 2,
|
|
"key_portal_hold": true,
|
|
"rtc_valid_true_samples": 0,
|
|
"rtc_valid_false_samples": 29,
|
|
"wifi_reconnect_fix_commit": "d0842768658a8f47490bc87a6081f8a4ef1fe4d0",
|
|
"wifi_reconnect_fixed_reverified_cycles": 3,
|
|
"wifi_reconnect_fixed_recovery_seconds_max": 10
|
|
},
|
|
"artifacts": [
|
|
{
|
|
"name": "soak.log",
|
|
"uri": "soak.log",
|
|
"sha256": "dc568ea538fb91767adffef8a02f78f73672f906050c3a1a36e9d0bf66d6a78f"
|
|
},
|
|
{
|
|
"name": "jsonl.ndjson",
|
|
"uri": "jsonl.ndjson",
|
|
"sha256": "2908825353a77bace2b0d733bf837897131efe31312b787c53c419b7ff0a9ce9"
|
|
},
|
|
{
|
|
"name": "status.ndjson",
|
|
"uri": "status.ndjson",
|
|
"sha256": "039cb776675bbb1b6023c7066b22bf1c3a9642f0fda168d3a23cec41b72277ee"
|
|
},
|
|
{
|
|
"name": "status_page_20260831.jpg",
|
|
"uri": "photos/status_page_20260831.jpg",
|
|
"sha256": "03817e0424452eba786768960645aa9e369bdfef08fe1da9883a7b9b035e82ec",
|
|
"note": "Photo of the live Frame status page (UTC+8 time line, KEY/BOOT/RST counters, WiFi CONNECTED 192.168.50.178, TF READY/log OK). Screen timestamp 16:28:52 UTC+8 correlates with the capture filename epoch 2026-08-31T08:29:02.935Z. Converted full-resolution from iOS source 20260831_082902935_iOS.HEIC (sha256 62b86a8c0316fcd4ef5fbcc3ca59e308982627db5ef18d9b71bf9409cc446b9e; HEIC itself stays out of the repository)."
|
|
},
|
|
{
|
|
"name": "board_front_20260831.jpg",
|
|
"uri": "photos/board_front_20260831.jpg",
|
|
"sha256": "87d232943d4328a15f3d6047fc25d2acd53fea210e29889836df47c44b8c9dcf",
|
|
"note": "Photo of the M1 board front/button face; silkscreen BOOT / KEY / PWR visible (the buttons driven in the M1 assist windows). EXIF 2026:08:31 16:38:17 UTC+8 correlates with the capture filename epoch 2026-08-31T08:38:17.376Z. Converted full-resolution from iOS source 20260831_083817376_iOS.heic (sha256 a849979c49cfcf4c94805309019ce75f39e071f047ff012ec8da9bc068e7deb7; HEIC itself stays out of the repository)."
|
|
},
|
|
{
|
|
"name": "board_back_module_20260831.jpg",
|
|
"uri": "photos/board_back_module_20260831.jpg",
|
|
"sha256": "6576c98d54097f85554f013c34f96922082de96cb7413f654d074d04fe376b60",
|
|
"note": "Photo of the M1 board back face with the module shield: ESPRESSIF logo and marking lines ESP32-S3-WROOM-1 / N16R8 / FCC ID:2AC7Z-ESP32S3WROOM1 / IC:21008-ESP32S3WROOM1 / CMIIT ID:20220P20920 (uncertain reading). Cross-check: marking N16R8 (16 MiB flash, 8 MiB PSRAM) matches the M1-002 boot-log assertions flash=16777216 bytes and psram=8388608 bytes. M1-008 photo requirements now complete: status page + board front + module marking. EXIF 2026:08:31 16:38:21 UTC+8 correlates with the capture filename epoch 2026-08-31T08:38:21.798Z. Converted full-resolution from iOS source 20260831_083821798_iOS.heic (sha256 67b0e24720c263653202b92515a15f1bd1e5b4dd3ac8151f64ebac05516d9da2; HEIC itself stays out of the repository)."
|
|
},
|
|
{
|
|
"name": "boot.log",
|
|
"uri": "raw-history/boot.log",
|
|
"sha256": "69e2b329708dda9625de196a1057639e073b432e7732e79a2fc1f40f48e791b3"
|
|
},
|
|
{
|
|
"name": "diag.log",
|
|
"uri": "raw-history/diag.log",
|
|
"sha256": "d75a223393dc776c1d852d63e345ca31e749616bde0788d7ac290c568c466590"
|
|
},
|
|
{
|
|
"name": "t10-serial.log",
|
|
"uri": "raw-history/t10-serial.log",
|
|
"sha256": "0c884ff933b8a7440ad4c659f2ffae44131cf9c4c8d8123263645d21da7675bd"
|
|
},
|
|
{
|
|
"name": "t11-final-state.log",
|
|
"uri": "raw-history/t11-final-state.log",
|
|
"sha256": "51efb3d5b1f1689a07857e2854ff2d3caf7c7448e9c990a6ce84af7c979cab7b"
|
|
},
|
|
{
|
|
"name": "t11-flash.log",
|
|
"uri": "raw-history/t11-flash.log",
|
|
"sha256": "be396b79389c09a6e1bd6735063c46787969b8b0b231bd326f52f9a64084dd09"
|
|
},
|
|
{
|
|
"name": "t11-item1-ip.log",
|
|
"uri": "raw-history/t11-item1-ip.log",
|
|
"sha256": "3f922bf3cb588617c50472152e25f3b536a7f72de45b40b1aa376573ca61041d"
|
|
},
|
|
{
|
|
"name": "t11-item1-reboot.log",
|
|
"uri": "raw-history/t11-item1-reboot.log",
|
|
"sha256": "4fdfe2d5ec520b0862a947ab4b419237fdaf010e05531b7276b699675281a74d"
|
|
},
|
|
{
|
|
"name": "t11-item2.log",
|
|
"uri": "raw-history/t11-item2.log",
|
|
"sha256": "85706e37b71a6bb7cd0df64fde13e75d044f697ae47ac5dc01ae01faf7786296"
|
|
},
|
|
{
|
|
"name": "t11-item4.log",
|
|
"uri": "raw-history/t11-item4.log",
|
|
"sha256": "614f935ed7d93acbbc776f976499bdd28f9517c0e8a27c5668f16560e82c96a2"
|
|
},
|
|
{
|
|
"name": "t11-item5.log",
|
|
"uri": "raw-history/t11-item5.log",
|
|
"sha256": "988b1d8e01724abeb33428d0c25df81db70626ef1ecef8636b12b07846210e3b"
|
|
},
|
|
{
|
|
"name": "t11-key-window.log",
|
|
"uri": "raw-history/t11-key-window.log",
|
|
"sha256": "a29fb7ebb502bcae9fb04e5d0bdec38118e66a628f0f827b5678948cd22af1ce"
|
|
},
|
|
{
|
|
"name": "t11-root-dev.log",
|
|
"uri": "raw-history/t11-root-dev.log",
|
|
"sha256": "e9d963f418c300b2dfdceb721c96132c88eb586dfdfa8a44c57cb394233a7b29"
|
|
},
|
|
{
|
|
"name": "t11-root-prod.log",
|
|
"uri": "raw-history/t11-root-prod.log",
|
|
"sha256": "44973791be92b62bc31ff728c4362a640a7be9ae129e14a6afcc5809094625ca"
|
|
},
|
|
{
|
|
"name": "t11-step2-user.log",
|
|
"uri": "raw-history/t11-step2-user.log",
|
|
"sha256": "1c7c38d15b4083d5b47f9c564522aeb5d8c87821084e1e246a5c07b14256b56c"
|
|
},
|
|
{
|
|
"name": "t5_fu_stdout.log",
|
|
"uri": "raw-history/t5_fu_stdout.log",
|
|
"sha256": "98d9a64d8c24712535a6c0762a91e3fa3624845322f6c281617be51fd99f61cc"
|
|
},
|
|
{
|
|
"name": "t5_stdout.log",
|
|
"uri": "raw-history/t5_stdout.log",
|
|
"sha256": "9b03c936eba2ed85f4b02dfd612ef1ca8aea4512b5dc65d77929ab0bd75357bf"
|
|
},
|
|
{
|
|
"name": "t7-phase1.log",
|
|
"uri": "raw-history/t7-phase1.log",
|
|
"sha256": "416e0f8b06bedad40a08c18ea4b935caf5b0228120afa1c9aff607e142efb5f2"
|
|
},
|
|
{
|
|
"name": "t7-reconnect-probe.log",
|
|
"uri": "raw-history/t7-reconnect-probe.log",
|
|
"sha256": "2dae682e0d3963faaae1812f92171a7887a75391dd1c0fcd635704b2ee117d12"
|
|
},
|
|
{
|
|
"name": "t7-w1.log",
|
|
"uri": "raw-history/t7-w1.log",
|
|
"sha256": "90d7d0a9fac4872d513df71f5e5f0500981ce30fb8ddd74f1e3b0dcb425e225a"
|
|
},
|
|
{
|
|
"name": "t7-w2.log",
|
|
"uri": "raw-history/t7-w2.log",
|
|
"sha256": "33671e98f7e66b7c635c43c6aa5feb2b4881167a153df5f06305f8c7803980ce"
|
|
},
|
|
{
|
|
"name": "t7-w2b.log",
|
|
"uri": "raw-history/t7-w2b.log",
|
|
"sha256": "f75490583e8206fde1fe79b2bce62620083bd99495161941db3324d1c6b54f2f"
|
|
},
|
|
{
|
|
"name": "t7-w3.log",
|
|
"uri": "raw-history/t7-w3.log",
|
|
"sha256": "fdd5f8aba1c04f0846c4af669202ae366863a103cab4dc157f0894672d023ac6"
|
|
},
|
|
{
|
|
"name": "t8-all-captures.log",
|
|
"uri": "raw-history/t8-all-captures.log",
|
|
"sha256": "6f37db09c10b05d138a9edab75a64f742780b438e5889084708218d09f38169d"
|
|
},
|
|
{
|
|
"name": "t8-build-final.log",
|
|
"uri": "raw-history/t8-build-final.log",
|
|
"sha256": "89310123e184a7c8032748d1d8d74c4f71244cd0c00e6884dc17a33fc38681fe"
|
|
},
|
|
{
|
|
"name": "t8-build1.log",
|
|
"uri": "raw-history/t8-build1.log",
|
|
"sha256": "668cabbe0c49ca495ba1d89668e12b7aa9c4a2a06c42e2e1ce412b039df78ebd"
|
|
},
|
|
{
|
|
"name": "t8-build2.log",
|
|
"uri": "raw-history/t8-build2.log",
|
|
"sha256": "641eec5765e9c83f366eba0384e02bb6c9637c38fd555f5fc07a2524000b0be3"
|
|
},
|
|
{
|
|
"name": "t8-phaseA.log",
|
|
"uri": "raw-history/t8-phaseA.log",
|
|
"sha256": "99dd6afbce6bcdd3aff206af121a014febb8cee350c663f3400b25399b998975"
|
|
},
|
|
{
|
|
"name": "t8-phaseB.log",
|
|
"uri": "raw-history/t8-phaseB.log",
|
|
"sha256": "7689f041ee61aa0094e085a915d93940bd3fae15b311c5ce4348648b8a21e2b7"
|
|
},
|
|
{
|
|
"name": "t8-phaseC.log",
|
|
"uri": "raw-history/t8-phaseC.log",
|
|
"sha256": "3b671497faa6c0828bf17fa0016cd56f4baa674a8fcd1396fc9e0b3f31af2cc3"
|
|
},
|
|
{
|
|
"name": "t8-reconf2.log",
|
|
"uri": "raw-history/t8-reconf2.log",
|
|
"sha256": "1fe160fb55e3fd1f297e17fc2f8fbda41c6d37a45a6eade925e96026e34d259a"
|
|
},
|
|
{
|
|
"name": "t8-reconfigure.log",
|
|
"uri": "raw-history/t8-reconfigure.log",
|
|
"sha256": "364b3e1741137cdd10e02e8c1ee9217b7762e31af65b64274936ac4eff2b5a49"
|
|
},
|
|
{
|
|
"name": "t9-boot.log",
|
|
"uri": "raw-history/t9-boot.log",
|
|
"sha256": "b1676bfdbd62a580909aad21db9743bd7b2e6a4a47264c92f39213c4cfb87142"
|
|
},
|
|
{
|
|
"name": "t9-build-final.log",
|
|
"uri": "raw-history/t9-build-final.log",
|
|
"sha256": "cf7f90559e83c1b20b458c798e1bdd8941036137a3a0b0213a8ffa119f8d37b1"
|
|
},
|
|
{
|
|
"name": "t9-http-cycle.log",
|
|
"uri": "raw-history/t9-http-cycle.log",
|
|
"sha256": "150a435f28d038015bc4de3fb2d936b7931966d35d81abfee1bd691ce9f1c075"
|
|
},
|
|
{
|
|
"name": "t9-repl1.log",
|
|
"uri": "raw-history/t9-repl1.log",
|
|
"sha256": "0257e0914168601bcf6d9ae06b6661993a22c07a49c55d413c92b2dda8d365b5"
|
|
},
|
|
{
|
|
"name": "t9-repl2.log",
|
|
"uri": "raw-history/t9-repl2.log",
|
|
"sha256": "f15541e609f618a1449ff3d00d942efc8df190e2e14061191c7834b8dc470957"
|
|
},
|
|
{
|
|
"name": "t9-wrongpw.log",
|
|
"uri": "raw-history/t9-wrongpw.log",
|
|
"sha256": "f23f97168b095c877127d72e1d8156e5e6638e33c7974ede28193acc29606163"
|
|
},
|
|
{
|
|
"name": "verify.log",
|
|
"uri": "raw-history/verify.log",
|
|
"sha256": "1233c14e783e2ef66ae2923d21de81309facd3783c4f91f7df93fcc62abff245"
|
|
},
|
|
{
|
|
"name": "m1_frame_m1_hardware.map",
|
|
"uri": "build/m1_frame_m1_hardware.map",
|
|
"sha256": "a5d01bfa35c0def56d350aaf8c203d8d4bca13372ee83c4aa0aa43d094cf43fb",
|
|
"note": "GNU ld linker map (frame_m1_hardware.elf) from the instrumented M1-008 build that adds the `metrics` console command and CONFIG_FREERTOS_USE_TRACE_FACILITY=y. Provenance: built 2026-08-31 from the working tree on main@61a0167 (identical tree merged via PR evidence/m1-008-final), ESP-IDF v6.0.2, xtensa-esp-elf gcc-15.2.0, esp32s3 preset default. Companion binary frame_m1_hardware.bin sha256 a0e937ba7e4a0bd51b9c74f6e6ed25acb8fc42d78087da2ed2810085a3f2c4bc (stays out of the repository); generated sdkconfig sha256 083523994a42cc07910e9d585a31fb1d464fb8f89fc0695dc0ad7ab0cbbc41bc."
|
|
},
|
|
{
|
|
"name": "m1_size_components.txt",
|
|
"uri": "build/m1_size_components.txt",
|
|
"sha256": "85281cdf6aa2ae986e3eeb89832c03caf6b6583880487c3ea124e0924adeb64d",
|
|
"note": "`idf.py -B build/default size` (memory-type usage summary: total image 1396551 bytes, DIRAM 199149/341760 bytes = 58.27%, IRAM 16384/16384) followed by `idf.py size-components` (per-archive RAM/flash breakdown incl. managed components espressif__cjson / joltwallet__littlefs / lvgl__lvgl). Same build and provenance as m1_frame_m1_hardware.map."
|
|
},
|
|
{
|
|
"name": "m1_metrics_samples.txt",
|
|
"uri": "build/m1_metrics_samples.txt",
|
|
"sha256": "cf7e4c280250111876693276a5deb3ca3ceb256c91f3faccf73913bf4613a257",
|
|
"note": "On-device heap/stack metrics from the flashed instrumented build (bin sha256 a0e937ba7e4a0bd51b9c74f6e6ed25acb8fc42d78087da2ed2810085a3f2c4bc; device-reported elf_sha256 b416084a653871bf537a4b484bb0c85378b2bd608547b31afbbe26770288c4c7, image_sha256 81292cb968343b8b672f59fc4dacad7b3c2e6d9d337d5b804b4d90571028526a). Captured 2026-08-31T10:02:52Z over USB Serial/JTAG @115200 with an explicit RTS hard reset at t=0; three `metrics` samples (t~14s boot-ish, after `selftest`, after 60s idle) plus the selftest and `status --json` rounds. Highlights: heap internal min_ever=123295 B (free 128627 B / largest block 53248 B at t~94s), PSRAM min_ever=8362016 B (free 8362764 B); smallest per-task stack high-water mark ipc0=552 B; console_repl 2652 B free of its 6144 B stack after selftest; idle drift ~36 B/min with stable min_ever. Closes the soak's internal_free N/A gap (heap/stack now instrumented per M1-006 heap-integrity note)."
|
|
}
|
|
],
|
|
"notes": "1h serial soak plus on-device TF/KEY assist windows on the final hardened firmware (tree of d73cadb; dirty=tools/tests collector additions only, poc/ untouched). VERDICT PASS after remediation of the soak's single failing criterion: console 'wifi reconnect' never returned to CONNECTED (0/5 soak cycles + 0/1 controlled reproduction; root cause: wifi_service.cc reconnect() called esp_wifi_connect() while still associated - IDF v6 rejects that, no STA_DISCONNECTED event fired, the event-driven retry never engaged; connect_stored/boot/portal paths were unaffected). FAIL at soak, fixed by commit d0842768658a8f47490bc87a6081f8a4ef1fe4d0 (reconnect() now disconnects first; the WIFI_EVENT_STA_DISCONNECTED handler drives the retry, direct connect only when already idle), re-verified on-device 3/3 cycles + boot - PASS ([PASS-fix-cycle-1..3] CONNECTED again in ~10s with the same IP restored, telemetry CONNECTED->DISCONNECTED->CONNECTED proving the handler path; [PASS-fix-boot] auto-connect GOT_IP, JSONL ap_setup:false, tf_logging:true). Original soak data unchanged. All other soak criteria PASS: 358 JSONL lines (360 +/-10), sequence 25..384 strictly monotonic, zero status:FAILED lines, reset_reason=11 constant across all samples, uptime monotonic (no reboot), tf=READY throughout, no spurious key presses. internal_free memory-decline criterion: N/A - firmware exposes no heap field in either JSON stream (telemetry or status --json); not instrumented, follow-up candidate. Assist windows: W1 KEY >=3s portal hold PASS (AP up observed, auto-recovery to CONNECTED within 120s without console help); W1 short/long presses completed via W2 retry: exactly +2/+2, no spurious; W2 TF: 2 pull->insert cycles, 4/4 transitions ABSENT+tf_logging false / READY+resume, logging_error=0; W3 absent-boot: TF-absent classified <=0.9s device time (W(835) frame-sd probe failed), health DEGRADED never FAILED, alive >30s, no telemetry while card out, reinsert resumed logging. TF same-file append judged behaviorally: sequence continuity across W2 pull/reinsert cycles and resumed logging across the W3 reboot with logging_error=0; direct TF line counts are not observable over UART (no fs listing command). Watch items: rtc_valid=false in all soak status samples after a transient PCF85063 ESP_ERR_INVALID_CRC during an earlier USB glitch (was true at session start); boot-moment telemetry status:FAILED artifact (T10-known) absent here because the capture attached mid-boot. Deviation: status responses artifact committed as status.ndjson (frame-evidence discovers every *.json under poc/evidence and NDJSON is not a manifest); soak raw directory kept outside poc/evidence because the collector's status.json artifact would be discovered by frame-evidence as an invalid manifest; curated copies are committed here instead. raw-history/ archives all /tmp/opencode/m1-verify serial captures from T4-T11 and this task. M1-008 final evidence (2026-08-31): linker map, idf.py size/size-components, and on-device heap/stack metrics (three samples incl. post-60s-idle) archived under build/; firmware gained a `metrics` console command (machine-parseable heap internal/psram free/largest/min_ever + per-task stack_hwm_bytes via uxTaskGetSystemState; ESP-IDF xtensa reports the high-water mark directly in bytes since StackType_t=uint8_t). Owner pass record drafted at M1-PASS-RECORD.md, PENDING owner confirmation."
|
|
}
|