Repository navigation
Add a CI job that checks the AGENTS.md claims against the tree with dokimi - #309
Open
antonwolfy wants to merge 2 commits into
Open
antonwolfy wants to merge 2 commits into
antonwolfy wants to merge 2 commits into
Conversation
…okimi The new agent-guidance.yml workflow calls intel/dokimi's reusable repo-eval.yml, pinned to main 599fcad, with the guidance-only manifest .github/dokimi/repo.yaml (**/AGENTS.md). repo validate fails the job only on a broken manifest; the repo scan report goes to the job summary. Dependabot skips intel/dokimi/*, so the pin is bumped by hand, as .github/AGENTS.md now says.
antonwolfy
requested review from
jharlow-intel,
ndgrigorian,
vlad-perevezentsev and
xaleryb
as code owners
December 3, 2026 14:37
…t-instructions.md .dokimi/scan.toml lists the 5 names the AGENTS.md files use that are not tracked here: the generated __umath_generated.c and _umath_doc_generated.h, .asv/, NumPy's numpy/_build_utils and a conda environment's Library/bin. dokimi's repo scan reports their 8 claims as ignored, with the reason, instead of unresolved. The manifest also covers .github/copilot-instructions.md, which AGENTS.md points to for behavior policy.
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 pre-commit hooks. 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, which 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.repo scanchecks every claim in the 8 AGENTS.md files and in.github/copilot-instructions.md, and writes the report to the job summary. It never fails the job.tasks-checkjob does not run, andrepo validatechecks out at depth 1.On main (
9b66676), with this PR and dokimi599fcad, the scan finds 175 claims in 9 files: 167 ok, 8 unresolved, 0 fail (15 of them, all ok, in.github/copilot-instructions.md). The 8 unresolved claims name paths that are not in the tree: the generated build outputs__umath_generated.cand_umath_doc_generated.h, the gitignored.asv/, NumPy'snumpy/_build_utilsthat_vendored/was copied from, andLibrary/binof a Windows conda environment..dokimi/scan.tomllists them, so the scan counts them as ignored and no claim is open.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 main and on manual dispatch. Top-levelpermissions: {}, and the job getscontents: read. The concurrency group is keyed on the PR number, so PRs from forks with the same branch name do not cancel each other..github/dokimi/repo.yaml: the manifest. It names the guidance files:**/AGENTS.mdand.github/copilot-instructions.md, which the rootAGENTS.mdpoints to for behavior policy..dokimi/scan.toml: names the guidance uses that are not in the tree, each with the reason; dokimi 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)..github/AGENTS.md: the new workflow in the workflow list, with where its manifest and ignore list live, and the Dependabot entry says dokimi is bumped by hand.The
uses:line is the only pin: 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. The latest release, v0.2.0, predates that change, so the pin is a main commit and is bumped by hand.The scan stays report-only:
repo-eval.ymlhas no option to fail the job on a claim.Verification
0650e2f, dokimi599fcad):repo validateandrepo scanpass, andrepo tasks checkis skipped (no tasks). The scan report artifact gives the counts above, and each of the 5 ignore rules matches at least one claim.dokimi eval check . --schema-onlyanddokimi repo scan .with--manifest .github/dokimi/repo.yaml, run locally with dokimi599fcadin a Python 3.13 venv on Linux, give the same counts.pre-commit run --fileson the changed files passes (actionlint, check-toml, codespell and gitleaks included), andzizmor --min-severity medium .github/reports no findings.Not verified
Only the
pull_requesttrigger has run; thepushto main andworkflow_dispatchtriggers run the same job and have not been exercised.Checklist
mkl_umath/tests/; bug fixes have a regression test. (no behavior change)CHANGELOG.mdupdated under## [dev]with a[gh-NNN](https://github.com/IntelPython/mkl_umath/pull/NNN)link, or the change isn't user-visible. (not user-visible)