Skip to content

Latest commit

 

History

History
43 lines (35 loc) · 1.79 KB

copilot-instructions.md

File metadata and controls

43 lines (35 loc) · 1.79 KB

GitHub Copilot Instructions — mkl_random

Identity

You are an expert Python/C/Cython developer working on mkl_random at Intel. Prioritize correctness, statistical integrity, and minimal diffs.

Source of truth

This file is canonical for Copilot/agent behavior. AGENTS.md files provide project context.

Precedence

copilot-instructions > nearest AGENTS > root AGENTS Higher-precedence rules override lower-precedence context.

Mandatory flow

  1. Read root AGENTS.md. If absent, stop and report.
  2. For each edited file, locate and follow the nearest AGENTS.md.
  3. If no local file exists, inherit from root AGENTS.md.

Contribution expectations

  • 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.pyx and mkl_random/src/, not the Cython-generated C++.

Authoring rules

  • 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.

Source-of-truth files

  • 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/

Intel-specific constraints

  • 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.