From 91782be0c9ca4cbebf748e606753831f7b9864d9 Mon Sep 17 00:00:00 2001 From: Anton Volkov Date: Thu, 3 Dec 2026 15:37:08 +0100 Subject: [PATCH 1/2] Add a CI job that checks the AGENTS.md claims against the tree with dokimi The new agent-guidance.yml workflow calls intel/dokimi's reusable repo-eval.yml, pinned to main 599fcad, with the guidance-only manifest .github/dokimi/repo.yaml (**/AGENTS.md). repo validate fails the job only on a broken manifest; the repo scan report goes to the job summary. Dependabot skips intel/dokimi/*, so the pin is bumped by hand, as .github/AGENTS.md now says. --- .github/AGENTS.md | 7 ++++++- .github/dependabot.yml | 4 ++++ .github/dokimi/repo.yaml | 7 +++++++ .github/workflows/agent-guidance.yml | 30 ++++++++++++++++++++++++++++ 4 files changed, 47 insertions(+), 1 deletion(-) create mode 100644 .github/dokimi/repo.yaml create mode 100644 .github/workflows/agent-guidance.yml diff --git a/.github/AGENTS.md b/.github/AGENTS.md index 1b3a8a8d..203e1315 100644 --- a/.github/AGENTS.md +++ b/.github/AGENTS.md @@ -15,6 +15,10 @@ 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 only a broken manifest fails + the job The three pip workflows run `pytest --pyargs mkl_umath` against the editable install. `intel-ci.yml` installs each built conda package and wheel in a test @@ -25,7 +29,8 @@ job of its 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 README -- `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 - `copilot-instructions.md` — behavior policy for coding agents diff --git a/.github/dependabot.yml b/.github/dependabot.yml index f86275e2..d2747d2c 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -11,6 +11,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: "/" diff --git a/.github/dokimi/repo.yaml b/.github/dokimi/repo.yaml new file mode 100644 index 00000000..7157d7b4 --- /dev/null +++ b/.github/dokimi/repo.yaml @@ -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_umath +source: {url: https://github.com/IntelPython/mkl_umath} +guidance: + globs: ["**/AGENTS.md"] diff --git a/.github/workflows/agent-guidance.yml b/.github/workflows/agent-guidance.yml new file mode 100644 index 00000000..82ce6ce0 --- /dev/null +++ b/.github/workflows/agent-guidance.yml @@ -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: + - main + 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 From 0650e2f41f9d136a8ab5149d05a22967221010cf Mon Sep 17 00:00:00 2001 From: Anton Volkov Date: Thu, 3 Dec 2026 16:04:17 +0100 Subject: [PATCH 2/2] Ignore the paths the guidance names outside the tree, and scan copilot-instructions.md .dokimi/scan.toml lists the 5 names the AGENTS.md files use that are not tracked here: the generated __umath_generated.c and _umath_doc_generated.h, .asv/, NumPy's numpy/_build_utils and a conda environment's Library/bin. dokimi's repo scan reports their 8 claims as ignored, with the reason, instead of unresolved. The manifest also covers .github/copilot-instructions.md, which AGENTS.md points to for behavior policy. --- .dokimi/scan.toml | 26 ++++++++++++++++++++++++++ .github/AGENTS.md | 7 ++++--- .github/dokimi/repo.yaml | 2 +- 3 files changed, 31 insertions(+), 4 deletions(-) create mode 100644 .dokimi/scan.toml diff --git a/.dokimi/scan.toml b/.dokimi/scan.toml new file mode 100644 index 00000000..2c1eba04 --- /dev/null +++ b/.dokimi/scan.toml @@ -0,0 +1,26 @@ +# 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 = "__umath_generated.c" +reason = "generated by meson.build from mkl_umath/generate_umath.py in the build directory" + +[[ignore]] +kind = "path" +pattern = "_umath_doc_generated.h" +reason = "generated by meson.build from mkl_umath/generate_umath_doc.py in the build directory" + +[[ignore]] +kind = "path" +pattern = ".asv/" +reason = "asv results directory, created by the benchmarks and gitignored" + +[[ignore]] +kind = "path" +pattern = "numpy/_build_utils" +reason = "the directory of the NumPy repository that _vendored/ was copied from" + +[[ignore]] +kind = "path" +pattern = "Library/bin" +reason = "the DLL directory of a Windows conda environment, outside the repository" diff --git a/.github/AGENTS.md b/.github/AGENTS.md index 203e1315..3cd5e81d 100644 --- a/.github/AGENTS.md +++ b/.github/AGENTS.md @@ -16,9 +16,10 @@ CI/CD workflows and repo automation. - `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 only a broken manifest fails - the job + `AGENTS.md` and in `copilot-instructions.md` against the tree with dokimi + (manifest `dokimi/repo.yaml`; names that are not in the tree, such as + generated or external ones, go in `.dokimi/scan.toml`); the `repo scan` report + goes to the job summary, and only a broken manifest fails the job The three pip workflows run `pytest --pyargs mkl_umath` against the editable install. `intel-ci.yml` installs each built conda package and wheel in a test diff --git a/.github/dokimi/repo.yaml b/.github/dokimi/repo.yaml index 7157d7b4..76b088e3 100644 --- a/.github/dokimi/repo.yaml +++ b/.github/dokimi/repo.yaml @@ -4,4 +4,4 @@ schema: repo_manifest.v1 id: mkl_umath source: {url: https://github.com/IntelPython/mkl_umath} guidance: - globs: ["**/AGENTS.md"] + globs: ["**/AGENTS.md", ".github/copilot-instructions.md"]