ci: block new AIDEV-* comment anchors - #19876
Conversation
Guild decision: stop using AIDEV-NOTE/TODO/QUESTION prefixes in favor of plain inline comments. Update AGENTS.md and cursor rules, and add a diff-scoped CI check so new anchors fail while legacy ones are grandfathered.
Circular import analysis
|
Dependency direction analysis
|
|
Codeowners resolved asResolved from the full PR diff against |
BenchmarksBenchmark execution time: 2026-08-26 18:12:02 Comparing candidate commit 991d147 in PR branch Found 0 performance improvements and 6 performance regressions! Performance is the same for 580 metrics, 10 unstable metrics, 1 known flaky benchmarks, 17 flaky benchmarks without significant changes.
|
Description
Split of #19517, slice 1 of 2 (block new). Independent of the follow-up that converts existing anchors.
Guild decision: stop using
AIDEV-NOTE:/AIDEV-TODO:/AIDEV-QUESTION:prefixes in favor of plain inline comments.This PR only adds the policy and the gate:
AGENTS.mdand cursor rules so new anchors are not addedscripts/check_no_new_aidev_anchors.py(diff-scoped: added lines only; legacy anchors are grandfathered)check_added_file_size(includesGIT_DEPTH: "0"to match that job on currentmain)pyproject.tomlexclude_dirsIt does not rewrite existing
AIDEV-*comments in product code.Testing
check_no_new_aidev_anchorsruns on the MR and is skippable onmain/ release / merge-queuepython3 scripts/check_no_new_aidev_anchors.py --base-ref origin/mainis clean on this branch (no new anchors in this diff)Risks
Low. Docs/rules plus a CI check that only inspects added diff lines. Existing anchors keep working until the conversion PR lands.
Additional Notes
vlad/remove-existing-aidev-anchors(both branch frommain; no stack)vlad/check-no-new-aidev-anchors)python-guild(AGENTS.md,.cursor/,scripts/,pyproject.toml,.gitlab-ci.yml);ai-guard.mdcis alsoasm-python