Skip to content

feat(release): v0.2.5 - #24

Merged
dan-petty merged 91 commits into
mainfrom
release/v0.2.5
Aug 31, 2026
Merged

dan-petty merged 91 commits into
mainfrom
release/v0.2.5

Conversation

@dan-petty

@dan-petty dan-petty commented Aug 27, 2026 •

Copy link
Copy Markdown
Owner

feat(release): v0.2.5

Summary

Comprehensive release v0.2.5 introducing modular Kubernetes commands, hardened OpenTelemetry & Jaeger observability stacks, automated Open-WebUI administrative bootstrapping, AI review cache invalidation & --append-cache starting point prompt augmentation, target-agnostic multi-persona code review prompts, closed-loop feedback dataset synthesis, trace error telemetry enhancements, dedicated embedding server routing, local GitOps App-of-Apps orchestration pipelines, and expanded FastMCP developer tooling.


Key Changes & Features

1. Kubernetes Submodule Modularization & Stack Lifecycle

  • Refactored monolithic src/devops_cli/commands/k8s.py into a domain-driven src/devops_cli/commands/k8s/ subpackage:
    • cluster_runtime.py: Subprocess/kubectl execution, client resolution, and RFC 1123 identifier validation.
    • cluster_context.py: Context switching, cluster status, node introspection, and manifest/log streaming.
    • bootstrap.py: Minikube cluster lifecycle management with automated NVIDIA GPU discovery.
    • stack_lifecycle.py: Multi-stack deployments (monitoring, gitops, tracing, otel, llm, all), Helm release management, unmanaged conflict adoption, and Open-WebUI bootstrapping.
    • networking.py: Service URL auto-detection, reachability probing, and localhost port-forwarding.
    • security_audit.py: RBAC auditing, Kube-linter scanning, Popeye cluster health sanitization, and Pluto deprecation checks.
    • tls_management.py: TLS secret creation, cert-manager integration, and cluster-wide TLS enablement.
    • diagnostics.py: Stern/kubectl multi-pod log streaming, 3-way Helm diffing, and chaos experiments.
  • Optimized Valkey deployment in k8s/llm/valkey.yaml with native tcpSocket health probes, eliminating container CLI binary dependencies.
  • Added dual-mode local development (GPU host passthrough, NodePort 31434, cluster-wide ingestion) vs. production hardening comments across manifests.
  • Maintained 100% backward compatibility for all 22 CLI subcommands and dynamic module-level patch dispatch.

2. OpenTelemetry, Jaeger Observability & Telemetry Tracing

  • Upgraded otel-collector image tag to 0.159.0 matching chart 0.172.0 schema requirements (otlp_grpc exporter syntax).
  • Upgraded Jaeger deployment to multi-architecture image jaegertracing/all-in-one:1.62.0.
  • Enhanced telemetry tracer (src/devops_cli/telemetry/tracer.py) with SpanHandle.set_status(), cli.exit_code, and structured error descriptions for non-zero exit codes.
  • Optimized OSV batch lookup spans in src/devops_cli/security/vulnerability_lookup.py to record graceful fallback attributes (lookup.fallback = True) on offline networks without recording fatal span errors.
  • Added fast 1-second timeout probe to QdrantClient.is_alive() (src/devops_cli/ai/rag/qdrant.py) to eliminate blocking delays when endpoints are uninitialized.

3. AI Code Review, Prompt Optimization & Closed-Loop Feedback

  • Prompt Deduplication & Token Reductions: Streamlined prompt payloads across verify_finding.md (-92%), paginated_review_protocol.md (-58%), path_review_prompt.md (-37%), and analyze_pseudocode.md (-37%).
  • Target-Agnostic AI Prompting: Generalised review prompts (generate_agents.md, verify_finding.md, chat.md, challenger/prompt.md) to evaluate any project runtime (Go, Rust, TypeScript, Python) without host-specific assumptions.
  • Closed-Loop Feedback Dataset Synthesis: Exported verified, invalidated, and mitigated review findings to structured datasets (.data/feedback_dataset.jsonl) via devops review export-feedback.
  • Review Evaluation Guardrails: Embedded multi-namespace root kustomization rules, dual-mode workstation evaluation criteria, and zero-hallucinated-CVE standards into devsecops, auditor, and architect persona prompts and AGENTS.md.
  • Cache Invalidation & --append-cache Warm Refinement: Added --append-cache flag to inject previous cached reviews as starting points into LLM prompts. Implemented automatic timestamp (mtime) and SHA-256 (content_hash) cache invalidation with --no-cache / --force overrides.
  • Embedding Routing: Added DEVOPS_CLI_AI_EMBEDDING_BASE_URL (--ai-embedding-base-url) and DEVOPS_CLI_AI_EMBEDDING_API_KEY for routing embedding calls independently from chat models.

4. Open-WebUI Administrative Account Bootstrapping

  • Implemented direct SQLite user activation (auth.active = 1) and administrative role promotion (user.role = 'admin') within the open-webui pod (/app/backend/data/webui.db).
  • Added CLI command devops k8s bootstrap-openwebui and integrated automated bootstrapping into devops k8s deploy-stack --stack llm.
  • Sanitized cleartext credentials from stdout/log output to satisfy zero-trust security invariants and CodeQL static checks.

5. Local GitOps App-of-Apps Pipeline

  • Added declarative ArgoCD App-of-Apps manifests connecting Kubernetes cluster pods to the local background Git daemon:
    • k8s/argocd/apps/root-app.yaml: Root ArgoCD Application pulling from git://host.minikube.internal:9418/k8s.
    • k8s/argocd/apps/infra-apps.yaml: Infrastructure child application syncing monitoring/ and otel/.
    • k8s/argocd/apps/llm-apps.yaml: LLM child application syncing Open-WebUI, Ollama, Qdrant, and Valkey.
  • Added devops argo cd apps bootstrap-gitops command with test coverage.

6. FastMCP Server, Test Suite Optimization & Security Invariants

  • Expanded DevOps CLI FastMCP tool registry to 40+ tools with comprehensive contract test suites.
  • Isolated test suite dependencies with deterministic mocks, delivering a 12x speedup across the full unit test suite (from >1,800s timeout down to 147s).
  • Enforced project-wide zero-plaintext credential invariants with OS Keyring integration and strict AST indentation limits (< 6 indentations project-wide).

Verification & CI Quality Gate Checklist

  • Full CI Quality Gate (devops ci) Passing (10/10 checks: python_version, test, coverage, lint, format, typecheck, audit, security, actionlint, docs)
  • 100% Test Pass Rate (1,059+ unit and integration tests passing in ~147s)
  • Code Coverage $\ge 90.0%$ maintained across src/
  • Documentation Synchronized (README.md, docs/CLI_REFERENCE.md, docs/ENV_VARS.md, and task manuals)
  • Live Cluster Verified on homelab-k3s (all infra & LLM pods Running, health checks verified)

Copilot AI lite review requested due to automatic review settings August 27, 2026 12:14
@dan-petty dan-petty added the release Pull request or issue associated with a release cut label Aug 27, 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.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

Comment thread src/devops_cli/output/console.py Fixed
Comment thread tests/test_common_tools.py Fixed
Comment thread tests/test_common_tools.py Fixed
Comment thread tests/test_pydantic_agent.py Fixed
Comment thread tests/test_pydantic_agent.py Fixed
…, RAG deduplication, and deterministic pre-filters
@dan-petty
dan-petty merged commit e2b146a into main Aug 31, 2026
6 checks passed
@dan-petty
dan-petty deleted the release/v0.2.5 branch August 31, 2026 14:10
dan-petty added a commit that referenced this pull request Nov 12, 2026
…5181)

`devops infra onboard` read the working tree of the local checkout. On
dan-petty/homelab, a checkout on an old branch made row 9 report host
key checks off, while `origin/main` has them on (homelab #24). The
profile of a repo is read at its default branch, the trusted ref
(#4627).

A shared reader, `infra/repo_tree.py`, fetches `origin` with the
credential of the GitHub session and no prompt, takes the commit of
`refs/remotes/origin/HEAD`, exports it with `git archive` into a private
folder, unpacks it with the `data` filter of `tarfile`, and removes the
folder after. It changes no file and no branch of the checkout.
Onboarding runs every read in the export, prints the default branch and
its commit, and adds one line when the checkout is at another commit.
`status`, `plan` and `apply` use the same reader.

Closes #5162

Change:
`openspec/changes/archive/2026-11-12-5162-read-the-default-branch-at-origin/`
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

Projects

No open projects

Development

Successfully merging this pull request may close these issues.

3 participants