- bound-check the portal option row snprintf against truncation
- guard the pending-credential handoff with the provision mutex
- selftest now restores (or clears) the saved wifi config instead of wiping it
- mark the two conscious error-code ignores
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]>
Retire the product-firmware skeleton until the v4.2 architecture is
signed off (README marks the repo draft/PoC):
- main/ reduced to a no-op stub (main.cc + CMakeLists registering only
main.cc; idf_component.yml with the cjson managed dependency), root
app builds clean under both dev and prod presets (IDF v6.0.2)
- delete the 13 product components/ files (app_framework, and the
display/network/ota/startup_ui/storage service stubs)
- freeze root build/layout: CMakeLists.txt, CMakePresets.json,
partitions.csv (16 MiB custom layout), sdkconfig.defaults,
dependencies.lock, cmake/ helpers
- add tooling config: .clang-format, .clang-tidy, .clangd,
.devcontainer/, .vscode/
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)
Co-authored-by: Sisyphus <[email protected]>
Append .omo/ and .opencode/ (local coding-agent harness state) to
.gitignore so session data can never be staged. Also carries pending
hygiene entries (.pytest_cache, .ruff_cache, .mypy_cache, .coverage,
coverage/, .venv-idf/) and restores the trailing newline.
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)
Co-authored-by: Sisyphus <[email protected]>