Repository navigation
docs(roadmap): add library ingestion engine and grounded AI guidance for v0.2.13 - #35
Merged
dan-petty merged 26 commits intoSep 6, 2026
Merged
Conversation
…domain exceptions
… complexity across modules
… checks, and error codes
…panded tools, prompts, and resources
…chema export command
…amic index counters
….12 Valkey integration
….13 library ingestion engine
There was a problem hiding this comment.
🟡 Changes recommended
There are a few correctness/scope issues to address (notably MCP pr_checks input validation and some export-schemas behavior/messaging), and the PR metadata/title does not reflect the breadth of implementation changes.
Once you've addressed the issues Copilot identified, you can request another Copilot review.
Pull request overview
This PR expands the DevOps CLI roadmap (v0.2.12–v0.2.13) while also delivering a large set of implementation changes across MCP tooling, exception taxonomy, embeddings robustness, docs generation, and multiple refactors to meet architectural invariants.
Changes:
- Adds/updates roadmap + pending-features planning for a Library & Reference Ingestion Engine (v0.2.13) and Valkey milestones (v0.2.12).
- Expands FastMCP surface area (tools/resources/prompts), adds
devops mcp export-schemas, and updates docs/tests to reflect the new contracts. - Introduces/enforces architectural invariants (exception taxonomy, nesting/complexity caps) and refactors multiple modules accordingly.
File summaries
| File | Description |
|---|---|
| tests/test_rag_embeddings.py | Adds regression coverage for embeddings provider vector-count mismatch. |
| tests/test_pydantic_ai_mcp.py | Updates tool-count expectations and validates MCP prompts/resources discovery. |
| tests/test_mcp.py | Adds CLI and execution tests for new MCP tools and export-schemas. |
| tests/test_kb.py | Updates KB counts and validates loading of the new Valkey manual. |
| tests/test_fastmcp_contracts.py | Expands MCP tool contract expectations; adds prompt/resource registration tests. |
| tests/test_docs.py | Adds test coverage for parsing MCP schemas with anyOf array types. |
| tests/test_architectural_invariants.py | Adds test-first architectural gates (exceptions, complexity, nesting, no bare exceptions). |
| src/devops_cli/security/vault_broker.py | Replaces bare exceptions with Vault domain exceptions; refactors Vault fetch logic. |
| src/devops_cli/security/complexity.py | Extracts helper to reduce complexity in complexity-scan findings generation. |
| src/devops_cli/security/aibom.py | Refactors model metadata parsing into helpers (config + Modelfile parsing). |
| src/devops_cli/output/formatters/scalars.py | Refactors repo-map rendering via a symbol formatting helper. |
| src/devops_cli/lang/en/help.py | Adds help strings for mcp export-schemas options. |
| src/devops_cli/k8s/credentials.py | Refactors Grafana password discovery to reduce nesting and reuse a helper. |
| src/devops_cli/k8s/chaos_runner.py | Replaces bare RuntimeError with a Kubernetes domain exception. |
| src/devops_cli/exceptions/vault.py | Adds Vault domain exception taxonomy. |
| src/devops_cli/exceptions/k8s.py | Adds Kubernetes domain exception taxonomy. |
| src/devops_cli/exceptions/docker.py | Adds Docker domain exception taxonomy. |
| src/devops_cli/exceptions/ai.py | Adds AI domain exceptions (bundle + harness validation/execution). |
| src/devops_cli/exceptions/init.py | Re-exports new domain exceptions through the package API. |
| src/devops_cli/docs/generator.py | Improves MCP schema parameter type extraction (supports anyOf/oneOf) and fixes stats wording. |
| src/devops_cli/docker/sandbox.py | Replaces bare ValueError with DockerSandboxError for sandbox safety checks. |
| src/devops_cli/config/constants.py | Adds new canonical error-code constants for new exception domains. |
| src/devops_cli/commands/vault.py | Replaces bare ValueError with VaultConfigurationError during input validation. |
| src/devops_cli/commands/mcp.py | Adds export-schemas command to emit MCP tool schemas + instructions to disk. |
| src/devops_cli/commands/k8s/cluster_context.py | Replaces bare ValueError with KubernetesContextError during SSRF/path safety validation. |
| src/devops_cli/ai/toolsets/init.py | Refactors tool extraction/instructions handling (reduces nesting; normalizes tool conversions). |
| src/devops_cli/ai/response_repair.py | Refactors tool-call extraction into smaller helpers; adds function-arg parsing helper. |
| src/devops_cli/ai/rag/embeddings.py | Makes embeddings errors domain-typed and adds strict vector-count validation. |
| src/devops_cli/ai/providers/init.py | Refactors provider selection to table-driven mapping; improves base_url handling. |
| src/devops_cli/ai/model_bundler.py | Replaces bare ValueError with ModelBundleError for traversal/out-of-bounds checks. |
| src/devops_cli/ai/mcp/server.py | Adds many MCP tools + resources + prompts (security scans, k8s ops, vault ops, benchmark, git/PR). |
| src/devops_cli/ai/mcp/init.py | Re-exports expanded MCP tool/resource/prompt surface area. |
| src/devops_cli/ai/knowledge_base/README.md | Registers Valkey in KB catalog. |
| src/devops_cli/ai/knowledge_base/it_domains/tools/valkey.md | Adds new IT-domain Valkey manual (architecture, ops, Python integration, security). |
| src/devops_cli/ai/harness/workflow.py | Replaces bare ValueError/RuntimeError with harness domain exceptions. |
| src/devops_cli/ai/harness/skills.py | Replaces bare ValueError with HarnessValidationError for skill parsing/validation. |
| src/devops_cli/ai/harness/shell.py | Replaces bare ValueError with HarnessValidationError for config validation. |
| src/devops_cli/ai/harness/planning.py | Replaces bare ValueError with HarnessValidationError for planning constraints/tool selection. |
| src/devops_cli/ai/harness/os_access.py | Replaces bare RuntimeError with HarnessExecutionError for tool-call budget exhaustion. |
| src/devops_cli/ai/harness/memory.py | Aligns memory conflict/error handling with harness exception taxonomy. |
| src/devops_cli/ai/harness/filesystem.py | Major refactor extracting tool closures into methods to reduce complexity/nesting. |
| src/devops_cli/ai/harness/compaction.py | Replaces bare ValueError with HarnessValidationError for parameter validation. |
| src/devops_cli/ai/durable.py | Replaces bare ValueError with HarnessValidationError for db_path safety checks. |
| src/devops_cli/ai/benchmark/embedding_tasks.py | Refactors embedding eval-pair parsing into a helper for lower nesting. |
| src/devops_cli/ai/ast_stream.py | Refactors AST/token streaming into smaller helpers (decorators/imports/token classification). |
| src/devops_cli/ai/analyze/scanner.py | Refactors dependency extraction into line-level helper with language-specific handling. |
| src/devops_cli/ai/agents/testing.py | Prevents pytest collection of TestModel (__test__ = False). |
| src/devops_cli/ai/agents/runner.py | Refactors tool hook/timeout/error dispatching into helpers to reduce nesting. |
| src/devops_cli/ai/agents/agent.py | Refactors toolset-instruction extraction and tool catalog formatting into helpers. |
| README.md | Documents the new devops mcp export-schemas command in the command matrix. |
| docs/ROADMAP.md | Adds v0.2.12 + v0.2.13 roadmap content (Valkey + library ingestion engine). |
| docs/PENDING_FEATURES.md | Updates milestone planning and adds upcoming milestone sections (v0.2.12/v0.2.13). |
| docs/MCP_TOOLS.md | Expands MCP tool documentation with newly added tools and their parameter tables. |
| docs/LOG.md | Adds a detailed change log entry documenting the roadmap expansion and implementation work. |
| docs/KNOWLEDGE_BASE.md | Updates KB totals and registers the Valkey manual. |
| docs/ERRORS.md | Documents newly introduced error codes and exception domains. |
| docs/commands/mcp.md | Adds CLI docs for devops mcp export-schemas. |
| docs/CLI_REFERENCE.md | Adds CLI reference entry for devops mcp export-schemas. |
| docs/agent/task.md | Updates task tracking to include new phases and status changes. |
| AGENTS.md | Tightens and expands written architectural rules (complexity/nesting caps; exception taxonomy; test hygiene). |
Review details
- Files reviewed: 60/60 changed files
- Comments generated: 3
- Review effort level: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
…rt-schemas instructions output
…oadmap-and-knowledge-base
…ry-ingestion-roadmap-and-features
Merged
15 tasks done
dan-petty
added a commit
that referenced
this pull request
Sep 6, 2026
…b management (#38) * feat(k8s): replace redis with valkey across cluster stack manifests (#31) * feat(k8s): replace redis with valkey across cluster stack manifests * test(k8s): address copilot feedback on manifest parsing and document assertions * docs(agent): update task tracking to completed for phase 35 * feat(mcp): expand FastMCP tools, prompt templates, and schema export (#33) * refactor(exceptions): define domain exception classes and canonical error codes * test(invariants): author architectural and stylistic invariant test specifications * fix(exceptions): replace bare generic exceptions with strongly typed domain exceptions * refactor(complexity): flatten excessive nesting and reduce cyclomatic complexity across modules * fix(test-hygiene): eliminate pytest collection warning and unawaited coroutines * docs(standards): update architectural guidelines, task tracking, and roadmap * docs(agent): update task tracking to monitor PR 32 CI * fix(review): address copilot feedback on vector validation, invariant checks, and error codes * test(mcp): author contract and integration test specifications for expanded tools, prompts, and resources * feat(mcp): expand FastMCP server to 72 tools, prompt templates, and schema export command * docs(mcp): update MCP_TOOLS, README, ROADMAP, and task tracking for phase 37 * fix(mcp): resolve schema union type parsing and update roadmap resource URIs * refactor(architecture): codebase stylistic and structural drift remediation (#32) * refactor(exceptions): define domain exception classes and canonical error codes * test(invariants): author architectural and stylistic invariant test specifications * fix(exceptions): replace bare generic exceptions with strongly typed domain exceptions * refactor(complexity): flatten excessive nesting and reduce cyclomatic complexity across modules * fix(test-hygiene): eliminate pytest collection warning and unawaited coroutines * docs(standards): update architectural guidelines, task tracking, and roadmap * docs(agent): update task tracking to monitor PR 32 CI * fix(review): address copilot feedback on vector validation, invariant checks, and error codes * fix(agents): prevent ThreadPoolExecutor blocking on tool timeout in runner * docs(valkey): expand roadmap and add IT domain knowledge base guide (#34) * refactor(exceptions): define domain exception classes and canonical error codes * test(invariants): author architectural and stylistic invariant test specifications * fix(exceptions): replace bare generic exceptions with strongly typed domain exceptions * refactor(complexity): flatten excessive nesting and reduce cyclomatic complexity across modules * fix(test-hygiene): eliminate pytest collection warning and unawaited coroutines * docs(standards): update architectural guidelines, task tracking, and roadmap * docs(agent): update task tracking to monitor PR 32 CI * fix(review): address copilot feedback on vector validation, invariant checks, and error codes * test(mcp): author contract and integration test specifications for expanded tools, prompts, and resources * feat(mcp): expand FastMCP server to 72 tools, prompt templates, and schema export command * docs(mcp): update MCP_TOOLS, README, ROADMAP, and task tracking for phase 37 * fix(mcp): resolve schema union type parsing and update roadmap resource URIs * feat(kb): add Valkey IT domain knowledge base reference guide and dynamic index counters * docs(roadmap): expand roadmap and pending features for milestone v0.2.12 Valkey integration * fix(agents): prevent ThreadPoolExecutor blocking on tool timeout in runner * docs(roadmap): add library ingestion engine and grounded AI guidance for v0.2.13 (#35) * refactor(exceptions): define domain exception classes and canonical error codes * test(invariants): author architectural and stylistic invariant test specifications * fix(exceptions): replace bare generic exceptions with strongly typed domain exceptions * refactor(complexity): flatten excessive nesting and reduce cyclomatic complexity across modules * fix(test-hygiene): eliminate pytest collection warning and unawaited coroutines * docs(standards): update architectural guidelines, task tracking, and roadmap * docs(agent): update task tracking to monitor PR 32 CI * fix(review): address copilot feedback on vector validation, invariant checks, and error codes * test(mcp): author contract and integration test specifications for expanded tools, prompts, and resources * feat(mcp): expand FastMCP server to 72 tools, prompt templates, and schema export command * docs(mcp): update MCP_TOOLS, README, ROADMAP, and task tracking for phase 37 * fix(mcp): resolve schema union type parsing and update roadmap resource URIs * feat(kb): add Valkey IT domain knowledge base reference guide and dynamic index counters * docs(roadmap): expand roadmap and pending features for milestone v0.2.12 Valkey integration * docs(roadmap): expand roadmap and pending features for milestone v0.2.13 library ingestion engine * fix(mcp): validate integer argument bounds and ensure consistent export-schemas instructions output * docs(agent): update task tracking for phase 39 completion and pr 35 review resolution * fix(agents): prevent ThreadPoolExecutor blocking on tool timeout in runner * feat(sdlc): enterprise SDLC conventions, repository governance, and GitHub automation roadmap (#36) * feat(governance): establish enterprise SDLC repository templates and community health policies * docs(sdlc): author enterprise software development life cycle architecture manual * docs(roadmap): expand roadmap with v0.2.14 enterprise GitHub repository automation * docs(agent): track phase 40 completion and PR 36 submission * fix(review): address copilot feedback on private key exclusion, PR template, and task status * feat(review): executive summary reporting, feedback loop hardening, and findings remediation (#37) * fix(security): remediate review findings for traversal, protocols, and tool validation * feat(review): harden self-improvement feedback loop and add report executive summary * docs(review): synchronize review task manual, SDLC, and working log * docs(agent): mark phase 41 complete and record PR 37 status * fix(review): address copilot feedback on secret masking, AST symbol fallback, error message, and dynamic patterns * docs(agent): note PR 36 merged into release branch * docs(roadmap): update v0.2.11 completed items and task tracking for merged PR 37 * test * feat(github): add declarative labels, milestones, projects v2, views and FastMCP tools * refactor(core): consolidate boilerplate decorators, AST cache, scanners, and table builder * feat(security): DevSecOps zero-trust hardening, secret sanitizer, fail-closed SSRF, sandbox isolation, and K8s perimeter * fix(review): address Copilot findings for Checkov exit handling, milestone due_on, gitleaks Windows paths, and symlink semantics * docs(release): record Phase 47.3 release v0.2.11 PR and Copilot remediation in task tracking and log
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary & Motivation
Researches the architecture and operational impact of a first-class Library & Reference Ingestion Engine within DevOps CLI, and schedules Milestone
v0.2.13acrossdocs/ROADMAP.mdanddocs/PENDING_FEATURES.mdto eliminate AI model knowledge cutoff and API hallucinations during development and code review.Key Capabilities in Milestone
v0.2.13devops ai ingest library <pkg>):.pyi) extractor indexing installed library classes, method signatures, parameter types, defaults, and docstrings without side-effect execution.devops ai ingest docs <source>):devops_libraries) & Valkey Symbol Store:ai_ingest_library,ai_query_library, and dynamic resourceresource://libraries/indexedto IDE AI coding assistants.devops ai audit-library-usage <pkg>):Verification & Quality Gates
devops docs generate --sync-readme.devops ci— 10/10 checks passed with