From 6c9e07db7a4b55b8cef6b253758d7b4f2d1256df Mon Sep 17 00:00:00 2001 From: Anton Volkov Date: Tue, 1 Dec 2026 13:28:58 +0100 Subject: [PATCH] Add a CI job that checks the AGENTS.md claims against the tree with dokimi --- .github/dependabot.yml | 4 ++++ .github/dokimi/repo.yaml | 7 ++++++ .github/workflows/agent-guidance.yml | 32 ++++++++++++++++++++++++++++ 3 files changed, 43 insertions(+) create mode 100644 .github/dokimi/repo.yaml create mode 100644 .github/workflows/agent-guidance.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml index f86275e2b1..f025295737 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -11,6 +11,10 @@ updates: groups: github-actions: patterns: ["*"] + # Dependabot would bump `uses:` only, not the `dokimi-ref` input that has to match it; + # both are 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 0000000000..64ed3dcf9c --- /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: dpctl +source: {url: https://github.com/IntelPython/dpctl} +guidance: + globs: ["**/AGENTS.md"] diff --git a/.github/workflows/agent-guidance.yml b/.github/workflows/agent-guidance.yml new file mode 100644 index 0000000000..4a76edf5cb --- /dev/null +++ b/.github/workflows/agent-guidance.yml @@ -0,0 +1,32 @@ +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 + + # Bump both SHAs together, by hand (Dependabot skips dokimi): `uses:` runs the workflow, + # `dokimi-ref` installs the same dokimi + uses: intel/dokimi/.github/workflows/repo-eval.yml@9e41f5e8b2af6e6f445d7eead5d0fbe2dfc8321c # main, 2026-12-01 + with: + dokimi-ref: 9e41f5e8b2af6e6f445d7eead5d0fbe2dfc8321c + manifest: .github/dokimi/repo.yaml