Skip to content

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

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, scripts and targets. A change elsewhere in the tree can make such a claim stale without touching the guidance. The Agent guidance job of intel-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 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.
  • repo scan checks 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.
  • 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, and repo validate checks out at depth 1, without the history.

The existing Agent guidance job is unchanged and stays the required check.

On master (84ce3f4), with this PR and dokimi 599fcad, 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/ in benchmarks/AGENTS.md, a gitignored directory the benchmarks create; .dokimi/scan.toml lists 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-level permissions: {}, and the job gets contents: read. The concurrency group uses 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 and .github/copilot-instructions.md, which the Agent guidance job 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: the github-actions entry ignores intel/dokimi/* (Dependabot names a reusable workflow by its path, so intel/dokimi alone 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 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 has that yet (in v0.2.0, the latest, dokimi-ref is 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

  • Lint: pre-commit run on the changed files (actionlint, codespell, whitespace and end-of-file hooks), Linux.
  • Tests: not applicable, no package code changes.
  • The new workflow's run on this PR, with dokimi 599fcad: repo validate and repo scan pass, repo tasks check is skipped (no tasks). zizmor and the Agent guidance job pass too.

Not verified

  • repo validate and repo scan were not run locally, only in this PR's CI.

Checklist

  • NumPy/SciPy FFT API compatibility preserved, or the break is intentional and called out above.
  • Behavior changes have tests in mkl_fft/tests/; bug fixes have a regression test.
  • CHANGELOG.md updated under ## [dev] with a [gh-NNN] link, or the change isn't user-visible.

…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.
Copilot AI balanced review requested due to automatic review settings December 2, 2026 14:23

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 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.md files, 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.
antonwolfy and others added 2 commits December 2, 2026 17:57
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.
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.

2 participants