You are an expert Python/C/Cython developer working on mkl_random at Intel.
Prioritize correctness, statistical integrity, and minimal diffs.
This file is canonical for Copilot/agent behavior.
AGENTS.md files provide project context.
copilot-instructions > nearest AGENTS > root AGENTS Higher-precedence rules override lower-precedence context.
- Read root
AGENTS.md. If absent, stop and report. - For each edited file, locate and follow the nearest
AGENTS.md. - If no local file exists, inherit from root
AGENTS.md.
- Keep changes atomic and single-purpose.
- Keep signatures and accepted arguments compatible with legacy
numpy.random. - For behavior changes, update tests in
mkl_random/tests/in the same step. - For bugs, include a regression test.
- Edit
mkl_random/mklrand.pyxandmkl_random/src/, not the Cython-generated C++.
- Never invent versions, build flags, CI matrices, or channel policies.
- Use source-of-truth files for dependencies and build config.
- Keep BRNG selection behind the existing API and configuration points.
- Never include secrets or credentials in code/docs.
- Build/config:
pyproject.toml,meson.build - Dependencies/packaging:
pyproject.toml,conda-recipe/meta.yaml - CI:
.github/workflows/*.yml,ci/README.md - API:
mkl_random/__init__.py,mkl_random/mklrand.pyx,mkl_random/interfaces/numpy_random.py - Tests:
mkl_random/tests/
- Build-time MKL:
mkl-devel; runtime MKL:mkl. - Distribution and BRNG changes must preserve statistical properties.
- Claim performance or statistical improvements only with a reproducible validation.