Files
frame/poc
Lainandlain d73cadbcd6 ci: repair first-run workflow failures (#1)
## Root causes (run 33344835245)

| Job | Cause | Fix |
|---|---|---|
| Host GCC compatibility | Runner GCC 13.3 has no `-std=c++26`;
`poc/host` sets `CMAKE_CXX_STANDARD 26` | Install `gcc-14`/`g++-14`, set
`CC`/`CXX` |
| Host branch coverage | `llvm-profdata: command not found` (clang-18
present, LLVM tools absent) | Install `llvm-18`, prepend
`/usr/lib/llvm-18/bin` to PATH |
| ESP-IDF dev firmware | `cmake: command not found` — action overrides
container entrypoint so the IDF env is never sourced | Source `.
/opt/esp/idf/export.sh` in the build step |
| ESP-IDF M1 hardware firmware | same as above | same |
| Repository gates | clang-format v22-formatted sources vs CI
clang-format-18 (console_service.cc:260,300; display_service.cc:31;
status_log.cc:34) | Reformatted with clang-format 18.1.8 semantics; full
dry-run green |
| Gitleaks | No secret finding: the push-event scan range referenced
stale pre-rewrite revision `7bae861` (unknown revision); scan infra
failed | No change — one-time bootstrap artifact; PR/post-merge events
have valid ranges (verified by this run) |

Host Clang ASan/UBSan and Host clang-tidy were already green; `required`
is the aggregate.

Formatting diffs are formatting-only (`struct tm utc_time{}` -> `struct
tm utc_time {}`).

---------

Co-authored-by: ania-lain <[email protected]>
2026-08-31 09:04:01 +08:00
..

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

  1. PoC-A: toolchain, dynamic ELF, scheduler, cancellation, and memory behavior
  2. PoC-B: display latency and SPI bandwidth
  3. PoC-C: lifecycle, update rollback, watchdog, and fault handling
  4. PoC-D: system/SD storage isolation and recovery
  5. 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.