Skip to content

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

Open
antonwolfy wants to merge 7 commits into
masterfrom
ci/dokimi-guidance-check
Open

antonwolfy wants to merge 7 commits into
masterfrom
ci/dokimi-guidance-check

Conversation

@antonwolfy

@antonwolfy antonwolfy commented Dec 1, 2026 •

Copy link
Copy Markdown
Collaborator

The AGENTS.md files name commands, paths and workflow files. 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 6 AGENTS.md files 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.

With this PR on master (046333c), the scan finds 154 claims: 151 ok, 3 unresolved, all 3 ignored by .dokimi/scan.toml, and 0 fail.

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.
  • .github/dokimi/repo.yaml: the manifest. It names the guidance files (**/AGENTS.md).
  • .dokimi/scan.toml: an [[ignore]] entry, with its reason, for each name the AGENTS.md files take from outside this repository: the sibling packages mkl_umath and mkl_random, the NumPy C names PyArray_Resize and array_tobytes, the CPython PyBUF_* flags and the builtin ImportError. The scan lists a matching claim as ignored and never fails on it, so a new unresolved claim stands out. dokimi reads this file only at the repository root.
  • .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).
  • AGENTS.md, .github/AGENTS.md: the new workflow added to the workflow lists, and the Dependabot note says dokimi is bumped by hand.
  • AGENTS.md, .github/AGENTS.md, conda-recipe/AGENTS.md: actions/cache and conda-forge/mkl-service-feedstock become plain links instead of backticked spans, which the scan read as paths (one fail, four unresolved).

The uses: line pins the intel/dokimi main commit of 2026-12-03 (599fcad), with a # main, 2026-12-03 comment; no release has it yet. It is the only pin: with no dokimi-ref input, the workflow installs the dokimi of its own commit. dependabot.yml ignores dokimi, so the pin is bumped by hand.

One dokimi issue is still open at this pin, intel/dokimi#1487: the scan reads .dokimi/scan.toml as code, so the five entries that spell out a whole name resolve their own claims. Those 7 claims read ok, and only the three PyBUF_* claims are listed as ignored. Once its fix (intel/dokimi#1498) is merged and the pin moves past it, all 10 are listed as ignored, each with its reason.

The scan stays report-only. Making it blocking needs a gate in the reusable workflow: repo scan --fail-on takes only fail, and repo-eval.yml has no input to pass it.

Copilot AI balanced review requested due to automatic review settings December 1, 2026 13:01
@antonwolfy antonwolfy self-assigned this Dec 1, 2026
@antonwolfy antonwolfy added this to the 2.10.0 release milestone Dec 1, 2026

Copilot AI left a comment

Copy link
Copy Markdown

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 require changes.

No open issues 🎉

What changed in this PR

Adds a dokimi CI check to detect stale claims in AGENTS.md files as the repository changes. Manifest validation is blocking; guidance scans remain report-only.

Changes:

  • Adds a pinned reusable workflow for pull requests, pushes to master, and manual runs.
  • Defines a manifest targeting all AGENTS.md files, without model or secret requirements.
  • Excludes dokimi from Dependabot updates and documents manual updates of both matching pins.
File Description
AGENTS.md Adds the guidance check to the workflow list.
.github/​workflows/​agent-guidance.yml Configures triggers, read-only permissions, and the pinned dokimi workflow.
.github/​dokimi/​repo.yaml Defines the repository manifest and guidance-file glob.
.github/​dependabot.yml Excludes dokimi reusable workflows from automatic updates.
.github/​AGENTS.md Documents the check and coordinated manual pin updates.

Review effort: Balanced

Comment thread .github/AGENTS.md Resolved
Comment thread .github/dokimi/repo.yaml Resolved
antonwolfy and others added 3 commits December 2, 2026 15:13
…s use in .dokimi/scan.toml

The scan's 10 unresolved claims all name things outside this repository: sibling packages (mkl_umath, mkl_random), the NumPy C API (PyArray_Resize, array_tobytes), CPython buffer flags (PyBUF_*) and a Python builtin (ImportError). An [[ignore]] entry with a reason for each lets a new unresolved claim stand out from them.
Since intel/dokimi#1486 the reusable workflow installs the dokimi of its own commit when `dokimi-ref` is empty, so the `uses:` SHA is the only pin left. The new commit also counts an ignored claim apart from unresolved (intel/dokimi#1497).
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