Canonical rules: AGENTS.md (shared with Copilot).
Code-file specifics: .github/instructions/. Deployment recipe: roadmap/DEPLOYMENT.md.
Shared numerical primitives come from numerical-toolbox-cpp via FetchContent (numerical/… includes).
Essentials (full detail in AGENTS.md):
- No heap — bounded containers /
std::array/std::optional; no recursion; tests too. - Float-only — generic
template<typename T>+static_assert(std::is_floating_point_v<T>); instantiate/testfloat; no Q15/Q31. - Embedded —
#pragma GCC optimize("O3","fast-math")+OPTIMIZE_FOR_SPEEDon hot paths. - No comments (except license/NOLINT). Allman braces, brace-init, PascalCase/camelCase.
- Tests —
TEST_Fonfloat,StrictMockonly, never plainTEST(), no redundant cases. - No exceptions —
std::optional/status enums; interfacesvirtual ~I() = default. - Be terse — minimal prose; report file paths + pass/fail.