Canonical rules: AGENTS.md (shared with Copilot).
Code-file specifics: .github/instructions/. Deployment recipe: roadmap/DEPLOYMENT.md.
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 — no
#pragma GCC optimize/optimizeattribute (they block inlining); the consumer sets optimization flags per TU;OPTIMIZE_FOR_SPEED(forced inlining) on 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; interfaces get aprotected:non-virtual~I() = default, never a virtual destructor. - Be terse — minimal prose; report file paths + pass/fail.