Skip to content

feat(release): v0.2.14 - #86

Merged
dan-petty merged 14 commits into
mainfrom
release/v0.2.14
Sep 10, 2026
Merged

dan-petty merged 14 commits into
mainfrom
release/v0.2.14

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

Release Summary: v0.2.14

This release delivers the complete implementation of Milestone v0.2.14, featuring Tree-Sitter polyglot concrete syntax tree (CST) code intelligence, proactive library API drift and deprecation usage auditing, AI prompt context packing with AST skeletonization, autonomous RAG index drift detection with auto-reindexing, ground-truth library contract injection, and 10 new FastMCP tools for GitHub and library intelligence.

Key Highlights & Deliverables

Verification

  • Quality Gates: 10/10 checks passed cleanly via devops ci (version consistency, pytest 2,236+ tests, coverage >= 90.0%, ruff check, ruff format, mypy strict, uv audit, bandit SAST, actionlint, docs sync).
  • Release Status: devops release status verified 100% clean and consistent.
  • Milestone Completion: Milestone v0.2.14 achieved 100% completion with all 12 tracked issues closed.

…on engine (#82)

* feat(ai): add dynamic package introspection and multi-source docs ingestion engine

* fix(ai): enforce fully-qualified symbol index and dedicated error codes for library ingestion

* fix(ai): filter built-in descriptors from class method extraction
#83)

* feat(rag): dedicated library vector tier, valkey symbol cache, and routine observability audit

* docs(roadmap): define v0.2.16 and v0.2.17 milestones for sandbox application lifecycle

* feat(gh): integrate github pages, issues, projects, and views with fastmcp and agent instructions

* docs(roadmap): enrich task context, technical specifications, and reprioritize milestones

* docs: compact v0.1 release documentation and codify automated compaction policy

* fix(rag): address code review feedback on library store and CLI client wiring
…ools

- Filter out private submodules and __main__ in package introspection to eliminate CLI execution hazard (Fixes #84).
- Expose FastMCP library intelligence tools (ai_ingest_library, ai_query_library, ai_inspect_symbol) and resource://libraries/indexed dynamic resource (Closes #80).
- Implement import-driven AST prompt grounding and API contract injection in review pipeline (Closes #78).
- Add comprehensive contract, regression, and injection unit tests and sync roadmap.
…rift auditor

Implement polyglot concrete syntax tree parsing, S-expression AST query
execution, and cross-file code graph synthesis for Python, TypeScript,
Go, Rust, Java, and HCL with zero-crash fallback parsers. Expose CLI
commands `devops ai ast parse` and `devops ai ast graph`, add
`--multilingual` support to `devops ai repomap`, and register FastMCP tools
`ai_ast_parse` and `ai_ast_graph`.

Implement workspace library API drift and deprecation usage auditor
`devops ai audit-library-usage` comparing AST call sites against indexed
library contracts to detect removed methods, unknown attributes,
unrecognized kwargs, and deprecated calls. Flatten nesting depth to satisfy
architectural invariant gates.

Closes #74
Closes #79
…esizer

Implement `ContextPacker` in `src/devops_cli/ai/context_packer.py` to rank
imported symbols, strip unreferenced private methods/docstrings, and
skeletonize function/class bodies with ellipsis while preserving public
interfaces, parameters, defaults, and type annotations.

Expose CLI command `devops ai pack-context` and FastMCP tool `ai_pack_context`,
and integrate context packing into `_collect_linked_snippets` in the review
pipeline. Enforce strict cyclomatic complexity <= 10 and nesting depth <= 2.

Closes #85
Copilot AI lite review requested due to automatic review settings September 10, 2026 00:11
@dan-petty dan-petty added this to the v0.2.14 milestone Sep 10, 2026
@dan-petty dan-petty added release Pull request or issue associated with a release cut type/feature Type feature: a new function scope/ai AI review pipeline, personas, prompts, LLM client, or RAG scope/cli Core CLI framework, Typer subcommands, options, and tables labels Sep 10, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Unresolved moderate and critical findings remain across core functionality and security-sensitive integrations.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

Release v0.2.14 adds multilingual AST intelligence, library contract and drift tooling, context packing, RAG drift synchronization, and expanded GitHub/MCP integrations.

Changes:

  • Adds AST parsing, graphing, context packing, and library auditing.
  • Adds RAG synchronization, contract grounding, and documentation ingestion.
  • Expands GitHub integrations, security validation, documentation, and release metadata.

Review remains blocked by unresolved moderate and critical findings across core parsing, ingestion, storage, validation, and GitHub behavior.

File summaries
File Reviewed change
uv.lock Locks release dependency updates.
tests/test_validation.py Tests URL and SSRF validation.
tests/test_tflint.py Tests TFLint integration.
tests/test_rag_drift.py Tests RAG drift detection.
tests/test_pydantic_ai_ollama.py Updates Ollama fixtures.
tests/test_pr_cmd.py Tests pull-request commands.
tests/test_mcp.py Tests MCP behavior.
tests/test_library_ingest.py Tests library ingestion.
tests/test_library_drift_auditor.py Tests API drift auditing.
tests/test_k8s.py Updates Kubernetes coverage.
tests/test_github_projects.py Tests GitHub Projects integration.
tests/test_github_projects_reconcile.py Tests project reconciliation.
tests/test_github_pr_threads.py Tests review-thread operations.
tests/test_github_pages.py Tests Pages integration.
tests/test_github_issues.py Tests issue management.
tests/test_embedding_config_retention.py Tests embedding configuration retention.
tests/test_embedding_benchmark.py Updates embedding benchmarks.
tests/test_docs_ingester.py Tests documentation ingestion.
tests/test_consolidation_security_sanitizer.py Tests security sanitization.
tests/test_consolidation_core_paths.py Tests path security helpers.
tests/test_config_env_overrides.py Updates configuration tests.
tests/test_architectural_invariants.py Tests architectural invariants.
tests/test_ai_cmd.py Tests AI commands.
tests/test_ai_client_security.py Tests AI endpoint security.
src/devops_cli/server/routes/telemetry.py Applies telemetry sanitization.
src/devops_cli/security/vault_broker.py Centralizes Vault traversal checks.
src/devops_cli/security/tflint.py Uses centralized subprocess execution.
src/devops_cli/security/sanitizer.py Adds command and prompt sanitization.
src/devops_cli/security/__init__.py Exports security helpers.
src/devops_cli/output/console.py Routes output through sanitization.
src/devops_cli/models/library.py Defines library contract models.
src/devops_cli/lang/en/help.py Adds command help text.
src/devops_cli/github/pr_threads.py Implements review-thread operations.
src/devops_cli/github/pages.py Implements Pages status and verification.
src/devops_cli/github/client.py Adds GitHub client methods.
src/devops_cli/github/__init__.py Updates GitHub exports.
src/devops_cli/exceptions/ai.py Adds ingestion exceptions.
src/devops_cli/exceptions/__init__.py Exports exceptions.
src/devops_cli/core/validation.py Adds host and egress validation.
src/devops_cli/core/paths.py Adds path validation.
src/devops_cli/config/env.py Updates environment configuration.
src/devops_cli/config/defaults.py Adds library and RAG defaults.
src/devops_cli/config/constants.py Adds library error constants.
src/devops_cli/commands/workspace.py Centralizes system-path checks.
src/devops_cli/commands/vault.py Updates Vault handling.
src/devops_cli/commands/rag.py Adds RAG drift commands.
src/devops_cli/commands/pr.py Adds review-thread commands.
src/devops_cli/commands/k8s/diagnostics.py Updates Kubernetes diagnostics.
src/devops_cli/commands/k8s/cluster_context.py Adds URL and path validation.
src/devops_cli/commands/install_tools.py Hardens archive extraction.
src/devops_cli/commands/ai_ast.py Adds AST CLI commands.
src/devops_cli/ai/tasks/benchmark_embedding_eval_pairs.md Adds embedding evaluation data.
src/devops_cli/ai/review/sanitization.py Updates review sanitization.
src/devops_cli/ai/review/runner.py Updates review execution.
src/devops_cli/ai/review/pipeline.py Integrates packing and grounding.
src/devops_cli/ai/review/contract_grounding.py Adds library contract grounding.
src/devops_cli/ai/review/auto_fix.py Updates review auto-fixes.
src/devops_cli/ai/review/ast_imports.py Extracts review imports.
src/devops_cli/ai/review/__init__.py Updates review exports.
src/devops_cli/ai/repomap.py Adds multilingual repository mapping.
src/devops_cli/ai/rag/__init__.py Exposes RAG components.
src/devops_cli/ai/model_bundler.py Updates model bundling.
src/devops_cli/ai/mcp/__init__.py Updates MCP exports.
src/devops_cli/ai/library/__init__.py Exposes library intelligence components.
src/devops_cli/ai/knowledge_base/it_domains/tools/ollama.md Updates Ollama guidance.
src/devops_cli/ai/knowledge_base/devops_cli/configuration_and_settings.md Updates configuration guidance.
src/devops_cli/ai/ext_langchain.py Updates LangChain integration.
src/devops_cli/ai/common_tools.py Updates shared AI tools.
src/devops_cli/ai/ast/models.py Defines AST and graph models.
src/devops_cli/ai/ast/graph.py Builds code graphs.
src/devops_cli/ai/ast/engine.py Adds multilingual AST parsing.
src/devops_cli/ai/ast/__init__.py Exposes AST components.
src/devops_cli/ai/agents/prompt.py Updates prompt construction.
src/devops_cli/ai/agents/context.py Updates agent context handling.
src/devops_cli/ai/__init__.py Updates AI package exports.
src/devops_cli/__init__.py Bumps the package version.
RELEASE_CYCLE.md Updates release references.
README.md Updates command listings.
pyproject.toml Updates metadata and dependencies.
k8s/llm/ollama-daemonset.yaml Updates Ollama deployment configuration.
docs/PENDING_FEATURES.md Updates feature tracking.
docs/ERRORS.md Updates error documentation.
docs/ENV_VARS.md Updates environment documentation.
docs/commands/tls.md Updates TLS command documentation.
docs/commands/pr.md Updates PR command documentation.
CHANGELOG.md Documents the v0.2.14 release.
.github/dependabot.yml Updates release branch targets.
_config.yaml Aligns Jekyll configuration and versioning.
Review details

Suppressed comments (23)

docs/CLI_REFERENCE.md:2416

  • The generated reference hides the actual default (1500) as <masked>. --max-tokens is a numeric budget, not a credential, so this makes the new command's documented behavior inaccurate; narrow the documentation sanitizer to exact sensitive flags rather than matching the substring token/tokens.
| `--max-tokens` | `integer` | `<masked>` | Maximum token budget for packed context output. |

docs/commands/ai.md:281

  • This generated command reference also reports the numeric default for --max-tokens as <masked> instead of the implementation's 1500. Correct the shared sensitive-option matching and regenerate this file so users can rely on the documented default.
| `--referenced`, `-r` | `string` | - | Comma-separated list of symbols referenced by caller to prioritize during pruning. |
| `--max-tokens` | `integer` | `<masked>` | Maximum token budget for packed context output. |

src/devops_cli/ai/context_packer.py:330

  • This allocates the same budget to every snippet rather than distributing total_budget proportionally to snippet size/usage as the context-packing contract requires. A tiny file can consume half the budget while a much larger file is truncated to the same limit, wasting available context and degrading multi-file packing.
    src/devops_cli/ai/library/drift_auditor.py:110
  • The allowed_params truthiness guard skips validation when a function has zero declared parameters. A call such as no_args(unexpected=1) therefore produces no UNRECOGNIZED_KWARG finding; remove the and allowed_params condition while retaining the **kwargs exemption.
    src/devops_cli/ai/library/drift_auditor.py:159
  • Deprecation detection only searches the docstring text and ignores the structured FunctionSignature.is_deprecated and deprecation_message fields. Contracts that mark an API deprecated through those fields will pass silently, so use the structured flag/message as the authoritative signal and retain the docstring check only as a fallback.
    src/devops_cli/ai/library/drift_auditor.py:24
  • UNKNOWN_ATTRIBUTE is declared as a supported finding type but is never emitted: the auditor visits only ast.Call nodes, and missing symbols are always classified as REMOVED_METHOD. Attribute usages promised by the auditor/release summary therefore cannot be reported; add attribute traversal and emit this type, or remove the unsupported category from the public contract.
    src/devops_cli/ai/mcp/server.py:683
  • Unlike the existing ai_architecture tool, this MCP wrapper does not validate max_files before passing it to the CLI. A negative value defeats the graph collector's limit check (len(files) >= max_files) and can silently select an unintended file count; reject values below one with _validate_mcp_int_bound.
    src/devops_cli/ai/mcp/server.py:453
  • auto_sync=True can invoke a full workspace reindex, but this tool always uses the short MCP timeout. Larger workspaces will be terminated/reported as timed out even though drift detection without synchronization is fast; select the normal/long timeout when auto-sync is requested.
    src/devops_cli/ai/mcp/server.py:1155
  • This MCP tool defaults dry_run=False even though it adds project items and edits five remote fields. The neighboring label, milestone, and project sync tools default to dry-run, so an agent invoking gh_project_reconcile() with no arguments mutates GitHub state unexpectedly; make the safe default True and require an explicit opt-in for writes.
    src/devops_cli/ai/rag/drift.py:82
  • The indexed commit marker is a single cache_dir/rag_indexed_commit.txt for every workspace/project. After indexing repository B, drift checks for repository A compare against B's commit and report false git drift even when A's file hashes are synchronized; scope the marker by project/root or store it alongside project-specific cache metadata.
    src/devops_cli/ai/rag/drift.py:264
  • After index_workspace() returns, this code clears every drift classification and sets the report clean without checking whether indexing actually covered the affected files. The indexer explicitly returns indexed_files: 0 and skipped_files when it cannot produce chunks, so --fail-on-drift can report success while the next detection still finds the same stale/new files; only clear findings after successful reconciliation of the affected set.
    src/devops_cli/ai/rag/drift.py:83
  • The commit marker is only written from detect_and_sync(auto_sync=True); normal rag index/WorkspaceIndexer.index_workspace() never records the HEAD it indexed. As a result, a freshly indexed workspace has last_indexed_commit=None and subsequent commits cannot set git_commit_drift, so the advertised commit-based drift detection is disabled unless auto-sync was previously used. Record the indexed HEAD on every successful index operation or derive it from the index cache.
    src/devops_cli/ai/review/contract_grounding.py:35
  • Library docstrings are interpolated into the review prompt as instructions/data without the prompt-injection sanitization used for other untrusted context. An installed package can therefore place instruction-like text in a docstring and influence the reviewer; sanitize the contract text and delimit it as untrusted data before adding it to the prompt.
    src/devops_cli/ai/review/contract_grounding.py:66
  • For from package.module import symbol, this first queries only the short name and accepts the first match. If multiple modules in the package export the same symbol, the wrong contract can be injected and the qualified fallback is never attempted; resolve mod.symbol first, then use the short name only when unambiguous.
    src/devops_cli/ai/review/contract_grounding.py:93
  • This function introduces a multi-line LLM guardrail directly in Python. The repository requires all system/task/guardrail prompts to live in Markdown and be loaded with load_task_prompt() (AGENTS.md:188); move this block to a task prompt file so prompt content remains centrally auditable and synchronized.
    src/devops_cli/commands/ai.py:1404
  • A missing or unreadable target_path reaches pack_file() without validation and raises a raw filesystem exception, so devops ai pack-context missing.py fails with a traceback instead of the CLI's normal error/exit handling. Validate the path before packing and emit a user-facing error.
    src/devops_cli/commands/ai.py:1294
  • The documented auditor form uses a positional <package_name>, but this command exposes package only as --package/-p. Calling devops ai audit-library-usage typer therefore fails before auditing; either make the package a typer.Argument or update the release-facing syntax consistently.
    src/devops_cli/commands/ai_ast.py:76
  • The graph target is exposed only as an option (--dir/-d), so the documented devops ai ast graph <path> form is rejected as an unexpected positional argument. Make the path a typer.Argument or update the release-facing command documentation/help to match the actual interface.
    src/devops_cli/core/validation.py:107
  • These new validation errors echo the raw hostname/URL, including private IPs or embedded credentials, directly in the exception that the CLI displays. Keep the user-facing message generic and retain the raw destination only in structured debug details, consistent with the repository's information-leakage policy.
    src/devops_cli/github/pages.py:63
  • This defaults a missing https_enforced field to True, so an incomplete/older GitHub Pages response is reported as HTTPS-protected even when enforcement was not verified. The status command should fail closed (or model an unknown state) rather than claim a security property from absent data.
    src/devops_cli/github/projects.py:860
  • audit_remote_project_views() relies on get_remote_project_views(), which returns the first repository-linked project rather than the template-matched board. With multiple linked Projects v2, this audit can report the wrong project's views (and sync can modify the wrong board); select the intended project by template identity before auditing or synchronizing.
    src/devops_cli/github/projects.py:383
  • Project item discovery always calls the user-owned endpoint users/{owner}/projectsV2/.... When owner is an organization, GitHub's Projects v2 API requires the orgs/{org}/projectsV2/... route, so this returns an empty set and every sync/reconcile run treats existing items as missing, causing duplicate-add attempts and inaccurate field audits. Select the endpoint based on owner type or fall back to the organization route.
    src/devops_cli/github/projects.py:593
  • The return value from every item-edit operation is discarded, yet the function returns True and the caller counts the item as reconciled even if GitHub rejects one or all field updates. Aggregate the edit results and report success only when the required field mutations succeed.
  • Files reviewed: 117/118 changed files
  • Comments generated: 20
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread src/devops_cli/ai/rag/library_store.py Resolved
Comment thread src/devops_cli/github/client.py Resolved
Comment thread src/devops_cli/github/pr_threads.py Resolved
Comment thread src/devops_cli/github/projects.py Resolved
…instructions

- Harden security sanitizer with -p= and --token= sensitive argument prefixes
- Implement non-mutating thread-safe DNS resolution with fail-closed non-public IP validation
- Scope docs ingester chunk slugs to file relative paths, mask credentials in errors, and support multi-page crawling
- Fully qualify introspected function and class symbol signatures and filter private submodules
- Namespace Valkey cache keys and Qdrant vector point IDs with package qualification
- Integrate Tree-Sitter native CST parsing fallback and S-expression query filtering
- Disambiguate AST call graph edges against symbol bodies to prevent parameter shadowing
- Enforce valid Python AST pruning under context budgets without arbitrary string truncation
- Support module-level imports and alias attribute lookups in library drift auditor
- Forward multi-label filters in GitHub client and paginate review threads via GraphQL
- Align project custom field inference with declarative taxonomy label mappings
- Enhance agent instructions, routine tasks, and knowledge base for proactive project bootstrap and card tracking
@dan-petty
dan-petty merged commit ee87b4a into main Sep 10, 2026
4 checks passed
@dan-petty
dan-petty deleted the release/v0.2.14 branch September 10, 2026 01:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release Pull request or issue associated with a release cut scope/ai AI review pipeline, personas, prompts, LLM client, or RAG scope/cli Core CLI framework, Typer subcommands, options, and tables type/feature Type feature: a new function

Projects

No open projects

Development

Successfully merging this pull request may close these issues.

2 participants