Repository navigation
Description
Problem Description
The knowledge base manuals for pydantic-ai and pydantic-ai-harness pin their applies_to frontmatter patterns to @2.71.* and @0.71.*:
src/devops_cli/ai/knowledge_base/devops_cli/libraries/pydantic_ai.md:pkg:pypi/[email protected].*src/devops_cli/ai/knowledge_base/devops_cli/libraries/pydantic_ai_harness.md:pkg:pypi/[email protected].*src/devops_cli/ai/knowledge_base/it_domains/tools/pydantic_ai.md:pkg:pypi/[email protected].*
When Renovate upgrades pydantic-ai to 2.73.0 and pydantic-ai-harness to 0.73.0 in PR #6989, tests/review/test_kb_manuals_metadata.py fails because installed versions do not match the restrictive minor-pinned pattern. Other libraries in the repository (such as pydantic@2.*, packaging@26.*, and rich@15.*) use major wildcards.
Reproduction Steps
- Update
pydantic-aito 2.73.0 andpydantic-ai-harnessto 0.73.0 inpyproject.toml/uv.lock. - Run
uv run pytest tests/review/test_kb_manuals_metadata.py. - Observe failure:
AssertionError: devops_cli/libraries/pydantic_ai.md: applies_to patterns ['pkg:pypi/[email protected].*'] do not match installed version 2.73.0
Expected vs Actual Behavior
Expected: Knowledge base manuals for stable major versions use standard major wildcards pkg:pypi/pydantic-ai@2.* and pkg:pypi/pydantic-ai-harness@0.* so routine minor updates pass validation.
Actual: Manuals are pinned strictly to @2.71.* and @0.71.*, causing CI quality gates to fail on routine Renovate updates.
Environment Diagnostics
- DevOps CLI Version: current
main - Python Version: 3.14+
- OS & Architecture: Linux x86_64
- Execution Environment: DevContainer / CI
Logs, Traces, or Terminal Output
FAILED tests/review/test_kb_manuals_metadata.py::test_kb_manual_dependencies_match_installed
AssertionError: devops_cli/libraries/pydantic_ai.md: applies_to patterns ['pkg:pypi/[email protected].*'] do not match installed version 2.73.0Pre-Submission Checklist
- I have verified that no sensitive credentials, private keys, or internal tokens are contained in this issue report.
- I have checked existing issues and pull requests to ensure this is not a duplicate.
Proposed design
Problem statement
The knowledge base manuals for pydantic-ai and pydantic-ai-harness pin their applies_to frontmatter to the current minor versions. Routine Renovate minor upgrades then fail the metadata test. The change widens the patterns to the major wildcards that the project uses for other libraries.
Acceptance criteria
Requirement: Pydantic-ai library manual uses major wildcard
The applies_to frontmatter in src/devops_cli/ai/knowledge_base/devops_cli/libraries/pydantic_ai.md SHALL declare pkg:pypi/pydantic-ai@2.*.
Scenario: Minor upgrade matches the library manual
- WHEN
uv run pytest tests/review/test_kb_manuals_metadata.py::test_kb_manual_dependencies_match_installedruns with pydantic-ai 2.73.0 installed. - THEN The command passes and reports no mismatch for
devops_cli/libraries/pydantic_ai.md.
Requirement: Pydantic-ai tools manual uses major wildcard
The applies_to frontmatter in src/devops_cli/ai/knowledge_base/it_domains/tools/pydantic_ai.md SHALL declare pkg:pypi/pydantic-ai@2.*.
Scenario: Minor upgrade matches the tools manual
- WHEN
uv run pytest tests/review/test_kb_manuals_metadata.py::test_kb_manual_dependencies_match_installedruns with pydantic-ai 2.73.0 installed. - THEN The command passes and reports no mismatch for
it_domains/tools/pydantic_ai.md.
Requirement: Pydantic-ai-harness manual uses major wildcard
The applies_to frontmatter in src/devops_cli/ai/knowledge_base/devops_cli/libraries/pydantic_ai_harness.md SHALL declare pkg:pypi/pydantic-ai-harness@0.*.
Scenario: Minor upgrade matches the harness manual
- WHEN
uv run pytest tests/review/test_kb_manuals_metadata.py::test_kb_manual_dependencies_match_installedruns with pydantic-ai-harness 0.73.0 installed. - THEN The command passes and reports no mismatch for
devops_cli/libraries/pydantic_ai_harness.md.
Existing Tool Considered
No alternatives check has run. No open, maintained tool or library covers this metadata correction; the change edits three existing Markdown manuals. It builds no code, so there is no build, keep or fix cost.
Key questions
- Which
applies_topattern should the two pydantic-ai manuals use?: Usepkg:pypi/pydantic-ai@2.*in both pydantic-ai manuals. (best practice) [sources: src/devops_cli/ai/knowledge_base/devops_cli/libraries/pydantic_ai.md, src/devops_cli/ai/knowledge_base/it_domains/tools/pydantic_ai.md, tests/review/test_kb_manuals_metadata.py]- Rejected:
pkg:pypi/[email protected].*. The installed version 2.73.0 does not match this minor-pinned pattern, so the metadata test fails. - Chosen:
pkg:pypi/pydantic-ai@2.*. This major wildcard matches routine 2.x upgrades and follows the pattern that other library manuals use. - Rejected:
pkg:pypi/[email protected].*. The next minor upgrade makes the pattern stale and fails the same metadata test.
- Rejected:
- Which
applies_topattern should the pydantic-ai-harness manual use?: Usepkg:pypi/pydantic-ai-harness@0.*in the harness manual. (best practice) [sources: src/devops_cli/ai/knowledge_base/devops_cli/libraries/pydantic_ai_harness.md, tests/review/test_kb_manuals_metadata.py]- Rejected:
pkg:pypi/[email protected].*. The installed version 0.73.0 does not match this minor-pinned pattern, so the metadata test fails. - Chosen:
pkg:pypi/pydantic-ai-harness@0.*. This major wildcard matches routine 0.x upgrades and the issue expects this pattern. - Rejected:
pkg:pypi/[email protected].*. The next minor upgrade makes the pattern stale and fails the same metadata test.
- Rejected:
- Does the change need a code change in
src/devops_cli/ai/kb.pyor in the metadata test?: No. The loader already matches wildcard patterns, and the test reads the installed versions. The change edits only the threeapplies_tovalues. [sources: src/devops_cli/ai/kb.py:184, tests/review/test_kb_manuals_metadata.py]
Fit
Fits in one pull request.
Suspected block
None.
Dependencies
None.
Activity
dan-petty commentedon Nov 24, 2026
CI fails on routine Renovate minor-version updates, blocking dependency upgrades.Both concern KB manual version patterns; #1149 introduced the applies_to feature while the candidate fixes its overly restrictive minor-pinned values.devops-cli-service commentedon Nov 24, 2026
Next step: the alternatives check records a verdict. See the section Proposed design of the body.
devops-cli-service commentedon Nov 24, 2026
Released in v0.209.2: https://github.com/dan-petty/devops-cli/releases/tag/v0.209.2
devops-cli-service commentedon Nov 24, 2026
Live since 2026-11-24 15:27 UTC