From 771b860e6d22d97996f3fc0588b4f9884c0e8ccc Mon Sep 17 00:00:00 2001 From: Anton Volkov Date: Wed, 2 Dec 2026 15:21:51 +0100 Subject: [PATCH 1/5] Add a CI job that checks the AGENTS.md claims against the tree with dokimi The new `Check agent guidance (dokimi)` workflow calls intel/dokimi's reusable `repo-eval.yml` workflow: `repo validate` checks the manifest `.github/dokimi/repo.yaml` and fails only when it is broken, and `repo scan` checks every claim in every AGENTS.md and writes the report to the job summary without failing the job. No model, API key or secret is used, and the manifest has no tasks, so no container is built. The `uses:` SHA is the only pin (the reusable workflow installs the dokimi of its own commit). It is a dokimi main commit, so Dependabot skips `intel/dokimi/*` and the pin is bumped by hand, as `.github/AGENTS.md` now says. --- .github/AGENTS.md | 2 ++ .github/dependabot.yml | 4 ++++ .github/dokimi/repo.yaml | 7 +++++++ .github/workflows/agent-guidance.yml | 30 ++++++++++++++++++++++++++++ 4 files changed, 43 insertions(+) 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 78a066d3..e8c12495 100644 --- a/.github/AGENTS.md +++ b/.github/AGENTS.md @@ -9,7 +9,9 @@ CI/CD workflows and repo automation. - `build-with-standard-clang.yml` — standard clang compatibility checks - `pre-commit.yml` — lint/format checks - `openssf-scorecard.yml` — security scanning +- `agent-guidance.yml` — dokimi's reusable `repo-eval.yml` workflow: `repo scan` checks every claim in every `AGENTS.md` (manifest `.github/dokimi/repo.yaml`) and reports in the job summary; only a broken manifest fails it, and it is not a required check ## Policy - Treat workflow YAML as canonical for platform/Python matrices, except `intel-ci.yml`, whose conda matrix is `conda-recipe/conda_build_config.yaml` and whose wheel matrix is the Python classifiers in `pyproject.toml`. - Avoid doc claims about CI coverage unless present in workflow config. +- Dependabot (`dependabot.yml`) skips dokimi: bump the `uses:` SHA in `agent-guidance.yml` by hand. diff --git a/.github/dependabot.yml b/.github/dependabot.yml index b404563e..8e8843c1 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -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: "/" diff --git a/.github/dokimi/repo.yaml b/.github/dokimi/repo.yaml new file mode 100644 index 00000000..0aa38b9a --- /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_fft +source: {url: https://github.com/IntelPython/mkl_fft} +guidance: + globs: ["**/AGENTS.md"] diff --git a/.github/workflows/agent-guidance.yml b/.github/workflows/agent-guidance.yml new file mode 100644 index 00000000..659dea4e --- /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: + - 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@00a761c118c40cb92af62a419c9be6f528cd50d7 # main, 2026-12-02 + with: + manifest: .github/dokimi/repo.yaml From d038f83bd0248577d21ba61f0dbc45d2a6855a76 Mon Sep 17 00:00:00 2001 From: Anton Volkov Date: Wed, 2 Dec 2026 15:27:10 +0100 Subject: [PATCH 2/5] Name dokimi's reusable workflow without backticks in .github/AGENTS.md The scan reported `repo-eval.yml` as an unresolved path: the file is in intel/dokimi, not in this tree. --- .github/AGENTS.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/AGENTS.md b/.github/AGENTS.md index e8c12495..b830d464 100644 --- a/.github/AGENTS.md +++ b/.github/AGENTS.md @@ -9,7 +9,7 @@ CI/CD workflows and repo automation. - `build-with-standard-clang.yml` — standard clang compatibility checks - `pre-commit.yml` — lint/format checks - `openssf-scorecard.yml` — security scanning -- `agent-guidance.yml` — dokimi's reusable `repo-eval.yml` workflow: `repo scan` checks every claim in every `AGENTS.md` (manifest `.github/dokimi/repo.yaml`) and reports in the job summary; only a broken manifest fails it, and it is not a required check +- `agent-guidance.yml` — calls the reusable repo-eval workflow of intel/dokimi: `repo scan` checks every claim in every `AGENTS.md` (manifest `.github/dokimi/repo.yaml`) and reports in the job summary; only a broken manifest fails it, and it is not a required check ## Policy - Treat workflow YAML as canonical for platform/Python matrices, except `intel-ci.yml`, whose conda matrix is `conda-recipe/conda_build_config.yaml` and whose wheel matrix is the Python classifiers in `pyproject.toml`. From 5f56f80d77cfe472f202e5019b615b4b86828782 Mon Sep 17 00:00:00 2001 From: Anton Volkov Date: Wed, 2 Dec 2026 15:34:02 +0100 Subject: [PATCH 3/5] Scan .github/copilot-instructions.md with the AGENTS.md files The required `Agent guidance` job (`ci/guidance.py`) already treats `.github/copilot-instructions.md` as guidance; the dokimi report now covers it too. --- .github/AGENTS.md | 2 +- .github/dokimi/repo.yaml | 2 +- .github/workflows/agent-guidance.yml | 7 ++++--- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/AGENTS.md b/.github/AGENTS.md index b830d464..fe4559af 100644 --- a/.github/AGENTS.md +++ b/.github/AGENTS.md @@ -9,7 +9,7 @@ CI/CD workflows and repo automation. - `build-with-standard-clang.yml` — standard clang compatibility checks - `pre-commit.yml` — lint/format checks - `openssf-scorecard.yml` — security scanning -- `agent-guidance.yml` — calls the reusable repo-eval workflow of intel/dokimi: `repo scan` checks every claim in every `AGENTS.md` (manifest `.github/dokimi/repo.yaml`) and reports in the job summary; only a broken manifest fails it, and it is not a required check +- `agent-guidance.yml` — calls the reusable repo-eval workflow of intel/dokimi: `repo scan` checks every claim in every `AGENTS.md` and in `copilot-instructions.md` (manifest `.github/dokimi/repo.yaml`) and reports in the job summary; only a broken manifest fails it, and it is not a required check ## Policy - Treat workflow YAML as canonical for platform/Python matrices, except `intel-ci.yml`, whose conda matrix is `conda-recipe/conda_build_config.yaml` and whose wheel matrix is the Python classifiers in `pyproject.toml`. diff --git a/.github/dokimi/repo.yaml b/.github/dokimi/repo.yaml index 0aa38b9a..6a721e20 100644 --- a/.github/dokimi/repo.yaml +++ b/.github/dokimi/repo.yaml @@ -4,4 +4,4 @@ schema: repo_manifest.v1 id: mkl_fft source: {url: https://github.com/IntelPython/mkl_fft} guidance: - globs: ["**/AGENTS.md"] + globs: ["**/AGENTS.md", ".github/copilot-instructions.md"] diff --git a/.github/workflows/agent-guidance.yml b/.github/workflows/agent-guidance.yml index 659dea4e..d4dfcf1e 100644 --- a/.github/workflows/agent-guidance.yml +++ b/.github/workflows/agent-guidance.yml @@ -1,8 +1,9 @@ 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. +# Checks the commands, paths and targets named in every AGENTS.md and in +# .github/copilot-instructions.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: From a17733bc6cd05689ea66b06341fda28245763ae9 Mon Sep 17 00:00:00 2001 From: Anton Volkov Date: Wed, 2 Dec 2026 15:44:22 +0100 Subject: [PATCH 4/5] Mark the gitignored .asv/ directory as a known name for the dokimi scan `benchmarks/AGENTS.md` names `.asv/`, which asv creates and `.gitignore` ignores, so the scan could only report it as unresolved. `.dokimi/scan.toml` now lists it with the reason, and the scan counts it as ignored. --- .dokimi/scan.toml | 6 ++++++ .github/AGENTS.md | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 .dokimi/scan.toml diff --git a/.dokimi/scan.toml b/.dokimi/scan.toml new file mode 100644 index 00000000..e12d1ff1 --- /dev/null +++ b/.dokimi/scan.toml @@ -0,0 +1,6 @@ +# 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" diff --git a/.github/AGENTS.md b/.github/AGENTS.md index fe4559af..939dd061 100644 --- a/.github/AGENTS.md +++ b/.github/AGENTS.md @@ -9,7 +9,7 @@ CI/CD workflows and repo automation. - `build-with-standard-clang.yml` — standard clang compatibility checks - `pre-commit.yml` — lint/format checks - `openssf-scorecard.yml` — security scanning -- `agent-guidance.yml` — calls the reusable repo-eval workflow of intel/dokimi: `repo scan` checks every claim in every `AGENTS.md` and in `copilot-instructions.md` (manifest `.github/dokimi/repo.yaml`) and reports in the job summary; only a broken manifest fails it, and it is not a required check +- `agent-guidance.yml` — calls the reusable repo-eval workflow of intel/dokimi: `repo scan` checks every claim in every `AGENTS.md` and in `copilot-instructions.md` (manifest `.github/dokimi/repo.yaml`; names that are not in the tree, such as gitignored or external ones, go in `.dokimi/scan.toml`) and reports in the job summary; only a broken manifest fails it, and it is not a required check ## Policy - Treat workflow YAML as canonical for platform/Python matrices, except `intel-ci.yml`, whose conda matrix is `conda-recipe/conda_build_config.yaml` and whose wheel matrix is the Python classifiers in `pyproject.toml`. From 77bec2e6dd9f6734e4829d647bc2873534ce36a6 Mon Sep 17 00:00:00 2001 From: Anton Volkov Date: Thu, 3 Dec 2026 15:10:58 +0100 Subject: [PATCH 5/5] Move the dokimi pin to main 599fcad dokimi main 599fcad (#1549) checks out `repo validate` at depth 1 and fetches the history only for a manifest with tasks; this manifest has none, so the job no longer clones the full history. The `repo-eval.yml` inputs and permissions are unchanged. --- .github/workflows/agent-guidance.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/agent-guidance.yml b/.github/workflows/agent-guidance.yml index d4dfcf1e..e211e775 100644 --- a/.github/workflows/agent-guidance.yml +++ b/.github/workflows/agent-guidance.yml @@ -26,6 +26,6 @@ jobs: 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@00a761c118c40cb92af62a419c9be6f528cd50d7 # main, 2026-12-02 + uses: intel/dokimi/.github/workflows/repo-eval.yml@599fcadcd31b0088dfb4dd079ca66cde523fa697 # main, 2026-12-03 with: manifest: .github/dokimi/repo.yaml