Skip to content

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

Open
antonwolfy wants to merge 1 commit into
masterfrom
ci/dokimi-guidance-check
Open

antonwolfy wants to merge 1 commit into
masterfrom
ci/dokimi-guidance-check

Conversation

@antonwolfy

Copy link
Copy Markdown
Collaborator

An AGENTS.md file names 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 nothing checks for that today. This PR brings to dpctl the check that IntelPython/dpnp#3150 adds to dpnp.

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

master has no AGENTS.md yet (#2402 adds one), so for now the scan has no claims to check. The manifest matches **/AGENTS.md, so the scan picks up the file once #2402 merges, with no change here.

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).
  • .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).

Both pins (uses: and dokimi-ref) are the intel/dokimi main commit of 2026-12-01, with a # main, 2026-12-01 comment, the same pin as in dpnp; no release has it yet. Dependabot would bump only the uses: line and leave dokimi-ref on the old commit, so dependabot.yml ignores dokimi and both pins are bumped together by hand. The dpnp PR also adds this rule and the workflow to its AGENTS.md files; that belongs in dpctl's AGENTS.md once #2402 lands.

The scan stays report-only for now. It can be made blocking once its unresolved claims are settled.

  • 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?
  • If this PR is a work in progress, are you opening the PR as a draft?

@github-actions

github-actions Bot commented Dec 1, 2026

Copy link
Copy Markdown

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 remain for the guidance-checking CI configuration.

No open issues 🎉

What changed in this PR

Adds dokimi-based CI checks to detect stale claims in AGENTS.md guidance. The configuration is ready to pick up the guidance planned in #2402; until then, there are no claims to scan.

Changes:

  • Adds a workflow for pull requests, pushes to master, and manual runs, with blocking manifest validation and report-only scanning.
  • Adds a manifest matching **/AGENTS.md, with no evaluation tasks.
  • Pins the reusable workflow and dokimi installation to the same commit, excluding dokimi from Dependabot updates so both pins remain synchronized manually.
File Description
.github/​workflows/​agent-guidance.yml Calls the pinned dokimi workflow with read-only repository access.
.github/​dokimi/​repo.yaml Defines the repository manifest and guidance-file glob.
.github/​dependabot.yml Excludes dokimi reusable workflows from automated dependency updates.

Review effort: Balanced

@coveralls

Copy link
Copy Markdown
Collaborator

Coverage Status

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

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