Repository navigation
chore: release 0.4.0 - #813
Merged
Merged
Conversation
The class-scoped install_workspace fixture was defined as an instance method, which pytest 9 flags with PytestRemovedIn10Warning and pytest 10 removes outright — a future pytest bump would then error at collection and take out the whole install-script integration suite. The fixture never referenced self, so convert it to a @staticmethod, preserving the class-scope (run install.sh once per class) behaviour. Refs: #691
The .githooks/{pre-commit,commit-msg,prepare-commit-msg} hooks hardcoded
#!/bin/bash. Like the host scripts fixed in #690, these run on the host and
fail on NixOS (no /bin/bash), so git cannot exec them and every commit aborts
with 'cannot exec: No such file or directory'. Switch to the portable
#!/usr/bin/env bash form.
Refs: #690
The session-scoped initialized_workspace fixture waited only 30s for the 'Workspace initialized successfully' banner after 'Syncing dependencies'. That window covers 'just sync' (uv sync --all-extras) downloading the test-project's heavy scientific extras (numpy, scipy, pandas, matplotlib, jupyter) with no warm uv cache, so a cold/slow network times out and the failure cascades to every dependent test as an ERROR at setup. Raise the completed-stage timeout to a generous default (300s) and make it overridable via INIT_DEPS_SYNC_TIMEOUT for fast-cache/CI tuning. Refs: #692
## Description Resolves the `PytestRemovedIn10Warning` emitted by the install-script integration suite. The class-scoped `install_workspace` fixture was defined as an instance method — a pattern pytest 9 deprecates and pytest 10 **removes**. Since the project pins `pytest==9.1.1`, a future Renovate/Dependabot bump to pytest 10 would error at collection and take out the entire `TestInstallScriptIntegration` suite. This converts the fixture to a `@staticmethod` (it never used `self`), keeping the class-scope "run `install.sh` once per class" behaviour. ## Type of Change - [x] `fix` -- Bug fix - [x] `test` -- Adding or updating tests ### Modifiers - [ ] Breaking change (`!`) ## Changes Made - `tests/test_install_script.py`: `TestInstallScriptIntegration.install_workspace` is now a `@staticmethod` fixture (dropped the unused `self`); `@pytest.fixture(scope="class")` and the body are otherwise unchanged. The 17 tests already consume it via the fixture parameter, so no test-method changes were needed. - `CHANGELOG.md` (+ manifest-synced `assets/workspace/.devcontainer/CHANGELOG.md`): added a `### Fixed` entry under `## Unreleased`. ## Changelog Entry ``` ### Fixed - **Install-script test suite no longer trips a pytest-10-removal deprecation (class-scoped fixture as instance method)** ([#691](#691)) - `TestInstallScriptIntegration.install_workspace` was a class-scoped fixture defined as an instance method, which pytest 9 flags with `PytestRemovedIn10Warning` and pytest 10 removes — a future `pytest` bump would then error at collection and take out the whole install-script suite. Converted it to a `@staticmethod` (it never used `self`), preserving the class-scope "run `install.sh` once per class" behaviour; verified with `-W error::pytest.PytestRemovedIn10Warning` ``` ## Testing - [x] Tests pass locally (`just test` — relevant subset) ### Manual Testing Details Verified RED → GREEN with the deprecation escalated to an error so the warning is enforced, not merely observed: ```bash TEST_CONTAINER_TAG=dev uv run pytest tests/test_install_script.py \ -W error::pytest.PytestRemovedIn10Warning -p no:cacheprovider ``` - **Before:** `1 error` — `pytest.PytestRemovedIn10Warning: Class-scoped fixture defined as instance method` at fixture setup. - **After:** `23 passed` — no `PytestRemovedIn10Warning`. ## Checklist - [x] My code follows the project's style guidelines - [x] I have performed a self-review of my code - [x] I have updated `CHANGELOG.md` in the `[Unreleased]` section (and pasted the entry above) - [x] My changes generate no new warnings or errors - [x] New and existing unit tests pass locally with my changes ## Additional Notes Committed from a NixOS host worktree. Three pre-commit hooks cannot execute on a bare NixOS host (the documented #683-class dynamic-linking limitation — they run in the Debian container / CI): `typos` and `ruff` (downloaded binaries) and `pymarkdown` (manylinux `libstdc++` C-extension). They were skipped for the local commit but independently validated and/or re-enforced by CI: - `ruff check` + `ruff format --check` on the changed file — **clean** via store-native `nix run nixpkgs#ruff`. - `typos` on the changed files — **clean** via store-native `nix run nixpkgs#typos`. - `pymarkdown` — deferred to CI (the change is a format-matching CHANGELOG entry). - All runnable hooks (incl. `validate-commit-msg`, `bandit`, `check agent identity`, `sync-manifest`) ran and passed; `--no-verify` was **not** used. Refs: #691
…fixture-sync-timeout
…git-hook shebangs) (#694) ## Summary Fixes the flaky `initialized_workspace` testinfra fixture that timed out during `uv sync`, cascading an `ERROR at setup` to every dependent test. Folds in a companion portability fix for the git hooks (same `#!/bin/bash`-on-NixOS class as #690), without which commits cannot run on a NixOS host. Sub-issue of the #625 Nix migration epic; targets the epic branch `feature/625-nix-claude-migration`. ## Changes ### `test(setup)` — init dep-sync timeout (Closes #692) - The fixture allowed only **30s** for the `Workspace initialized successfully` banner after `Syncing dependencies`. That window covers `just sync` (`uv sync --all-extras`) downloading the test-project's heavy scientific extras (`numpy`, `scipy`, `pandas`, `matplotlib`, `jupyter`) with **no warm uv cache**, so a cold/slow network times out mid-download. - Raise the completed-stage timeout to a generous **300s** default, overridable via `INIT_DEPS_SYNC_TIMEOUT` for fast-cache/CI tuning. ### `fix(setup)` — portable git-hook shebangs (Refs #690) - `.githooks/{pre-commit,commit-msg,prepare-commit-msg}` hardcoded `#!/bin/bash`. Like the host scripts fixed in #690, these run on the host and fail on NixOS (no `/bin/bash`): `fatal: cannot exec '.githooks/pre-commit': No such file or directory`. Switched to portable `#!/usr/bin/env bash`. ## Verification - Python syntax + `INIT_DEPS_SYNC_TIMEOUT` env override resolve correctly (verified via `uv run python`). - Longest added line = 80 chars (< the 88 `line-length`), so `ruff` is clean. - pre-commit ran green for every hook that can execute on the host (shellcheck, bandit, agent-identity, branch-name, commit-msg validation, sync-manifest). - `ruff`/`ruff-format`/`typos` cannot execute on this NixOS host (dynamically linked binaries — the very limitation #625 addresses) and were skipped locally via pre-commit `SKIP`; **CI enforces them on this PR**. No `--no-verify` used. ## Notes The durable fix (warming the uv cache in the Nix-built image so `uv sync` is offline-fast) belongs to the #634/#635 image track and is out of scope here. Closes #692
The direnv prerequisite promised the flake dev-shell loads automatically on cd but never documented installing direnv's shell hook, the step that behaviour depends on. Without the hook, direnv allow succeeds yet nothing activates on cd and the host silently falls back to system tooling (e.g. an old Node that breaks just test-renovate). Document the hook in the prerequisites table and as a fast-path note, with nix develop as the hook-free fallback. Refs: #633
Add bats wrapped with its helper libraries (bats-support, bats-assert, bats-file) to the devTools SSoT and export BATS_LIB_PATH in the dev-shell and the image so bats_load_library resolves the helpers from the Nix store. The npm (node_modules) and Debian (/usr/lib) resolution paths do not exist on the Nix toolchain, which broke the local BATS suite. Refs: #695
Switch every BATS consumer to the flake-provided bats: - test_helper.bash resolves the helper libraries via bats_load_library (BATS_LIB_PATH from the flake), dropping the node_modules and /usr/lib branches. - just test-bats invokes the flake bats instead of npx bats. - remove the now-unused bats* npm dependencies from package.json/lock. - setup-env skips the ad-hoc bats-action under flake provisioning (the flake provides bats); the action remains for non-flake callers. Refs: #695
## Description On the Nix toolchain the local BATS suite failed completely — 246 tests, 246 failures — every `.bats` file erroring in `setup()` with `Could not find library 'bats-support'`. `tests/bats/test_helper.bash` resolved the helper libraries (`bats-support`/`-assert`/`-file`) from `node_modules` (npm) or the now-removed Debian `/usr/lib` path; on the Nix dev-shell neither exists, `BATS_LIB_PATH` was unset, and `just test-bats` ran `npx bats`, which fetches only `bats-core` (not the helpers). This PR makes BATS come from the flake (the toolchain SSoT): `bats` wrapped with its helper libraries is added to `devTools`, and `BATS_LIB_PATH` is exported in the dev-shell and image so `bats_load_library` resolves the helpers from the Nix store. Consumers are switched to the flake `bats` and the unused `bats*` npm dependencies are removed. ## Type of Change - [ ] `feat` -- New feature - [ ] `fix` -- Bug fix - [ ] `docs` -- Documentation only - [ ] `chore` -- Maintenance task (deps, config, etc.) - [ ] `refactor` -- Code restructuring (no behavior change) - [ ] `test` -- Adding or updating tests - [ ] `ci` -- CI/CD pipeline changes - [x] `build` -- Build system or dependency changes - [ ] `revert` -- Reverts a previous commit - [ ] `style` -- Code style (formatting, whitespace) ### Modifiers - [ ] Breaking change (`!`) -- This change breaks backward compatibility ## Changes Made - **`flake.nix`** — add `batsWithLibs` (bats wrapped with `bats-support`, `bats-assert`, `bats-file`) to the `devTools` SSoT; export `BATS_LIB_PATH` in the dev-shell (`mkProjectShell`) and the image env. - **`tests/bats/test_helper.bash`** — resolve the helpers via `bats_load_library` (`BATS_LIB_PATH` from the flake); drop the `node_modules` and `/usr/lib` branches. - **`justfile`** — `test-bats` invokes the flake `bats` instead of `npx bats`. - **`package.json` / `package-lock.json`** — remove the now-unused `bats`, `bats-support`, `bats-assert`, `bats-file` dependencies (keeps `@devcontainers/cli`). - **`.github/actions/setup-env/action.yml`** — skip the ad-hoc `bats-action` and `BATS_LIB_PATH` export under `provision-via-flake` (the flake provides bats); the action remains for non-flake callers. Updated the related comments. - **`tests/test_flake_devshell.py`** — add parity tests asserting the flake provides `bats` and that `BATS_LIB_PATH` exposes the three helper libraries. - **`CHANGELOG.md`** (+ synced `.devcontainer` copy) — Fixed entry. ## Changelog Entry ### Fixed - **BATS suite no longer fails locally on the Nix toolchain (helper libraries unresolved)** ([#695](#695)) - `tests/bats/test_helper.bash` resolved the BATS helper libraries (`bats-support`/`-assert`/`-file`) from `node_modules` (npm) or the now-removed Debian `/usr/lib` path; on the Nix toolchain neither exists locally, so every `.bats` file errored in `setup()` (`Could not find library 'bats-support'`) and all 246 tests failed - Added `bats` wrapped with its helper libraries to the flake `devTools` SSoT and exported `BATS_LIB_PATH` in the dev-shell and image, so `bats_load_library` resolves the helpers from the Nix store; simplified `test_helper.bash` to that single path, switched `just test-bats` to the flake-provided `bats`, and removed the now-unused `bats*` npm dependencies. CI provisions BATS from the flake under `provision-via-flake` (the ad-hoc `bats-action` steps now run only for non-flake callers) ## Testing - [x] Tests pass locally (`just test`) - [x] Manual testing performed (describe below) ### Manual Testing Details - `nix develop --command just test-bats` with `node_modules` removed: **246/246 pass** via the flake `bats` (previously 246/246 failed). - `uv run pytest tests/test_flake_devshell.py`: **6 passed** (includes the new bats parity tests and `bats --version` running inside `nix develop`). - `shellcheck -x tests/bats/test_helper.bash`: clean. - `nixfmt flake.nix`: clean; `nix eval` of `devShells`, `packages.devcontainerImage`, and `checks` all evaluate. - `jq empty package.json package-lock.json` and `yamllint` on the action: clean. > Note: pre-commit's `ruff`/`typos` hooks cannot execute on the NixOS host > (manylinux binaries, no `nix-ld`), so those file hooks were not run locally; > `ruff check`/`ruff format --check` were verified via the Nix-native `ruff`. > CI re-runs the full pre-commit suite. ## Checklist - [x] My code follows the project's style guidelines - [x] I have performed a self-review of my code - [x] I have commented my code, particularly in hard-to-understand areas - [ ] I have updated the documentation accordingly (edit `docs/templates/`, then run `just docs`) - [x] I have updated `CHANGELOG.md` in the `[Unreleased]` section (and pasted the entry above) - [x] My changes generate no new warnings or errors - [x] I have added tests that prove my fix is effective or that my feature works - [x] New and existing unit tests pass locally with my changes - [ ] Any dependent changes have been merged and published ## Additional Notes Sub-issue of the Nix migration epic #625; PR targets the epic branch `feature/625-nix-claude-migration`. The remaining `npx bats` references in `docs/issues/` and `docs/pull-requests/` are archived issue/PR records and were intentionally left unchanged. Refs: #695
…lake Add ruff and typos to the flake devTools SSoT and convert the ruff, ruff-format, and typos pre-commit hooks to repo: local / language: system so they resolve their tool from the Nix dev-shell instead of upstream manylinux wheels, which a NixOS host cannot execute. Remove the now-duplicate ruff entry from imageTools (it inherits ruff from devTools). Re-sync the scaffolded assets/workspace/.pre-commit-config.yaml and the CHANGELOG copy. Refs: #697
The pymarkdown pre-commit hook runs from pre-commit's own manylinux-wheel Python env, whose dependency pyjson5 is a C extension linked against libstdc++.so.6. On a NixOS host that library is not on the loader path outside an FHS environment, so the hook failed with an ImportError and forced --no-verify. pymarkdown is not in nixpkgs, so the #697 "devTools + language:system" recipe does not apply. mkProjectShell now appends ${pkgs.stdenv.cc.cc.lib}/lib to LD_LIBRARY_PATH in the dev-shell (the same libstdc++ the Nix toolchain links, so no version clash), preserving any mkShell-injected value. Documented in docs/NIX.md. Refs: #698
The venv's ruff (a manylinux wheel) shadowed the flake ruff under `uv run` — which is how .githooks/pre-commit and the `just lint`/`format` recipes invoke it — so ruff stayed broken on NixOS even after it was added to devTools. Remove ruff from the uv dependency groups (pyproject.toml/uv.lock) and repoint the recipes to the flake ruff; the flake is now the single ruff source (its [tool.ruff] config is unchanged). Refs: #697
…' into bugfix/698-pymarkdown-nixos # Conflicts: # CHANGELOG.md # assets/workspace/.devcontainer/CHANGELOG.md
buildLayeredImage symlinks the toolchain into /bin but set no PATH in the image config. podman run injects a default PATH (so it worked), but docker-compose / devcontainer exec inherit config.Env verbatim, leaving the baked toolchain off PATH. After #697 made ruff/typos language:system hooks, an in-container git commit failed with Executable not found. Declare PATH explicitly and add an image test asserting the OCI config carries it. Refs: #697
…ooks #699 converted ruff/ruff-format/typos to repo-local language:system hooks and synced that into the scaffolded config. A downstream workspace commits inside the published image without the flake toolchain on PATH, so those hooks fail with "Executable not found" (the integration suite caught this on the typos hook). Add a ReplacePrecommitRepoBlock sync-manifest transform that restores self-contained upstream ruff/typos hooks in the scaffolded config only; the repo's own config keeps language:system for NixOS-host dev. Refs: #697
The integration suite scaffolds from the freshly-built image but `devcontainer up` resolves the runtime image from DEVCONTAINER_VERSION, so it validates fresh scaffolding inside the stale published image. Add a regression test asserting the running devcontainer uses the image under test (TEST_CONTAINER_TAG). Refs: #701
The devcontainer_up/devcontainer_with_sidecar fixtures scaffolded a workspace from the freshly-built image but let `devcontainer up` resolve the runtime image from DEVCONTAINER_VERSION (the published release baked into the scaffolded .vig-os/.env), so the suite validated fresh scaffolding inside a stale image. Export DEVCONTAINER_VERSION = TEST_CONTAINER_TAG; compose reads the shell environment over .env, so the scaffolded docker-compose.yml resolves the build under test, and the in-test `devcontainer exec` calls inherit it. Refs: #701
post-create.sh ran an unguarded `sed` on the venv activate script before `just sync`. The Debian image baked that venv at build time, but the Nix image populates /root/assets/workspace/.venv during post-create, so the script did not exist yet and post-create aborted (exit 2), failing `devcontainer up`. Move the prompt rewrite after `just sync` and guard it on the file's existence. uv writes the prompt as the venv parent's basename, so rewrite the VIRTUAL_ENV_PROMPT assignment directly instead of substituting the no-longer-present "template-project" literal. Refs: #701
The #697 decoupling shipped the scaffolded ruff/ruff-format/typos hooks as self-contained upstream (manylinux) hooks because the integration suite still ran the published Debian image, whose PATH lacked those tools. Now that the suite runs the freshly-built Nix image -- whose non-FHS userland cannot execute those manylinux binaries -- the workaround breaks the in-container `git commit`. Restore the repo's repo-local language:system hooks in the scaffold (resolved from the image's baked devTools), and drop the now-unused ReplacePrecommitRepoBlock transform and its tests. Refs: #701
Explain in tests/README.md how TEST_CONTAINER_TAG selects the image under test and why the devcontainer fixtures override DEVCONTAINER_VERSION so compose uses it. Record the fixes under CHANGELOG Unreleased. Refs: #701
…702) ## Description The integration suite scaffolded a workspace from the freshly-built image (`TEST_CONTAINER_TAG`) but then ran `devcontainer up` from whatever `DEVCONTAINER_VERSION` resolved to — the published `0.3.9`. So it validated *fresh scaffolding inside a stale image*, not the image under test. Pointing it at the fresh Nix image then surfaced real bring-up failures. This fixes all of it. Closes the gap tracked in #701. ## Type of Change - [x] `fix` -- Bug fix ## Changes Made - **Run the image under test.** `devcontainer_up`/`devcontainer_with_sidecar` now export `DEVCONTAINER_VERSION=TEST_CONTAINER_TAG`. Compose resolves shell env over `.env`, so the scaffolded `docker-compose.yml` (`image: …:${DEVCONTAINER_VERSION:-latest}`) selects the build under test, and the in-test `devcontainer exec` calls inherit it. Added `test_devcontainer_runs_image_under_test` asserting the running container's image. - **Bring the Nix image up cleanly.** `post-create.sh` ran an unguarded `sed` on the venv `activate` script *before* `just sync`. The Debian image baked that venv at build time; the Nix image creates it during post-create, so the script didn't exist yet and post-create aborted (exit 2). Moved the prompt rewrite after `just sync`, guarded it, and rewrote the `VIRTUAL_ENV_PROMPT` assignment directly (uv sets the prompt to the venv parent's basename, so the old `template-project` literal is never present). - **Scaffold ruff/ruff-format/typos as `language: system`.** Reverted the #697 decoupling: those scaffolded hooks pulled upstream manylinux binaries, which the non-FHS Nix userland cannot execute (`No such file or directory` on the ELF interpreter), breaking the in-container `git commit`. They now resolve from the image's baked `devTools`, like the repo's own config. Removed the now-unused `ReplacePrecommitRepoBlock` sync-manifest transform and its tests. - **Docs.** Documented the image-selection behaviour in `tests/README.md`. ## Changelog Entry ### Fixed - **Integration tests now exercise the freshly-built image, not the published `DEVCONTAINER_VERSION`** ([#701](#701)) - The fixtures export `DEVCONTAINER_VERSION=TEST_CONTAINER_TAG` so compose resolves the build under test; added `test_devcontainer_runs_image_under_test` - Guarded/moved the `post-create.sh` venv-prompt `sed` so the Nix image comes up cleanly under `devcontainer up` - Reverted the [#697](#697) scaffold decoupling: scaffolded `ruff`/`ruff-format`/`typos` are `language: system` again; removed the unused `ReplacePrecommitRepoBlock` transform ## Testing - [x] Tests pass locally (`just test`) - [x] Manual testing performed (describe below) ### Manual Testing Details Run against the freshly-built Nix image (`TEST_CONTAINER_TAG=dev`, podman socket + standalone `docker-compose` as CI provides): - `tests/test_integration.py`: **123 passed, 7 skipped** (skips are host-environmental: SSH signing config + sidecar compose), 0 failed - `tests/test_image.py`: **64 passed** - `tests/test_transforms.py` + `tests/test_flake_devshell.py`: pass - `test_devcontainer_runs_image_under_test` confirmed RED against `0.3.9` → GREEN against `dev` - `test_pre_commit_hook` exercises the in-container ruff+typos run that previously failed on the Nix image — now passes. `test_git_commit_ssh_signature` skips locally (no host SSH signing config) but runs in CI's test-integration action. ## Checklist - [x] My code follows the project's style guidelines - [x] I have performed a self-review of my code - [x] I have commented my code, particularly in hard-to-understand areas - [x] I have updated the documentation accordingly - [x] I have updated `CHANGELOG.md` in the `[Unreleased]` section (and pasted the entry above) - [x] My changes generate no new warnings or errors - [x] I have added tests that prove my fix is effective - [x] New and existing unit tests pass locally with my changes ## Additional Notes Sub-issue of the Nix migration epic #625; targets `feature/625-nix-claude-migration`. The `install.sh` host-side `/etc/os-release` probe mentioned in the issue is not exercised by `devcontainer up` (it has a `linux` fallback) and is left unchanged. Refs: #701
The #698 LD_LIBRARY_PATH libstdc++ injection is only needed and ABI-safe on NixOS. Gate the two injection-presence tests to NixOS and add an FHS-only guard asserting the Nix C++ runtime is not exposed on LD_LIBRARY_PATH (it breaks host binaries with GLIBC_ABI_DT_X86_64_PLT). Fails until the dev-shell gate lands. Refs: #703
…x exit (#843) ## Summary Forward-fix for the two `release.yml` defects that failed the first 0.4.0 candidate run ([rc1 failure issue #842](#842), diagnosis posted there). No tag was consumed — publish was skipped, so the next candidate dispatch is still `0.4.0-rc1`. 1. **Stale runners**: the build-and-test matrix pinned Debian-era `ubuntu-22.04`/`ubuntu-22.04-arm` (podman 3.4.4), whose rootless volume UID mapping breaks `init-workspace.sh`'s in-container rsync (`chmod: Operation not permitted`, exit 23 → pexpect EOF in the `initialized_workspace` fixture). The identical `test-integration` action is green on `ubuntu-24.04` (podman 4.9.3) in `ci.yml` and `nix-image.yml` on the same commit. Switched to `nix-image.yml`'s exact runner expression. 2. **Uncaptured vulnix exit**: the `Run vulnix` step lacked `security-scan.yml`'s `|| rc=$?` capture; under the runner's default `bash -e`, vulnix's normal exit 2 (findings present — all triaged in `.vulnixignore`) aborted the step before `vulnix-gate` evaluated the register. Adopted the nightly's capture/retry pattern; the original intent is preserved — scan crashes (exit > 2) or invalid JSON still fail the job rather than reading as a clean result. Changelog entry added to the open `## [0.4.0] - TBD` section. ## Verification - Root-cause evidence: failing job ran `ubuntu-22.04`/podman 3.4.4 vs green ci.yml job `ubuntu-24.04`/podman 4.9.3 (same commit, same action, same image — reproducible Nix build); vulnix step log shows `Process completed with exit code 2` with the `rc<=2` guard unreached. - The vulnix pattern is copied from `security-scan.yml:108-122`, which passed today both on schedule-shaped dispatch (run 28709965103) and in the release-PR Security Scan check. - `just precommit` (full suite, all files): green, exit 0. - `uv run pytest -k "release or workflow"`: 12 passed; the single failure (`test_uv_venv_workflow`) is a stale local `:dev` image missing `prek` (#778) — image-content test unrelated to this workflow-only diff, passing in CI on the parent commit. Refs: #842
The provisioning step ends with `grep '^/nix/store' | head -50` under the runner's `bash -e -o pipefail` shell. Once the dev-shell PATH tops 50 nix-store entries, head exiting early can SIGPIPE grep (exit 2) and fail the step -- a scheduling race that killed the arm64 build-and-test leg of the second 0.4.0 candidate run while every other leg of the same line has run green for weeks. Replace head with `sed -n '1,50p'`, which consumes the whole stream and prints the same first 50 lines. Refs: #847
## Summary Forward-fix for the second 0.4.0 candidate failure ([#847](#847), diagnosis posted there). Again no tag consumed — publish was skipped. The `setup-env` provisioning step ends with `printf … | grep '^/nix/store' | head -50` under the runner's `bash -e -o pipefail` shell. With the dev-shell PATH now exceeding 50 nix-store entries, `head` exiting early can SIGPIPE `grep` (exit 2) and fail the step — the log shows `grep: write error: Broken pipe` at the exact failure timestamp on the arm64 build-and-test leg. It's a scheduling race: the same line has run green across every workflow for weeks and passed on five other legs today. Fix: `sed -n '1,50p'` instead of `head -50` — consumes the whole stream (no early pipe close), prints the same first 50 lines. Positive signal from the failed run: the #842/#843 fixes are validated — `Vulnix CVE Gate` **passed** on this run (previously the step died on vulnix's exit 2), and amd64 was only cancelled by fail-fast. ## Verification - Race mechanics confirmed from the job log (`grep: write error: Broken pipe` + `Process completed with exit code 2` at 18:42:21, inside the test-image action's setup-env sub-step). - `just precommit` (full suite, all files): green, exit 0. - Changelog entry added to the open `## [0.4.0] - TBD` section. Refs: #847
The build-and-test "Scan image for vulnerabilities" step was the last Debian-era blocking Trivy scanner (exit-code 1 gated only by .trivyignore). It failed the third 0.4.0 candidate on ~14 embedded language-ecosystem HIGHs (gix-fs, thin-vec, quinn-proto, x/net, rekor, sigstore) that are already triaged in .vulnixignore -- the blocking CVE control for the Nix image is the vulnix-gate job (#639), which passed. Align the step with the ratified #637 posture used by security-scan.yml ("defense in depth, awareness only") and ci.yml (exit-code 0): non-blocking, table output kept in the job log as awareness signal. Refs: #849
## Summary Forward-fix for the third 0.4.0 candidate failure ([#849](#849), diagnosis posted there). Again no tag consumed. Positive signal: everything the previous fixes touched now passes — validate, finalize, **vulnix-gate**, and the amd64 **image + integration tests** were green; the run died only at the Trivy step. `release.yml`'s `Scan image for vulnerabilities` was the last Debian-era **blocking** Trivy scanner (`exit-code: '1'`, gated only by `.trivyignore`). It failed on ~14 HIGH / 0 CRITICAL findings in language-ecosystem packages embedded in shipped binaries — the same 2026-07 batch already triaged into `.vulnixignore`, which is why the blocking vulnix-gate passed. Under the ratified #637 posture the Nix image's blocking CVE control is the **vulnix-gate + `.vulnixignore`**; Trivy is defense-in-depth, awareness only: - `security-scan.yml:145-154` — SBOM-mode scan, `exit-code: '0'`, `continue-on-error: true` - `ci.yml:323,334` — `exit-code: '0'` (why the same image passed the release PR's Security Scan check) This aligns the release lane: `exit-code: '0'` + `continue-on-error: true`, table output retained in the job log. ## Verification - Same image content passed ci.yml's Security Scan and the nightly-shaped dispatch today; vulnix-gate green on this very run. - `just precommit` (full suite, all files): green, exit 0. - Changelog entry added to the open `## [0.4.0] - TBD` section. Refs: #849
RED: the two init-workspace.bats structure tests and the install.bats forwarding test fail (3 failures confirmed locally via bats); the new integration test exercises the override end-to-end against the CI-built image (VIG_OS_VERSION env -> scaffolded .vig-os pin). The 0.4.0-rc1 smoke test surfaced the gap: the image bakes the release it was built from into the scaffolded .vig-os (repo pin, which only advances at finalize), so an RC install scaffolds a stale 0.3.9 pin and consumer CI runs the new prek-era scaffold against the old Debian image. Refs: #852
install.sh forwards an explicit --version into the init container as VIG_OS_VERSION, and init-workspace.sh pins it in the scaffolded .vig-os after the mode prune (validated against a safe tag charset). Plain "latest" installs keep the image-baked pin, which equals the release the image was built from. The Nix image bakes the repo-root DEVCONTAINER_VERSION into the template .vig-os at build time; that pin only advances at finalize, so every RC image scaffolds the previous release's pin. The 0.4.0-rc1 smoke test hit exactly this: a new prek-era scaffold pinned to Debian 0.3.9, whose CI lint died with "prek: command not found". (The Debian build passed the per-tag IMAGE_TAG build-arg; the reproducible Nix build cannot without breaking the same-commit-same-digest property, hence the install-time override.) Verified: bats structure tests green (were RED); host-side functional run of init-workspace.sh with VIG_OS_VERSION=9.9.9-rc9 writes the pin; install.sh --dry-run shows the forwarded env only for explicit versions. Refs: #852
…on (#853) ## Summary Forward-fix for the 0.4.0-rc1 smoke-test failure ([#852](#852)). The candidate run itself was fully green — the failure was downstream, in the consumer scaffold the RC installs. **Root cause chain:** the Nix image bakes the release it was built from into the scaffolded `.vig-os` (flake bootstrap, from the repo-root pin). That pin only advances at **finalize**, so every RC image scaffolds the *previous* release's pin — and `install.sh` never wrote its `--version` into the scaffold. The smoke-test receiver ran `install.sh --version 0.4.0-rc1 --force`, got a deploy PR with the new prek-era scaffold **still pinned to `DEVCONTAINER_VERSION=0.3.9`**, and its CI Lint job ran `just precommit` → `prek run --all-files` inside the Debian 0.3.9 image → `command not found`. (The Debian build passed the per-tag `IMAGE_TAG` build-arg at build time; the reproducible Nix build can't bake the tag without breaking the same-commit-same-digest property — hence an install-time override.) **Fix (TDD, RED → GREEN commits):** - `install.sh`: an explicit `--version` is forwarded into the init container as `VIG_OS_VERSION` (bash-3.2-safe empty-array expansion; `latest` keeps the baked pin, which equals the promoted release). - `assets/init-workspace.sh`: pins `DEVCONTAINER_VERSION=${VIG_OS_VERSION}` in the scaffolded `.vig-os` post-prune, charset-validated. The receiver needs no change — it already passes `--version "${TAG}"` and curls `install.sh` from the dispatched tag, so **rc2 will exercise the fixed path end-to-end**. ## Verification - RED: 3 new bats structure tests failed before the implementation; GREEN after (0 failures across `init-workspace.bats` + `install.bats`). - New integration test (`test_init_workspace_pins_requested_version`) runs the real containerized init with `VIG_OS_VERSION=9.9.9-rc9` and asserts the scaffolded pin — runs in CI against the image built from this branch. - Host-side functional run: `TEMPLATE_DIR=assets/workspace ... VIG_OS_VERSION=9.9.9-rc9 bash assets/init-workspace.sh --no-prompts --force` → `.vig-os` contains `DEVCONTAINER_VERSION=9.9.9-rc9`. - `install.sh --dry-run --version 0.4.0-rc1` shows `-e VIG_OS_VERSION=0.4.0-rc1`; dry-run without `--version` shows no override. - `just precommit` (full suite, all files): green, exit 0. Refs: #852
RED: the scaffold ships the typos prek hook but not the exception config, so scaffold-shipped content (version-check.sh Nd duration syntax, synced changelog "unexcepted" CVE-policy term) fails every consumer lint out of the box — surfaced by the 0.4.0-rc2 smoke test. Refs: #855
The scaffolded .pre-commit-config.yaml runs the typos prek hook, but the exception register stayed repo-local, so consumers linted scaffold-shipped content with zero exceptions and failed out of the box: the 0.4.0-rc2 smoke-test deploy PR died on version-check.sh's Nd duration placeholder and the synced changelog's "unexcepted" CVE-policy term -- both excepted here in .typos.toml. Sync the file into the template via scripts/manifest.toml (SSoT, same mechanism as .yamllint and .pymarkdown). Refs: #855
## Summary Forward-fix for the rc2 smoke-test failure ([#855](#855), diagnosis posted there). Strong convergence signal from rc2: the #853 `.vig-os` pin works (`DEVCONTAINER_VERSION=0.4.0-rc2` in the deploy PR), the Lint job runs inside the rc2 image, the **whole prek suite executes and the Tests job passes** — the only remaining failure is the `typos` hook flagging scaffold-shipped content (`Nd`, `unexcepted`) that this repo excepts in `.typos.toml` but never shipped. Fix: add `.typos.toml` to `scripts/manifest.toml` so sync-manifest ships it with the workspace template — the same SSoT mechanism as `.yamllint`/`.pymarkdown`. ## Verification - TDD: new bats template test RED before (`not ok 56`), GREEN after the manifest entry + sync. - Shipped copy content-identical to the repo root config (sync-manifest keeps it so). - `just precommit` (full suite, all files): green, exit 0. - Changelog entry added to the open `## [0.4.0] - TBD` section. Refs: #855
The scaffolded consumer prepare-release.yml still interpolated the full frozen changelog section into the draft-PR body uncapped; #812 fixed only this repo's own workflow. The 0.4.0-rc3 smoke test hit it: the receiver seeds the consumer CHANGELOG from this repo's ~67k-char 0.4.0 section, and the downstream "Create draft PR to main" died with "GraphQL: Body is too long". Port the same cap (65000-char budget, line-boundary truncation, pointer to the release branch's CHANGELOG.md); small releases inline the whole changelog unchanged. Inline-YAML shell is not unit-testable; the identical capping logic was harness-verified against the real 0.4.0 section in #830, and the YAML de-indentation of the new HEADER string asserted via yaml.safe_load. Refs: #857
…#858) ## Summary Forward-fix for the rc3 smoke-test failure ([#857](#857), diagnosis posted there). rc3 convergence signal: consumer CI green inside the rc3 image, **deploy PR merged** (validating #853 + #856), downstream release cycle started — and died at `Create draft PR to main` with `GraphQL: Body is too long`. It's the #810 bug shipped to consumers: #812 capped only this repo's own `prepare-release.yml`; the scaffolded copy (`assets/workspace/.github/workflows/prepare-release.yml`) still interpolated the full changelog section uncapped, and the smoke-test repo's CHANGELOG is seeded from our ~67k-char 0.4.0 section. This ports the identical cap (65,000-char budget, line-boundary truncation, pointer to the release branch's full `CHANGELOG.md`). `release-core.yml` (shipped) has no PR-body write, so this is the only consumer-side site. The deploy sync carries the fixed workflow to the smoke-test repo on the next candidate (rc4), which should complete the downstream cycle. ## Verification - Identical cap logic harness-verified against the real 0.4.0 section in #830 (66,794 → 64,869 chars, line-boundary truncation; sub-threshold passthrough byte-identical). - YAML de-indentation of the new `HEADER` asserted via `yaml.safe_load` (no indent leak). - `just precommit` (full suite, all files): green, exit 0. - Changelog entry added to the open `## [0.4.0] - TBD` section. Refs: #857
RED (6 failing bats tests, confirmed locally): env-based githook shebangs, nix-dev-shell-aware commit guard, BASH_SOURCE pipe-safety fallback in lifecycle scripts, prune keeping pre-existing flake.nix/.envrc, tolerant final just-sync, and typos --force-exclude in both hook configs. All surfaced by the 0.4.0-rc4 field validation. Refs: #859
Six fixes surfaced by the 0.4.0-rc4 field validation across five real
consumer repos (full findings on the tracking issue):
- .githooks/*: env-based shebangs (NixOS hosts have no /bin/bash) and
accept IN_NIX_SHELL as sanctioned -- direnv mode could not commit.
- Lifecycle scripts: restore the ${BASH_SOURCE[0]:-$0} pipe-safety
fallback (0.3.x regression caught by a consumer's regression tests).
- init-workspace prune: never delete a pre-existing flake.nix/.envrc in
devcontainer mode (two repos lost their own nix-direnv setup).
- init-workspace final just sync: non-fatal when the preserved
old-generation justfile.project lacks the sync recipe.
- typos hook (repo + scaffold): --force-exclude so consumer
[files] extend-exclude applies to staged files.
- MIGRATION.md: field-validated 0.3.x upgrade checklist.
Verified: 6 new bats tests RED -> GREEN (62/62 suite green), including
a functional host-run of init-workspace.sh proving the prune guard;
full pre-commit suite green. The 3 local pytest failures are the known
stale-local-image class (image-content tests; CI builds fresh).
Refs: #859
…ts (#860) ## Summary Fix batch for the six upstream defects surfaced by the 0.4.0-rc4 field validation (#859; findings comments there cover five repos, two orgs, both delivery modes): | # | Finding | Fix | |---|---------|-----| | 1 | direnv mode cannot commit (guard demands the container) | `.githooks/*` accept `IN_NIX_SHELL` as sanctioned | | 2 | `.githooks/*` `#!/bin/bash` unusable on NixOS hosts | `#!/usr/bin/env bash` | | 9 | lifecycle scripts regressed `${BASH_SOURCE[0]:-$0}` → `unbound variable` when piped | fallback restored in all four scripts | | 12 | `--mode devcontainer` prune deleted consumers' own `flake.nix`/`.envrc` (hyrr, talys) | prune only removes stub files the scaffold created (mirrors #738) | | 13 | installer's final `just sync` fails on old-generation preserved `justfile.project` | non-fatal with a MIGRATION.md pointer | | 3/10/11 | typos ignores `[files] extend-exclude` for staged files → garbage findings on binary artifacts in three repos | `entry: typos --force-exclude` (repo + scaffold via manifest sync) | Plus the field-validated **"Upgrading an existing 0.3.x consumer" checklist in `docs/MIGRATION.md`** (prek recipe migration, recipe renames, typos config shadowing, artifact excludes, name re-derivation). Remaining findings (7 CodeQL onboarding, 8 name re-derivation, 14 fresh-adoption clobber, 4 autofix-vs-artifacts defaults) are documented in MIGRATION.md and/or tracked for the next cycle in #854 — they are design-level, not rc5-blocking. ## Verification - TDD: 6 new bats tests RED (confirmed) → GREEN; the prune guard is proven by a **functional host-run** of `init-workspace.sh` with pre-existing `flake.nix`/`.envrc` surviving `--mode devcontainer`; suite 62/62. - Existing prune test updated to the new guarded behavior (message/shape change). - `just precommit` (full suite, all files): green, exit 0. - Local pytest: 63 passed; 3 failures are the known stale-local-`:dev`-image class (image-content tests; CI builds the image from this branch, where they run for real). Requires **rc5** (image bakes `assets/`), then targeted re-verification per #859's exit criteria. Refs: #859
… mirror The changelog commit is pushed with a GitHub App token that re-triggers workflows, but the build gated only on the PR author (permanently renovate[bot]) and never the pusher, and commit-action has no empty-diff guard -- so the bot's own no-op commits fired endless synchronize events (#862 accrued 150+ empty commits). Guard both build jobs on github.event.sender.login so the commit bot's push no longer starts a build. The automation also committed only root CHANGELOG.md, leaving the scripts/manifest.toml mirror assets/workspace/.devcontainer/CHANGELOG.md stale and failing the sync-manifest gate on every Renovate PR. The build now mirrors the verbatim copy and both files are committed (FILE_PATHS). Refs: #863
… mirror (#864) Fixes #863. ## What was wrong The Renovate changelog automation had two independent defects, both surfaced on #862 (which accrued **150+ identical empty commits** before the build workflow was disabled by hand to stop it): 1. **Self-triggering loop.** `renovate-changelog-commit.yml` pushes with a GitHub App token (re-triggers workflows); the build gated only on the PR **author** (permanently `renovate[bot]`), never the **pusher**, and `commit-action` has no empty-diff guard → the bot's own no-op commits fired fresh `synchronize` events without end. 2. **Stale workspace mirror (red CI).** The bot committed only root `CHANGELOG.md`, leaving the `scripts/manifest.toml` mirror `assets/workspace/.devcontainer/CHANGELOG.md` stale, so the `sync-manifest` gate failed on every Renovate PR — independent of the loop. ## Fix - **Loop:** guard both build jobs on `github.event.sender.login != 'commit-action-bot[bot]'`, so a `synchronize` raised by the commit bot's push no longer starts a build. Net effect: exactly one changelog commit per Renovate PR. - **Mirror:** the build copies root `CHANGELOG.md` → the verbatim mirror and ships both in the artifact; `renovate-changelog-commit.yml` commits `FILE_PATHS: CHANGELOG.md,assets/workspace/.devcontainer/CHANGELOG.md` (precedent: `prepare-release.yml`). Shipped copies under `assets/workspace/.github/workflows/` regenerated via `scripts/sync_manifest.py` (identical to root). ## Testing CI-config + changelog only (no unit-testable logic). `prek run --all-files` green locally, including `sync-manifest`. ## Operational note `renovate-changelog-build.yml` is **disabled manually** right now to stop the active loop. Re-enable once this reaches `dev` (via `sync-main-to-dev`), then use #862 to validate the flow end-to-end.
Set release date to 2026-07-06 and regenerate release docs. Refs: #813
nvd.nist.gov is chronically throttled (nix-community/vulnix#171): cold scans crawl the full NVD year-feed set for tens of minutes and fail with ReadTimeoutError/IncompleteRead, blocking both the nightly gate and the release publish gate. Add nvd-mirror-refresh.yml — the only job that talks to NVD — which downloads the NVD 2.0 feed files with resumable retry, validates them, and republishes them as assets on the nvd-mirror release. Point the vulnix invocations in security-scan.yml and the release vulnix-gate at that mirror via --mirror, so NVD data is fetched from GitHub's CDN and an NVD outage can no longer fail a scan or block a release. The scheduled refresh activates once this reaches the default branch via the cutover; the mirror is bootstrapped out-of-band until then. Refs: #870
Closes #870. ## Problem `nvd.nist.gov` is chronically throttled/unstable (`nix-community/vulnix#171`). Cold vulnix runs crawl the full NVD year-feed set for tens of minutes and fail with `ReadTimeoutError`/`IncompleteRead` — verified 2026-07-06, a cold run failed all 3 retries over **53 min**, blocking both the nightly gate and the release publish gate. ## Change - **New `nvd-mirror-refresh.yml`** — the only job that talks to NVD. Downloads the 7 NVD 2.0 feed files (`nvdcve-2.0-<6 years>.json.gz` + `modified`) with resumable retry (`curl -C -`), validates them (`gzip -t`), and republishes them as assets on the `nvd-mirror` release. Never clobbers the mirror with a partial set. - **`security-scan.yml` + `release.yml` `vulnix-gate`** now run `vulnix --mirror <nvd-mirror release>/`, fetching NVD data from GitHub's CDN instead of `nvd.nist.gov`. An NVD outage can no longer fail a scan or block a release. - Docs (`docs/CONTAINER_SECURITY.md`) + CHANGELOG. ## Why a mirror (not just retries) The mirror localizes the NVD dependency to one job: if the feeds ever change/retire, only the refresh job's source changes — vulnix keeps consuming identical files. vulnix has no NVD-API-migration plan and is on the current 2.0 feeds (no firm retirement date). ## Sequencing (important) - A new workflow is only schedulable/dispatchable from the **default branch**. `main` is still the pre-cutover Debian world, so the scheduled refresh activates only once this rides the cutover onto the new `main`. - Until then the `nvd-mirror` release is **bootstrapped out-of-band** (the 7 feeds uploaded manually), so this release's own `vulnix-gate` can use the mirror immediately. ## Test plan - [ ] `nvd-mirror` release has 7 valid gzip feed assets (bootstrapped). - [ ] Dispatch `security-scan.yml` on this branch → `Run vulnix` fetches from `.../nvd-mirror/…`, not `nvd.nist.gov`; completes fast even while NVD is degraded. - [ ] After cutover: `nvd-mirror-refresh.yml` auto-refreshes on `main`.
GitHub immutable releases block updating a fixed release tag's assets (and poison the tag once used), so the mirror cannot live on a release in this repo. Host it in a dedicated public repo, vig-os/nvd-mirror, served on GitHub Pages, and point vulnix --mirror at https://vig-os.github.io/nvd-mirror/. Drop the in-repo nvd-mirror-refresh.yml — that job now lives in the mirror repo. Refs: #870
) Follow-up to #871 (already merged). Refs #870. ## Why #871 landed the mirror as **release assets in this repo**, but that approach is blocked by **GitHub immutable releases**: assets can't be updated/clobbered after creation, and once the `nvd-mirror` tag is used by an immutable release it's poisoned (can't recreate). The in-repo `nvd-mirror-refresh.yml` also can't run — a new workflow is only schedulable/dispatchable from the default branch, and `main` is still the pre-cutover Debian world. So as merged, `release/0.4.0` points `vulnix --mirror` at a release-asset URL that can't exist → the gate would fail. ## Change - **Remove** the in-repo `nvd-mirror-refresh.yml`. - Point `vulnix --mirror` (in `security-scan.yml` and the `release.yml` `vulnix-gate`) at the **dedicated public mirror** [`vig-os/nvd-mirror`](https://github.com/vig-os/nvd-mirror), served on GitHub Pages: `https://vig-os.github.io/nvd-mirror/`. - Update docs + CHANGELOG. The dedicated repo owns the one job that talks to NVD (its default branch, so it schedules/dispatches immediately — no cutover dependency). It is **already live and serving** all 7 feeds (`nvdcve-2.0-{2021..2026}.json.gz` + `modified`, 117 MB, HTTP 200 + valid gzip), bootstrapped from a known-good local copy. ## Test plan - [x] `https://vig-os.github.io/nvd-mirror/nvdcve-2.0-*.json.gz` → 200, valid gzip (all 7). - [x] Dispatch `security-scan.yml` on this branch → **passed in 97 s** via the mirror ([run 28792515788](https://github.com/vig-os/devcontainer/actions/runs/28792515788)); `NVD_MIRROR=https://vig-os.github.io/nvd-mirror/`, gate green, no `nvd.nist.gov` cold-crawl.
Set release date to 2026-07-06 and regenerate release docs. Refs: #813
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.
Release 0.4.0 - 2026-07-06
This PR prepares release 0.4.0 for merge to main.
0.4.0 - 2026-07-06
Added
mkProjectServiceslocal-services helper (process-compose + services-flake) (#795)lib.mkProjectServicesoutput implementing the local-services axis of ADR-nix-devenv-strategy: declaredservices-flakemodules become a daemonlessprocess-composestack —nix run .#servicesboots native-process services with no Docker/Podman daemon, versions from the pinnednixpkgslock (no out-of-lock image tags), and zero extra flake inputs downstream (both service flakes resolve from this flake's lock as dependency-free leaf entries)nix run .#servicesboots SeaweedFS (S3) + Postgres, asserted end-to-end (boot, health probes, teardown, no container fixtures) by the newtests/test_flake_services.py. The issue named MinIO, but nixpkgs marksminioabandoned upstream with unfixed CVEs, so the PoC ships the maintained S3-compatible SeaweedFS instead (recorded indocs/NIX.mdand on the issue)mkProjectServicesusesprocess-compose-flake's standaloneevalModules(services-flake's documented no-flake-parts path), so the flake stays onflake-utils. Measured cost recorded indocs/NIX.md(~0.8 s eval / ~3 s boot-to-healthy vs devenv's ~165 s IFD)packages.servicesblock andjustfile.projectships a commentedservicesrecipe — both preserved-on-upgrade files, so existing consumers are untouchedproject-checksCI job now builds everychecks.<system>derivation (treefmt formatting, deadnix/statix, dev-shell build,devShellTools, and the git-hooks.nixpre-commitgate) in parallel with an eval cache vianix-fast-build, replacing the serialnix flake checkbuild step.nix-fast-buildis exposed aspackages.<system>.nix-fast-build(a pinned-nixpkgs passthrough) so CI runs it reproducibly vianix run .#nix-fast-buildwithout baking a CI-only tool into the dev-shell or the imagedocs/rfcs/ADR-flake-checks-tier0.mdrecords the tiering: pure, source-only checks are Tier 0 (nix-driven, cacheable, portable), while effectful jobs (image testinfra, integration, vulnix CVE-DB, multi-arch/publish, the impure pre-commit hooks and repo/git-dependent pytest units) stay GitHub-Actions-orchestrated. It also records the driver decision (nix-fast-build on existing runners now; garnix as a documented future option; Tier-1 self-hosting deferred)nix-fast-builddoes not build (the treefmtformatter, thechecksnames, theinstallapp, the nixos/homeManager modules) is now validated in CI bytests/test_flake_checks.py, preserving what the removednix flake checkcoveredchecks.pre-commitflake gate via git-hooks.nix + prek (#778)cachix/git-hooks.nixinput and achecks.pre-commitoutput that runs the sandbox-pure subset of the pre-commit hooks undernix flake check, driven by theprekrunner (package = pkgs.prek) — no network, no project venv. It reuses thetreefmtwrapper for the single formatting hook (nixfmt + ruff-format + taplo), the nix-provided pure linters (ruff,shellcheck,yamllint,typos,taplo lint,just --fmt --check), thepre-commit-hooksmeta hooks, and thevig-utils/bandithooks wired to hermetic Nix binaries — so the flake is a Nix-verified guarantee that the committed config's pure hooks stay correctgenerate-docs,sync-manifest,pip-licenses,pymarkdown,no-commit-to-branch,destroyed-symlinks,check-agent-identity, and thecommit-msg/prepare-commit-msghooks) stay runner-only in the committed.pre-commit-config.yaml; the two-artifact model is documented indocs/NIX.mdagent-models.tomlcustomization (#717)docs/NIX.mdgained a "Building and iterating the image locally" section: when to build locally vs. pull the published image, thejust build→just test-imageiterate loop, and thatjust buildtags<repo>:dev(the tag the defaulttest/test-image/test-integrationrecipes use and auto-build)docs/SKILL_PIPELINE.mdgained a "Customizing models downstream" note under Model Selection explaining how a consuming project overrides the[models]tiers and[skill-tiers]assignments in its own committed.claude/agent-models.toml— no recipe edits needednix run .#install(#777)nix fmtnow runstreefmtacross every supported language in one pass (nixfmt-rfc-stylefor*.nix,ruff formatfor*.py,taplofor*.toml), wrapping the same formatters the pre-commit hooks already run so the editor, hooks, and CI agree on one formattingchecks.deadnixandchecks.statix(dead-Nix-code + anti-pattern linters), scoped to the authoredflake.nix;deadnixandstatixalso joindevToolsnixosModules.defaultandhomeManagerModules.defaultthat install the shareddevToolstoolchain into a NixOS / home-manager configuration viaprograms.vigos-devtools.enable = trueapps.installsonix run github:vig-os/devcontainer#installbootstraps a consumer project straight from the flake (wrappinginstall.sh, which stays the behavior SSoT)docs/security/ADR-secrets-management.mdrecording the storage/delivery pattern for two secret classes — sops-nix + age for runtime/downstream-consumer secrets (each consumer decrypts with their own key, no per-repo GitHub-secret dance) and GitHub OIDC for cloud/registry auth — plus the honest caveat that on hosted runners SOPS relocates the root of trust to one bootstrap key rather than eliminating the GitHub secret, with OIDC as the only true no-stored-secret lever. Classifies each current stored secret (CACHIX_AUTH_TOKEN,RELEASE_APP_*,COMMIT_APP_*) as OIDC / sops / keep, notes GHCR-via-GITHUB_TOKENand keyless cosign are already correct, and ships an inert reference example underdocs/security/examples/sops-nix/. Complements the agent-behaviour standard in #786 (design only; no workflow changed)docs/rfcs/ADR-nix-devenv-strategy.mdrecording why the org usespkgs.mkShell(viamkProjectShell) +nix-direnvand rejectsdevenv/numtide/devshellas the shared builder. Reframes the recurring "direnv vs devenv vs devshell vs mkshell" question as three separable axes — activation (nix-direnvvsnix develop), shell definition (mkShellvsdevshellvsdevenv), and local services (devenv up-style orchestration) — noting devenv couples the latter two, which is the source of the confusion. Ratifies axes 1–2 on the dev-shell↔image parity-SSoT constraint plus devenv's ~165s IFD cold-eval (measured, exo-pet/exo-fleet#76), and adoptsprocess-compose+services-flakefor local services, with the sharedmkProjectServiceshelper tracked in #795. Authoritative forvig-os; a recommendation toexo-pet/exomasiblings. Cross-linked fromdocs/NIX.md(decision record; no code or workflow changed).#devShellToolsparity test (#754)tests/test_image.pynow reads thedevToolstoolchain SSoT straight from the flake (nix eval --json .#devShellTools.<system>, never a hardcoded list) and asserts every entry resolves on PATH inside the running image viacommand -v, parametrized per tool. Previously the SSoT was exercised only on the dev-shell side (tests/test_flake_devshell.py, skipped where the host lacks nix) while the image had a hand-curated check covering ~10 of the 27 tools — so adding a tool todevToolsbut not shipping it in the image went uncaught. This turns the SSoT into an actual image-side gate/etc/nix/nix.confenablingnix-command/flakesand on-demand local builds (#739, #749)nix.conf, leaving the modern CLI'snix-command/flakesfeatures disabled by default so ad-hoc on-demand tooling (nix shell nixpkgs#<x>,nix run,nix eval) failed without an explicit--extra-experimental-featuresflag. ThebuildLayeredImagebootstrap layer now writes/etc/nix/nix.confwithexperimental-features = nix-command flakesand an emptybuild-users-group =so the in-image root/single-user/daemonless nix (which has nonixbldgroup) can do on-demand local builds — not just cache substitutions, e.g. arust-overlaytoolchain — instead of aborting with "the group 'nixbld' … does not exist" (the explicitsubstituters/trusted-public-keysare covered under Security, #773)docs/NIX.mdNix reference (#255)devToolstoolchain SSoT and the dev-shell ↔ image parity guard, the stable/unstable channel split + fast-mover overlay, the Nix-built (buildLayeredImage) reproducible multi-arch image, the CppNix-vs-Lix andpre-commit-vs-prekdecisions, thevig-osCachixdirenv allowflow, hownixpkgsbumps flow (Renovatenixmanager +vulnixbefore/after), and the T4.1 — Publish-cutover to the Nix image (GATED) #639 publish-cutover — cross-linkingCONTRIBUTE.md,docs/NIX2CONTAINER.md, anddocs/CONTAINER_SECURITY.mdNix Image (discovery)workflow now runs a self-contained, network-free smoke script (scripts/nix_runtime_smoke.sh) inside the built image to prove the baked Nix toolchain actually functions (not merely that it is present, which is all the portable testinfra suite checked):nix --version,direnv version, a realnix evalexercising the evaluator withnix-command/flakes, and adirenv allow/execround-trip — gating the build/test job so a broken in-containernix/direnvfails CIformatteroutput (nixfmt-rfc-style) sonix fmtformats nix files idempotently, anixfmt --checkpre-commit hook (nixfmt sourced from the flake dev-shell), lightweight flakechecks(format check, dev-shell build,devShellToolseval), and anix flake check --accept-flake-configstep in the CI project-checks job--mode devcontainer|direnv|both) (#641)install.shgained a--mode devcontainer|direnv|bothflag (accepts both--mode Xand--mode=X), validated up front and passed through toinit-workspace.sh. Empty means "let init-workspace decide": the one-line install runs non-interactively and defaults toboth(unchanged behaviour)init-workspace.shgained the same--modeflag plus an interactive prompt when the mode is unset and prompts are enabled (default selectionboth); under--no-prompts/--smoke-testwith no--modeit defaults toboth. After the rsync scaffold it prunes to the chosen mode:devcontainerremoves theflake.nix+.envrcstub,direnvremoves the.devcontainer/scaffold, andbothkeeps everything (prune is idempotent and scoped to the new workspace)nix2containerproduction builder (#640)assets/workspace/flake.nix(a minimal stub consuming the shared toolchain as a flake input —vigos.url = github:vig-os/devcontainer,nixpkgs.follows = vigos/nixpkgs,vigos.lib.mkProjectShell+ a placeholderextraPackages) andassets/workspace/.envrc(use flakevia nix-direnv). Updating the dev environment isnix flake update vigos; it never overwrites user filesPRESERVE_FILESnever-overwrite class ininit-workspace.sh(same guarantee asjustfile.project) and committed the template.envrc(un-ignored in the template.gitignore, with.direnv//.envrc.localstill ignored)nix2containerproduction-image pattern (docs/NIX2CONTAINER.md) with a buildable example (examples/nix2container-production/) that derives a minimal runtime image from the same pinnednixpkgs, plus a note on the future opt-in modular language shellsnix flake check ./assets/workspace --override-input vigos path:.step (and atests/test_downstream_flake.pyparity test) validates the scaffold against the working-tree toolchain, so anlib.mkProjectShell/overlays.defaultAPI change can't silently break a downstreamdirenv allowvulnix+ SBOM CVE scanning for the Nix image; re-authored security policy (#637)scan-nix-imagejob that builds the image's package closure (new flakepackages.devcontainerImageEnv) and runsvulnix(the nixpkgs-native CVE scanner) as the primary signal, since a Nix image has no apt/dpkg database for Trivy's OS scanner; Trivy stays on to emit a CycloneDX SBOM and an SBOM-mode vuln view (defence in depth), and both scanners' output is archived asvulnix-vs-Trivy overlap evidencevulnix-gateutility (packages/vig-utils) and the.vulnixignoreexception register: a HIGH/CRITICAL finding (CVSS v3 ≥ 7.0) blocks only when it is not covered by a non-expired exception..vulnixignorereuses the.trivyignoreExpiration:format and thecheck-expirationsvalidator (pre-commit + CI), and exposes a pinnedpackages.vulnixfor reproducible scans. The gate is non-blocking during discovery and becomes the T4.1 — Publish-cutover to the Nix image (GATED) #639 go/no-go gate at cutoverdocs/CONTAINER_SECURITY.mdfor the Nix posture: dropped theapt --only-upgradeescape hatch and the "why notapt-get upgrade" section, made "advance the pinnednixpkgsrev" the primary CVE lever, and documented the dual.vulnixignore/.trivyignoreregisters and the residual Debian:latestscan until decommission (T4.4 — Decommission the Debian path #642)Nix Image (discovery)workflow now buildspackages.devcontainerImagenatively on an amd64 (ubuntu-24.04) + arm64 (ubuntu-24.04-arm) matrix — no QEMU or cross-compilation — pushes per-arch discovery tags (nix-dev-amd64,nix-dev-arm64), and assembles a top-level multi-arch index (nix-dev) withdocker buildx imagetools create, verifying both platforms viaimagetools inspectcachix-actionruns with an auth token on every leg so the arm64 closure is pushed to thevig-osCachix cache; the workflow stayscontinue-on-errorand only touches the disposablenix-dev*tags — the versioned/:latestpublish-cutover remains T4.1 — Publish-cutover to the Nix image (GATED) #639nixmanager forflake.lockmaintenance (#638)nixmanager and weeklylockFileMaintenanceinrenovate.jsonso flake inputs (notablynixpkgs) are bumped through the normal PR/CI gate; the existingpep621,npm,github-actions, anddockerfilemanagers are retaineddocs/CONTAINER_SECURITY.md: everyflake.lock/nixpkgs-bump PR must include avulnixbefore/after diff, since thenixmanager reports only the input revision change and not which CVE a bump fixesdevToolslist inflake.nixas the source of truth shared by the dev-shell now and the image later, absorbing the agent-CLI toolkit (rg,fd,bat,eza,delta,lazygit,zoxide,starship,freeze,expect,nvim) plusclaude(#545)nixpkgstonixos-25.05and added anixpkgs-unstableinput overlaid only for fast-movers (uv,gh,claude-code); refreshedflake.locklib.mkProjectShell,overlays.default, and apackages.devcontainerImagestub for the later image buildNix Cachixworkflow (withworkflow_dispatch) that builds the dev-shell and pushes its closure to thevig-osCachix cachenix develop -c <tool> --versionparity test driven from the flake SSoT to guard against future dev-shell/image drift.envrcfrom bareuse flaketo nix-direnv: the dev-shell evaluation is now GC-rooted and cached under.direnv/, so re-entering the directory is instant and the closure is never garbage-collected; nix-direnv self-bootstraps on firstdirenv allowand falls back to bareuse flakewhen unavailabledirenv allowonboarding flow, thevig-osCachix substituter (binary fetch instead of from-source build on first allow), and enabling thenix-command/flakesexperimental features inCONTRIBUTE.md(#255)buildLayeredImage, non-publishing) (#634)packages.devcontainerImagefrom a stub into a real, bit-reproducible image assembled bydockerTools.buildLayeredImage(not a DockerfileFROM); a--rebuildverifies the closure hash is identicalpkgs.nix) plusdirenv/nix-direnvinto the closure sonix/direnvare live inside the container; documented the CppNix-vs-Lix andpre-commit-vs-prekdecisions in the flakeglibcLocales+LOCALE_ARCHIVE(nolocale-gen),/root/assets, pre-commit cache dir, template.venvscaffold (UV_PYTHON_DOWNLOADS=never,UV_PYTHON=<nix python3.14>), theprecommit/cc/cldaliases, andIS_SANDBOX=1fakeNss(root uid-0 user database) and a sticky/tmpto close the first FHS gaps surfaced by the portable testinfra (fixingssh,whoami, andtmux)Nix Image (discovery)workflow (withworkflow_dispatch) that builds the image and runs the portable testinfra undercontinue-on-error: trueChanged
:latestand every versioned tag) is the Nix-built image: pure-Nix userland with noapt/dpkg, adocker → podmanshim (no Docker engine), and uv-managed CPython 3.14 (pinrequires-pythonas a range, never an exact patch). Seedocs/MIGRATION.mdfor the full consumer contractDEVCONTAINER_VERSION=0.3.9in the repo-root.vig-osdevcontainer→devkit, moving the image to a new GHCR packageghcr.io/vig-os/devkit(#781)up/down/… →devc-up/devc-down/… (#795, completed by #806).devcontainer/justfile.devcnamespaces its compose-stack verbs —devc-up,devc-down,devc-status,devc-logs,devc-shell,devc-restart,devc-open— so generic verb names stay free for project use (the new opt-inservicesrecipe was the trigger:upwas squatted by the devcontainer stack). The file is managed (replaced on upgrade), so consumers pick the rename up automatically on their next upgrade; muscle memory is the only breakagecheck→devc-checkanddevcontainer-upgrade→devc-upgrade(recipes, their hint strings, and theversion-check.shnotification text), freeing the genericcheckname for project usepre-committoprek(#778, closes #40)prek(a faster, drop-inpre-commitreplacement) is now the hook runner and joins the shareddevToolsSSoT, so it ships in both the dev-shell and the image; the standalone Pythonpre-commitis dropped from both — one fewer manylinux/FHS consumer in the image closure.githooksshims,scripts/init.sh(prek prepare-hooks),just precommit(prek run --all-files), the worktree setup (prek install), and the downstream scaffold now invokeprek; the baked hook cache is renamedPREK_HOME=/opt/prek-cacheand theprecommitshell alias runsprek run. The committed.pre-commit-config.yaml(root + scaffold) is unchanged and prek runs it as-is.github/actions/test-project) now runs the whole committed hook suite viaprek run --all-files(wasuv run pre-commit run --all-files), soprek— not the Pythonpre-commit— is what CI validates against the impure hooks too;pre-commit==4.6.0is removed frompyproject.toml+uv.lock(and the now-vestigialpre-commit-dev-shell PATH exclusion insetup-envis dropped), completing the "dropped from both" migrationcheck-yamlhook now passes--allow-multiple-documentsin both the runner andchecks.pre-commitso the Nix gate is no longer more lenient than the runner on multi-document YAML; the worktreeprek installwires all three hook stages (-t pre-commit -t commit-msg -t prepare-commit-msg) so commit-msg / prepare-commit-msg hooks run in worktrees; and the downstream scaffold's remainingpre-commit/PRE_COMMIT_HOMEreferences (CIenv,container-ci-quirks.md,init-precommit.sh) are repointed atprek/PREK_HOME/root/assets/.placeholder-manifest.txt(the fileinit-workspace.shreads next to itself) bygrep-listing every workspace asset that carries a{{SHORT_NAME}}/{{ORG_NAME}}/{{GITHUB_REPOSITORY}}token, at its in-image runtime path and sorted for bit-reproducibility. Previously the Nix image shipped without the manifest, soinit-workspace.shalways fell back to a slow runtimefind+grepover the whole scaffold; the fast substitution path now fires. Output is unchanged (the fallback already produced correct results) — this is a startup-time optimization onlysetup-envinstall path (and its hardcodeduvpin) is gone (#720)setup-envcomposite action is now flake-only: it always installs Nix + Cachix and enters the flake dev-shell, so CI and localnix developrun the exact same toolchain (uv, Python, just, taplo, BATS, linters). Theprovision-via-flaketoggle and the ad-hoc install steps (astral-sh/setup-uv,actions/setup-python,taiki-e/install-actionfor just, the taplo curl, andbats-action) — with their now-removedinstall-python/python-version/install-just/install-taplo/install-batsinputs and the unuseduv-versionoutput — are deleteduvpin (0.11.23) insetup-envis removed, so the provisioneduvversion now flows from a single source — the flake's overlaidpkgs.uv.versioninflake.lock. The lightweight security and release-orchestration jobs (which previously used the ad-hoc path) now pull the warmvig-osCachix closure instead;security-scan.yml's Nix-image job drops its duplicate direct Nix/Cachix setup in favour of the shared action. Host-integration tools (podman, Node.js, the devcontainer CLI) keep their dedicated stepsnix fmtand the flake format gate now run treefmt (superseding the nixfmt-only formatter) (#777)formatteroutput is the treefmt wrapper (wasnixfmt-rfc-styledirectly, [CHORE] Nix flake quality gates: nixfmt formatter + nix flake check in CI #674) and the flakechecks.formatgate is replaced bychecks.formatting(atreefmt --fail-on-changecheck covering nix, python, and toml — superseding the formernixfmt --check-over-*.nixgate from [CHORE] Flake cheap-fix batch: darwin guard, overlay eval hoist, uv downloads URL drift + Renovate, nixfmt glob #774)devand releases) the built image closure is pushed to thevig-osCachix cache as a blocking step (nix path-info --recursive ./result | cachix push), so consumers substitute the exact pinned closure instead of rebuilding it from source. Previously the image closure only reached the cache incidentally (a non-blocking, discovery-only side effect ofcachix-action).github/actions/build-imagegained an opt-inpush-image-closureinput (defaultfalse) that performs the blocking push, guarded on a non-empty auth token — so per-PR CI stays pull-only and fork PRs (which lackCACHIX_AUTH_TOKEN) never fail. The releasebuild-and-testjob opts in; theNix Image (discovery)workflow pushes each per-arch image closure ondevas the same blocking step (distinct from the still-non-blocking GHCR discovery tag push)vulnix-gate) now also pushes thedevcontainerImageEnvscan-target closure, so the vulnix scan surface is cache-backed too. Documented the guarantee indocs/NIX.mdanddocs/CONTAINER_SECURITY.md*.nix(#774)packages(devcontainerImageplus itsdevcontainerImageEnv/vulnixscan targets) are now exposed only on*-linuxsystems, sonix flake check --all-systemsno longer aborts during the darwindockerToolsevaluation; the dev-shell stays cross-platformnixpkgs-unstableis imported once per system and threaded into the fast-mover overlay, instead of being re-imported inside the overlay fixpoint on each applicationUV_PYTHON_DOWNLOADS_JSON_URLis derived frompkgs.uv.versionrather than a literal version pin, so it can no longer drift from the overlaid (floating)uvpip-licenseswheel version pinned inflake.nix(the sha256/URL hash path is refreshed by hand when the bump PR lands)checks.formatgate now runsnixfmt --checkover every*.nixin the repo (source filtered to.nixfiles), not justflake.nixdocs/NIX.md,docs/CONTAINER_SECURITY.md, and thesecurity-scan.ymlsummary string still described the nightlyvulnixCVE gate as non-blocking / in a discovery phase, with a stalebuilder: debian|nixselector reference; the gate is now blocking (T4.1 — Publish-cutover to the Nix image (GATED) #639) and the build pipeline is Nix-only post-Debian-decommission (T4.4 — Decommission the Debian path #642), so the wording is corrected to matchtest_uv_venv_workflow(uv add/uv syncfrom PyPI) andtest_npm_global_install_resolves_on_path(npm install -g tsxfrom the npm registry) — nowpytest.skip(...)when the host cannot reach the relevant registry instead of failing on an offline/air-gapped runner. A reusable_host_can_reach(host, hostname)probe (generalizing the existing_pypi_reachablePyPI check) backs the guards; online runs still execute the tests unchangedactions/cache→ v6.1.0 (the v6 service, superseding the v5.x bumps),actions/attest/actions/attest-build-provenance→ v4.1.1,actions/setup-pythonandtaiki-e/install-action(just) digest refreshes, andpandas3.0.3 → 3.0.4 in the workspace template. Stale ones were dropped: thepython:3.14-slim-bookwormDocker digest (theContainerfileis gone) and theruffpip pin (sourced from the flake now, [BUG] pre-commit: source binary hooks (ruff, ruff-format, typos) from the flake for NixOS compatibility #697); theuv0.11.23 → 0.11.25 bump is deferred to the flake↔setup-env version sync (ci: automate the uv version sync between flake.nix and setup-env #720)SECURITY.mddescribes the Nix image security posture (#642)Containerfilebase-image pin, the "Trivy in CI/release" line, the 78 Debian LOW-CVE.trivyignorenote, and the nine legacy BATS-npm GHSA exceptions (the framework now ships from the flake) with the currentvulnix+ CycloneDX SBOM scanning model and the.vulnixignore/.trivyignoredual register, mirroringdocs/CONTAINER_SECURITY.mdpython:3.12-slim-trixieDebian base-image claim with the actual build: a Nix flake assembled viadockerTools.buildLayeredImage(no Debian/Docker base), with CPython 3.14 and the toolchain from a pinnednixpkgs, bit-reproduciblejust initNix-first (#671)scripts/init.shfrom a multi-OS package installer into a Nix-first gate + bootstrapper: it requires Nix (and direnv, unless--no-direnv) and the dev-shell toolchain, then performs one-time, idempotent project bootstrap (uv sync --frozen --all-extras, git hooks path, commit-message template,pre-commit install-hooks) with advisorypodman info/gh auth statuschecks. It no longer installs any tool — the toolchain is the flake'sdevTools— and short-circuits inside the built image (IN_CONTAINER=true)docs/generate.pyand theCONTRIBUTE.md.j2template: the per-OS "Requirements" table is now a "Prerequisites: Nix + direnv + a working host container runtime" section, with the toolchain sourced fromflake.nixvig-utils(andpip-licensesfrom its PyPI wheel, as it is not in nixpkgs) as Nix python packages exposed through apython314.withPackagesenv, and addedruff,bandit,cargo-binstall,just-lsp, andtypstylefrom nixpkgs — the Nix image now carries the project Python toolchain hermetically, replacing the Debian image's build-timeuv pip installrequires-pythonfrom==3.14.6to>=3.14,<3.15across the root,vig-utils, and workspace-template pyprojects:flake.lockis the reproducibility anchor now, so the exact pin was redundant and unsatisfiable against nixpkgs (3.14.4)tests/test_image.pyto the Nix toolchain (version prefixes are nixpkgs-pinned, so fast-movers/mismatched tools are checked for presence/run only; the pre-commit cache dir is asserted present rather than pre-populated, since a hermetic build cannot fetch hook repos), taking the suite to 63/63 — and made thenix-image.ymlbuild-and-testjob gate on it (discovery phase closed)nixos-25.05→nixos-26.05(the "advance the rev" CVE lever), cutting the vulnix HIGH/CRITICAL surface 83 → 27 and Trivy HIGH 244 → 14 on the image; triaged the residual 27 into.vulnixignore(4 CPE-mismatch false positives — VS Code/Jenkins, not the binaries; 23 recent CVEs accepted as low-risk in an interactive dev container with a 3-month re-review)vulnix-gateblocking (the T4.1 — Publish-cutover to the Nix image (GATED) #639 go/no-go gate) now that it is legitimately green, and archived thevulnix-vs-Trivy scan overlap indocs/security/nix-cutover-scan-overlap.md(zero overlap — disjoint surfaces, no finding class lost in the Debian→Nix switch):latestpublish stays paused pending a deliberate Nix release: the nightlyvulnix-gateis the go/no-go signal. The build pipeline became Nix-only once the Debian path was decommissioned (T4.4 — Decommission the Debian path #642), so nobuildertoggle remains — the interimbuilder: debian|nixselector this issue introduced was superseded by that decommission.claude/the single source of truth for agent rules and skills (#626).cursor/skills/to.claude/skills/and rewrote the 29.claude/commands/*.mdwrappers to point at the new paths.cursor/rules/*.mdc: static principles (coding principles, commit messages, changelog, single source of truth) are now consolidated inCLAUDE.md; workflow rules (branch-naming,tdd,subagent-delegation) became on-demand.claude/skills/agent-models.tomlandworktrees.jsonto.claude/, updated the docs generator, pre-commit hooks, shell entrypoints, and the workspace sync manifest, and deleted the root.cursor/directoryclaudeCLI (#627)just worktree-start/worktree-attachnow launchclaude --dangerously-skip-permissionsin the tmux session instead ofcursor-agent(agent chat --yolo --approve-mcps); the cursor-specific directory-trust step and thetmux send-keys "a"approval trigger are no longer needed and have been removedclaude auth status/claude auth login,ANTHROPIC_API_KEY), andscripts/requirements.yamlnow reference theclaudeCLI rather than the Cursor Agent CLI.claude/(skills,agent-models.toml,worktrees.json) instead of the removed.cursor/template tree; the sync manifest carries the.claude/payload accordinglyjust openlaunches VS Code only (dropped thecommand -v cursorfallback), andverify-auth.shno longer scans thecursor-remote-sshSSH-agent socketCOMMIT_MESSAGE_STANDARD.mdnow refers to VS Code rather than "VS Code / Cursor"host.package(...).is_installedchecks (git, curl, openssh-client, nano, tmux, rsync) with path-agnostic--version/-Vrunsgh,just,hadolint,taploand cargo-installed tools via PATH (command -v) instead of hardcoded/usr/local/bin//root/.cargo/bin//root/.local/binlocationsDEBIAN_FRONTENDenvironment assertion and the apt-sourced version-prefix checks (git, curl, tmux, rsync) fromEXPECTED_VERSIONSsetup-envaction gained aprovision-via-flakemode that installs Nix (SHA-pinnedinstall-nix-action) and thevig-osCachix substituter, builds the flake dev-shell, and prepends its tools toPATH, replacing the ad-hoc installs ofuv/Python,just,hadolint, andtaplobuild-image,test-image,test-integration,project-checks) so jobs run inside the flake shell (the toolchain SSoT);podman, Node.js, BATS, and the devcontainer CLI keep their dedicated install pathsUV_PYTHON_DOWNLOADS_JSON_URLin the flake dev-shell so the nixpkgsuv(whose embedded Python-download list is stripped) can fetch the project's pinned CPython3.14.6, which nixpkgs does not package, lettinguv sync --frozensucceed under flake provisioningpodmanoff the flake-provisionedPATHso the runner's rootless-configured hostpodmanis used (the nix-storepodmancannot reach the host's setuidnewuidmap/newgidmap, sopodman infofailed)Removed
just sidecar/just sidecarsrecipes, thedocker-compose.project.yamlsidecar examples, the sidecar test fixtures (sidecar.Containerfile,test-build.sh, the fixturesjustfile, thetest-sidecarcompose service) andTestSidecarConnectivity, andhadolintfromdevTools(unused since the Containerfile lint hook was dropped in T4.4 — Decommission the Debian path #642; the deleted sidecar Containerfile was its last Dockerfile-like artifact)process-compose/services-flake(#795) for local services; the Docker-out-of-Docker socket for building containers is retainedscripts/requirements.yaml(#671)load_requirements/format_requirements_table/format_install_commandshelpers indocs/generate.pyand their tests).flake.nixdevToolsis now the single source of truth for the toolchain, ending the dual-SSoT driftContainerfile,scripts/prepare-build.sh,scripts/build.sh, and the.hadolint.yamlconfig (plus its synced workspace copy); the image now builds Nix-onlyhadolintpre-commit hook and itssetup-env/test-projectinstall wiring, thehadolintand Containerfile entries fromscripts/requirements.yamlandscripts/manifest.toml, and theContainerfile/build-scriptCODEOWNERSentriesbuild-image,release.yml, andci.ymlare now Nix-onlyscan-latestnightly Trivy job, the ~78 Debian OS-package CVE entries from.trivyignore, and the Renovatedockerfilemanager;docs/CONTAINER_SECURITY.mdnow reads as Nix-onlycursor-agentCLI install from the image (#628)curl … cursor.com/installbuild step and its/root/.local/binPATH entry, leaving an all-nixpkgs toolchain ahead of the Nix migrationtest_cursor_agent_installedimage testFixed
nvd.nist.govoutages via a self-hosted NVD feed mirror (#870)nvd.nist.govis chronically throttled/unstable (upstreamnix-community/vulnix#171): cold scan runs crawled the full NVD year-feed set for tens of minutes and failed withReadTimeoutError/IncompleteRead, blocking both the nightly gate and the release publish gate. A dedicated public mirror,vig-os/nvd-mirror, now downloads the NVD 2.0 feed files (nvdcve-2.0-<6 years>.json.gz+modified) with resumable retry, validates them, and serves them on GitHub Pages — the only job that talks to NVDsecurity-scan.ymland therelease.ymlvulnix-gatenow runvulnix --mirror https://vig-os.github.io/nvd-mirror/, fetching NVD data from a CDN-backed mirror instead ofnvd.nist.gov, so an NVD outage can no longer fail a scan or block a release. The mirror also localizes the NVD-format dependency to one place should the feeds ever changerenovate[bot]) and never the pusher, andcommit-actionhas no empty-diff guard — so the bot's own no-op commits fired freshsynchronizeevents without end (chore(deps): update github/codeql-action digest to 99df26d #862 accrued 150+ identical empty commits before the build was disabled by hand). The build now skipssynchronizeevents raised by the changelog commit bot (github.event.sender.login), severing the loopCHANGELOG.md, leaving thescripts/manifest.tomlmirrorassets/workspace/.devcontainer/CHANGELOG.mdstale so thesync-manifestgate failed on every Renovate PR; the build now mirrors the verbatim copy and commits both files.githooks/*now use#!/usr/bin/env bash(hosts without/bin/bash, e.g. NixOS, could not run them) and accept the nix dev-shell (IN_NIX_SHELL) as a sanctioned commit environment — previously direnv-mode consumers could not commit at all (the guard demanded the container)${BASH_SOURCE[0]:-$0}pipe-safety fallback in the scaffolded lifecycle scripts (initialize/post-create/post-attach/version-check) — a regression from the 0.3.x scaffold caught by a consumer's own regression tests--mode devcontainerno longer deletes a consumer's pre-existingflake.nix/.envrc(two real repos lost their own nix-direnv setup); the prune now only removes stub files the scaffold itself created, mirroring the [BUG] install.sh --mode direnv --force overwrites populated consumer files (pyproject.toml, .devcontainer/) #738 guardjust syncis non-fatal when the preserved old-generationjustfile.projectpredates thesyncrecipe (warns and points to MIGRATION.md instead of failing an otherwise complete scaffold)--force-excludeso[files] extend-excludeapplies to explicitly-passed staged files — three consumer repos hit garbage findings on committed binary artifacts (PDFs, SVGs,.binfixtures)docs/MIGRATION.mdgained the field-validated "Upgrading an existing 0.3.x consumer" checklist (prek recipe migration, recipe renames, typos config precedence/shadowing, artifact excludes, name re-derivation)prepare-release.ymlcaps its PR body under GitHub's 65,536-char limit (#857)Create draft PR to mainwithGraphQL: Body is too long. The shipped workflow now applies the same line-boundary truncation with a pointer to the release branch's fullCHANGELOG.md.typos.tomlso the shipped typos hook passes out of the box (#855).pre-commit-config.yamlruns thetyposhook, but the exception config stayed repo-local — consumers linted scaffold-shipped content (version-check.sh'sNdduration syntax, the synced changelog's "unexcepted" CVE-policy term) with zero exceptions and failed immediately, as the 0.4.0-rc2 smoke test showed..typos.tomlnow syncs into the workspace template viascripts/manifest.toml, same as.yamllint/.pymarkdowninstall.sh --versionnow pins the scaffolded.vig-osto the requested version (#852).vig-os(correct for finals, where the repo pin is bumped at finalize — but stale for release candidates), andinstall.shnever wrote its--versioninto the scaffold. An RC install therefore pinned the previous release: the 0.4.0-rc1 smoke test scaffolded the new prek-era workspace pinned to the Debian 0.3.9 image and its CI lint failed withprek: command not found.install.shnow forwards an explicit--versionasVIG_OS_VERSIONandinit-workspace.shpins it in.vig-ospost-scaffold; plainlatestinstalls keep the baked pinrelease.yml's build-and-test Trivy step was the last Debian-era blocking scanner (exit-code: 1with only.trivyignore), failing the candidate on embedded language-ecosystem HIGHs already triaged into.vulnixignore. Per the T3.1 — vulnix + SBOM CVE scanning; re-author security policy #637 decision the Nix image's blocking CVE control is the vulnix-gate; the step is now non-blocking (exit-code: 0,continue-on-error) with its table kept in the log as awareness signal, mirroringsecurity-scan.ymlandci.ymlsetup-envno longer flakes on a SIGPIPE race when listing the provisioned dev-shell PATH (#847)grep '^/nix/store' | head -50summary runs under the runner'spipefailshell; once the dev-shell PATH topped 50 nix-store entries,headexiting early could SIGPIPEgrep(exit 2) and fail the step — a scheduling race that killed a release build-and-test leg.sed -n '1,50p'consumes the whole stream and prints the same summaryrelease.yml's build-and-test matrix still pinned Debian-eraubuntu-22.04/ubuntu-22.04-armrunners, whose podman 3.4.4 breaks rootless volume UID mapping —init-workspace.sh's in-container rsync failed to chmod the/workspacescaffold (Operation not permitted), killing the integration tests that pass everywhere else onubuntu-24.04(podman 4.9.3). The matrix now uses the sameubuntu-24.04/ubuntu-24.04-armexpression asnix-image.ymlRun vulnixstep missedsecurity-scan.yml's|| rc=$?capture, so under the runner'sbash -ea normal exit 2 (findings present, to be judged against.vulnixignore) aborted the step before the vulnix-gate ran. The step now uses the nightly's capture/retry pattern (crashes with exit > 2 or invalid JSON still fail loudly)Create draft PR to mainstep passed the entire frozen changelog section as the PR body; GitHub caps PR bodies at 65,536 characters, so a large release (e.g. 0.4.0 at ~64k chars) overflowed withGraphQL: Body is too longand the release rolled back. The step now caps the body, truncating the changelog at a line boundary and pointing to the fullCHANGELOG.mdon the release branch when it would overflow; small releases still inline the whole changelog unchangedrelease.yml: the finalize-pathRefresh release PR body from finalized changelogstep (which would have crashed the final release run mid-finalize and triggered rollback) and the rollback-pathRestore release PR bodystep. Both now apply the same capjustfilenow imports.devcontainer/justfile.worktree(import?, so direnv-mode workspaces still parse): the shipped.claudeworktree skills invokejust worktree-start, but nothing imported the recipes, so they were unreachable in consumer repos.devcontainer/README.mdno longer documents the long-removeddocker-compose.override.yml(.example)workflow; it now describes the real layering (docker-compose.project.yamlteam-shared /docker-compose.local.yamlpersonal) that [CHORE] Drop the sidecar / multi-container capability entirely #799 deliberately keptdocker-compose.local.yml(.yml) spelling nothing ships, and aligned the dev-env ADR's illustrative services verb with the shippedjust servicesrecipe. The audit found no other compose-era leftovers: the repo-root justfiles are clean and the project/local compose layering is intentionalinstall.sh--dry-runnow derives the shown command from the realCMDarray viaprintf '%q'(no hand-maintained duplicate string), and the automatic "initial project scaffold" commit is guarded so it only runs for a freshly scaffolded (empty) target instead of sweeping a pre-populated directoryrelease.ymlnow treats acancelledrequired job as not-green (it triggers rollback like a failure), so a cancellation can no longer leave a partial release un-rolled-backversion-check.shhelp text corrected (And (days)→Nd (days)), andinit.shnow reports "Pre-commit hook environments installed" (theinstall-hooksstep only fetches hook environments)nix-image.yml(the only lane that builds + runs the portable testinfra suite natively on arm64) was push-filtered to the migration epic branch only, so once it merges the arm64 image would no longer be exercised on the integration branch — PR CI (ci.yml) builds and tests amd64 only. Addeddevto the workflow'spush:branch filter (keeping the existingflake.nix/flake.lock/workflowpaths:guard) so the native amd64 + arm64 build/test matrix keeps running ondevpost-merge--skip-pullworks under docker; ci.yml runs safety viauv run(#757)install.shchecked for a present local image with the podman-only$RUNTIME image exists, which docker lacks, so--skip-pullalways failed under docker; it now uses$RUNTIME image inspect, which works on both runtimessafetydependency scan was invoked bare instead of viauv run, so it ran outside the uv env (unlike the adjacentuv run bandit); it now runs viauv run safetypython3+pre-commit(image parity), CI-safely (#729)mkProjectShellnow ships a barepython3/pre-commiton PATH so the downstream flake-input/direnv dev-shell matches the image.setup-envfilters the Nixpython3-<ver>(andpre-commit) out of the forwarded CI runner PATH souvkeeps building the project venv from the downloaded managed CPython. No newLD_LIBRARY_PATH, so the Nix dev-shell leaks the Nix C++ runtime onto LD_LIBRARY_PATH, breakingjuston non-NixOS hosts #703 FHS leak-guard is intact. Anix develop --ignore-environmentparity test (and the FHS leak-guard) now run in the Project Checks jobLD_LIBRARY_PATH) (#736)dockerTools.buildLayeredImageshipped neither the FHS dynamic loader (thePT_INTERPevery manylinux wheel hardcodes) nor the Nix C++/compression runtime on the loader path, so runtime-installed PyPI binaries broke: standalone tools (consumer pre-commit configs pinning PyPIruff/typos) aborted withcannot execute: required file not found, and C extensions dlopened by the baked CPython (numpy/scipy, pre-commitpymarkdown'spyjson5) failed withImportError: libstdc++.so.6/lib64/ld-linux-x86-64.so.2on x86_64,/lib/ld-linux-aarch64.so.1on aarch64 — the loader name and FHS dir are derived from the build platform, so the arm64 build passestest_fhs_loader_exists) symlinked to the Nix glibc loader (newer glibc runs the old-glibc wheels via backward compatibility), and bakesLD_LIBRARY_PATHwith${stdenv.cc.cc.lib}/lib(libstdc++/libgcc_s) +${zlib}/lib(libz) so both standalone wheel executables and C-extension.sofiles dlopened by the store CPython resolve their runtime libs. This is the image-scope analogue of the dev-shell #698 fix, but ungated: an all-Nix container has no foreign FHS host binaries to pollute, so the/etc/NIXOSABI gate never applies/root/assets/workspace/.venv(renameable prompt) (#735)UV_PROJECT_ENVIRONMENT/VIRTUAL_ENVat/root/assets/workspace/.venvbut never created it (the Debian image did). The published 0.3.x consumerpost-create.shrunssed -i .../.venv/bin/activateas its first venv step and aborted underset -euo pipefail(exit 2) when the file was missing — so git setup, gh auth, pre-commit install, andjust syncnever ran. The flake bootstrap layer now pre-creates the venv from the baked CPython (matching the advertised env vars, hermetic and network-free with no packages —just syncpopulates it), and normalizes the activateVIRTUAL_ENV_PROMPTto the quoted"template-project"form the consumerpost-create.shrename targets (so the prompt rename no longer no-ops)dockernow resolves in the Nix-built image (podman compatibility shim) (#740)podmanbut nodockerbinary, while the consumer.devcontainer/docker-compose.ymlmounts the socket at/var/run/docker.sockand setsDOCKER_HOST/CONTAINER_HOST. Docker-out-of-Docker worked because podman honorsDOCKER_HOST, but any recipe/script invokingdockerliterally failed withcommand not found. The bootstrap layer now bakes a tinydocker -> podmanwrapper at/usr/local/bin/docker(already on the bakedPATH) that execs the baked podman, sodocker-literal callers get a working binary without pulling in the Docker engineinstall.sh --mode direnv --forceno longer clobbers a populated consumer repo (#738)direnvmode deployed the full workspace template over it: the scaffoldrsyncoverwrote a realpyproject.tomlwith the generic template one, and copied the template.devcontainer/before the mode prune deleted the directory wholesale — destroying tracked files (devcontainer.json, project compose files, …).pyproject.tomlis now in the never-overwritePRESERVE_FILESclass, anddirenvmode excludes.devcontainer/from the copy and skips the prune when a populated.devcontainer/predates the (re)scaffold, so real project files survive untouched.--forcestill deploys the Nix/direnv stub (flake.nix,.envrc,.vig-os) onto repos that lack itinstall.shno longer prints a misleadingUser configuration script not found … copy-host-user-conf.shwarning indirenvmode, which scaffolds no.devcontainer/and therefore has no host-user-conf step to run/usr/bin/envnow exists in the Nix-built image (#727)dockerTools.buildLayeredImagehad no/usr/binat all, so the ubiquitous#!/usr/bin/env <interp>shebang failed with/usr/bin/env: bad interpreter: No such file or directory— breaking essentially every Node/Python/Ruby CLI (e.g.node_modules/.bin/tsc) for image-mode consumers. AddeddockerTools.usrBinEnv(the FHS shim symlinking/usr/bin/envto coreutilsenv) to the image package set, alongside the existingfakeNssshimnpm install -gnow lands CLIs on PATH in the Nix image (#728)nodejsnix-store path, whosebin/is not onPATH— sonpm install -g <tool>reported success but the binary was unresolvable (command -v <tool>failed). The image now bakesNPM_CONFIG_PREFIX=/usr/local(already on the bakedPATH) and creates a writable/usr/local/binin the bootstrap layer, so globally installed CLIs resolve onPATHinit-workspace --mode direnvnow produces a loadablejustfile(#641)justfilehard-imported.devcontainer/justfile.devcand.devcontainer/justfile.gh, butdirenvmode prunes.devcontainer/— so everyjustcommand (including init-workspace's own finaljust sync) failed to parse in a direnv-mode workspace. Made the two.devcontainer/imports optional (import?, matchingjustfile.project/justfile.local); thesyncrecipe lives in the preservedjustfile.project, sojust syncstill works in all modes.claude/SSoT (#627)justfile.worktreereading the removed.cursor/tree: a dead_read_modelhelper pointed at.cursor/agent-models.toml, and the branch-naming rule passed toderive-branch-summarywas.cursor/rules/branch-naming.mdc. Removed the unused helper and repointed the rule at.claude/skills/branch-naming/SKILL.md; trimmed the stale.cursor/wording from the sync-manifest comment. Addedworktree-claude-cli.bats/test_claude_ssot.pyguards against entrypoints reading removed.cursor/config pathsderive-branch-summary(invoked byjust worktree-startto name an unlinked branch) still shelled out to the removedcursor-agentbinary (agent --print --yolo --trust); with no test exercising the non-BRANCH_SUMMARY_CMDpath it slipped through CI. It now drivesclaude --print --dangerously-skip-permissions, andagent-models.tomltiers map to claude model aliases (haiku/sonnet/opus) instead of Cursor names (composer-1.5/sonnet-4.5/opus-4.6) so--modelresolvesDEVCONTAINER_VERSION(#701)TEST_CONTAINER_TAG) but then brought the devcontainer up from whateverDEVCONTAINER_VERSIONresolved to (the published0.3.9), so it validated fresh scaffolding running inside a stale image. Thedevcontainer_up/devcontainer_with_sidecarfixtures now exportDEVCONTAINER_VERSION=TEST_CONTAINER_TAG; compose reads the shell environment over.env, so the scaffoldeddocker-compose.ymlresolves to the build under test (and everydevcontainer exec, which inherits the environment, agrees). Addedtest_devcontainer_runs_image_under_testasserting the running container's imagepymarkdown'spyjson5libstdc++on NixOS without breakingjuston FHS hosts (#698, #703)pymarkdownhook runs from pre-commit's own manylinux-wheel Python env, whose dependencypyjson5is a C extension linked againstlibstdc++.so.6; on a NixOS host that library is off the loader path outside an FHS environment, so the hook aborted withImportError: libstdc++.so.6and forced--no-verify. Unlike the standalone binaries in #697,pymarkdownis not in nixpkgs, so the "add todevTools+language: system" recipe does not applymkProjectShellnow appends the Nix C++ runtime (${stdenv.cc.cc.lib}/lib, libstdc++) toLD_LIBRARY_PATHonly on NixOS ([ -e /etc/NIXOS ]), where it is both required (libstdc++ is off the default loader path) and ABI-safe (the system glibc is the Nix glibc). On an FHS host the system loader resolveslibstdc++and nothing is exported — avoiding theGLIBC_ABI_DT_X86_64_PLT not foundbreakage an unconditional export caused in hostjust/bash recipes (whose#!/usr/bin/env bash, plus anything/etc/ld.so.preloadforceslibstdc++into, were dragged onto the Nix C++ runtime built against a newer glibc). The dev-shell parity tests are gated to NixOS and an FHS leak-guard (test_devshell_no_nix_cxx_runtime_leak_on_fhs_host) was addedruff,ruff-format, andtyposhooks pulled compiled tools as generic-linux (manylinux) wheels fromastral-sh/ruff-pre-commitandcrate-ci/typos; a NixOS host cannot execute those binaries out of the box (no FHSld-linux), forcing--no-verifyon every local commitruffandtyposto the flakedevToolsSSoT and converted the three hooks torepo: local/language: system(ruff check --fix,ruff format,typos), so they resolve their tool from the Nix dev-shell like the other local hooks — no host setup needed inside the dev-shell. Hook versions now tracknixpkgs/flake.lock(Renovatenixmanager) instead of upstreamrev:pins, consistent with the [MASTER] Migrate devcontainer to a Nix toolchain + Claude-native setup #625 toolchain consolidation. The scaffoldedassets/workspace/.pre-commit-config.yamlislanguage: systemas well (no upstream-hook decoupling — downstream workspaces resolve the tools from the toolchain baked into the image)rufffrom the project's uv dependency groups (pyproject.toml/uv.lock) and repointedjust lint/just formatto the flakeruff(droppinguv run). Otherwise the venv'sruff(a manylinux wheel) shadowed the flakeruffunderuv run— which is how the.githooks/pre-commithook and thejustrecipes invoke it — soruffstayed broken on NixOS; the flake is now the singleruffsource (its[tool.ruff]config is unchanged)PATHin the devcontainer image's OCIconfig.Env.buildLayeredImagesymlinks the toolchain into/binbut set no PATH;podman runinjects a default (so it worked), butdocker-compose/devcontainer execinheritconfig.Envverbatim, leaving the baked toolchain off PATH solanguage: systemhooks could not resolve. Added an image test asserting the OCI config declares a PATH containing/binChangelog truncated to fit GitHub's 65000-char PR-body limit; see
CHANGELOG.mdonrelease/0.4.0for the full entry.