Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions .dokimi/scan.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Names the agent guidance uses that are not tracked in this repository. dokimi's repo scan
# lists each one it cannot find as unresolved_ignored, with the reason, and never fails on it.
[[ignore]]
kind = "path"
pattern = ".asv/"
reason = "asv results directory, created by the benchmarks and gitignored"

[[ignore]]
kind = "path"
pattern = "Library/bin"
reason = "DLL directory of a Windows conda environment, not of this repository"

[[ignore]]
kind = "path"
pattern = "numpy/random/tests"
reason = "NumPy's test directory, which mkl_random/tests/third_party adapts"
9 changes: 8 additions & 1 deletion .github/AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ CI/CD workflows and repo automation.
- `coverity.yml` — Coverity static analysis (see `coverity/README.md`)
- `openssf-scorecard.yml` — OpenSSF Scorecard
- `zizmor.yml` — GitHub Actions security lint
- `agent-guidance.yml` — checks the commands and paths named in every
`AGENTS.md` against the tree with dokimi (manifest `dokimi/repo.yaml`); the
`repo scan` report goes to the job summary and does not fail the job; names
that are not in the tree, such as gitignored or external ones, go in
`.dokimi/scan.toml` with a reason

The three pip workflows test the editable install: `build_pip.yml` runs
`pytest mkl_random/tests`, the clang workflows `pytest --pyargs mkl_random`.
Expand All @@ -29,7 +34,9 @@ own and runs the suite with `ci/test.py`.
- `ISSUE_TEMPLATE/` — bug report and feature request forms; `config.yml` adds
contact links that send security reports to Intel's vulnerability process
and usage questions to the docs
- `dependabot.yml` — update schedule for GitHub Actions and pre-commit hooks
- `dependabot.yml` — update schedule for GitHub Actions and pre-commit hooks;
it skips dokimi: bump the `uses:` SHA in `workflows/agent-guidance.yml` by
hand
- `CODEOWNERS` — default reviewers

## Policy
Expand Down
4 changes: 4 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ updates:
groups:
github-actions:
patterns: ["*"]
# The dokimi pin is a main commit, not a release, so Dependabot would not move it;
# it is bumped by hand in agent-guidance.yml (a reusable workflow is named by its path)
ignore:
- dependency-name: "intel/dokimi/*"

- package-ecosystem: "pre-commit"
directory: "/"
Expand Down
7 changes: 7 additions & 0 deletions .github/dokimi/repo.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Agent guidance files that dokimi (https://github.com/intel/dokimi) checks in CI,
# see .github/workflows/agent-guidance.yml.
schema: repo_manifest.v1
id: mkl_random
source: {url: https://github.com/IntelPython/mkl_random}
guidance:
globs: ["**/AGENTS.md"]
30 changes: 30 additions & 0 deletions .github/workflows/agent-guidance.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Check agent guidance (dokimi)

# Checks the commands, paths and targets named in every AGENTS.md against the tree, with
# no model and no secrets. `repo validate` fails the job on a broken manifest; the `repo scan`
# report goes to the job summary and does not fail it.

on:
push:
branches:
- master
pull_request:
workflow_dispatch:

permissions: {}

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }}
cancel-in-progress: true

jobs:
dokimi:
name: dokimi

permissions:
contents: read # needed to clone the repo

# One pin: the workflow installs the dokimi of its own commit. Bump it by hand (Dependabot skips dokimi)
uses: intel/dokimi/.github/workflows/repo-eval.yml@599fcadcd31b0088dfb4dd079ca66cde523fa697 # main, 2026-12-03
with:
manifest: .github/dokimi/repo.yaml
4 changes: 2 additions & 2 deletions benchmarks/benchmarks/_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@
"ARS5",
]

# Generators that implement viRngUniformBits32/64, which full-range integer
# fills and bytes() call directly.
# Generators that implement viRngUniformBits32 and viRngUniformBits64, which
# full-range integer fills and bytes() call directly.
_ENGINES_BITS = [
"MT19937",
"SFMT19937",
Expand Down
2 changes: 1 addition & 1 deletion mkl_random/AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ Package sources: the Cython extension, public API, and patching entry points.
- the skip-ahead and leap-frog lists in `docs/source/how_to.rst`, if the
generator supports either
- `_ENGINES` in `benchmarks/benchmarks/_utils.py`, and `_ENGINES_BITS` if
the generator implements `viRngUniformBits32/64`
the generator implements `viRngUniformBits32` and `viRngUniformBits64`
- Keep `freethreading_compatible=True` in `mklrand.pyx`.
- New `mkl_random/*.py` and `interfaces/*.py` modules must be added to the
matching `py.install_sources` call in `meson.build`, or they are not
Expand Down
Loading