Repository navigation
Add a CI job that checks the AGENTS.md claims against the tree with dokimi - #218
Open
antonwolfy wants to merge 6 commits into
Open
antonwolfy wants to merge 6 commits into
antonwolfy wants to merge 6 commits into
Conversation
…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
requested review from
jharlow-intel,
ndgrigorian,
vlad-perevezentsev and
xaleryb
as code owners
December 2, 2026 14:49
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 reusablerepo-eval.ymlworkflow of intel/dokimi:repo validatechecks 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 scanchecks every claim in the 9 AGENTS.md files and writes the report to the job summary. It never fails the job.tasks checkjob 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.tomllists 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.gitignoreignores 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-levelpermissions: {}, and the job getscontents: read. The concurrency group is keyed on the PR number, withrun_idas 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: thegithub-actionsentry ignoresintel/dokimi/*. Dependabot names a reusable workflow by its path, sointel/dokimialone 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 thedependabot.ymlentry says dokimi is bumped by hand.mkl_random/AGENTS.md:viRngUniformBits32/64written as the two MKL functions,viRngUniformBits32andviRngUniformBits64. The scan read the pair as a path and reported it as unresolved.benchmarks/benchmarks/_utils.py: the comment above_ENGINES_BITSnames the two functions the same way.The
uses:line is the only pin: it is theintel/dokimimain commit of 2026-12-03 (599fcad, with a# main, 2026-12-03comment). The reusable workflow installs the dokimi of its own commit, so nodokimi-refinput is passed. No release does that yet (v0.2.0 still needsdokimi-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
pre-commit run --fileson the seven changed files (actionlint, check-toml, codespell, gitleaks included), Linux.Not verified
repo validateandrepo scanjobs of this PR's own CI at8c724a4(both pass,tasks checkis skipped).Checklist
numpy.randomAPI compatibility preserved, or the break is intentional and called out above.CHANGELOG.mdentry says which streams changed.mkl_random/tests/; bug fixes have a regression test.CHANGELOG.mdupdated under## [dev]with a[gh-NNN](https://github.com/IntelPython/mkl_random/pull/NNN)link, or the change isn't user-visible.