Skip to content

feat(ai): knowledge-base manuals state the tool, language and dependency versions they apply to, and reviews ground explanations in the manuals that match the reviewed project #1149

Closed

Description

@dan-petty

Problem

  • The KB was built to make reviews consistent and reliable, and it never reached one: 2,084/2,084 searches were empty, and contract grounding found 0/20,244 [measured].
  • It holds the right facts. It states PEP 758 correctly [code: it_domains/topics/modern_python_runtime_and_ecosystem.md:25], the fact models got wrong 22 times.
  • But it states no versions. 7 of the 25 versions it does state differ from uv.lock [measured: u-reference]. No manual carries version metadata, and devops_cli/libraries/ holds 23 dependency guides.

Acceptance criteria

Key questions

Strategic alignment

Proposed design

Problem statement

The knowledge base manuals lack version metadata, causing inconsistencies in review reliability. 7 of 25 versions stated differ from the lockfile, and no manual carries version metadata. This makes it impossible to match manuals to the project's declared versions, resulting in empty searches and zero contract grounding hits.

Acceptance criteria

  • Criterion 1: Every it_domains manual and devops_cli/libraries guide gains front-matter with applies_to, sources, and reviewed fields.
    Verification: A test asserts presence and syntax of the front-matter fields in all manuals and guides.
  • Criterion 2: A loader matches applies_to against tools lock, locked inventory, language floor, and review.kubernetes_version.
    Verification: Loader correctly identifies matching manuals as reference items kb:@ keyed by tool and topic tags.
  • Criterion 3: Mismatched or undated manuals are not used and are listed under "Reference coverage: drift" in review.md.
    Verification: Review process excludes mismatched manuals and lists them in the drift section of review.md.
  • Criterion 4: Tests run offline with fakes and recorded tool output, each test under 1 second.
    Verification: All tests execute successfully using fakes and recorded outputs without network access or real scanners/models.

Key questions

None.

Open questions

  • Why front-matter? (missing verified source)
  • Is this RAG? (missing verified source)
  • Could a manual create a finding? (missing verified source)

Fit

Fits in one pull request.

Suspected block

None.

Dependencies

#1142, #1146, #1147

Activity

  1. added
    type/feature
    scope/ai
    scope/review
    priority/p1-high
    on Oct 3, 2026
  2. modified the milestone: v0.2.36 on Oct 11, 2026
  3. dan-petty commented on Oct 14, 2026

    @dan-petty
    OwnerAuthor

    Moved to the backlog: it was New, not Ready, when v0.2.36 started. (devops roadmap reprioritize)

  4. added this to the v0.2.38 milestone on Oct 17, 2026
  5. dan-petty commented on Oct 20, 2026

    @dan-petty
    OwnerAuthor

    What changed

    #1754, merged into release/v0.2.38 as 74293e2.

    Resolves #1149

    70 file(s) changed.

    How it was verified

    Check runs at 73a2a1b:

    • Audit Defect PR Hardening: skipping
    • Prune PR DevContainer Images: pass
    • zizmor: pass
    • devops-cli: pass
    • bandit: pass
    • CodeQL: pass
    • Changed-Test Independence: pass
    • Analyze (actions): pass
    • Analyze (python): pass
    • Fail-to-Pass Self-Check: pass
    • Rule Pack Tests: pass
    • Fail-to-Pass Check: pass
    • Tests & Coverage: pass
    • Static Analysis: pass
    • Dependency Freshness: skipping
    • Service Image: skipping
    • DevContainer Image: skipping

    Acceptance Criteria of docs/agent/tasks/task-1149-kb-manuals-version-metadata.md:

    No Acceptance Criteria section.

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

    priority/p1-highscope/aiscope/reviewtype/feature

    Type

    No type

    Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions