Repository navigation
Description
Problem or Motivation
A dependency update must edit knowledge base pages under src/. Of 109 dependency update commits on main since 2026-11-01, 19 changed a file under src/ or tests/, and the largest group is the pages under src/devops_cli/ai/knowledge_base/ (19 file edits).
The cause: each page states the versions that it applies to (applies_to, for example pkg:pypi/<name>@<locked minor>.*), and src/devops_cli/ai/kb.py (near lines 272 to 279 and 380 to 406) reads uv.lock and reports a page whose range does not hold the locked version as drift. Until #7229 three tests of tests/review/test_kb_manuals_metadata.py failed on that drift. #7229 removed these tests, but the pages still hold a copy of the locked version.
Owner rule of 2026-11-19: a dependency version lives only in the manifest of its package manager, and an update that changes no interface needs no edit under src/ or tests/.
Proposed Solution
Disposition: change the code and the pages.
- A page names the library, and names a version only where its text is true for that version alone (a floor, such as "from 2.0").
- The drift report compares the page with the version that ran only when the page states a floor or a ceiling.
- Remove the exact minor ranges from the front matter of the pages.
Proof: a Renovate minor update of one Python library passes CI with no edit of a page. A test of kb.py with a page and a lock that the test writes.
Existing Tool Considered
Renovate has no manager for prose. The fix is to hold no copy of the pin. No new code is necessary.
Alternatives check of 2026-11-25: not-applicable.
Class: refactor, no search.
Tool: none found.
Activity
dan-petty commentedon Nov 25, 2026
Both edit the same applies_to front matter and the kb.py drift path, but #6998 widened one library's range while the candidate removes all exact pins and changes the comparison rule.