Repository navigation
Closed
Labels
priority/p1-highPriority P1: high-impact work for the next planned milestonescope/aiAI review pipeline, personas, prompts, LLM client, or RAGscope/reviewMulti-persona code review engine, verification, and findingstype/featureType feature: a new function
Milestone
Description
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
- Every
it_domainsmanual anddevops_cli/librariesguide gains front-matter:applies_to(for examplepython>=3.14,pkg:pypi/[email protected].*,tool:[email protected].*,[email protected]);sources(URLs);reviewed(date).- A test asserts presence and syntax.
- A loader matches
applies_toagainst the tools lock (feat(review): review tools install from a tools lock with exact versions, binary checksums and hashed Python requirements, and every review records them #1142), the locked inventory (feat(review): dependency advisories and the package inventory come from osv-scanner over the lockfiles, offline, with each advisory's own severity #1146), the language floor (feat(review): review tools run at the project's declared language and platform versions, and count only after their output on a canary matches the recorded expected output #1143) andreview.kubernetes_version.- A matching manual is a reference item
kb:<path>@<sha>, keyed by tool and topic tags. - feat(review): each finding group gets a model-written explanation and plan grounded in the rule's documentation at the installed tool version, kept apart from findings, with every quote, citation, version and code block checked #1147 jobs receive the manuals for their producing tool and rule family.
- Official rule docs rank first.
- A matching manual is a reference item
- Mismatched or undated manuals are not used. They are listed under "Reference coverage: drift" in review.md.
- (person-run) A review of the loop input lists the manuals injected and the manuals in drift.
- Tests run offline with fakes and recorded tool output: no network, no real scanner, no model; each test under 1 s.
-
changelog.d/<n>.mdrecords the change;CHANGELOG.mdanddocs/ROADMAP.mdare not edited. -
uv run devops cipasses.
Key questions
- Why front-matter? (proposed) Only a manual's author knows which versions it describes. Fixing drifted content follows fix(ai): the knowledge base names only commands, options and components that exist #920.
- Is this RAG? (proposed) It is keyed retrieval. P2-7 adds a full-text fallback, and embeddings return only if labelled misses justify them (feat(review): evidence-first code review — tools find, version-pinned facts ground, models explain and plan, fixes are re-checked #1137 Q15).
- Could a manual create a finding? (proposed) No. Only a tested pack rule can encode what it says.
Strategic alignment
- Milestone: none; the roadmap tooling places it. Depends on: feat(review): review tools install from a tools lock with exact versions, binary checksums and hashed Python requirements, and every review records them #1142, feat(review): dependency advisories and the package inventory come from osv-scanner over the lockfiles, offline, with each advisory's own severity #1146, feat(review): each finding group gets a model-written explanation and plan grounded in the rule's documentation at the installed tool version, kept apart from findings, with every quote, citation, version and code block checked #1147. Related: fix(ai): the knowledge base names only commands, options and components that exist #920, P2-7.
- Parent: feat(review): evidence-first code review — tools find, version-pinned facts ground, models explain and plan, fixes are re-checked #1137 (phase P1b).
- Evidence tags ([measured: …], [code: path:line], [sourced: …], [estimate], [inference]; "S11" is the single review run of 2026-10-03 and "the loop" the ten runs S12–S21; c-feasibility and c-fidelity are the two design critiques) are explained in feat(review): evidence-first code review — tools find, version-pinned facts ground, models explain and plan, fixes are re-checked #1137.
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_domainsmanual anddevops_cli/librariesguide gains front-matter withapplies_to,sources, andreviewedfields.
Verification: A test asserts presence and syntax of the front-matter fields in all manuals and guides. - Criterion 2: A loader matches
applies_toagainst tools lock, locked inventory, language floor, andreview.kubernetes_version.
Verification: Loader correctly identifies matching manuals as reference itemskb:@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
Metadata
Metadata
Assignees
Labels
priority/p1-highPriority P1: high-impact work for the next planned milestonescope/aiAI review pipeline, personas, prompts, LLM client, or RAGscope/reviewMulti-persona code review engine, verification, and findingstype/featureType feature: a new function
Type
Projects
- StatusShow more project fieldsDone
Activity
dan-petty commentedon Oct 14, 2026
Moved to the backlog: it was New, not Ready, when v0.2.36 started. (devops roadmap reprioritize)
feat(review): ground explanations in version-matched kb manuals (#1149)…
dan-petty commentedon Oct 20, 2026
What changed
#1754, merged into
release/v0.2.38as 74293e2.70 file(s) changed.
How it was verified
Check runs at 73a2a1b:
Acceptance Criteria of
docs/agent/tasks/task-1149-kb-manuals-version-metadata.md:No Acceptance Criteria section.
feat(release): v0.2.38 (#1799)
feat(release): v0.2.38 (#1798)