Repository navigation
Add a CI job that checks the AGENTS.md claims against the tree with dokimi - #417
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 intel/dokimi's reusable `repo-eval.yml` workflow: `repo validate` checks the manifest `.github/dokimi/repo.yaml` and fails only when it is broken, and `repo scan` checks every claim in every AGENTS.md and writes the report to the job summary without failing the job. No model, API key or secret is used, and the manifest has no tasks, so no container is built. The `uses:` SHA is the only pin (the reusable workflow installs the dokimi of its own commit). It is a dokimi main commit, so Dependabot skips `intel/dokimi/*` and 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 2, 2026 14:23
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues are recorded for the new non-blocking agent-guidance checks.
No open issues 🎉
What changed in this PR
Adds dokimi-based checks for stale agent guidance across the repository, complementing the existing required guidance check.
Changes:
- Adds a workflow and manifest to scan all
AGENTS.mdfiles, with scan results reported non-blockingly. - Excludes dokimi from Dependabot updates and documents manual pin maintenance.
Repository guidance could not be verified because /repo was unavailable.
| File | Description |
|---|---|
.github/workflows/agent-guidance.yml |
Calls the pinned dokimi workflow on pull requests, master pushes, and manual runs. |
.github/dokimi/repo.yaml |
Defines the repository and guidance-file glob. |
.github/dependabot.yml |
Excludes dokimi reusable workflows from automatic updates. |
.github/AGENTS.md |
Documents the new check and manual pin updates. |
Review effort: Balanced
The scan reported `repo-eval.yml` as an unresolved path: the file is in intel/dokimi, not in this tree.
The required `Agent guidance` job (`ci/guidance.py`) already treats `.github/copilot-instructions.md` as guidance; the dokimi report now covers it too.
`benchmarks/AGENTS.md` names `.asv/`, which asv creates and `.gitignore` ignores, so the scan could only report it as unresolved. `.dokimi/scan.toml` now lists it with the reason, and the scan counts it as ignored.
dokimi main 599fcad (#1549) checks out `repo validate` at depth 1 and fetches the history only for a manifest with tasks; this manifest has none, so the job no longer clones the full history. The `repo-eval.yml` inputs and permissions are unchanged.
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, scripts and targets. A change elsewhere in the tree can make such a claim stale without touching the guidance. The
Agent guidancejob ofintel-ci.yml(ci/guidance.py) only looks at a pull request that changes a guidance file, and only fails on claims that are new in it, so a stale claim in an untouched file is never reported.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.repo scanchecks every claim in the 9 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, without the history.The existing
Agent guidancejob is unchanged and stays the required check.On master (
84ce3f4), with this PR and dokimi599fcad, the scan finds 98 claims in 10 files: 97 ok, 1 unresolved, 0 fail (16 of them, all ok, in.github/copilot-instructions.md). The unresolved one is.asv/inbenchmarks/AGENTS.md, a gitignored directory the benchmarks create;.dokimi/scan.tomllists it, so the scan counts it 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 master and on manual dispatch. Top-levelpermissions: {}, and the job getscontents: read. The concurrency group uses the PR number, withrun_idas the fallback for pushes and manual runs..github/dokimi/repo.yaml: the manifest. It names the guidance files:**/AGENTS.mdand.github/copilot-instructions.md, which theAgent guidancejob already treats as guidance..dokimi/scan.toml: names the guidance uses that are not in the tree (today.asv/), 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; 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 a policy line saying dokimi is bumped by hand.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 has that yet (in v0.2.0, the latest,dokimi-refis required), 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 runon the changed files (actionlint, codespell, whitespace and end-of-file hooks), Linux.599fcad:repo validateandrepo scanpass,repo tasks checkis skipped (no tasks). zizmor and theAgent guidancejob pass too.Not verified
repo validateandrepo scanwere not run locally, only in this PR's CI.Checklist
mkl_fft/tests/; bug fixes have a regression test.CHANGELOG.mdupdated under## [dev]with a[gh-NNN]link, or the change isn't user-visible.