Skip to content

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

Open
antonwolfy wants to merge 14 commits into
IntelPython:masterfrom
antonwolfy:ci/dokimi-guidance-check
Open

antonwolfy wants to merge 14 commits into
IntelPython:masterfrom
antonwolfy:ci/dokimi-guidance-check

Conversation

@antonwolfy

@antonwolfy antonwolfy commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

The AGENTS.md files name commands, paths, CMake targets 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 9 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.

On master (4be83d01470), with this PR, the scan finds 309 claims: 302 ok, 7 unresolved, 0 fail. The 7 unresolved claims are build outputs that .gitignore ignores, such as the generated files the root AGENTS.md says not to edit; the scan reports such paths as unresolved rather than failed.

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).
  • AGENTS.md: the new workflow added to the "Where the checks live" table, as not required.
  • .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 Dependabot rule says dokimi is bumped by hand.

The uses: line is the only pin: it is the intel/dokimi main commit of 2026-12-02 (00a761c, with a # main, 2026-12-02 comment). The reusable workflow now installs the dokimi of its own commit (a change of 2026-12-01), so no dokimi-ref input is passed. No release has that change yet, and Dependabot follows releases, so the pin is bumped by hand until one does.

The scan stays report-only: repo-eval.yml has no option to fail the job on a claim.

  • Have you provided a meaningful PR description?
  • Have you added a test, reproducer or referred to an issue with a reproducer?
  • Have you tested your changes locally for CPU and GPU devices?
  • Have you made sure that new changes do not introduce compiler warnings?
  • Have you checked performance impact of proposed changes?
  • Have you added documentation for your changes, if necessary?
  • Have you added your changes to the changelog?

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.

🟡 Changes recommended

The workflow’s concurrency key uses github.head_ref, so unrelated fork PRs with the same branch name can cancel each other’s guidance checks; use the PR number to scope cancellation correctly.

1 open issue
What changed in this PR

Adds a report-only CI scan to detect stale claims in dpnp’s agent guidance files.

Changes:

  • Calls a pinned dokimi reusable workflow on pull requests, pushes to master, and manual dispatch.
  • Adds a task-free manifest selecting all AGENTS.md files.
  • Documents the new check as non-required.
File Description
AGENTS.md Lists the guidance check in the CI reference table.
.github/​workflows/​agent-guidance.yml Configures dokimi execution, read-only permissions, and concurrency.
.github/​dokimi/​repo.yaml Defines the repository manifest and guidance-file glob.

Review effort: Balanced

Comment thread .github/workflows/agent-guidance.yml Resolved
@antonwolfy
antonwolfy requested a balanced review from Copilot November 3, 2026 17:09
@coveralls

coveralls commented Nov 3, 2026 •

Copy link
Copy Markdown
Collaborator

Coverage Status

coverage: 84.557%. remained the same — antonwolfy:ci/dokimi-guidance-check into IntelPython:master

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

There are no active review issues blocking the agent-guidance CI change.

No open issues 🎉

1 resolved since last review

Review effort: Balanced

@antonwolfy
antonwolfy marked this pull request as ready for review November 3, 2026 18:04
The reusable workflow installs the dokimi of its own commit since intel/dokimi#1486, so the `uses:` SHA is the only pin.

Signed-off-by: Anton Volkov <antonwolfy@gmail.com>

This branch has not been deployed

No deployments
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.

3 participants