Skip to content

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

Open
antonwolfy wants to merge 2 commits into
mainfrom
ci/dokimi-guidance-check
Open

antonwolfy wants to merge 2 commits into
mainfrom
ci/dokimi-guidance-check

Conversation

@antonwolfy

@antonwolfy antonwolfy commented Dec 3, 2026 •

Copy link
Copy Markdown
Collaborator

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 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 8 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.

On main (9b66676), with this PR and dokimi 599fcad, 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.c and _umath_doc_generated.h, the gitignored .asv/, NumPy's numpy/_build_utils that _vendored/ was copied from, and Library/bin of a Windows conda environment. .dokimi/scan.toml lists 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-level permissions: {}, and the job gets contents: 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.md and .github/copilot-instructions.md, which the root AGENTS.md points 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: the github-actions entry ignores intel/dokimi/* (Dependabot names a reusable workflow by its path, so intel/dokimi alone 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: 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. 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.yml has no option to fail the job on a claim.

Verification

  • The new workflow's run on this PR (run, head 0650e2f, dokimi 599fcad): repo validate and repo scan pass, and repo tasks check is skipped (no tasks). The scan report artifact gives the counts above, and each of the 5 ignore rules matches at least one claim.
  • The same dokimi eval check . --schema-only and dokimi repo scan . with --manifest .github/dokimi/repo.yaml, run locally with dokimi 599fcad in a Python 3.13 venv on Linux, give the same counts.
  • Lint: pre-commit run --files on the changed files passes (actionlint, check-toml, codespell and gitleaks included), and zizmor --min-severity medium .github/ reports no findings.

Not verified

Only the pull_request trigger has run; the push to main and workflow_dispatch triggers run the same job and have not been exercised.

Checklist

  • Results match stock NumPy, or the difference is intentional and called out above. (CI only, no code change)
  • Behavior changes have tests in mkl_umath/tests/; bug fixes have a regression test. (no behavior change)
  • CHANGELOG.md updated 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)

…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.
…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.
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