# Repository instructions
This is a Rust project with strict conventions. Path-specific rules live in
`.github/instructions/*.instructions.md`.
- Run checks through the Taskfile: `task ci` mirrors CI. `task lint`, `task test` and
`task doc` are the common entry points.
- Every item gets a doc comment, private items included. No `mod.rs` files (use `foo.rs`
plus `foo/`). No `// ----` separator comments (split the file into modules instead).
- `clippy::pedantic` must stay clean. Suppress only with
`#[expect(lint, reason = "...")]` on the smallest item. Never `#[allow]`.
- Unsafe code is forbidden unless a crate documents why it needs it.
- Commit subjects use the imperative mood ("Add X", "Fix Y"): no Conventional Commits prefix
and no past tense. At most 72 characters, then a blank line and a body that explains why.
- Branches: GitHub Flow (`main` plus `feature/<topic>`). Never `fix/`, `chore/`,
`deps/` or `copilot/`. Before working on a `copilot/*` branch, rename it to `feature/*`.
- CONTRIBUTING.md wins over these instructions where they differ.
- Release PRs are generated by release-plz; do not bump versions by hand.