Repository navigation
fix(nix): make the machine modules' agent CLI opt-in - #2078
Merged
Merged
Conversation
gerchowl
enabled auto-merge
November 17, 2026 16:22
1 task done
gerchowl
added a commit
that referenced
this pull request
Nov 17, 2026
…2080) ## Description GHSA-wvrr-2x4r-394v ([email protected] npm false positive) expired on 2026-11-11. Since then `check-expirations` fails the **Dependency Review** job on every PR, including #2078 and the upcoming 1.19.1 train. Following the register's "re-verify, don't bump" rule (docs/CONTAINER_SECURITY.md), I deleted the entry rather than renewing it: bats-file now comes from nixpkgs via `nix/bats.nix`, and no npm manifest in the repo (`package.json`, `package-lock.json`, the node fixture) references it, so dependency-review can no longer report it. ## Type of Change - [x] `fix` -- Bug fix ## Changes Made - `.github/dependency-review-allow.txt`: entry removed and a removal note left in its place; the stale header sentence about its date is gone. The register is now empty, and `check-expirations` validates 0 entries. - `SECURITY.md`: no standing dependency-review exceptions. - CHANGELOG: an entry under Security. ## Changelog Entry ### Security - **Drop the dead bats-file dependency-review exception** ([#2043](#2043)) - GHSA-wvrr-2x4r-394v expired on 2026-11-11 and failed every PR's Dependency Review; bats-file now comes from nixpkgs and no npm manifest references it, so the entry is removed rather than renewed ## Testing - `uv run check-expirations .github/dependency-review-allow.txt`: Validated 0 exception(s), exit 0. - `pytest tests/test_workflow_expiry_notice.py`: passed. Refs: #2043
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Devkit no longer installs or pins
claude-codethrough the machine-level modules unless the machine opts in. This is the follow-on to #1967, which made the same change for project dev shells. A machine's ownclaude(a native install, or a wrapper that picks a release channel and loads per-profile credentials) is no longer shadowed, and its native updater is no longer forced off.Type of Change
fix-- Bug fixModifiers
!) -- This change breaks backward compatibilityChanges Made
nix/home/packages.nix: newvigos.packages.agentCli.enable(default off).home.packagesgetsdevToolsalways andagentToolsonly on opt-in. The opt-in also setsDISABLE_AUTOUPDATER=1(mkDefault), because Nix then owns updates.nix/home/claude.nix: no longer setsDISABLE_AUTOUPDATERunconditionally.flake.nixnixosModules.default: newprograms.vigos-devtools.agentCli.enable(default off); the opt-in also setsDISABLE_AUTOUPDATER=1.tests/agent-cli-policy.nix: covers both directions for home (new and legacy option names) and NixOS, asserts devTools are still present, and checks the updater variable on both surfaces.tests/test_flake_checks.py: the full ci profile expects noDISABLE_AUTOUPDATER.templates/personal.Changelog Entry
Changed
claudefromvigos.packages.enableorprograms.vigos-devtools.enablemust install it themselves or opt back in withvigos.packages.agentCli.enable = true(home-manager) orprograms.vigos-devtools.agentCli.enable = true(NixOS).claude(native install, or a wrapper with its own release channel and credentials) is never shadowed by devkit's pin.DISABLE_AUTOUPDATER=1is set only with an opt-in, where Nix owns updates;vigos.claudealone no longer disables the native updater.Testing
nix eval --impure --json --expr 'import ./tests/agent-cli-policy.nix {}': failed before the fix (RED commit 1c0e5fe),{"agentCliPolicy":true}after.pytest tests/test_flake_checks.py -k "claude or wave or agent or home or module": 8 passed.Refs: #2076