Skip to content

feat(release): v0.2.13 - #73

Merged
dan-petty merged 21 commits into
mainfrom
release/v0.2.13
Sep 9, 2026
Merged

dan-petty merged 21 commits into
mainfrom
release/v0.2.13

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

Release Summary: v0.2.13

This release delivers the complete implementation of Milestone v0.2.13, featuring sub-agent local offloading, interactive terminal UI dashboard, model dependency chaos engineering, agent constellation quiesce and failover controller, multi-model benchmark evaluation harness, parallel async multi-file review worker pool, Logfire structured observability bridge, in-cluster container registry, and devcontainer isolated SSH commit signing.

Key Highlights & Deliverables

Verification

  • Quality Gates: 10/10 checks passed cleanly via devops ci (version, pytest 2,217 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.

…51)

* chore(release): prepare repository and roadmap for v0.2.13 milestone

* fix(review): address copilot review comments on exception clauses and unreleased changelog scope

* Revert "fix(review): address copilot review comments on exception clauses and unreleased changelog scope"

This reverts commit 8579f04.

* docs(agents): mandate active milestone issue population and remote branch governance

* docs(agents): mandate github issues views population and project board linkage

* docs(agents): mandate github projects tab and issues views population
* feat(ai): implement sub-agent local offloading engine and harness slots

Add modular harness slots (ModelSlot, SkillSlot, ToolSlot, SubAgentSlot) to dynamically offload token-intensive code exploration, AST syntax tree mapping, and symbol lookups to local open models.

Implement the 'Big decides, small types, big checks' multi-tier synthesis protocol achieving 85%+ frontier token savings with automated calculation. Provide CLI commands under devops ai harness (status, offload, run) and expose FastMCP tools ai_harness_status and ai_subagent_offload.

* fix(review): address copilot review comments on harness slots, offload metrics, and tool validation

* fix(harness): enhance read-only tool sandboxing and tiered execution status reporting
…edback loop (#62)

* fix(review): remediate review findings and harden self-improvement feedback loop

- Automatically mask sensitive dictionary fields in root DevOpsError representations
- Harden AI agent step persistence, durable execution, prompt template injection sanitization, and tool argument validation
- Eliminate Bandit B104 interface binding alert in Ollama provider and resolve strict Mypy typing constraints in test_gen
- Catalog false-positive hallucinations into common hallucinations catalog (uninitialized variable in loop, Pathlib resolve FileNotFoundError, health endpoint version, stream event timestamp)
- Expand deterministic pre-verification pipeline with conversational monologue and benign compliment heuristics
- Add comprehensive unit test suites for GitHub projects, milestones, labels, and verification heuristics to exceed 90% code coverage requirement

* fix(review): address review comments on GraphQL escaping, URL queries, path segments, and histogram deque

- Escape GraphQL query and mutation string arguments with json.dumps in projects.py
- Synchronize Direct Link query URLs with exact Issues Filter Query strings in gh.py
- Inspect path parts instead of substring match to prevent false positives on valid filenames with double dots
- Replace O(n) list pop(0) in InMemoryMetricsRegistry histogram with O(1) bounded deque
- Assert emitted SSE event persona matches query parameter and verifies DEFAULT_STREAM_PERSONA fallback
…#63)

* feat(cli): interactive terminal UI dashboard (devops dashboard / tui)

- Add responsive full-screen Textual dashboard application with 5 real-time tabs: Kubernetes pods, Docker containers, OpenTelemetry metrics, AI review findings queue, and Valkey cache
- Implement subsystem status data providers in devops_cli.ui.data_providers
- Expose devops dashboard and devops tui commands with automatic static summary fallback for non-TTY pipelines and --summary flag
- Add keyboard navigation (1-5, r, q, ?) with accessible HelpScreen modal
- Register dashboard and tui commands in main CLI and OpenTelemetry test suite
- Author comprehensive unit and integration test suite with 100% passing quality gate

* fix(dashboard): address review comments on subcommands, refresh interval, unverified count, and metrics snapshot

- Remove redundant subcommands dashboard and tui from dashboard.py, ensuring direct top-level invocation
- Clamp refresh_interval with max(0, refresh_interval) allowing disabling auto-refresh with 0
- Compute and set unverified_count on ReviewSummary
- Add get_metrics_snapshot() to InMemoryMetricsRegistry and decouple fetch_telemetry_status from registry internals
- Update test suite to 15 passing tests and synchronize command documentation
…odel) (#64)

* feat(ai): model dependency chaos engineering suite (devops ai chaos-model)

- Implement core chaos models (ChaosMode, ChaosStatus, ChaosConfig, ChaosFaultResult, ModelChaosReport) in devops_cli.ai.chaos.models
- Implement ModelChaosInjector in devops_cli.ai.chaos.injector simulating 4 real-world failure modes: synthetic network latency, HTTP 429 rate-limiting, connection timeouts/socket errors, and mid-stream malformed JSON
- Verify automated local open model fallback routing (Ollama Qwen2.5-Coder/Granite) ensuring CI validation gates complete without human coaching
- Record fault and recovery metrics to OpenTelemetry spans (ai.chaos.run, ai.chaos.inject) and Prometheus counters (devops_cli_ai_chaos_injections_total, devops_cli_ai_chaos_recoveries_total)
- Expose devops ai chaos-model CLI command with table/json formatting and dry-run support
- Expose FastMCP tool ai_chaos_model on FastMCP server
- Author comprehensive unit and integration test suite tests/test_ai_chaos_model.py
- Synchronize documentation, CLI command matrix, and FastMCP schemas

* fix(ai): address review feedback on chaos model retries, spans, and validation

- Forward ChaosConfig.max_retries to AIConfig and LLMClient.chat
- Emit per-injection child spans (ai.chaos.inject) alongside run span (ai.chaos.run)
- Honor error_rate in ModelChaosInjector to skip fault injection based on threshold
- Add bounds validation for latency_ms (>= 0) and error_rate ([0.0, 1.0]) in ChaosConfig and CLI
- Expand test suite in tests/test_ai_chaos_model.py covering spans, retries, error_rate, and validation bounds
…#65)

* feat(ai): agent constellation quiesce & emergency failover controller

- Implement core constellation models (QuiesceState, AgentTaskType, SuspendedTask, QuiesceSnapshot, result schemas) in devops_cli.ai.controller.models
- Implement ConstellationManager in devops_cli.ai.controller.manager with atomic state persistence in .data/agent/quiesce.json, supporting quiesce(), failover(), resume(), status(), is_quiesced(), and get_active_route()
- Add strongly typed domain exceptions (ConstellationQuiesceError, ConstellationFailoverError, ConstellationResumeError) in devops_cli.exceptions.ai
- Record lifecycle transitions to OpenTelemetry spans (ai.constellation.quiesce, ai.constellation.failover, ai.constellation.resume) and Prometheus counters (devops_cli_ai_quiesce_events_total, devops_cli_ai_failover_events_total, devops_cli_ai_resumptions_total)
- Expose CLI commands devops ai quiesce, failover, resume, and constellation with rich table formatting and JSON output support
- Expose FastMCP tools ai_quiesce, ai_failover, ai_resume, ai_constellation_status, and live resource resource://ai/constellation
- Author comprehensive unit and integration test suite in tests/test_ai_controller.py (27/27 green, 100% controller coverage)
- Synchronize documentation, CLI command matrix, and 94 FastMCP tool schemas

* fix(ai): harden constellation controller snapshot atomicity, dry-run immutability, and metrics cardinality

* feat(ai): localize agent constellation messages and quiesce reason via lang module

* feat(ai): centralize fallback provider, model, and constellation drain timeout in config defaults
…commit globally (#67)

* feat(ai): externalize fastmcp prompt templates to canonical markdown tasks

* feat(devcontainer): isolate project ssh signing keys and install pre-commit globally

* feat(ai): localize fastmcp tool descriptions and error strings via lang module

* fix(devcontainer): check tool install returncodes, isolate local git signing, and remove unused CONFIG_DIR
* feat(ai): multi-model LLM benchmark evaluation harness

Implement automated evaluation suite devops ai benchmark --suite grounded in feedback datasets with quantitative precision, recall, hallucination rate, throughput, and AST architectural compliance scoring.

* fix(ai): externalize benchmark prompts, sanitize credentials, standardize F1 scoring, and parse verdicts deterministically
…eploy modern developer theme (#69)

* fix(docs): resolve GitHub Pages table rendering, update badges, and deploy modern developer theme

* fix(docs): invoke seo tag in layout, respect prefers-reduced-motion, and generalize table assertions
…ocs theme layout (#70)

* docs(agents): codify review feedback remediation mandate and harden docs theme layout

* docs(task): reconcile Phase 49.7.2 state in task tracker to WIP during PR review

* docs(task): consolidate duplicate Phase 49.7 entries in task tracker

* docs(agents): enforce mandatory direct in-thread replies to PR review comments
…g diff parser (#71)

* feat(review): parallel async multi-file review worker pool & streaming diff parser

- Implement ReviewWorkerPool utilizing Python 3.14 asyncio.TaskGroup, Semaphore, and TokenBucketRateLimiter
- Implement streaming generator diff_stream_chunks reducing memory consumption
- Integrate ReviewWorkerPool into ReviewPipelineOrchestrator and persona review stage
- Add --concurrency and --parallel options to review path, branch, and pr commands
- Add ReviewPoolError domain exception and author TDD test suite

* fix(review): clamp review workers to total files and restore deterministic persona progress output
* feat(telemetry): logfire structured AI observability bridge

* fix(telemetry): address code review feedback on logfire bridge and bump httpx2
…deploy-stack options

- Deploy Docker Registry v2 with 50Gi local-path storage in registry namespace and expose via NodePort 30500.
- Align PodSecurity admission labels and security contexts across namespaces (monitoring, llm, registry, argocd, otel), eliminating admission warnings.
- Add --wait/--no-wait and --timeout flags to devops k8s deploy-stack, avoiding blocking when cluster nodes are temporarily offline.
- Author unit tests for non-blocking deploy-stack and isolate embeddings test from ambient daemon.
- Synchronize CLI references and task documentation.
- Disable response caching during devops ai test so connectivity checks perform live inference and measure real network/compute latency.
- Ensure --url option explicitly scopes LLMClient endpoint targeting.
- Add unit test test_ai_test_disables_cache_and_targets_url.
…s and above

- Update format_duration in devops_cli.output to automatically round to whole seconds when total duration is 10 seconds or greater.
- Preserve sub-second and decimal precision (e.g. 2.50s, 7.37s, 9.94s, ms, µs) for durations under 10 seconds.
- Update duration assertions in tests/test_output.py.
…CacheConfig

- Eliminate redundant top-level append_cache field on AIConfig in favor of AICacheConfig.append_cache (ai.cache.append_cache).
- Expose append_cache property on AIConfig delegating to cache.append_cache and add before-validator migrating legacy YAML entries.
- Add unit tests in tests/test_response_cache.py verifying serialization deduplication and backward-compatible migration.
- Synchronize docs/CONFIGURATION.md.
Copilot AI lite review requested due to automatic review settings September 9, 2026 14:09
@dan-petty dan-petty added this to the v0.2.13 milestone Sep 9, 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 9, 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

There are a few small but concrete correctness/documentation mismatches (e.g., known_hosts newline handling, site version, and pinned image example) that should be fixed before approving the release.

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

Pull request overview

Release PR for v0.2.13, rolling up a large set of new AI/observability/review capabilities plus Kubernetes stack enhancements and documentation/test updates to ship the milestone.

Changes:

  • Adds major new AI subsystems (harness slots + sub-agent offloading, chaos-model suite, constellation quiesce/failover, benchmark suite, parallel review worker pool + streaming diff chunker).
  • Introduces interactive Terminal UI dashboard commands (devops dashboard / devops tui) and expands telemetry with Logfire bridge + CLI surface area.
  • Hardens security/sanitization, improves path/SSRF guardrails, and updates docs/tests/config to match the release.
File summaries
File Description
tests/test_ssh.py Adds coverage for devcontainer SSH key prefix config resolution.
tests/test_server_stream.py Adds SSE/WebSocket persona validation tests.
tests/test_security_semgrep.py Tests Semgrep finding message fallback behavior.
tests/test_review_stages.py Expands persona review stage test to multi-file payloads.
tests/test_review_pipeline.py Adds orchestrator tests for parallel pool + concurrency clamping.
tests/test_response_cache.py Tests AI config cache deduplication/migration behavior.
tests/test_rag_embeddings.py Stabilizes embeddings tests by patching dispatch path.
tests/test_providers.py Adds Ollama URL SSRF/validation helper tests.
tests/test_output.py Updates duration formatting expectations.
tests/test_otel_command_coverage.py Registers new CLI command specs (dashboard/tui).
tests/test_mcp.py Covers new MCP tools + validation behavior.
tests/test_k8s.py Adds --no-wait deploy-stack behavior test.
tests/test_instruction_generator.py Validates agent instruction generator includes new governance section.
tests/test_harness.py Adds diff-base traversal validation tests for Macroscope tool.
tests/test_github_client.py Tightens typing and expands milestone edit/close tests.
tests/test_git_operations.py Adds tests for known_hosts, clone URL prep, and clone dest validation.
tests/test_fastmcp_contracts.py Expands MCP tool/resource registration + prompt rendering + localized errors tests.
tests/test_docs.py Asserts README command matrix spacing behavior.
tests/test_data_dir_configuration.py Tests default data paths when config omits data section.
tests/test_consolidation_security_sanitizer.py Adds tests ensuring exception/serializer/semgrep masking behavior.
tests/test_consolidation_ast_cache.py Adds max AST file size enforcement tests.
tests/test_config_audit_keys.py Updates expected secret key inventory (adds Logfire token).
tests/test_common_hallucinations.py Tests newly cataloged hallucination matching entries.
tests/test_architectural_invariants.py Extends invariants coverage for telemetry exceptions + module list.
tests/test_ai_cmd.py Tests AI test command bypasses cache + targets explicit URL.
tests/test_ai_agent_prompt.py Tightens typing + tests exported prompt injection regex constants.
tests/conftest.py Adjusts config isolation fixture patching.
src/devops_cli/ui/init.py Introduces UI package exports for dashboard/providers.
src/devops_cli/telemetry/tracer.py Adds attribute extraction helper + span-context fallback via OTel.
src/devops_cli/telemetry/metrics.py Escapes Prometheus labels and bounds histogram sample retention.
src/devops_cli/telemetry/init.py Re-exports Logfire bridge APIs.
src/devops_cli/server/routes/stream.py Adds persona allowlist + default persona handling for SSE/WS.
src/devops_cli/security/checkov.py Skips symlinks and enforces relative containment in fallback IaC scan.
src/devops_cli/output/streaming_serializer.py Adds secret masking for streamed JSON/YAML outputs.
src/devops_cli/output/formatters/tables.py Adds benchmark suite leaderboard table formatting.
src/devops_cli/output/formatters/scalars.py Changes duration formatting rules (whole seconds for ≥10s).
src/devops_cli/output/formatters/init.py Exposes new benchmark suite formatter.
src/devops_cli/output/formatter.py Exposes new benchmark suite formatter in central formatter module.
src/devops_cli/output/init.py Expands output exports (Group/box + benchmark suite table).
src/devops_cli/models/benchmark.py Adds benchmark suite models and report schema.
src/devops_cli/main.py Registers new command groups (dashboard/tui).
src/devops_cli/lang/en/messages.py Adds new AI/benchmark/MCP/scan message strings.
src/devops_cli/lang/en/errors.py Adds MCP validation + SSE loopback security error strings.
src/devops_cli/k8s/port_forward_daemon.py Hardens state file handling (symlinks/pid sanity).
src/devops_cli/github/projects.py Adds GitHub Projects v2 view sync helpers (GraphQL).
src/devops_cli/github/milestones.py Hardens ROADMAP parsing path validation + signature-based close logic.
src/devops_cli/github/client.py Ensures edit_milestone always supplies title (fallback to existing).
src/devops_cli/git/operations.py Refactors SSH known_hosts handling + clone safety helpers.
src/devops_cli/exceptions/telemetry.py Introduces Telemetry/Logfire domain exception types.
src/devops_cli/exceptions/base.py Sanitizes exception messages/details by default.
src/devops_cli/exceptions/ai.py Adds constellation + review pool domain exceptions.
src/devops_cli/exceptions/init.py Re-exports new exceptions.
src/devops_cli/docs/generator.py Adjusts README command matrix spacing for rendering.
src/devops_cli/core/cleanup.py Adds symlink + containment guardrails for cleanup.
src/devops_cli/config/options.py Adds telemetry Logfire config keys + secrets inventory.
src/devops_cli/config/defaults.py Adds stream persona allowlist + AST size limit + AI fallbacks.
src/devops_cli/config/constants.py Adds prompt injection tag regex + new error codes.
src/devops_cli/config/init.py Exposes new defaults/constants via package export.
src/devops_cli/commands/test_cmd.py Sanitizes base ref input to git diff invocation.
src/devops_cli/commands/telemetry.py Adds telemetry logfire and Logfire emission option for test command.
src/devops_cli/commands/ssh.py Adds repo-local git signing configuration support.
src/devops_cli/commands/review.py Adds concurrency/parallel/logfire flags + Logfire init path.
src/devops_cli/commands/prometheus.py Masks secrets in printed validation errors.
src/devops_cli/commands/k8s/stack_lifecycle.py Adds --wait/--no-wait and --timeout Helm behavior.
src/devops_cli/commands/gh.py Adds gh views sync and issues-view link rendering.
src/devops_cli/commands/devcontainer.py Improves post-create/start behavior (uv/pre-commit install; local signing; key prefix filtering).
src/devops_cli/commands/analyze.py Hardens PR file path resolution and traversal rejection.
src/devops_cli/commands/ai.py Wires in new AI subcommands + disables cache in ai test flow.
src/devops_cli/ai/test_gen.py Hardens file reads and not-found behavior for test generation.
src/devops_cli/ai/tasks/security_audit_prompt.md Adds canonical externalized task prompt (security audit).
src/devops_cli/ai/tasks/k8s_diagnostics_prompt.md Adds canonical externalized task prompt (k8s diagnostics).
src/devops_cli/ai/tasks/code_review_prompt.md Adds canonical externalized task prompt (code review).
src/devops_cli/ai/tasks/architecture_analysis_prompt.md Adds canonical externalized task prompt (architecture analysis).
src/devops_cli/ai/run/init.py Masks secrets in agent run summaries.
src/devops_cli/ai/review/runner.py Threads concurrency/parallel options into orchestrator creation.
src/devops_cli/ai/review/pipeline.py Integrates worker pool + streaming diff chunker + concurrency override.
src/devops_cli/ai/review/common_hallucinations.py Hardens hallucination file path resolution + keyword list updates.
src/devops_cli/ai/review/common_hallucinations.json Adds additional hallucination catalog entries.
src/devops_cli/ai/review/chunker.py Adds streaming diff chunker and aligns diff_pages implementation.
src/devops_cli/ai/review/init.py Re-exports streaming chunker + worker pool utilities.
src/devops_cli/ai/providers/ollama.py Adds loopback/private-network checks and Ollama URL validation wrapper.
src/devops_cli/ai/prompts/benchmark_suite_user.md Adds benchmark suite user prompt template.
src/devops_cli/ai/prompts/benchmark_suite_system.md Adds benchmark suite system prompt template.
src/devops_cli/ai/model_bundler.py Hardens output dir containment and absolute/relative handling.
src/devops_cli/ai/mcp/init.py Exposes new benchmark suite MCP tool.
src/devops_cli/ai/knowledge_base/devops_cli/tasks/github_project_management.md Updates knowledge base governance guidance for projects/views.
src/devops_cli/ai/instruction_generator.py Updates generated agent instructions with new governance/remediation guidance.
src/devops_cli/ai/harness/agents.py Refactors and hardens diff base validation for Macroscope tool.
src/devops_cli/ai/harness/init.py Re-exports harness slots APIs.
src/devops_cli/ai/ext_langchain.py Expands traversal validation to include absolute paths + clearer error prefix.
src/devops_cli/ai/durable.py Masks secrets in durable step serialization for string payloads.
src/devops_cli/ai/controller/models.py Adds constellation quiesce/failover domain models.
src/devops_cli/ai/controller/init.py Exposes controller package API surface.
src/devops_cli/ai/chaos/models.py Adds chaos engineering config/result models.
src/devops_cli/ai/chaos/init.py Exposes chaos engineering package API surface.
src/devops_cli/ai/benchmark/init.py Exposes benchmark suite runner and helpers.
src/devops_cli/ai/ast_cache.py Adds max file-size DoS guardrail to AST cache.
src/devops_cli/ai/agents/prompt.py Uses exported prompt-injection regex + sanitizes cached template text.
src/devops_cli/ai/agents/persistence.py Ensures tool result masking also applies to strings (with truncation).
src/devops_cli/init.py Bumps package version to 0.2.13.
README.md Updates repo links, command matrix spacing, and new command docs.
pyproject.toml Bumps project version and adds/updates dependencies (Textual, httpx2).
k8s/registry/service.yaml Adds in-cluster registry Service (NodePort 30500).
k8s/registry/pvc.yaml Adds PVC for registry storage.
k8s/registry/kustomization.yaml Adds kustomize entry for registry resources.
k8s/registry/deployment.yaml Adds registry Deployment with probes/resources and PVC mount.
k8s/otel/values.yaml Adds PodSecurityContext/Seccomp hardening for OTel collector.
k8s/namespaces.yaml Aligns PodSecurity labels and adds registry namespace.
k8s/llm/valkey.yaml Adds seccompProfile to Valkey pod security context.
k8s/llm/namespace.yaml Updates llm namespace PodSecurity labels.
k8s/kustomization.yaml Includes registry in root kustomization resources.
docs/SDLC.md Updates SDLC governance (milestone/project population, review remediation).
docs/ERRORS.md Documents new error codes (constellation/review pool/telemetry/logfire).
docs/DEVCONTAINER_USAGE.md Updates devcontainer usage examples and base image references.
docs/CONFIGURATION.md Documents new telemetry logfire config keys and removes deprecated ai.append_cache row.
docs/commands/tui.md Adds generated docs for devops tui command.
docs/commands/telemetry.md Adds telemetry logfire docs + telemetry test --logfire option.
docs/commands/review.md Documents review concurrency/parallel/logfire flags.
docs/commands/k8s.md Documents deploy-stack wait/timeout options.
docs/commands/gh.md Documents gh views sync command.
docs/commands/dashboard.md Adds generated docs for devops dashboard command.
docs/agent/README.md Updates agent task tracking guidance for linked projects/views.
CHANGELOG.md Adds v0.2.13 release notes.
.github/dependabot.yml Updates Dependabot target branch to release/v0.2.13.
.devcontainer/Dockerfile Installs pre-commit system-wide in the devcontainer image.
_config.yml Adds Jekyll Pages config for GitHub Pages site.
Review details
  • Files reviewed: 167/168 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.

Comment thread _config.yml Resolved
Comment thread src/devops_cli/git/operations.py Resolved
Comment thread docs/DEVCONTAINER_USAGE.md Resolved
@dan-petty
dan-petty merged commit b861fc4 into main Sep 9, 2026
4 checks passed
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