Skip to content

feat(release): v0.2.36 - #1615

Merged
dan-petty merged 25 commits into
mainfrom
release/v0.2.36
Oct 17, 2026
Merged

dan-petty merged 25 commits into
mainfrom
release/v0.2.36

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

feat(release): v0.2.36

Summary

Release v0.2.36 tracking PR under GitHub pull request merge controls.

Included Deliverables

Release Notes

Added

  • Authenticated Qdrant Prometheus Scrape & Restored Dashboard Row (feat(k8s): qdrant metrics with an authenticated scrape, and its dashboard row restored #823): Enabled metrics.serviceMonitor in k8s/llm/values-qdrant.yaml with Bearer token authorization from Secret qdrant-api-key (key: api-key) so Alloy (k8s-monitoring) scrapes Qdrant's protected /metrics endpoint on port 6333. Added the docker.io/qdrant/qdrant:v1.19.1 metric family capture (tests/fixtures/metrics/qdrant.yaml), restored the Qdrant row (Qdrant Request Rate and Errors, Qdrant Request Latency p95, and Qdrant Collections and Vectors) in k8s/monitoring/dashboards/llm-stack.json without constant fallbacks, and enforced Qdrant ServiceMonitor and PromQL series/label verification in tests/test_stack_dashboards.py.
  • Add devops ci fail-to-pass and .github/workflows/fail-to-pass.yml to replay a pull request's added or modified tests/**/test_*.py files against its merge-base tree with the head's tests/ overlaid, gating defect PRs on at least one call-phase failure on base unless Fail-to-pass: not applicable: <reason> is declared (feat(ci): fail-to-pass check proves a fix's tests fail on its base (devops ci fail-to-pass) #844).
  • Enforced per-kind suppression comment and configuration waiver ceilings across src/, tests/, and pyproject.toml via tokenize.COMMENT inspection (type: ignore, per-rule noqa, nosec, pragma: no cover, pragma: no mutate, file-level directives, ast-grep-ignore, Ruff per-file-ignores, [[tool.mypy.overrides]], and coverage omit), and lowered DEFAULT_C901_SUPPRESSION_CEILING from 65 to 51 (test(cli): suppression comments may not grow unnoticed #849).
  • Route all LLM JSON repair entry points (repair_json_string, extract_json_block, and chat_structured's _parse_json_payload) through a single repair_json(text, *, source) seam in devops_cli.ai.response_repair that emits devops_cli_ai_json_repairs_total labeled by source and preserves top-level lists in unclosed markdown fences (feat(ai): one json repair seam that counts repairs per entry point #875).
  • Run review static analysis tools (ruff, mypy, pluto) at the target repository's declared Python and Kubernetes versions (reporting coverage_gap when undeclared) and gate tool findings and coverage on a 5-tuple cached canary check against recorded (rule_id, line) expectations (feat(review): review tools run at the project's declared language and platform versions, and count only after their output on a canary matches the recorded expected output #1143).
  • Added the tested Semgrep review rule pack (src/devops_cli/review/rules/k8s-networkpolicy-ingress-any.yaml and .test.yaml), rules.lock manifest verification (devops review rules test [--check]), expected tool/rule annotations on tests/fixtures/review_recall/recall_set.json, and the path-filtered Rule Pack Tests job in .github/workflows/ci.yml (#1145).
  • Add bounded per-group model analysis for admitted review findings (devops_cli.review.analysis), grouping findings by enclosing symbol or rule, Kubernetes (namespace, kind, name), or package purl, grounding each group's single model call in installed-version rule documentation and secret-masked code excerpts, verifying every doc quote, code quote, member finding citation, Python code block syntax, version string, and .devops/review.toml suppression note via deterministic G10 checks, writing analysis.json and a separate ## Model Analysis (Model-Written) section in review.md while keeping findings.json and findings.sarif untouched, and gating reference_coverage in devops review score and devops ai runs check --max-reference-coverage-drop (#1147).
  • Enable Argo CD's web terminal (configs.cm."exec.enabled" in k8s/argocd/values.yaml), so role:admin opens a shell in any pod an Application manages from the pod's Terminal tab; the chart grants argocd-server create on pods/exec (#1585).
  • Reach the Kubernetes API off the home network at k8s.<domain> through the Cloudflare Tunnel: k8s/cloudflared/networkpolicy.yaml lets cloudflared reach the API server on 6443, cloudflared is a tools.lock binary that devops install-tools --tool cloudflared installs, and k8s/README.md gives the TCP route, the cloudflared access tcp listener and the kubeconfig context (#1595).
  • zizmor is a registered scanner: devops scan report and its SARIF, which CI uploads to code scanning, carry its workflow findings under zizmor's own audit names as rule IDs, and reviews run it on a repository's GitHub Actions workflows and action files. Its findings are published and do not gate, so devops scan workflows stays the gate on template injection, unpinned actions and excessive permissions; an isolated review scan hands it a configuration with no rules changed (#1608).

Changed

  • Replaced the 4-subsystem Tarjan circular-import test with whole-tree AST import-cycle (graphlib.TopologicalSorter) and interface-layer (devops_cli.commands boundary) invariants in src/devops_cli/core/import_graph.py, running on the single _parse_src() pass in test_the_source_tree_keeps_its_structural_invariants, and moved load_local_contracts into devops_cli.ai.rag.library_store and release-cut domain helpers into devops_cli.release.cut (test(cli): whole-tree import-cycle and interface-layer invariants #848).
  • devops scan workflows titles each finding [<audit>] <description>, without the ZIZMOR: prefix, so its rule ID in SARIF is the audit's name (#1608).

Fixed

  • OpenTelemetry Delta Metric Aggregation, Exponential Histograms & Prometheus Client Exposition (#792): Replaced per-point OTLP metric JSON construction and concurrent worker-pool HTTP dispatch in OTelTelemetryClient with an OpenTelemetry SDK MeterProvider (InMemoryMetricReader with DELTA temporality and ExponentialBucketHistogramAggregation) that aggregates all counter, histogram, and gauge recordings within a process and flushes one batch at command end or shutdown(), eliminating intra-process out-of-order delta drops at deltatocumulative. Enabled --enable-feature=native-histograms in k8s/monitoring/prometheus-values.yaml, added mean (_sum / _count) and sample-count targets to duration panels in k8s/monitoring/dashboards/devops-cli.json, quieted httpx, httpx2, and httpcore loggers to WARNING in Service mode, and replaced hand-rolled Prometheus exposition formatters and regex parsers across telemetry/metrics.py, ai/spend/prometheus.py, server/routes/telemetry.py, server/service.py, and sandbox/metrics.py with prometheus-client==0.26.0.
  • Fail closed in devops pr check-readiness when review discussion threads cannot be retrieved, reporting the error as a readiness blocker instead of assuming zero unresolved threads, and add regression tests for devops ai runs check on empty comparisons and ambiguous run-ID prefixes (#797).
  • Make devops docs generate and devops docs check fail closed when a command module, FastMCP tool listing, or exception module fails to import, and render group-callback options, MCP array item types and enum values, all project config file candidates and Settings sections in docs/CONFIGURATION.md, and all DevOpsCLIError subclasses with their constructor error and exit codes in docs/ERRORS.md (fix(docs): generated reference docs fail closed and describe the real surface #854).
  • Emit failing pytest.fail(...) unit test scaffolds instead of presence-only hasattr assertions in devops ai test-gen and ai_test_gen, and update CLI and MCP wording to report scaffolds rather than synthesized unit tests (#856).
  • devops ci maintain audits with uv audit, the command the audit check runs, instead of the undeclared pip-audit, and reports an audit that could not run apart from one that found vulnerabilities (#861).
  • devops ci fail-to-pass replays with --continue-on-collection-errors, so a fix that adds a module and a test file importing it, which cannot be collected on base, still has its other changed tests counted; pytest had stopped at the collection error and run none of them (#861).
  • docs/SDLC.md no longer claims weekly Dependabot audits, pip-audit or SLSA Level 3, and names the supply-chain controls the repository runs (#861).
  • Skip creating review session directories or persisting findings.json, candidates.json, findings.sarif, review.md, and per-file JSON payloads during dry-run reviews (fix(review): a dry-run review writes no session directory or findings #872).
  • Apply each devops roadmap intake candidate's writes on its own: a candidate whose GitHub write fails is skipped with a warning naming it and the error, the round's other candidates are still placed, and the round then fails with RoadmapIntakeError (ROADMAP_INTAKE_FAILED) naming every skipped candidate and its error's class, so devops roadmap intake --confirm exits 1 and devops roadmap run reports the intake job failed. A rate limit or GraphQL budget refusal still stops the round at once, and the next round decides a skipped candidate again after the fresh ones (#1443).
  • Print step, raw and leveled messages (print_info, print_error, print_warning, print_success, print_muted, print_step) as one line for the terminal to wrap, so Rich no longer writes a newline inside a command a message names, and end an abandoned devops devcontainer unlock-keyring prompt's line before the message that follows it (#1588).
  • devops cloudflare tunnel sync places a new hostname before the first wildcard rule that would match it, since cloudflared takes the first matching rule; it appended new hostnames after every rule, so a host under an existing *.<domain> route was never reached (#1595).
  • A tools.lock build may name its own format, for a tool packed differently per platform such as cloudflared's macOS .tgz (#1595).
  • Tests no longer leak keyring backends: keyring registers every KeyringBackend subclass a test defines as a candidate for the rest of the process and picks the highest-priority one when it next detects a backend, so a fake from tests/test_config_cmd.py became a later test's keyring and failed its secret writes or reads. An autouse fixture unregisters the backend classes each test defines and restores keyring's chosen backend (#1601).
  • devops pr monitor and the other readers of a pull request's checks through the REST check-runs API drop a cancelled run that a later-started run of the same check replaced, as a workflow that cancels its in-progress run on a newer event leaves; a cancelled run with no newer run, and every failure, still fail the pull request (#1602).
  • reset_tracer() shuts the tracer it drops down first, waiting for its exports in flight: every test resets the tracer, and a test's queued OTLP exports ran on into the next test, whose dry-run socket probe saw connections to localhost:4318 it never made (#1604).

Security

  • Declared MCP ToolAnnotations (readOnlyHint) on all 155 FastMCP tools in src/devops_cli/ai/mcp/server.py, changed tf_apply to default to auto_approve=False, enforced the annotation contract and argument-mutating floor in tests/test_fastmcp_contracts.py, and carried readOnlyHint into MCPToolInfo, devops mcp export-schemas, and docs/MCP_TOOLS.md (#857).
  • Audit GitHub Actions workflows with zizmor 1.30.1, pinned in the dev group: devops scan workflows runs it offline, shows every finding and fails on template injection, unpinned actions and excessive permissions, and devops ci runs it as the zizmor check. The five run: blocks that interpolated ${{ }} expressions, including the release workflow's dispatched version input, take their values through env: (#861).

…#1583)

* chore(release): pin docker/setup-qemu-action SHA and align BaseCapability id types for ty 0.0.87 (#1582)

* fix(github): fail closed on review thread read errors in pr readiness
…tion manages (#1586)

Set configs.cm."exec.enabled" to "true" in k8s/argocd/values.yaml. The pinned argo-cd chart
then grants argocd-server create on pods/exec, and Argo CD's built-in role:admin already holds
exec, create, so the admin user can open a pod's Terminal tab without kube API access from the
workstation.

Closes #1585
…e is never split by an inserted newline (#1589)

Step, raw and leveled messages go to Rich with soft_wrap=True. Rich's own word wrap wrote a
newline at a space, which split a command a message names, such as `devops devcontainer
unlock-keyring`, so copying it gave two lines. Tables, panels and Markdown keep Rich's layout.

An abandoned keyring prompt (timeout, EOF or Ctrl-C) now ends its line before the message that
follows: getpass writes that newline only once the prompt is answered.

Closes #1588
…date, and the round still reports the failure and exits non-zero (#1593)

apply_intake applies each candidate's writes on its own. A GitHubOperationError skips that
candidate with a warning naming it and the error, and the round's other candidates are still
written. raise_for_failed_placements then raises RoadmapIntakeError (ROADMAP_INTAKE_FAILED)
naming each skipped candidate and its error's class: `devops roadmap intake --confirm` reports
what it placed and exits 1, and the roadmap run's intake job fails. A GitHubRateLimitError,
which also carries a GraphQL budget refusal, still stops the round at once.

GitHub answers the board add of some existing issues with an INTERNAL error, which stopped
every round at the first of them.

Closes #1443
…ain> through the cloudflare tunnel, behind access, with kubectl over cloudflared access tcp (#1597)

- k8s/cloudflared/networkpolicy.yaml lets cloudflared reach the API server on 6443 through an ipBlock peer with the metadata address excluded, as Argo CD's rule does (#1371).
- `devops cloudflare tunnel sync` inserts a new hostname before the first wildcard rule that would match it (cloudflared's matchHost: a leading `*.` matches any name ending in the rest), so `k8s.<domain>` is reached under an existing `*.<domain>` route.
- cloudflared 2026.9.3 is a tools.lock binary. A build may name its own format, since cloudflared ships bare Linux binaries and macOS tar.gz archives.
- k8s/README.md documents the tcp:// route, `cloudflared access tcp` and the kubeconfig context.

Closes #1595
…xposure entries into tested Semgrep rules, and CI runs the pack's tests when a rule changes (#1145) (#1598)
…and workflow invocation contracts (#1599)

* fix(github): supply-chain claims made true — live Dependabot, zizmor and workflow invocation contracts

- zizmor 1.30.1 is pinned in the dev group. `devops scan workflows` runs it offline with --no-exit-codes, shows every finding and fails on template-injection, unpinned-uses and excessive-permissions, or when zizmor could not run; `devops ci` runs it as the `zizmor` check.
- No `run:` block interpolates a `${{ }}` expression: the release workflow's version, notes, tag and milestone steps and ci.yml's image name take their values through `env:` or the runner's GITHUB_REPOSITORY.
- `devops ci maintain` audits with the `audit` check's `uv audit` instead of the undeclared pip-audit, and reports an audit that could not run (uv exit 2) apart from one that found vulnerabilities (exit 1).
- docs/SDLC.md drops the Dependabot, pip-audit and SLSA Level 3 claims and names the controls the repository runs; the Renovate line says Renovate acts only where its GitHub App is installed.
- Contract tests resolve every `devops` command in the workflows, composite actions and pre-commit hooks with resolve_devops_argv, and pin that no run block holds an expression and every remote `uses:` is SHA-pinned.

Closes #861

* fix(ci): fail-to-pass replay counts the other changed tests when one cannot be collected on base

`devops ci fail-to-pass` runs the changed test files on the merge-base tree in one pytest session. A fix that adds a module and a test file importing it cannot collect that file on base, and pytest then ran none of the files, so the gate found no failing test and failed the PR. The replay passes `--continue-on-collection-errors`: the file is reported as errored and the others run. This PR's own `tests/test_security_zizmor.py` hit it.
…e cached canaries (#1143) (#1603)

* feat(review): run review tools at project versions and gate on 5-tuple cached canaries (#1143)

* fix(review): isolate tool canaries with recorded outputs in conftest and keep scanner failure reasons
…celled run a newer one replaced does not fail the pr (#1605)

The REST check-runs listing returns every check suite's runs, so a workflow that cancels its in-progress run when a newer event starts it leaves the cancelled run beside its replacement; `filter=latest` collapses runs only within a suite. `_parse_rest_check_runs_payload` now drops a cancelled run when a later-started run of the same check exists. A cancelled run with no newer one still fails, and a failure is never dropped. PR #1599's checks read as 2 cancelled and failing before, and as passing after.

Closes #1602
…t's exports run on into the next (#1606)

`reset_tracer()`, which the autouse config fixture calls before and after every test, dropped the global tracer without shutting it down, so exports queued on its two-worker executor kept running into the next test. `tests/test_roadmap_dry_runs.py`'s dry-run test refuses connections process-wide and intermittently recorded those exports' connections to localhost:4318. The reset now calls `shutdown()` on the dropped tracer, which waits up to DEFAULT_OTEL_DRAIN_TIMEOUT_SECONDS for exports in flight and closes the executor.

The five-persona transient-503 review test also asserts the error its review recorded, so its own intermittent `failed` stage names its cause the next time it happens.

Closes #1604
… workers (#1607)

keyring registers every concrete KeyringBackend subclass as a candidate for the rest of the process and picks the highest-priority viable one when it next detects a backend; a ChainerBackend also takes its members from get_viable_backends(). Test doubles in tests/test_config_cmd.py therefore became later tests' keyrings in the same xdist worker: `FakeChainer` (priority 10) made writes fail with "'EncryptedKeyring' object has no attribute 'set_password'" (test_k8s_bootstrap_openwebui), and `Raising` (priority 1, KeyringLocked) made reads warn that the keyring was locked (test_review_embeddings_unserved, test_roadmap_refine). An autouse fixture (tests/keyring_isolation.py) unregisters the backend classes each test defines and restores keyring's chosen backend.

Closes #1601
…devops scan report, and reviews run it (#1610)

`ZizmorScanner` (security/zizmor.py) registers zizmor with the default scanner registry, built on the same offline command and JSON parser `devops scan workflows` uses. It applies where the target has a `.github/workflows` directory, or, for a list of files, to its workflow and action files, and an isolated review scan hands it `--config` with no rules changed (#972). Its findings are non-gating, so `devops scan report` and its SARIF publish all of them while `devops scan workflows` stays the gate. Finding titles are `[<audit>] <description>`, so `extract_rule_id` gives SARIF the audit's name as its rule ID. On this repository the SARIF carries the 26 non-gated findings under the `zizmor` tool and the report exits 0.

Closes #1608
@dan-petty dan-petty added this to the v0.2.36 milestone Oct 17, 2026
@dan-petty dan-petty added the release Pull request or issue associated with a release cut label Oct 17, 2026
Comment thread .github/workflows/ci.yml Fixed
Comment thread .github/workflows/ci.yml Fixed
Comment thread .github/workflows/fail-to-pass.yml Fixed
Comment thread .github/workflows/fail-to-pass.yml Fixed
Comment thread .github/workflows/fail-to-pass.yml Fixed
Comment thread .github/workflows/fail-to-pass.yml Fixed
…image takes Debian security updates, checkouts keep no credentials, and zizmor's self-repository audit waits for actionlint (#1616)

- Service Image: Trivy failed on CVE-2026-8286, CVE-2026-8927 and CVE-2026-92392 in libcurl3t64-gnutls 8.14.1-2+deb13u5. The Dockerfile already runs `apt-get upgrade`, but the build reused that layer from the GitHub Actions cache, made before Debian published deb13u7. The final stage is named `service` and the three service-image builds pass `no-cache-filters: service`; a fresh upgrade of the same base installs deb13u7.
- zizmor artipacked (release PR threads): every actions/checkout sets persist-credentials, false except release.yml's release job, which pushes its tag; tests/test_workflow_contracts.py checks that only a job running `git push` keeps them.
- zizmor self-repository (release PR threads): `.github/zizmor.yml` disables the audit, whose `$/<path>` form actionlint 1.7.12 rejects ("ref is missing").
- The five-persona transient-503 stall test (#1609) records any gateway request that bypasses its fake transport, by method and path, and asserts there are none, so its intermittent CI failure ("Cannot connect to AI provider API") names the request next time.
… collected and the roadmap rendered (#1614)

The changes `devops roadmap close --confirm` makes when it cuts v0.2.36, produced by its own `cut_release` (`is_prepare=True`, `sync_docs=False`, and the close job's docs/ROADMAP.md render as its edit) from release/v0.2.36 at 414a290, as a pull request instead of the cut's commit and push to the release branch: pyproject.toml and uv.lock at 0.2.36, the 24 changelog.d fragments collected into CHANGELOG.md's [0.2.36] - 2026-10-17 section and deleted, and docs/ROADMAP.md rendered from GitHub.
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

None yet

Development

Successfully merging this pull request may close these issues.

2 participants