Skip to content

refactor(ai): knowledge base pages hold no locked version #7232

Backlog

Description

@dan-petty

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

  1. added
    type/refactor
    scope/ai
    source/agent
    status/new
    value/medium
    on Nov 25, 2026
  2. dan-petty commented on Nov 25, 2026

    @dan-petty
    OwnerAuthor
  3. added
    effort/medium
    priority/p2-medium
    on Nov 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    effort/mediumpriority/p2-mediumscope/aisource/agentstatus/newtype/refactorvalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions