Restructure project documentation for AI-assisted development, add community issue forms and governance guidance, introduce hardened build/release and fork-sync workflows, and produce a validated 0x0 firmware image for the fixed 8 MB target.
3.7 KiB
简体中文 · English
Contributing
Thank you for contributing to FoloToy AI Passport — code, documentation,
firmware, and feedback. This repository is the development baseline for
open-source wearable AI hardware designed for AI agents. It is often forked for
second development; the fork conventions are in
docs/fork-guide.md.
Before you start
- Read
AGENTS.md: it is the authoritative entry and index for the rules an AI agent should follow. It is not a replacement for this guide. - Read
README.mdfor the hardware capability contract, and the AI Hardware Development Guide for the complete hardware context. - Follow
CODE_OF_CONDUCT.mdwhen participating in the community. For ordinary usage questions, seeSUPPORT.md. - Do not commit credentials, tokens, authorization files, or personal data.
- The repository's
mainbranch stays in sync with the upstream baseline; fork users develop feature work infeature/*branches (seedocs/fork-guide.md).
Development and verification
Use ESP-IDF 5.5.x (known development environment 5.5.3):
get_idf553 # Enter the repository's ESP-IDF 5.5.3 environment
idf.py set-target esp32c3 # Configure the target chip (fresh checkout / after target change)
idf.py build # Compile firmware and validate dependencies
idf.py flash monitor # Flash and open logs
idf.py fullclean # Clear stale build state (never for user source changes)
The current baseline includes a pure-logic test that runs without hardware:
cc -std=c11 -Wall -Wextra -Werror -Imain \
tests/test_ui_pixel_math.c main/ui_pixel_math.c \
-o /tmp/test_ui_pixel_math
/tmp/test_ui_pixel_math
Follow the verification requirements in
docs/development/build-and-test.md:
a clean idf.py build is the minimum automated check, not hardware validation.
Record build results and on-device results separately; never present a successful
build as successful hardware validation.
Opening a pull request
- Create a short-lived
feature/*branch frommainand keep each pull request focused on one clear problem. - Use
<type>(<scope>): <short description>for the pull request title, for examplefeat(bsp): ...,docs: .... Available types are defined indocs/contribution/commit-and-pr.md. - Review the complete diff and confirm that it contains no credentials, unrelated generated files, or unintended changes.
- Follow the PR requirements in
docs/contribution/commit-and-pr.md: state the hardware/revision tested, summarize behavior changes, list build and on-device results, link related issues, and record observed on-device results for pin, display-rotation, codec-clock, ADC, or DMA changes. - Wait for CI and review; do not push directly to
mainunless you are a maintainer handling an explicit exception.
Small documentation fixes are welcome as pull requests. For larger changes to hardware, architecture, or user data, please open an issue first to discuss scope and compatibility.
Licensing of contributions
This repository is licensed under MIT. By contributing, you agree that your contribution is submitted under the MIT license terms of the repository.
Security issues
Do not disclose vulnerabilities, credentials, or exploitable details in public
issues, pull requests, or discussions. Follow the private reporting process in
SECURITY.md.