Skip to content

feat(release): v0.2.39 - #1947

Merged
dan-petty merged 69 commits into
mainfrom
release/v0.2.39
Oct 23, 2026
Merged

dan-petty merged 69 commits into
mainfrom
release/v0.2.39

Conversation

@dan-petty

@dan-petty dan-petty commented Oct 23, 2026 •

Copy link
Copy Markdown
Owner

feat(release): v0.2.39

Summary

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

Included Deliverables

Release Notes

Added

  • The roadmap Service's webhook router has one route per declared provider (POST /webhooks/github today), verifies each provider its own way (GitHub's HMAC-SHA256 signature), validates the signed body into a typed pydantic model, and delivers each event only to the consumers subscribed to it. The roadmap consumer takes issues, pull_request, milestone and release. Every other event, a push, issue_comment or create included, is acknowledged with no_subscriber and starts no round. Each delivery writes one log record with its provider, event, action, delivery, repository and outcome, and devops_cli_service_webhook_deliveries_total counts it by provider, event and outcome (ADR 0009, #1386).
  • The Argo Workflows controller runs in its own namespace, argo-workflows, under Pod Security restricted and a default-deny perimeter, installed by Argo CD and by devops k8s deploy-stack --stack infra. A --version WorkflowTemplate with no GitHub request and no Secret measures a Workflow's start-up time and the API server's load, for the go/no-go on moving the roadmap Service's jobs onto it (ADR 0008). The argo CLI pin moves to v4.1.5, the chart's app version (#1535).
  • ADR 0012 decides the release model. Under it, release-please will replace the release/vX.Y.Z branch, the hand-made cut and the bespoke cut, collector and compactor code (ADR 0012, #1751).
    • Topic pull requests will target main. release-please will derive each version from the Conventional Commit titles, open the release pull request and write the changelog.
    • Merging that pull request will publish the release and create the tag as the last write. Argo CD will follow the semver tags. A milestone will be a planning bucket, not a version.
    • ADR 0012 supersedes ADR 0011, which kept a prepare workflow and towncrier fragments.
    • It measures v0.2.36 and v0.2.37 (75 and 107 minutes, release pull requests of 188 and 990 files). It compares six options, decides 18 points that needed the owner and orders 14 steps.
  • ADR 0010 records the adoption of OpenSpec as the spec and change-proposal layer, so that planning is consistent across Claude Code, Gemini CLI and Copilot, with the roadmap jobs joining in the last two steps: every item becomes a change folder openspec/changes/<issue>-<slug>/ that replaces its task file, the pull request that closes a change archives it into openspec/specs/, OpenSpec 1.14.3 is pinned in tools.lock and run with telemetry off, and the ADR names every rule, check and test that changes, the ordered items that carry the migration and the conditions under which to revisit (#1753).
  • devops install-tools installs a third kind of tool, a Node tool, with npm ci --ignore-scripts from a committed package-lock.json that npm checks against the sha512 of every package, and OpenSpec 1.14.3 is the first. The install is staged and renamed into place, so a package that fails its checksum leaves no partial install, and it fails first, naming npm, when npm is missing; devops devcontainer post-create warns instead. The devcontainer, its template, the CI workflow and the committed Claude Code settings opt out of OpenSpec's telemetry and update check, the node feature is pinned to Node 24 with a .node-version file, and the audit check of devops ci also runs npm audit on the lockfile, so a vulnerable pin fails the gate, and devops ci audit, devops ci maintain and the gate's row read npm's JSON report to tell a finding from an audit that could not run, since npm exits 1 for both (#1842).
  • OpenSpec has a scaffold, a gate and an archive command. openspec/config.yaml holds the planning conventions, and the generated skills of four workflows are committed under .claude/skills/ and .agents/skills/. devops openspec check is a row of devops ci. It validates every change and every archived change. It compares the committed skills with a regeneration. It renders the instructions of a probe change. It finds a requirement that two changes rewrite. devops openspec regenerate rewrites the skills. devops openspec archive <change> archives a change and then runs openspec validate --all --strict. It exits 1 when either run fails, and it prints the whole output of the run that failed. The three commands run the pinned OpenSpec with telemetry off, under an isolated configuration (#1844).
  • devops ai agents writes a GEMINI.md pointer stub, and this repository commits one. Gemini CLI loads GEMINI.md by default. It reads AGENTS.md only through its context.fileName setting. The stub holds an @./AGENTS.md import line, the form that the Gemini CLI documentation (v0.65.0) shows. One table, POINTER_STUBS, now chooses the title, the tool name, the link and the import line of each stub (#1845).
  • Agents and devops ai write in ASD-STE100 Simplified Technical English. AGENTS.md has one rule that asks for it. The system prompt of each free-text model call ends with a short request for it, from src/devops_cli/ai/tasks/style_ste100.md. The request tells the model to keep quotations, search queries, keyword lists and output formats as they are. Nothing checks the style. No existing string changes (#1866).
  • devops install-tools installs gh-dash 4.26.2, a terminal dashboard for GitHub pull requests and issues. tools.lock holds a SHA-256 for each of its four platforms. The file .gh-dash.yml sets four pull request tabs, three issue tabs, one notification tab and a refresh every 60 minutes. Each pull request tab lists the oldest pull request first. The keys w, T, D and d run devops pr monitor, checks, threads list and diff. tests/test_gh_dash_config.py checks the file against the published gh-dash schema (#1882).
  • devops install-tools installs tuicr 0.27.0, a terminal program where a person reviews the diff of an agent and adds typed comments. tools.lock holds a SHA-256 for each of its four platforms. The template .devops/tuicr.config.toml turns off the update check and defines the comment types issue, question and nit. The file .tuicrignore hides the generated documents from the person. The "Human Review Round" bullet in docs/SDLC.md Phase 6 tells the agent to read the comments as JSON and to reply by comment id. The agent never runs the tuicr commands that delete a session or call gh (#1884).

Changed

  • The LLM gateway serves qwen3-embedding:0.6b as its embedding model in place of bge-m3:latest. A person measured both on this repository on 2026-10-22. qwen3-embedding:0.6b ranked the right code chunk first for 74 of 100 queries, and bge-m3:latest did so for 53. The group runs on the same slow-tier deployment. The READMEs, the default gateway routes, the GPU matrix and the example configuration of the in-cluster jobs name the new model (#481).
  • To deploy the change, run devops k8s deploy-stack --stack llm, then run kubectl -n llm rollout restart deployment/llm-gateway, because the gateway reads its configuration at start. Then run devops k8s deploy-stack --stack devops. A devops-cli-config deployed earlier names bge-m3:latest until you do, and the gateway no longer serves that model (#481).
  • To use the new model, set ai.tasks.embedding in your own config.yaml. Run export DEVOPS_CLI_AI_TASK_EMBEDDING_TIMEOUT=120, then devops ai rag clear --force, devops ai rag index --force and devops ai rag index-kb. The index refuses a collection that another model indexed (#481).
  • GitHubClient is a typed client over the GitHub session. It reads pull requests, their files, a file at a commit, a merge base and the repositories of an organization. It returns the models PullRequest, CommitRef and PullRequestFile. The session applies its quota ledger, retry rules and error classes to each call. devops review pr, devops ai analyze pr and devops repos clone-org use it (#891).
  • A GitHub read that fails now ends the command with the GitHub error. Before, every failure looked like a missing file. get_merge_base returns nothing for a 404 only. get_file_at returns nothing for a 404. It also returns nothing for a directory, a link, a submodule, a file over 1 MB or bytes that are not UTF-8 (#891).
  • devops review pr --post now stops when it cannot read the files of the pull request. Before, it posted a comment that named no file (#891).
  • devops repos clone-org <login> for the signed-in account lists the repositories that the account owns. PyGithub also listed the repositories of collaborators and organizations (#891).
  • devops ssh register and devops ssh rotate register the authentication key and the signing key through the session. A 422 counts as registered when the key listing holds the key or cannot be read. The error for a token without the scope gives the gh auth refresh command that adds it. SSHRegistrationError is now a GitHubOperationError (#891).
  • devops gh labels sync and devops gh labels list use the gh client only (#891).
  • devops roadmap refine judges each item by the body its issue listing already carried, so an item nothing changed costs no body read and no model call until its text changes, where each one cost a request to GitHub in every round (#1539).
  • AGENTS.md asks for a written cost (tokens to implement, maintain and fix, and elapsed time) before internal code is built where an open tool covers the capability, and the feature request form requires naming the existing tool considered (#1833).
  • The devops ai agents command read its own second copy of the file table. The change deletes that copy. The command now reads DEFAULT_AGENT_FILES (#1845).
  • The style request changes the system prompt of each free-text model call. Every cached reply is cold after the upgrade. Older benchmark reports and review prompt digests do not compare with new ones (#1866).
  • devops ci and the pre-commit ruff-check hook now run ruff check --config pyproject.toml. No nested Ruff file can lift the complexity cap of 10. Three tests now check the resolved Ruff settings, the files that Ruff walks and every ruff check command. They replace the key allowlists and the table of 38 escape cases (#1870).
  • A scripts/ directory may now exist. test_no_stray_scripts_in_project_root no longer fails when it does. A .py or .sh file in the project root still fails. The AGENTS.md rule "Scratch Work Stays Untracked" lets a committed helper script live in scripts/ as a PEP 723 file. The rule no longer names the scratch path of one vendor's agent (#1872).
  • AGENTS.md says that a convention is never a reason to keep or write custom code. Replacing a check with a standard tool is not lowering a threshold when the tool enforces at least the same property (#1874).
  • The bullet "Never Lower Security Standards or Quality Thresholds" in AGENTS.md now holds the compliance bullet. The merge keeps one sentence of it: "Every change meets the project standards." (#1874).
  • AGENTS.md drops the Gated terminology rule, the headroom targets, the duplicate intake and naming bullets and the empty-queue sentence. The file is 1,104 characters shorter (#1874).
  • An agent files its own new candidate with devops roadmap intake --confirm. An agent asks a person to run devops roadmap return --confirm (#1874).
  • The secrets rule in AGENTS.md gives the OS keyring, HashiCorp Vault, a Kubernetes Secret and the credential store of the owning tool as examples of a secret store. The list is open (#1874).
  • devops ai agents writes the new never-lower, root-cause and roadmap return wording into other repositories. It no longer writes the compliance bullet or the empty-queue sentence (#1874).
  • The six review-only guards of AGENTS.md section 5 now live in .devops/review.md, which nearest_review_conventions reads. AGENTS.md keeps one pointer bullet and is 1,611 characters shorter. GitHub Copilot code review reads AGENTS.md and not .devops/review.md, so it no longer sees the guards (#1881).

Removed

  • The project no longer uses PyGithub. This change removes the dependency, its knowledge-base manual and every import. GitHubClient and SSH key registration now send each GitHub REST call through the GitHub session (#891).
  • This change removes the gh path of SSH key registration and the label methods of GitHubClient. It also removes GhCliClient.edit_issue and SSHKeyInfo. The project is pre-1.0 and keeps no shim (#891).
  • This change removes these GitHubClient methods, which no code called: get_user_ssh_keys, add_user_ssh_key, delete_user_ssh_key, create_pr_review_comment, get_issues, create_issue, edit_issue, get_pages_info and get_pages_builds. The module function get_pages_builds in github/pages.py stays (#891).
  • The durable-execution engine and the agent capabilities that no command used are deleted: devops_cli.ai.durable (the Temporal, DBOS and Prefect engine bridges with is_temporal_available, is_dbos_available, is_prefect_available and get_available_durable_engines, the local SQLite step store and resolve_durability_capability), and the media, step-persistence, managed-prompt, spend-guard and synthesis-protocol modules of devops_cli.ai.agents. The ai.durable settings (engine, store_path, task_queue, workflow_id_prefix) were never read and are removed; a config.yaml that still has the block loads unchanged, and the block is ignored. BudgetExceededError, sanitize_prompt_injection and format_prompt_data go with their only callers (#1121).
  • The Pydantic AI Harness port that no command used is deleted: the shell, filesystem, memory, planning, compaction, sub-agent, docs, repo-context and conversation-search modules of devops_cli.ai.harness, the coder, researcher, Macroscope and Playwright agents, and the capability clones in devops_cli.ai.agents.capabilities that copy what pydantic_ai.capabilities already ships. devops ai harness is unchanged, the Skills capability that nothing built goes with them, and HarnessExecutionError and MemoryOperationConflictError are gone with their only caller (#1836).
  • Tree-sitter alone parses a file's symbols: the regex parser that stood behind it (devops_cli.ai.ast.fallback), devops_cli.ai.ast_stream, devops_cli.ai.ast_cache, devops_cli.ai.rag.cache, CrossEncoderReranker and budget_diff_chunks are deleted, about 1,500 lines with the tests that only exercised them. Over the repository's own Python, Markdown and HCL files the regex parser decided none of the 1,971 files. Over about 59,000 third-party files it decided 65 (0.11%): 55 of 3,505 Rust files, 8 of 473 TypeScript files and 2 shell files, items inside Rust macro_invocation bodies, .d.ts function signatures and mocha it() calls, which now have no symbols. devops ai ast parse --json no longer prints a parse_engine key, and a symbol, here and in devops ai ast graph --json, no longer carries docstring, which only the regex parser ever filled and which was always empty after it (pre-1.0, no shim). A sample validation report no longer names a language read by the regex fallback, and drops the per-file parser and the parsers count, which repeated ast_language, with the Parsers column of devops review samples validate (#1839).
  • The dependency-manifest parsers (extract_dependencies_from_text and its pip, pyproject, package.json, Cargo and go.mod extractors), the Vault Transit helpers (transit_encrypt, transit_decrypt), CallableProvider, ProcessExecutionPipeline and the cli_command_handler decorator are deleted: nothing called them since the review began scanning lockfiles with osv-scanner (#1841).
  • The dead layer over pydantic-ai is deleted: the re-export modules for its exceptions, profiles, result, run, concurrency, template and direct APIs and the LangChain adapter, the hand-written provider classes and get_provider registry beside create_pydantic_ai_provider, LLMClient.direct_request, direct_stream and their sync forms, model_request and model_request_sync, the bridge's agent factories and workflow helpers with the token governor, the wrappers around single library calls in the tools, toolsets, settings, retries, format-prompt and output helpers, the pydantic-ai exception subclasses and aliases that no code raised or caught, and the pydantic-graph direct dependency, which pydantic-ai still installs. Code that needs one of them imports it from pydantic-ai (#1852).
  • This change deletes the web fetch tool and its renderer for untrusted pages. It also deletes the DuckDuckGo scraper, the wrappers for Exa, X search and image generation, and the prompt-injection guardrails. The dependencies markdownify, beautifulsoup4 and soupsieve go with them. Nothing called this code after the harness agents went away. devops_cli.ai.common_tools keeps tavily_search, which devops roadmap refine uses (#1854).
  • The 11 tests that asserted deleted names stay deleted are gone from tests/test_codebase_hygiene_and_shims.py. A refactor that deletes code no longer edits that file. Git history records what was deleted. A trial of vulture as a dead-code check left 720 findings on src after it ignored the framework decorators and callbacks. A check for functions and methods only left 26 findings, and two of them are live framework hooks. That check needs 12 decorator patterns and 7 name patterns first, so vulture is not adopted. The test that every private function in security/ has a caller stays (#1871).
  • The change deletes the GitHub tab and the AI Review tab of devops dashboard. The dashboard now has four domain tabs (Kubernetes, Docker, Telemetry and Valkey Cache) and the Logs tab. --tab 4 opens Valkey Cache. The GitHub tab never loaded, because its queries asked GitHub for a field that does not exist. It also polled GitHub every 60 seconds. Use gh-dash for the pull request queue, devops gh rate-limit for the quota and devops gh runs view <run> --log-failed for the log of a failed run. Use devops review findings --details to read the findings of a review session. No command replaces the session list of the AI Review tab. devops dashboard --summary still shows the AI Review Findings panel (#1883).

Fixed

  • Checkouts and worktrees nested inside an unrelated git repository (such as a dotfiles repository at $HOME or an outer workspace) resolve to their own repository's main worktree, rather than mistakenly resolving to the enclosing outer repository (Checkouts and Worktrees Below Another Repository Resolve to Their Own Repository #617).
  • devops ai gateway tune attaches one sweep container to the gateway pod for a whole run, where it used to attach another for every deployment once the first had exited. The container's sleep now covers the exec budget of every deployment in the run, where a fixed hour could end in the middle of a sweep, and a container that exits during the run stops the run with an error naming it instead of being replaced (#796).
  • A group-analysis reply that does not parse or fails a G10 check is no longer cached or served from the cache: the job makes one model call per group and records the reason, where an empty reply used to be sent up to five times and an unusable one was replayed for 7 days (#1013).
  • A reply that ends asking for a tool call is no longer cached, and each cache entry records the backend and model that answered, which a hit returns (#1013).
  • Semgrep no longer sends metrics, checks its version or downloads rules when a review or devops scan runs it. Every Semgrep scan that devops-cli starts now carries --metrics off and --disable-version-check. The rule pack of devops-cli always runs, with whatever config the scan names (#1144).
  • devops review rules fetch caches the registry ruleset p/default. It downloads the ruleset again only when its ETag changes. Reviews, devops scan sast, devops scan report and the agent tool read the cache offline. A missing cache is a coverage gap, and the gap names the fetch command. The file profile.json records the digest as semgrep_registry_digest (#1144).
  • A review lists the files that Semgrep did not scan. A file of the review that paths.scanned of Semgrep does not hold is such a file. The Coverage section of review.md shows it as not scanned(...). The Static Analyzers table shows a coverage gap and the count of such files (#1144).
  • A webhook whose signature header carries non-ASCII text is refused with 401 instead of failing the request (#1386).
  • An item whose refined body would pass the 65,536-character limit is recorded after its first try, and an item whose model reply never fits the schema or is refused is recorded after its second try on the same body, so neither takes a place and spends model calls in every round until a person edits it. A timeout or a dropped stream records nothing (#1526, #1539).
  • The check for a second sgconfig.yml and the check of the covered source files in tests/test_architectural_invariants.py count only the files that git tracks. A nested worktree under .claude/worktrees/, or scratch under .data/, no longer fails devops ci or the commit hook. A project that is not a git repository fails the check and does not pass on an empty listing (#1787).
  • The release job stops, naming both commits, when the tag for the version it would publish already exists on another commit, so a push to main that still names the last release's version can no longer republish that release's assets or rebuild its images (#1805).
  • A test no longer fails with None because an earlier test in the same pytest worker ran a nested pytest session that loaded pytest-randomly: the session's numpy import was undone while its C extension stayed loaded, and the next import of numpy in that worker raised "cannot load module more than once per process" (#1807).
  • Tempo starts again on chart 3.1.0 (Tempo 3.1.0): the values no longer replace the chart's config with a Tempo 2 copy whose compactor and ingester blocks Tempo 3 rejects, so the chart's own config is used (#1813).
  • The eBPF profiler pod on the node that runs the most pods is no longer OOMKilled every few minutes: the alloy-profiles memory limit is 1024Mi, up from 512Mi (#1815).
  • Opening the spend ledger from several threads at once no longer fails with "database is locked": the switch to WAL, which SQLite refuses to wait for, is made once and one thread at a time, so parallel first AI calls record their spend (#1820).
  • Two tests no longer assert elapsed wall-clock time, so a busy machine no longer fails the gate on them. The knowledge base metadata test dropped its limit of one second, because the hermetic floor already proves that the test is offline. The dashboard test for quitting while a log stream is silent now asserts that the application shut down before the stream was released, and it fails if quitting waits for the stream thread (#1825).
  • devops ai ast parse --query runs the tree-sitter S-expression it is given: the query (call function: (identifier) @callee) prints the callee, with the capture's name as kind, where it printed the enclosing function. A query tree-sitter cannot compile, ((( for one, exits 1 with Invalid tree-sitter query where it exited 0 and printed every symbol of the file (#1839).
  • devops roadmap refine --dry-run makes no GitHub requests and no model calls, returning the planned requests with placeholders and leaving the store unread (#1867).
  • The test that a timeout stops a whole process group no longer fails on a busy machine. It now starts its timeout after the child and its grandchild exist, and it stops waiting on the start of two Python interpreters within 0.6 seconds (#1888).
  • The published devcontainer image ghcr.io/dan-petty/devops-cli/devcontainer holds its Dev Container Features and the user vscode again. So a repository that names only the image with "remoteUser": "vscode" opens. Since v0.2.35 the release built the Dockerfile alone, and the Dev Containers CLI stopped with unable to find user vscode. Now the Dev Containers CLI 0.89.0 from tools.lock builds .devcontainer/devcontainer.json for linux/amd64 and linux/arm64 and pushes the image by digest. A second job starts that digest as vscode without write permissions. Only then does the release attest and tag the digest. The pull request check runs the same two actions against a registry on the runner and publishes nothing. devops install-tools and post-create install the CLI as devcontainer (#1895).
  • The tests that a second Ctrl-C, SIGTERM or SIGHUP cannot skip the SIGKILL of devops ci test no longer fail on a busy machine. The fake program now records SIGINT and SIGTERM before it writes its pids. Before, the program lost a signal that came right after it wrote its pids, and the test failed with interrupted false (#1913).
  • .gh-dash.yml refreshes gh-dash every 60 minutes and starts it with the preview closed. The computed cost is now 7 GraphQL points at start and 5 points an hour. With a refresh every 15 minutes and the preview open, it was 9 points at start and about 28 points an hour. The token has a budget of 5,000 points an hour, and AI agents use the same token. The p key opens the preview. docs/DEVCONTAINER_USAGE.md states the costs, the source of each number and how to count the requests from debug.log, and tests/test_gh_dash_config.py pins the two values (#1918).
  • devops ssh list shows only the managed keys of the project prefix. Before, it showed the keys of all projects when the prefix matched no key. The new option --all shows the keys of all projects (#1920).
  • devops ssh register, rotate and status use only a key of the project prefix. When no such key exists, they say so and point to devops ssh generate. Before, they used the newest key of another project. register uploaded that key to GitHub, and rotate rotated it (#1920).
  • A hyphen and an underscore in a key prefix are now the same character. The prefix devops-cli matches the key devops_cli-id_ed25519-20260831 in every devops ssh command and in devops devcontainer post-start (#1920).
  • devops ssh register names a key on GitHub with the file name of the key when the key has a prefix. Before, it added the project prefix a second time when the two prefixes spelled the separator in different ways (#1920).
  • The DevContainer image smoke test runs each platform by the digest of its own manifest in the image index. Before, it ran linux/amd64 and linux/arm64 by the one index digest, and the classic image store of the runner stopped the second platform with cannot overwrite digest. The check of the release pull request failed, and the devcontainer-smoke job of release.yml would have stopped the attestation and the tags of the image (#1949).

Security

  • The OpenTelemetry packages move to 1.45.1 (contrib 0.66b1), which clears GHSA-xcq7-p3pf-p88h (unbounded tracestate parsing in opentelemetry-api), and logfire moves to 5.2.0, the first release that accepts them. gitpython moves to 3.2.1, which clears GHSA-83vg-56qc-22m7 (a submodule's .git path checked only after the clone). Both advisories were published on 2026-10-22 and failed the audit row of every devops ci (#1899).

…s entry to CHANGELOG [0.2.38] (#1804)

The v0.2.38 release pull request merged into main before the cut pull request, whose commit then applied the version, changelog and roadmap changes but deleted no fragment, and it was built before #1800's fragment existed. The 34 fragments under changelog.d/ would be collected again by the v0.2.39 cut, so they are deleted, and #1800's Security entry joins the [0.2.38] section.

Closes #1802
…o their own repository (#617) (#1806)

Differentiate repositories nested by design from accidental nesting under an unrelated repository.
A checkout or worktree sitting below another directory holding .git or pyproject.toml resolves to
its own repository's main worktree, while submodules, repos/ clones, and workspace worktrees continue
to resolve to the enclosing workspace.

Closes #617
…#1809)

The tag step printed 'Tag already exists' and went on, so a push to main whose pyproject still named v0.2.37 republished that release's assets from the v0.2.38 code. The step now keeps a tag on the published commit and fails, naming both commits, when the tag is on another one. A test runs the step's script against a throwaway repository for the three cases.

Closes #1805
…and delivers each event only to the consumers subscribed to it (#1827)

Fixes #1386
…mes in every hand-written and prompt document (#1828)

Part of #1103
…eset and downloads it again only when the registry says it changed (#1838)

Part of #1144
…nsit helpers and orphan core modules nothing calls (#1850)

Fixes #1841
…the unreferenced AST, cache and reranker helpers (#1853)

Fixes #1839
…ease-please (#1903)

ADR 0012 decides that release-please derives each release from trunk. Item pull requests target `main`. The pull request title is the changelog entry. Merging the release pull request publishes. A milestone is a planning bucket and not a version.

ADR 0011 gets one new first line that names ADR 0012. ADR 0001 gets a dated note that points to ADR 0012. We counted the figures in ADR 0012 again at the current tip of the release branch. The ADR marks the figures of earlier tool runs as not repeated.

Each premise of the rehearsal names a fallback or a stop rule. The tag ruleset moves after the release workflow, so it never blocks the old path. The ADR states the window with no release and the cost rule for each build.

The task file and the changelog fragment of the issue describe ADR 0012.

Fixes #1751
….md (#1905)

Six bullets in section 5 of AGENTS.md tell a review what not to flag. An agent that writes code cannot use them. They now live in .devops/review.md, which nearest_review_conventions loads. AGENTS.md keeps one pointer bullet and is 1,611 characters shorter. A snapshot test pins the full text that the real loader returns. A second test checks that AGENTS.md holds none of the guards and names the file once. GitHub Copilot code review reads AGENTS.md and not .devops/review.md, so it no longer sees the guards.

Fixes #1881
…review round rules (#1906)

A person who reviews the diff of an agent has no review interface. The comments reach the agent as pasted text, with no line numbers and no comment ids.

Pin tuicr 0.27.0 in tools.lock with a SHA-256 for each of four platforms. The Linux builds are the static musl archives. The lock header says that the asset digest is the only source of the hashes.

Add .devops/tuicr.config.toml, which turns off the update check and defines the comment types issue, question and nit. Add .tuicrignore, which hides only the generated documents. Add three tests for these files and require tuicr in the lock test.

Add a Human Review Round bullet to SDLC Phase 6. The agent reads the comments as JSON, replies by comment id, and never runs the commands that delete a session or skip the pin. Update the tuicr usage in DEVCONTAINER_USAGE, VISION item 15 and the tasks rule of openspec/config.yaml.

Fixes #1884
…ew findings covers (#1908)

The panel showed the findings of one review session in a table, with a detail pane and a session picker. It was read-only, and it was a second viewer for data that devops review findings --details shows. The owner decided on 2026-10-22 to delete it.

This change deletes ReviewPanel, its seven projections, the ai dashboard domain and its constants. It also deletes the provider code that only the panel read, the tests of the panel and the help text of the i key. The refresh_domain and refresh_all functions lose their fetchers argument, because only the deleted _fetchers_for passed it. The dashboard now has four domain tabs and the Logs tab, and --tab 4 is valkey.

devops dashboard --summary still shows the AI Review Findings panel, so fetch_review_status and ReviewSummary stay. No devops review command replaces the session list of the panel. The task file of #1883 now covers both parts. This change adds the changelog fragment, because it closes the issue.

Fixes #1883
…and ai.cache.backend (#1909)

Only tests built the tiered cache and the Valkey cache provider. No code in src imported them. Nothing read the ai.cache.backend setting.

Delete the devops_cli.cache package, the devops_cli.ai.cache package and their tests. Remove the ai.cache.backend option, its environment variable and its AICacheConfig field. The config loader ignores a saved ai.cache.backend key. There is no shim.

Delete ValkeyClient.delete, ValkeyClient.scan_iter and each constant that only the deleted code read. Keep CONST_CACHE_NAMESPACE_ROOT, because the run store reads it. Remove the cache/tiered.py swallowed-failure ceiling. Regenerate the environment variable and configuration docs.

Edit the Valkey knowledge-base page. Remove the review-findings claim, rename the example class and use the real embedding key pattern. Add a note to the task files of #154, #312 and #1741, which describe the deleted code as present.

Part of #1113
A review and devops scan sast passed --config p/default, so Semgrep downloaded the ruleset on every run. The cache that devops review rules fetch writes had no reader.

A review, devops scan sast, devops scan report and the agent tool now read the cached ruleset offline. A review writes the bytes it hashed into its working directory. The other three scans run from the cache directory and name the file ./p-default.yaml. So Semgrep returns plain rule ids in all four. The review records the sha256 of the bytes in profile.json as semgrep_registry_digest, and devops review score lists it.

A missing cache, or a file that is no longer a ruleset, leaves the review on the rule pack alone. The review then reports a coverage_gap that names devops review rules fetch. devops scan sast exits 1 in that case. A cache older than 24 hours works with a warning in all four consumers. The age comes from the modification time of the file. A fetch that finds the ruleset current sets it to now.

Part of #1144
…the session (#1912)

Cause: GitHubClient read pull requests, files, merge bases and organization repositories with PyGithub. PyGithub used its own HTTP stack. These calls bypassed the quota ledger, the retry policy and the error classes of the GitHub session. `get_file_at` and `get_merge_base` returned None for every failure, so a failed read looked like a missing file. The review, analyze and repos commands read PyGithub objects with `getattr`.

Change: GitHubClient now takes the session. It has the pydantic models `PullRequest`, `CommitRef` and `PullRequestFile`. It has the calls `get_pull`, `get_pull_files`, `get_file_at`, `get_merge_base`, `get_org_repos` and `create_issue_comment`. `get_file_at` returns None for a 404, a directory, a link, a file over 1 MB and bytes that are not UTF-8. `get_merge_base` returns None for a 404 only. Every other failure raises the error class of the session.

Change for a deleted fork: GitHub reports the head repository of a pull request with a deleted fork as null. The model keeps no repository then. The callers read the base repository.

Change for the commands: The review runner, `devops review pr`, `devops ai analyze pr` and `devops repos clone-org` use the new calls. They report a GitHub failure as their error, without a traceback. `devops review pr` reports a failed read of a base file in the same way. This holds for a file of a symbol delta and for `.devops/review.toml`. `devops review pr --post` posts no comment when it cannot read the files of the pull request.

Change that stays open: Two steps of the static stage still read a failed base file as absent. They are the fingerprints of base findings and the complexity deltas. The handlers of their stages catch every error. A change of these handlers must come first.

Change for the dependencies: `devops gh labels sync` uses `GhCliClient`. The label methods of `GitHubClient` and `_get_github_client` are gone. No module imports PyGithub now. The `deptry` check rejects the unused dependency, so this change removes it from `pyproject.toml` and `uv.lock`. The `SSHRegistrationError` base and the PyGithub documents stay for the last part of the issue.

Existing tool considered: gidgethub is the transport (ADR 0006), and the change keeps it. The facade uses pydantic models with `AliasPath`, `base64` and `urllib.parse`. ADR 0006 rejected a generated SDK such as githubkit. The change builds no new transport, parser or retry code.

Tests: The tests of `GitHubClient`, the review runner, `devops review pr`, `devops ai analyze pr`, `devops repos clone-org` and `devops gh labels sync` run on the `github_api` fake. They use recorded answers for pull request 158 of `octocat/Hello-World` under `tests/fixtures/github`. The recorded answers include a second page of files and a null head repository. The test of each client call asserts that its requests carry the token of the session. The new tests of the commands run through the `cli` fixture. They assert exit code 1, the GitHub message and no traceback, and they add no patch of a devops-cli name.

Mutation proofs for the client: A `get_file_at` or `get_merge_base` that swallows every GitHub error fails the 500, 401 and 502 tests. A `get_pull_files` that reads one page fails three tests. An organization fallback for any name fails two tests. An unencoded organization name or repository name fails its test.

Mutation proofs for the commands: A dry run that posts fails the dry-run test. A missing base fallback for a deleted fork fails the review test. A swallowed read of the files fails the test of the post command. A filter that keeps removed files fails the post test. A merge base read under the name from the command line fails the base repository test.

Mutation proofs for the errors: A missing `exit_on_error` fails the new test of `devops review pr`, `devops ai analyze pr` or `devops repos clone-org`. A swallowed read of `.devops/review.toml` fails the review test.

Fail-to-pass: not applicable: this change is a refactor, not a defect fix.

Part of #891
…s fake (#1914)

A review tool had no single way to start. Scanners ran as plain subprocesses with the network and the environment of the parent. Tests could not inject them.

Add ToolExecutor, the seam for a review tool. SandboxToolExecutor builds one command from HostSandbox, prlimit and run_subprocess. HostSandbox gives no network, a cleared environment, a read-only tree and read-only inputs. prlimit sets the CPU limit and the address space limit. run_subprocess sets the wall-clock limit. The command sets no limit on processes.

Each run returns a ToolRun. It holds the tool, its version, the binary digest, the config digest, the ruleset digest, the argument template, the targets digest and the commit. The digests cover content, not paths, and the executor refuses a file that is no regular file or is too large. The commit ends with -dirty when a target differs from it. A checkout that git cannot read stops the run.

ToolExecutorFake and a contract suite hold the fake and the real executor to the same answers. HostSandbox.build_bwrap_args takes read-only binds. The canary identity helpers and nearest_checkout are public. The scanners do not use the executor yet. A later part of the issue moves them onto it.

Part of #772
…bs (#1915)

Gemini CLI loads GEMINI.md by default. It reads AGENTS.md only through its context.fileName setting. A session in a fresh clone did not see the rules of AGENTS.md.

The generator now writes a GEMINI.md pointer stub with an @./AGENTS.md import line, the form that the Gemini CLI documentation shows. One table, POINTER_STUBS, chooses the title, the tool name, the link and the import line of each stub. It replaces two string tests on the file name.

The devops ai agents command held a second copy of the file table. The command now reads DEFAULT_AGENT_FILES, and the change deletes the copy.

Fixes #1845
…pids (#1922)

Cause: `hung_script` wrote the pid file and only then ran `after_start`. For
`records_stop_signals`, `after_start` set the traps that record `int` and `term`. A test
signals the child as soon as it reads the pids. The child lost a signal that came between
the pid write and the traps. The test then failed with `interrupted` false. The production
code has no defect.

Change: `hung_script` has a new part, `after_spawn`. It runs after the grandchild starts and
before the child writes the pids. `records_stop_signals` sets its traps there. The traps
cannot go before the start of the grandchild, because the grandchild would then not ignore
SIGTERM. The other users of `hung_script` set their traps in `before` or `on_interrupt`, or
send no signal. They have no gap.

Existing tool considered: the fix needs no tool. The new test reads the mask of caught
signals from `/proc/<pid>/status`, as the module already reads `/proc/<pid>/stat`. `psutil`
is not a dependency, and it has no call for that mask. I estimate that the two test helpers
cost about 30,000 tokens and 45 minutes.

Tests: `tests/test_support_hung_children.py` makes the pid file a named pipe, so the child
waits at the write of its pids. The test checks that the child already catches SIGINT and
SIGTERM. It failed on the old order and passes on the new order. It opens the pipe without
a block, so a child that exits early fails the test with a message. With the gap widened by
`sleep 0.5`, the four stop-signal tests failed 4 of 4 before the fix and pass 4 of 4 after
it. When the stop code does not send the SIGKILL, all four stop-signal tests fail with
`(True, True, False, False)`.

Fail-to-pass: not applicable: the production code is correct and untouched, and the tests
that use the fake pass on the base on a quiet host.

Fixes #1913
… password (#1923)

The panel read info["server"], info["memory"] and the other nested keys. ValkeyClient.info() returns one flat mapping. The panel therefore showed the version unknown and an uptime of 0. The panel also passed the plaintext valkey.password setting, so a password in the keyring never reached the server.

The panel reads each field from the flat mapping and passes the password that get_valkey_password resolves. The tests read INFO through a real ValkeyClient and a loopback listener. The listener moves to tests/support/fakes/valkey.py as serving_valkey. Two cases show that the AUTH command carries the keyring password.

Part of #1113
…Error a GitHub error (#1924)

No module imports PyGithub since the pull request part of this item. Three leftovers stayed: its knowledge-base manual, its words in the documents and the RuntimeError base of SSHRegistrationError.

SSHRegistrationError is now a GitHubOperationError, and docs/ERRORS.md lists it. This commit deletes the PyGithub manual and its rows. python_packages.md now names gidgethub. AGENTS.md, docs/TESTING.md, ADR 0006, a constants comment and two task files no longer name PyGithub as a tool in use. The task file reads complete. changelog.d/891.md lists the removal and the typed client.

Fixes #891
…ase cut (#1925)

The owner decided that the pull request which closes a change archives it. The gate does not rehearse `openspec archive`. The release cut no longer archives. So the archive function, the rehearsal in the gate, the error type and the git command builder have no caller.

Delete `archive.py`, the rehearsal check, `OpenSpecArchiveError`, `build_git_additions_log_cmd`, two constants and two messages. Delete the tests of the merge order and the full-history checkout of the static job. Move `active_changes` to `tool.py`. Trim the recorded runs by whole runs. Rewrite the help text, the docstrings, `openspec/config.yaml`, ADR 0010, the SDLC and release documents and the task text that named the cut.

The overlap check stays. It is not cut-time code: it reads `openspec show --json --deltas-only` for each active change, archives nothing and reads no git history. OpenSpec 1.14.3 archives a second `MODIFIED` of one requirement with exit 0 and no signal, and git conflicts only when both closing pull requests edit the same line. Correct the two passages of ADR 0012 that called the check cut-time code, and record the evidence in the task file.

Readiness for the archived folder is the last part of the issue, after #1847.

Part of #1846
…its cost (#1926)

The shipped config refreshed every section every 15 minutes and opened the preview. The source of gh-dash 4.26.2 shows a computed cost of 9 GraphQL points at start and about 28 points an hour. The token has a budget of 5,000 points an hour, and AI agents use the same token.

Set refetchIntervalMinutes to 60 and preview.open to false. The computed cost is now 7 points at start and 5 points an hour. A test pins both values. The docs say where each number comes from. The source gives the request counts. GitHub dry runs give the points of one request.

A person counted the log lines of one start with the first config on 2026-10-22. The file debug.log held 5 lines "Fetching PRs", 0 lines "Fetching PR ", 0 lines "Fetching issues" and 1 line "Fetching latest version". The source gave 4 section fetches and 1 fetch of the selected row. The cause of the fifth section fetch is not confirmed. The quota counters were not usable, because the rate-limit window rolled between the two reads. So the first measurement of +124 points cannot be assigned to gh-dash. The docs say to count the lines of debug.log.

Fixes #1918
… projects (#1927)

Cause: `devops ssh list` found no key for the prefix `devops-cli`, because the key of the project uses an underscore. It then listed the keys of all projects. `find_newest_key` also used the newest key of any project when no key of the prefix existed. So `register` could upload a key of another project, and `rotate` could rotate it. `register` also compared the prefix a second time to build the key title, and that comparison did not treat a hyphen and an underscore as the same character.

Change: `list_managed_keys` is the one place that selects keys by prefix, and it treats a hyphen and an underscore as the same character. `find_newest_key` has no retry and no `fallback_to_any` parameter. `register` takes the key title from the key file when the key has a prefix. `list` has no fallback and has the new option `--all`. When no key of the prefix exists, `register`, `rotate` and `status` say so and point to `devops ssh generate`. The post-start lifecycle of the devcontainer keeps its order of keys. The tests of `register` and `rotate` use their own global git config.

Fixes #1920
… report (#1930)

A review names files to Semgrep. It could not see which of them Semgrep left out. A scan that found nothing looked clean for every file.

`ScanOutcome` now holds `unscanned`, a map from the path of a file to the reason. `merge_outcomes` keeps the files of every batch. Semgrep lists the files that it scanned in `paths.scanned`. A file that the review named and that the list does not hold is unscanned. The outcome is then a coverage gap.

The coverage matrix shows that file as not scanned, with the reason. The other files of the scan stay scanned. The Static Analyzers table shows the count. The executive summary and the console summary name an analyzer with a coverage gap.

Batches by suffix and a time budget are not built. Offline, one run of 300 files took 81 to 93 s. The scanner timeout is 300 s.

Fixes #1144
…1931)

A person compared the two embedding models on this repository on 2026-10-22. qwen3-embedding:0.6b ranked the right code chunk first for 74 of 100 queries. bge-m3:latest did so for 53 of 100 queries.

The gateway group bge-m3:latest becomes qwen3-embedding:0.6b on the same slow-tier deployment. Both READMEs, the default gateway routes, the GPU matrix and the example configuration of the in-cluster jobs name the new model. The knowledge base gives the 1024 dimensions that the benchmark measured, in place of 768.

A new test compares the example configuration of the jobs, the default routes and the GPU matrix with the embedding groups of the gateway. The task file records the measurement and the steps that need a person. One step deploys the ConfigMap of the in-cluster jobs after the gateway restart. Another step sets the embedding timeout for the re-index.

Follow-up issue #1928 holds the numpy ranking of the embedding benchmark. Follow-up issue #1929 holds the restart of the gateway by deploy-stack.

Fixes #481
…rop the read denies (#1939)

The person wants agents to do project and cluster work without a prompt for the `devops`, `openspec` and `tuicr` commands. The person also wants agents to read all files of the project folder and the kubeconfig. On 2026-10-22 the person chose the entries below.

The allow list of `.claude/settings.json` becomes `Bash(uv run devops *)`, `Bash(openspec *)` and `Bash(tuicr *)`. The deny list goes. The three `Read` denies go with it, and so does `tests/test_claude_code_settings.py`, which pinned them.

So the settings now block nothing. An agent can read `~/.kube/**`, `~/.claude/settings.json` and `.claude/settings.local.json` with the Read tool. It can run every `openspec` and `tuicr` command, including `openspec archive`, `openspec init` and the interface of `tuicr`.

The task files of #1844, #1846, #1882 and #1884 and ADR 0010 now say what the settings allow and what they do not enforce. The task file of #1154 says that the deny rules and their test are gone.

Part of #1844
…tool executor (#1941)

The scanners started their tools as plain child processes. A test could not give a scanner another way to start its tool.

Give BaseSecurityScanner a tool_executor. Give each run_*_scan function of Bandit, Gitleaks, Semgrep, Trivy, kube-linter, Pluto, osv-scanner and Ruff the same argument. ReviewPipelineOrchestrator takes one executor and gives it to each analyzer, to the evidence scan of Ruff and to the scan of the base revision. A scanner that gets no executor starts DirectToolExecutor. That executor starts the tool as a child process, as before, and it builds the ToolRun record.

A scan must end as it ended before. So DirectToolExecutor records no commit for a checkout that git cannot read. A request names the nearest directory that exists as its tree when a target names no path, such as an image name. A request names absolute targets, and the request of osv-scanner names all its lockfiles.

A ToolRequest now has a cwd, because a review scan starts in a scratch directory outside the tree. Both executors give the tool an empty standard input. The sandbox executor passed the standard input of the caller before.

Mypy, the canary runner, the Path.cwd() probes and the scanner fake follow in a later part.

Part of #772
…#1942)

The check for a second `sgconfig.yml` read the working tree with `rglob`. A nested worktree under `.claude/worktrees/` and scratch under `.data/` failed it, but CI passed.

The check now asks `git ls-files` for the tracked files. It reports a tracked second `sgconfig.yml` at any depth and names it. The scan of the covered source files under `src` uses the same listing. A project that is not a git repository fails the check with the message of git.

The new tests run in a temporary git repository. A fixture removes the repository variables that a commit hook sets, so a test cannot write into the index of the commit. One test guards that fixture.

Fixes #1787
…ates the specs (#1943)

ADR 0012 requires a wrapper for the archive of a change. A direct `openspec archive` runs without the isolated configuration and the opt-outs. It can also leave a spec that `openspec validate` rejects, such as a placeholder Purpose.

`devops openspec archive <change>` runs `openspec archive <change> --yes` and then `openspec validate --all --strict`. Both runs use the isolated configuration with the four opt-outs. The command passes no `--skip-specs`. It exits 1 when a run fails. A failed archive skips the validation. The option `--dry-run` prints both commands and starts no process.

A failed run prints its whole output. The validation lists each passing spec before the failure, so a cut of the output would hide the spec that failed. A failed validation also says that the archive is applied, so the author does not run the archive again.

The apply guidance of `openspec/config.yaml` and the passages of ADR 0010 that told an agent to run the direct tool now name the wrapper. The wrapper is a convention, because the settings allow the direct tool. The generated skills still name the direct tool. `devops openspec regenerate` owns them.

The fake of OpenSpec replays three new scenarios that the real tool 1.14.3 recorded. In the first, the archive passes. In the second, the tool refuses the archive. In the third, the archive leaves a placeholder Purpose. The tests in `tests/test_openspec_command.py` show the order, the opt-outs, both failures, the output of a failure in a tree of many specs, and the dry run.

Fixes #1844
…rt (#1944)

Each executor built a ToolRun, and nothing read it. A review could not say which version, config or rules a tool ran with, or whether the run was confined. A request named no config file and no ruleset file, so the two digests of a record covered nothing.

ReviewPipelineOrchestrator now wraps its executor in a RecordingToolExecutor. The recorder keeps the record of every run, also of the evidence scan of Ruff and of the scan of the base revision. ReviewProfile.tool_runs holds one row for each run. review.md has a Tool Runs table with one row for each distinct record and the number of its runs.

ToolRun has a new field, executor. It says whether the run was direct or in the sandbox. The argument template holds a placeholder where the command names a target, a config file or a ruleset file. So the same scan records the same template, and the template holds no path of the host.

A request names the files that its tool reads. A review hands most tools their own config file, and the request names it. Ruff and osv-scanner find a config file of their own in the tree, and their scanners declare the names. Semgrep names the rule pack and its ruleset file. Trivy names the metadata file of its checks bundle or of its vulnerability database. A survey of the eight real tools under strace gave this list. Trivy finds its cache directory with platformdirs, which is a new direct dependency.

The direct executor records the digest unavailable for a file that it cannot read, so a record never fails a scan. SECURITY.md states the limits of each executor. While the direct executor runs, Ruff also applies a config file above the tree and its user config file, and the record does not name them. The default executor stays DirectToolExecutor.

Part of #772
…nifest digest (#1950)

* chore(release): cut v0.2.39: version 0.2.39, the changelog fragments collected and the roadmap rendered

* fix(ci): the devcontainer smoke test runs each platform by its own manifest digest
@dan-petty
dan-petty merged commit f209f6c into main Oct 23, 2026
14 checks passed
@dan-petty
dan-petty deleted the release/v0.2.39 branch October 23, 2026 12:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant