Skip to content

fix(test): the fake child sets its signal traps before it writes its pids - #1922

Merged
dan-petty merged 1 commit into
release/v0.2.39from
fix/stop-signal-tests-wait-until-the-fake-records-signals
Oct 22, 2026
Merged

dan-petty merged 1 commit into
release/v0.2.39from
fix/stop-signal-tests-wait-until-the-fake-records-signals

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

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. The change touches no file in src/.

Existing tool considered: the fix needs no tool. It moves two trap commands in a shell script. 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 its Process class (version 7.2.2) has no call for that mask. I estimate that the two test helpers cost about 30,000 tokens and 45 minutes. They need no upkeep, because the kernel interface is stable.

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 of the traps with (False, True) 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 and does not hold it. 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. Under a stress pinned to one core, the new test passed 60 of 60 repeats. 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

…pids

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
@dan-petty
dan-petty merged commit 0fafb24 into release/v0.2.39 Oct 22, 2026
15 checks passed
@dan-petty
dan-petty deleted the fix/stop-signal-tests-wait-until-the-fake-records-signals branch October 22, 2026 21:16
dan-petty added a commit that referenced this pull request Oct 23, 2026
* chore(release): delete the v0.2.38 changelog fragments and add #1800'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

* fix(core): checkouts and worktrees below another repository resolve to 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

* fix(tests): a nested pytest run no longer leaves its worker unable to import numpy (#1808)

Fixes #1807

* fix(release): the release job stops when its tag is on another commit (#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

* feat(github): github tab in devops dashboard with pr queue, inspector, and failing log view (#685) (#1811)

* fix(review): a group-analysis reply that fails its checks is neither cached nor served (#1812)

Fixes #1013

* fix(k8s): tempo starts on the chart's own config (#1814)

Fixes #1813

* fix(k8s): the profiler pod on the busiest node gets 1024Mi (#1816)

Fixes #1815

* feat(k8s): the argo workflows controller runs in its own namespace under argo cd and deploy-stack (#1819)

Fixes #1535

* fix(ai): opening the spend ledger from several threads at once no longer fails with database is locked (#1821)

Fixes #1820

* fix(review): every Semgrep scan comes from one builder, with metrics off and the rule pack (#1823)

Part of #1144

* perf(roadmap): a settled item costs no body read or model call until its text changes (#1824)

Fixes #1539

* fix(ai): gateway tune attaches one sweep container per run that outlives the run (#1826)

Fixes #796

* feat(service): one webhook router verifies each provider its own way and delivers each event only to the consumers subscribed to it (#1827)

Fixes #1386

* refactor(docs): classify every Markdown file and check the command names in every hand-written and prompt document (#1828)

Part of #1103

* docs(k8s): the READMEs name only the embedding model the gateway serves (#1829)

Part of #481

* refactor(review): one resolver for where review sessions live (#1830)

Part of #771

* feat(sandbox): declare runner controls without an engine call and report engine security facts (#1831)

Part of #698

* docs(agents): building internal code instead of using an open tool needs a written cost (#1834)

Fixes #1833

* feat(benchmark): rank code chunks queried by path and symbols in the embedding benchmark (#1835)

Part of #481

* docs(adr): OpenSpec is adopted as the spec and change-proposal layer (#1837)

Fixes #1753

* feat(review): devops review rules fetch caches a Semgrep registry ruleset and downloads it again only when the registry says it changed (#1838)

Part of #1144

* refactor(review): stage a review session and publish it by one rename (#1840)

Part of #771

* docs(adr): releases come from trunk, towncrier, uv and semver tags instead of a bespoke cut (#1843)

Fixes #1751

* refactor(security): delete the dependency-manifest parsers, Vault transit helpers and orphan core modules nothing calls (#1850)

Fixes #1841

* refactor(github): SSH keys register through the session alone and GitHubClient drops its unused methods (#1851)

Part of #891

* refactor(ai): tree-sitter alone parses symbols, run queries and drop the unreferenced AST, cache and reranker helpers (#1853)

Fixes #1839

* refactor(ai): delete the unwired harness port and the capability clones nothing imports (#1855)

Fixes #1836

* refactor(valkey): valkey-py replaces the hand-written RESP client, connection pool and protocol parser (#1856)

Part of #1113

* feat(install-tools): install OpenSpec from a pinned npm lockfile with telemetry off (#1857)

Fixes #1842

* refactor(ai): delete the dead pydantic_ai facades, the legacy provider layer and the exception mirrors nothing uses (#1869)

Fixes #1852

* feat(openspec): gate OpenSpec change folders and committed skills in devops ci (#1868)

Part of #1844

* docs(agents): agents and devops ai write in ASD-STE100 Simplified Technical English (#1873)

Fixes #1866

* refactor(ai): delete the unwired durable engine, agent extras and the unread ai.durable settings (#1880)

Fixes #1121

* fix(roadmap): refine --dry-run makes no request and no model call (#1867) (#1875)

* test(layout): a scripts/ directory may exist and a scratch script in the project root still fails (#1887)

Fixes #1872

* docs(agents): a convention yields to an open tool and rules with no check are pruned (#1890)

Fixes #1874

* refactor(ui): delete the dashboard GitHub tab, whose queries ask for a field GitHub does not have (#1891)

Part of #1883

* fix(tests): two tests no longer assert elapsed wall-clock time (#1896)

The test test_offline_speed_under_one_second asserted that three calls finish within 1.0 s. The test test_quitting_does_not_wait_on_a_silent_log_stream asserted that a quit takes less than 5.0 s. Under load both bounds measured the wait for a CPU and not the code, and both failed in pre-push gates at 1.00 s, 1.03 s and 1.49 s, and at 5.6 s.

The first test loses its clock reads and its assertion on elapsed time, and it is renamed to test_floor_only_environment_matches_and_drifts_manuals_and_filtering_keeps_some. The hermetic floor already proves that it is offline. The second test now holds its silent stream for twice THREAD_HANDOFF_BOUND_SECONDS, records when the hold runs out, and asserts after the shutdown that the stream was not released. It still fails when LogPane.on_unmount joins the stream thread, as the task file shows. The task file lists 12 other assertions on elapsed time that this change leaves as they are.

Fixes #1825

* fix(test): the process-group timeout test starts its timeout after the child exists (#1897)

The test test_run_subprocess_async_timeout_kills_process_group gave a Python child 0.6 s to start, start a second Python process and write its pid file. On a busy host the timeout fired first, the pid file did not exist, and the test failed. Under a stress of six busy loops on one core, the old text failed in 15 of 15 runs.

The test now replaces the spawn with a wrapper that returns only once the child has written its pids. The timeout counts from when the run starts to wait for its child, so it fires after the child and its grandchild exist, and a timeout of 0.2 s is enough. The child and the grandchild come from hung_with_grandchild, and watching reads whether both exited. The test still fails when the stop kills only the leader. Under the same stress the new test passed 40 of 40 runs. The production code has no defect and is not changed.

Fixes #1888

* refactor(ai): delete the web fetch tool, the search wrappers and the guardrails that no code calls (#1893)

Fixes #1854

* test(hygiene): delete the eleven tombstone tests and keep the caller test after a vulture trial (#1894)

Fixes #1871

* feat(tools): pin gh-dash and ship .gh-dash.yml for the oldest-first PR queue and issue triage (#1889)

Fixes #1882

* fix(deps): opentelemetry 1.45.1 and gitpython 3.2.1 clear two advisories that fail every devops ci audit (#1900)

GHSA-xcq7-p3pf-p88h (opentelemetry-api <= 1.45.0) and GHSA-83vg-56qc-22m7 (gitpython <= 3.2.0) were published on 2026-10-22 and fail the audit row of every devops ci. logfire moves to 5.2.0, the first release that accepts opentelemetry-sdk 1.45; the OpenTelemetry contrib packages move to 0.66b1 with the core.

Fixes #1899

* refactor(ci): Ruff's own flags and resolved settings hold the complexity cap, and the configuration-escape tests are deleted (#1870) (#1892)

Fixes #1870

* fix(devcontainer): the published image applies the devcontainer features again, so remoteUser vscode exists (#1901)

* fix(devcontainer): the published image applies the devcontainer features again, so remoteUser vscode exists

Since v0.2.35 the release built .devcontainer/Dockerfile alone with docker/build-push-action, so the published image had no Dev Container Features and no user vscode, and a child repository with remoteUser vscode could not open. A shared action builds .devcontainer/devcontainer.json with the Dev Containers CLI 0.89.0 from tools.lock for linux/amd64 and linux/arm64, pushes it by digest and starts it as vscode before the release attests and tags it. The pull request job runs the same action against a registry on the runner and publishes nothing.

Fixes #1895

* fix(devcontainer): the release smoke-tests the image in a job without write scope, and the review findings are applied

The privileged smoke test moves to its own action and release job, which holds packages: read only; the attest and tag job runs after it. The actions write no GITHUB_PATH, pin setup-qemu v4.4.0 and metadata-action v6.2.0, smoke-test the Copilot CLI too, and free the builder's disk before the smoke test. cleanup-devcontainer.yml keeps untagged digests younger than a day. Tests compare whole step scripts; docs and the task file match the three jobs.

Part of #1895

* fix(ci): the release workflow restores no uv cache, so zizmor's cache-poisoning alerts close

release.yml publishes every artifact, so a restored cache that another run wrote could reach a release. The caching test requires enable-cache false there and keeps the uv cache in every other workflow.

Part of #1895

* docs(adr): ADR 0012 supersedes ADR 0011 and derives releases with release-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

* docs(agents): move the review guards from AGENTS.md to .devops/review.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

* feat(tools): pin tuicr and ship its config template, ignore file and 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

* refactor(ui): delete the dashboard AI Review panel, which devops review 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

* refactor(valkey): delete the tiered cache, the Valkey cache provider 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

* fix(review): Semgrep reads the cached registry ruleset offline (#1911)

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

* refactor(github): read pull requests, files and repositories through 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

* feat(review): add the tool executor seam, its sandbox executor and its 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

* feat(agents): generate a GEMINI.md pointer stub from one table of stubs (#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

* fix(test): the fake child sets its signal traps before it writes its 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

* fix(ui): the Valkey panel reads the flat INFO mapping and the keyring 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

* refactor(github): remove the PyGithub manual and make SSHRegistrationError 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

* refactor(openspec): delete the code that archived changes at the release 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

* fix(tools): refresh gh-dash hourly with the preview closed and state 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

* fix(ssh): match a key prefix in one place and never use keys of other 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

* fix(review): list the files that Semgrep did not scan in the coverage 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

* feat(k8s): serve qwen3-embedding:0.6b as the gateway embedding model (#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

* chore(settings): allow the devops, openspec and tuicr commands, and drop 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

* feat(review): start the scanners and the review pipeline through the 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

* fix(ci): count only the files git tracks in the second-sgconfig check (#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

* feat(openspec): add the command that archives a change and then validates 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

* feat(review): record each tool run in the review profile and the report (#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

* fix(ci): the devcontainer smoke test runs each platform by its own manifest 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
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