This file is canonical for Copilot behavior in this repository.
For project context and directory routing, read root AGENTS.md first.
AGENTS.md files provide directory scope/guardrails and should not duplicate Copilot policy text.
When guidance conflicts across files, apply in this order:
.github/copilot-instructions.md(this file)- Applicable
.github/instructions/*.instructions.mdfiles - Nearest local
AGENTS.mdfor edited path - Root
AGENTS.md
- Read root
AGENTS.md. - For each edited file, read its nearest local
AGENTS.md. - If multiple directories changed, apply each scope's local AGENTS to corresponding files.
- Most specific AGENTS wins for each file.
- Keep diffs minimal and scoped to the task.
- Preserve NumPy-compatible API behavior by default.
- For behavior/API changes: update tests, and docs/examples when user-visible (API signature/behavior, errors, examples output).
- For bug fixes: add regression test coverage.
- Add unit/integration tests for changed code paths.
- For bug fixes: include regression tests.
- Keep tests deterministic and scoped to changed behavior.
- Use source-of-truth files for mutable details.
- Do not invent or hardcode versions, flags, or matrix values.
- Prefer single-purpose commits; avoid opportunistic refactors.
All paths relative to project root:
- Build/config:
CMakeLists.txt,pyproject.toml,setup.py,setup.cfg - CI/checks:
.github/workflows/ - Style/lint:
.pre-commit-config.yaml,.clang-format,.flake8 - API/package paths:
dpnp/,doc/ - Examples/benchmarks context:
examples/,benchmarks/