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]>
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.