|
3 | 3 | This file is the canonical instruction set for Copilot behavior in this repository |
4 | 4 | (required flow, precedence, and fallback rules). |
5 | 5 |
|
6 | | -`AGENTS.md` is reserved for AGENTS-aware tooling context and should not duplicate |
7 | | -Copilot policy text. |
| 6 | +`AGENTS.md` provides project context and tech stack overview. |
8 | 7 |
|
9 | 8 | ## Mandatory |
10 | | -1. Read root `AGENTS.md` first. |
| 9 | +1. Read root `AGENTS.md` for project context. |
11 | 10 | 2. Read the nearest directory `AGENTS.md` for edited files. |
12 | 11 | 3. If multiple apply, use the most specific. |
13 | 12 |
|
14 | 13 | ## Authoring rules |
15 | | -- Keep suggestions minimal and scoped. |
| 14 | +- Keep suggestions minimal and scoped (do not refactor entire files for 2-line changes). |
16 | 15 | - Use source-of-truth files for mutable details. |
17 | 16 | - Do not invent or hardcode versions/flags/matrices. |
| 17 | +- Avoid `std::iostream` in performance-critical headers. |
| 18 | + |
| 19 | +## Contribution expectations |
| 20 | +- Preserve backward compatibility for public API (`include/svs/`) |
| 21 | +- Prefer additive API evolution (avoid duplication of existing functionality) |
| 22 | +- Pair public API changes with tests and documentation |
| 23 | +- For bug fixes: add regression tests |
| 24 | +- Run `pre-commit run --all-files` before proposing changes |
18 | 25 |
|
19 | 26 | ## Source-of-truth files |
20 | | -- `CMakeLists.txt`, `cmake/*.cmake` |
21 | | -- `.github/workflows/` |
22 | | -- `.clang-format`, `.pre-commit-config.yaml` |
23 | | -- `include/svs/`, `bindings/python/` |
| 27 | +- Build: `CMakeLists.txt`, `cmake/*.cmake` (incl. `cmake/mkl.cmake`, `cmake/multi-arch.cmake`, `cmake/numa.cmake`) |
| 28 | +- Dependencies: `bindings/python/pyproject.toml`, `bindings/python/setup.py` |
| 29 | +- CI: `.github/workflows/` |
| 30 | +- Style: `.clang-format`, `.pre-commit-config.yaml` |
| 31 | +- API: `include/svs/`, `bindings/python/` |
0 commit comments