Files
frame/CONTRIBUTING.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

2.6 KiB

Contributing To Frame

Contributions are welcome through GitHub issues and pull requests. Keep changes focused and do not combine unrelated refactors with behavioral changes.

Before Opening A Change

  1. Search existing issues and pull requests for related work.
  2. For architecture or hardware changes, open an issue before investing in a large implementation.
  3. Do not include credentials, signing keys, device secrets, private evidence, or proprietary firmware in an issue or pull request.
  4. Follow the Code of Conduct.

Security vulnerabilities must not be filed as public issues. Follow SECURITY.md.

Pull Requests

Use a title in this form:

<type>(optional-scope): concise summary

Allowed types are build, chore, ci, docs, feat, fix, perf, refactor, revert, style, and test. Breaking changes may add !, for example feat(runtime)!: change plugin ABI.

Describe the motivation, behavior change, validation performed, and any hardware dependencies. Update tests and documentation when behavior changes. A pull request should be reviewable as a single coherent change.

Local Validation

Install Python 3.11 or newer and uv, then run:

uv sync --frozen
uv run ruff format --check tools tests
uv run ruff check tools tests
uv run pyright
uv run pytest
uv run frame-partitions
uv run frame-evidence
uv run frame-doc-links

For host-contract changes, run both a sanitizer build and a GCC compatibility build:

CC=clang CXX=clang++ cmake -S poc/host -B .build/host-clang -DENABLE_SANITIZERS=ON
cmake --build .build/host-clang
ctest --test-dir .build/host-clang --output-on-failure

CC=gcc CXX=g++ cmake -S poc/host -B .build/host-gcc
cmake --build .build/host-gcc
ctest --test-dir .build/host-gcc --output-on-failure

CC=clang CXX=clang++ cmake -S poc/host -B .build/host-tsan -DENABLE_TSAN=ON
cmake --build .build/host-tsan
ctest --test-dir .build/host-tsan --output-on-failure

For product firmware changes, build the affected preset using the exact ESP-IDF v6.0.2 environment. CI builds dev; the scheduled workflow builds both dev and prod.

Evidence

Architecture-gate evidence must conform to poc/evidence/schema.json. Evidence must identify its source commit and platform and must carry digests for referenced artifacts. Do not mark a gate as passing without the required hardware run and retained artifacts.

Licensing

By submitting a contribution, you agree that it may be distributed under this repository's GPL-3.0-or-later license. Identify any third-party material and preserve its applicable notices and license terms.