From f6d9c9c65316faaab10e9e75801927f4133818c1 Mon Sep 17 00:00:00 2001 From: Anton Volkov Date: Tue, 3 Nov 2026 16:19:47 +0100 Subject: [PATCH 1/4] Add a CI job that checks the AGENTS.md claims against the tree with dokimi --- .github/dokimi/repo.yaml | 7 +++++++ .github/workflows/agent-guidance.yml | 31 ++++++++++++++++++++++++++++ AGENTS.md | 1 + 3 files changed, 39 insertions(+) create mode 100644 .github/dokimi/repo.yaml create mode 100644 .github/workflows/agent-guidance.yml diff --git a/.github/dokimi/repo.yaml b/.github/dokimi/repo.yaml new file mode 100644 index 00000000000..3f6a777f686 --- /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: dpnp +source: {url: https://github.com/IntelPython/dpnp} +guidance: + globs: ["**/AGENTS.md"] diff --git a/.github/workflows/agent-guidance.yml b/.github/workflows/agent-guidance.yml new file mode 100644 index 00000000000..9f4c9ca6611 --- /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 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.head_ref || github.run_id }} + cancel-in-progress: true + +jobs: + dokimi: + name: dokimi + + permissions: + contents: read # needed to clone the repo + + # Bump both SHAs together: `uses:` runs the workflow, `dokimi-ref` installs the same dokimi + uses: intel/dokimi/.github/workflows/repo-eval.yml@b084e47f9b88d12f5b3cd506a7e05be4c008a985 # main, 2026-11-03 + with: + dokimi-ref: b084e47f9b88d12f5b3cd506a7e05be4c008a985 + manifest: .github/dokimi/repo.yaml diff --git a/AGENTS.md b/AGENTS.md index c4304d083f8..7946cbb3013 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -54,6 +54,7 @@ Append to the end of the matching `### Added` / `Changed` / `Deprecated` / `Remo | oneMath build, open-source LLVM SYCL build | `check-onemath.yaml`, `os-llvm-sycl-build.yml` | no | | Sphinx docs (`make spelling`, `make html`) | `build-sphinx.yml` | no | | Coverage (Coveralls), zizmor | `generate_coverage.yaml`, `zizmor.yml` | no | +| Agent guidance check, dokimi (`repo scan` report in the job summary) | `agent-guidance.yml`, manifest `.github/dokimi/repo.yaml` | no | GitHub-hosted runners have no GPU, so tests there run on a CPU device: a green run says nothing about GPUs or devices without fp64. From 5f64850f3a65cfd0bbc4eaf7462ba6d8d4b2668b Mon Sep 17 00:00:00 2001 From: Anton Volkov Date: Tue, 3 Nov 2026 18:02:09 +0100 Subject: [PATCH 2/4] Scope the agent guidance concurrency group to the PR number --- .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 9f4c9ca6611..3448c08a2d2 100644 --- a/.github/workflows/agent-guidance.yml +++ b/.github/workflows/agent-guidance.yml @@ -14,7 +14,7 @@ on: permissions: {} concurrency: - group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }} cancel-in-progress: true jobs: From e3febba7c8d1386cbf4f13ef621d99a6c870fdfb Mon Sep 17 00:00:00 2001 From: Anton Volkov Date: Wed, 4 Nov 2026 18:32:05 +0100 Subject: [PATCH 3/4] Move the dokimi pin to main 51bbc4d --- .github/workflows/agent-guidance.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/agent-guidance.yml b/.github/workflows/agent-guidance.yml index 3448c08a2d2..1cd886fdc94 100644 --- a/.github/workflows/agent-guidance.yml +++ b/.github/workflows/agent-guidance.yml @@ -25,7 +25,7 @@ jobs: contents: read # needed to clone the repo # Bump both SHAs together: `uses:` runs the workflow, `dokimi-ref` installs the same dokimi - uses: intel/dokimi/.github/workflows/repo-eval.yml@b084e47f9b88d12f5b3cd506a7e05be4c008a985 # main, 2026-11-03 + uses: intel/dokimi/.github/workflows/repo-eval.yml@51bbc4df7036e06b4b559fa235d75af78d0366e0 # main, 2026-11-04 with: - dokimi-ref: b084e47f9b88d12f5b3cd506a7e05be4c008a985 + dokimi-ref: 51bbc4df7036e06b4b559fa235d75af78d0366e0 manifest: .github/dokimi/repo.yaml From 53a9c943b199258869d50f9e6ef3dea83d3acafa Mon Sep 17 00:00:00 2001 From: Anton Volkov Date: Wed, 11 Nov 2026 12:02:35 +0100 Subject: [PATCH 4/4] Move the dokimi pin to release v0.2.0 --- .github/workflows/agent-guidance.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/agent-guidance.yml b/.github/workflows/agent-guidance.yml index 1cd886fdc94..c8b59e1455c 100644 --- a/.github/workflows/agent-guidance.yml +++ b/.github/workflows/agent-guidance.yml @@ -25,7 +25,7 @@ jobs: contents: read # needed to clone the repo # Bump both SHAs together: `uses:` runs the workflow, `dokimi-ref` installs the same dokimi - uses: intel/dokimi/.github/workflows/repo-eval.yml@51bbc4df7036e06b4b559fa235d75af78d0366e0 # main, 2026-11-04 + uses: intel/dokimi/.github/workflows/repo-eval.yml@0883b7e92337c5e860a0c340fba8c1d76421851a # v0.2.0 with: - dokimi-ref: 51bbc4df7036e06b4b559fa235d75af78d0366e0 + dokimi-ref: 0883b7e92337c5e860a0c340fba8c1d76421851a manifest: .github/dokimi/repo.yaml