Skip to content

Add a CI job that checks the AGENTS.md claims against the tree with dokimi - #218

Open
antonwolfy wants to merge 6 commits into
masterfrom
ci/dokimi-guidance-check
Open

antonwolfy wants to merge 6 commits into
masterfrom
ci/dokimi-guidance-check

Conversation

@antonwolfy

@antonwolfy antonwolfy commented Dec 2, 2026 •

Copy link
Copy Markdown
Collaborator

Description

The AGENTS.md files name commands, paths, workflows and modules. A change elsewhere in the tree can make such a claim stale without touching the guidance, and no check notices today.

This PR adds the Check agent guidance (dokimi) workflow. It calls the reusable repo-eval.yml workflow of intel/dokimi:

  • repo validate checks the manifest (eval check --schema-only). It fails the job only when the manifest is broken. The manifest has no tasks, so it checks out at depth 1 and fetches no history.
  • repo scan checks every claim in the 9 AGENTS.md files and writes the report to the job summary. It never fails the job.
  • No model, API key or secret is used, and no container is built. The manifest has no tasks, so dokimi's tasks check job does not run.

On master (292012d), with this PR, the scan finds 165 claims: 162 ok, 3 unresolved, 0 fail. The 3 unresolved claims name things outside this tree, and .dokimi/scan.toml lists each one with its reason, so the scan counts them as ignored and no claim is open:

  • .asv/ (benchmarks/AGENTS.md:22): created by an ASV run; dokimi notes that .gitignore ignores it.
  • Library/bin (mkl_random/AGENTS.md:9): the Windows conda layout.
  • numpy/random/tests (mkl_random/tests/AGENTS.md:12): NumPy's tree.

The skipped dokimi / repo tasks check ${{ matrix.task }} check is dokimi's job for tasks, which this manifest does not have; its unexpanded name is intel/dokimi#1532.

Files:

  • .github/workflows/agent-guidance.yml: runs on pull requests, on pushes to master and on manual dispatch. Top-level permissions: {}, and the job gets contents: read. The concurrency group is keyed on the PR number, with run_id as the fallback for pushes and manual runs.
  • .github/dokimi/repo.yaml: the manifest. It names the guidance files (**/AGENTS.md).
  • .dokimi/scan.toml: the names the guidance uses that are not in the tree, each with its reason; dokimi reads the file from the tree and counts a claim it matches as ignored.
  • .github/dependabot.yml: the github-actions entry ignores intel/dokimi/*. Dependabot names a reusable workflow by its path, so intel/dokimi alone would not match, and the pin is a main commit, which Dependabot does not move.
  • .github/AGENTS.md: the new workflow added to the workflow list, with where its manifest and ignore list live, and the dependabot.yml entry says dokimi is bumped by hand.
  • mkl_random/AGENTS.md: viRngUniformBits32/64 written as the two MKL functions, viRngUniformBits32 and viRngUniformBits64. The scan read the pair as a path and reported it as unresolved.
  • benchmarks/benchmarks/_utils.py: the comment above _ENGINES_BITS names the two functions the same way.

The uses: line is the only pin: it is the intel/dokimi main commit of 2026-12-03 (599fcad, with a # main, 2026-12-03 comment). The reusable workflow installs the dokimi of its own commit, so no dokimi-ref input is passed. No release does that yet (v0.2.0 still needs dokimi-ref), and Dependabot follows releases, so the pin is bumped by hand until one does.

The scan stays report-only for now, although no claim is open today. It can be made blocking later.

Verification

  • Tests: none, the change touches CI configuration, agent guidance and one code comment only.
  • Lint: pre-commit run --files on the seven changed files (actionlint, check-toml, codespell, gitleaks included), Linux.

Not verified

  • dokimi did not run locally; the counts above come from the repo validate and repo scan jobs of this PR's own CI at 8c724a4 (both pass, tasks check is skipped).

Checklist

  • Legacy numpy.random API compatibility preserved, or the break is intentional and called out above.
  • Seeded output is unchanged, or the CHANGELOG.md entry says which streams changed.
  • Behavior changes have tests in mkl_random/tests/; bug fixes have a regression test.
  • CHANGELOG.md updated under ## [dev] with a [gh-NNN](https://github.com/IntelPython/mkl_random/pull/NNN) link, or the change isn't user-visible.

…okimi

The new `Check agent guidance (dokimi)` workflow calls the reusable `repo-eval.yml` workflow of intel/dokimi, pinned to the main commit 00a761c. `repo validate` fails the job only on a broken manifest; `repo scan` checks the claims of every AGENTS.md and writes its report to the job summary without failing the job. The manifest `.github/dokimi/repo.yaml` names the guidance files and has no tasks, so no model, secret or container is used.

Dependabot ignores `intel/dokimi/*`, since the pin is a main commit it would not move, and `.github/AGENTS.md` lists the workflow and says the pin is bumped by hand.

Signed-off-by: Anton Volkov <antonwolfy@gmail.com>
antonwolfy and others added 5 commits December 2, 2026 17:57
The new pin brings intel/dokimi#1548, which makes `repo scan` name its unresolved claims as info findings in the job summary, and intel/dokimi#1549, which makes `repo validate` check out at depth 1 when the manifest has no tasks. The reusable workflow takes the same inputs and permissions as at 00a761c.

Signed-off-by: Anton Volkov <antonwolfy@gmail.com>
…ENTS.md

`repo scan` read `viRngUniformBits32/64` as a path and reported it as unresolved. Naming the two MKL functions apart settles that claim.

Signed-off-by: Anton Volkov <antonwolfy@gmail.com>
…s comment

The comment above `_ENGINES_BITS` now names the two MKL functions the way `mkl_random/AGENTS.md` does.

Signed-off-by: Anton Volkov <antonwolfy@gmail.com>
…toml

`repo scan` reported `.asv/`, `Library/bin` and `numpy/random/tests` as unresolved: they name a gitignored asv results directory, the DLL directory of a Windows conda environment and NumPy's test directory. Each now has a `[[ignore]]` entry with its reason, so the scan lists it as `unresolved_ignored` and no claim is open. `.github/AGENTS.md` says where such names go.

Signed-off-by: Anton Volkov <antonwolfy@gmail.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant