The disclosure feature reads how AI was used from the pull request description and checks it against the pull request’s commits. It runs on pull request events and is enabled by a disclosure section, even an empty one.
The fields above are the defaults, matching the Resnovas pull request template. Set fields only if your template names them differently.
A description that satisfies the check:
Each field is the first line starting with its label and a colon, ignoring case and leading spaces. HTML comments are ignored, so guidance inside a template’s comments is never read as an answer. Backticks are dropped from values.
Levels
none, autocomplete, chat, agent or autonomous.
Rules
AI-20 is checked only when the pull request is opened; AI-21 whenever it is not a draft. Together they mean AI-assisted work starts as a draft and leaves draft only once the accountable person has reviewed it.
AI tools are recognised the same way as in the commits feature, including commits.aiIdentities.
Roles
Trusted bots are skipped. On a maintainer’s own pull request, or the repository owner’s, errors are reported at maintainerLevel (warning by default). Last modified on September 26, 2026