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 78a066d3..939dd061 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` — 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`. - 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..6a721e20 --- /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", ".github/copilot-instructions.md"] diff --git a/.github/workflows/agent-guidance.yml b/.github/workflows/agent-guidance.yml new file mode 100644 index 00000000..e211e775 --- /dev/null +++ b/.github/workflows/agent-guidance.yml @@ -0,0 +1,31 @@ +name: Check agent guidance (dokimi) + +# 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: + 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