Files
frame/poc/README.md
T
lainandSisyphus a6d6168fd5 chore: add community files, CI workflows, and host test tooling
Add the repository-facing scaffolding:

- Community/legal: README.md, LICENSE (GPL-3.0-or-later), NOTICE,
  CONTRIBUTING.md, SECURITY.md, CODE_OF_CONDUCT.md, .gitleaks.toml
- CI: .github/ workflows (ci.yml aggregate gate, nightly.yml, codeql.yml),
  issue/PR templates, dependabot config (pinned Actions per README)
- Host tooling: tools/frame_tools (ruff/pyright/pytest gates, partition,
  evidence-schema, doc-links, SBOM checks), tests/, pyproject.toml, uv.lock
- poc/ host side: poc/host contract-test suite (ASan/TSan-capable),
  poc/README.md, poc/poc-a.code-workspace

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <[email protected]>
2026-08-31 08:00:51 +08:00

1.6 KiB

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.