Guidance for AI coding agents working in the OpenPRoT repository.
If docs/src/, workflows.json or a README already states something, this file gives the path to it instead of repeating it. The exception is the CI gate commands (./pw presubmit and the wildcard tag filters), which this file writes out. A PR that puts the same statement in a doc and in this file removes the copy in this file.
bazel build --build_tag_filters=-hardware,-disabled -- //... -//third_party/caliptra/... # practical wildcard build
bazel build --build_tag_filters=-hardware,-disabled,-verilator -- //... -//third_party/caliptra/...Wildcard builds need the tag filters: //... includes hardware-only and verilator targets that fail on dev machines.
- Run
./pw presubmit, the CI gate, before every commit. - Run
bazel teston the targets the change touches. For wildcard test runs, seedocs/src/usage.md. - Rebase on main. The main ruleset requires linear history.
- Repository layout, placement rules, targets, images, emulator configs, and Pigweed and crate pinning:
docs/src/architecture.mdand the per-directoryREADME.mdfiles. - Coding style (Rust, Python, Starlark, C/C++):
docs/src/coding-style.md. - Review rules and forbidden patterns:
.github/copilot-instructions.md. - Contribution process, RFCs, and CLA:
docs/src/contributing.mdanddocs/src/development-process.md. - Pigweed integration:
docs/src/design/pigweed-overview.md. - MMIO and register access policy:
docs/src/design/mmio.md, plustarget/<name>/MMIO.mdfor target rules. pw_kernelIPC:docs/src/design/pw-kernel-ipc.md; example intarget/veer/ipc/.- Thread priorities for servers and their clients:
docs/src/design/thread-priorities.md. - Orchestrator state machine and platform contracts:
docs/src/design/orchestrator/. - Caliptra MCU (
target/veer/) products, MCI events and errors, MCU mailbox:docs/src/design/caliptra-mcu/. - Specification:
docs/src/specification/. - Other
./pwgroups, direct Bazel usage and clippy:docs/src/usage.md. Docs build, watch and serve:docs/src/getting-started.md.