Repository navigation
chore: release 0.5.0 - #938
Conversation
The one-release-cycle pre-commit -> prek shim (#881) was scheduled for removal in 0.5; 0.4.1 is frozen, so drop the writeShellScriptBin block from imageTools. Consumers still invoking pre-commit now get exit 127; the upgrade-time scan (#881) keeps warning with file:line and docs/MIGRATION.md carries the rename checklist. Refs: #897
`modules = [ "<name>" ]` resolves curated capability modules from the new nix/modules/ registry (v1 contract: packages + env + shellHook fragments, per docs/rfcs/ADR-capability-modules.md) and merges their contributions after extraPackages and before the consumer shellHook. The zero-module shell stays byte-identical to the previous builder (drvPath unchanged on x86_64-linux and aarch64-linux) and the published image stays base-only. Ships the native module (stdenv.cc, cmake, gnumake, pkg-config, generic CC/CXX exports) plus generated per-module flake checks module-<name> on every default system. Refs: #884
…anches The prepare-release workflow stopped stripping the empty ## Unreleased from the release branch so the freeze commit stays a stable main-dev merge base, but RELEASE_CYCLE.md still described the old strip step in both workflow walkthroughs, the output example, and the changelog maintenance notes. Refs: #590
…n ends) (#899) ## Description Removes the one-release-cycle `pre-commit -> prek` compat shim from the image, ending the deprecation window opened by #881. The 0.4.1 release (with the shim) is frozen on `release/0.4.1`; `dev` is the 0.5 line, so the scheduled removal lands here. ## Type of Change - [ ] `feat` -- New feature - [ ] `fix` -- Bug fix - [ ] `docs` -- Documentation only - [x] `chore` -- Maintenance task (deps, config, etc.) - [ ] `refactor` -- Code restructuring (no behavior change) - [ ] `test` -- Adding or updating tests - [ ] `ci` -- CI/CD pipeline changes - [ ] `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**: dropped the `writeShellScriptBin "pre-commit"` block (marked `DEPRECATED — remove in 0.5 (#881)`) from `imageTools` — the exact inverse of the #881 diff; nothing else in the flake touched. - **tests/test_image.py**: removed `test_pre_commit_compat_shim`; restored the #778 absence assertion that #881 displaced in `test_pre_commit_installed` (`command -v pre-commit` must fail in the image). - **docs/MIGRATION.md**: upgrade step 3 now states 0.5 images carry no `pre-commit` binary (exit 127); the rename checklist and the #881 upgrade-time scan guidance stay. `assets/init-workspace.sh` untouched — its scan and "through 0.4.x only" wording remain accurate. - **CHANGELOG.md** + `assets/workspace/.devcontainer/CHANGELOG.md` (sync-manifest mirror): `Removed` entry under `## Unreleased`. ## Changelog Entry ### Removed - **`pre-commit` compat shim removed from the image** ([#897](#897)) - The one-release-cycle `pre-commit → prek` shim shipped in 0.4.x ([#881](#881)) is gone; `pre-commit` invocations now fail with exit 127. - Consumers had the 0.4.x cycle to rename invocations; the upgrade-time scan still warns with `file:line` on preserved surfaces — see `docs/MIGRATION.md` for the rename checklist (justfile recipes, repo-owned `.githooks/`, CI configs → `prek`). ## Testing - [x] Tests pass locally (`just test-image` scope relevant to the change) - [x] Manual testing performed (describe below) ### Manual Testing Details TDD RED/GREEN against locally built images (`just build`, ~46 s warm store each): - **RED** (shim-bearing image at `origin/dev`): flipped `test_pre_commit_installed` fails — `command -v pre-commit` resolves to `/bin/pre-commit` (the shim). - **GREEN** (shim-free rebuild): `tests/test_image.py::TestDevelopmentTools` + `::TestPythonEnvironment` — **27 passed** in 16.82 s. - Full hook suite green: `just precommit` (`prek run --all-files`) — all hooks Passed, 0 Failed. ## 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 (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 - [x] Any dependent changes have been merged and published Closes #897
Refuse upgrades on main/dev/release/* or detached HEAD and on a dirty tree; offer chore/devkit-upgrade-<version> on a protected branch; add --skip-preflight bypass. --smoke-test, --preview, and fresh installs are exempt. Refs: #886
Extends the --force conflict report with mode-aware filtering, an ADDED listing, and the mode-prune DELETED listing, then exits 0 before any mutation. install.sh forwards the flag and skips post-init in preview. Refs: #886
MIGRATION.md updating section, install.sh/devc-upgrade help surfaces, and the changelog entry (with the sync-manifest mirror). Refs: #886
…anches (#900) ## Description `docs/RELEASE_CYCLE.md` still described `prepare-release` as stripping the empty `## Unreleased` section from the release branch. Since #590 the workflow deliberately keeps it on both branches — the freeze commit is the stable main↔dev merge base, and the sync merge keeps `## Unreleased` instead of silently dropping it (behavior documented in the `prepare-release.yml` header). Noticed while cutting `release/0.4.1` (PR #898), which correctly carries the empty section. ## Type of Change - [x] `docs` -- Documentation only ## Changes Made - Phase 1 walkthrough and "Scripts and Tools" workflow summary: strip steps removed, keep-behavior stated with the #590 rationale - CHANGELOG-state listing + output example: release branch now shows `## Unreleased (empty) + ## [X.Y.Z] - TBD` - CHANGELOG Maintenance best practice: release-branch guidance no longer claims the section doesn't exist ## Changelog Entry No changelog needed — internal process-doc accuracy fix, no user-facing behavior change. ## Testing Not applicable (docs only); full hook suite green locally. Refs: #590
Release candidates are disposable verification artifacts (auto-incrementing rcN tags, never touch :latest, no GitHub Release, pruned at promote), yet release.yml's validate job required the release PR to be non-draft and approved before any candidate could be published — forcing reviewers to approve before the artifact they would verify exists. Guard the draft + reviewDecision checks on release-kind == final; keep the CI-status checks for both kinds. The gate that protects main (not-draft + approved) is re-enforced by promote-release's merge job regardless, so moving it off the candidate loses no safety. Reorder RELEASE_CYCLE.md, justfile, and CONTRIBUTE.md accordingly: verify via candidates first, then mark ready and get approval before finalize. Refs: #902
…t) (#901) ## Description Implements the modular capability layer on top of `mkProjectShell` (#884): consumers declare capabilities (`modules = [ "native" ]`) instead of hand-picking packages. Ships the v1 contract design note, the composition seam, the `native` module, per-module flake checks, a uv C-extension sdist smoke test, and consumer docs. Builder-level decisions from ADR-nix-devenv-strategy are not reopened (plain `mkShell` stays; no devenv/devshell frameworks). Closes #884 ## Type of Change - [x] `feat` -- New feature ### Modifiers - [ ] Breaking change (`!`) -- This change breaks backward compatibility ## Changes Made - **Design note** `docs/rfcs/ADR-capability-modules.md`: v1 module contract = packages + env vars + shellHook fragments only; composition/precedence rules with `extraPackages`/`shellHook`; zero-module byte-identical invariant; migration path to per-module option attrsets; hooks-contribution recorded as an open question for #883; `DEVKIT_MODULES` (#885) cross-referenced as the scaffold-level mapping. - **Composition seam** in `mkProjectShell` (flake.nix): new `modules ? [ ]` argument resolves names against the new `nix/modules/` registry and folds contributions — `packages` appended after `extraPackages` (escape hatch wins PATH lookup), `env` merged under the builder's own pins (a module can never break the UV_PYTHON bootstrap), shellHook fragments before the consumer hook. One self-contained diff region, merge-friendly for #883's `hooks` argument. Unknown names throw with the available list. - **`native` module** (`nix/modules/native.nix`): `stdenv.cc`, `cmake`, `gnumake`, `pkg-config` + generic `CC=cc`/`CXX=c++` exports (via shellHook fragment — stdenv.cc's setup hook would clobber static env attrs). The long-term #879 answer: the 0.4.1 image sysconfig sanitize makes build backends do PATH discovery; this module provides the PATH. `geant4`/`rust`/`fortran`/`root` stay ask-gated candidates (named in docs, not shipped — YAGNI). - **Checks**: generated `checks.<system>.module-<name>` devshell build per registry entry (a module cannot ship without its check); evaluates on all default systems incl. x86_64-linux and aarch64-linux. - **Tests**: `tests/test_flake_modules.py` — toolchain-on-PATH (env-isolated), generic CC/CXX, and an end-to-end uv sdist build+install of a trivial setuptools C-extension fixture (`tests/fixtures/native_ext/`) inside the module devshell. - **Docs**: MIGRATION.md native-build contract tier 2 now leads with the `modules = [ "native" ]` one-liner (hand-rolled `extraPackages` stays as the equivalent/escape hatch); worked Geant4/ROOT example updated; NIX.md gains a capability-modules section; explicit statement everywhere that the published image stays base-only. ## Changelog Entry ### Added - **Opt-in capability modules for `mkProjectShell`** ([#884](#884)) - `modules = [ "native" ]` composes curated capability modules (packages + env vars + shellHook fragments) onto the project dev-shell; contract recorded in `docs/rfcs/ADR-capability-modules.md`. - Zero-module shells are byte-identical to the previous builder and the published image stays base-only; `extraPackages` remains the per-repo escape hatch and wins PATH lookup. - `native` module ships first (`stdenv.cc`, `cmake`, `gnumake`, `pkg-config`, generic `CC`/`CXX`) — the long-term [#879](#879) answer; `geant4`/`rust`/`fortran`/`root` stay ask-gated candidates. - Per-module flake checks (`checks.<system>.module-<name>`) plus a uv C-extension sdist smoke test (`tests/test_flake_modules.py`). ## Testing - [x] Tests pass locally (`just test` subset relevant to the change) - [x] Manual testing performed (describe below) ### Manual Testing Details - **Zero-module parity (byte-identical):** `nix eval .#devShells.<sys>.default.drvPath` identical before/after on both Linux systems — `vwmxsdhqfrmi986p9agf67cdn9m3dl01-nix-shell.drv` (x86_64-linux), `p8h7b0svl7kf22rqvsnw23l7f45q4chb-nix-shell.drv` (aarch64-linux). `tests/test_flake_devshell.py` untouched and green: 11 passed, 1 skipped (host-gated), 17 s. - **Module tests (TDD):** committed RED first (`checks.x86_64-linux.module-native` did not exist); after the seam landed: `tests/test_flake_modules.py` 3 passed — incl. the sdist smoke (`uv build --sdist` -> `uv pip install <sdist>` -> `import native_ext; answer() == 42`) inside the `native` devshell. - **Module check eval on both systems (+darwin):** `checks.{x86_64-linux,aarch64-linux,aarch64-darwin}.module-native.drvPath` all evaluate; x86_64-linux built. - **Flake gates:** `nix build` of `checks.x86_64-linux.{module-native,devShell,deadnix,statix,devShellTools,formatting,pre-commit}` green (7.8 s warm); `tests/test_flake_checks.py` + `tests/test_downstream_flake.py` (full `nix flake check` + scaffold-against-local-toolchain) 15 passed, 17 s. - **Error path:** unknown module name throws `unknown capability module 'nope'; available: native`. - **Hooks:** full `just precommit` (prek, all files) green. ## 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 (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 - [x] Any dependent changes have been merged and published ## Additional Notes - Coordination: #885 (`DEVKIT_MODULES` in `.vig-os`) maps onto this flake-level contract; #883's consumer `hooks` argument lands beside the seam (module hooks-contribution is the recorded open question in the design note). - The aarch64-linux / darwin module checks are eval-verified locally; CI covers builds per the existing per-system lanes. Refs: #884
…eflight-guard # Conflicts: # CHANGELOG.md # assets/workspace/.devcontainer/CHANGELOG.md
RED: nix/hooks.nix and the lib.hooksPortable / mkProjectShell hooks surface do not exist yet, so the fidelity and consumer-surface tests fail. The zero-hooks parity tests pin today's behavior. Refs: #883
… report (#903) ## Description Adds the upgrade preflight guard and diff preview specified in #886: `install.sh --force` (the upgrade path) now requires a dedicated working branch with a clean tree, so every scaffold upgrade lands as a single reviewable, revertible diff; a new `--preview` mode prints the full file report without touching the tree. Closes #886 ## Type of Change - [x] `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 - [ ] `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 - **`install.sh` — host-side preflight guard on the `--force` path only** (the host is the only place git state is reliable; a worktree's gitdir is not mounted into the container): - refuses on `main`, `dev`, `release/*` (prefix), and detached `HEAD`; - refuses on a dirty tree (`git status --porcelain` must be empty; gitignored clutter passes); - on a protected branch with a clean tree, offers to create and switch to `chore/devkit-upgrade-<version>`; non-interactively it refuses with that command as the hint; - non-git directories get a loud "no VCS safety net" warning plus an explicit confirmation; - a single `--skip-preflight` flag bypasses, printed in every refusal; - exemptions: `--smoke-test` (the downstream release gate runs `install.sh --version <tag> --smoke-test --force --docker .` headless — verified against devcontainer-smoke-test `repository-dispatch.yml`), `--preview` (report-only), and fresh installs (no `--force`); - under `--dry-run` the guard still evaluates but never mutates (accepting the branch offer only reports what it would do). - **`assets/init-workspace.sh` — `--preview` mode**: rides the existing conflict-report machinery (now mode-aware: direnv-mode `.devcontainer/` and devcontainer-mode stub filters), extended with an ADDED listing and the mode-prune DELETED listing (`.devcontainer/justfile.base` on upgrades, the direnv-mode `.devcontainer/` prune), then exits 0 before any mutation. `install.sh` forwards the flag and skips all post-init (user conf, git setup) in preview. Kept cleanly callable for #885's destructive mode switches. - **`devc-upgrade` recipe**: surfaces the guard and the new flags in its help/output text (no logic change). - **Docs**: `docs/MIGRATION.md` gains an "Upgrade preflight guard and preview" section; `install.sh --help` documents `--skip-preflight` and the `--preview` vs `--dry-run` distinction. ## Changelog Entry ### Added - **Preflight guard and diff preview for scaffold upgrades** ([#886](#886)) - `install.sh --force` upgrades now refuse on `main`/`dev`/`release/*`/detached HEAD and on a dirty tree, so every upgrade lands as a reviewable, revertible diff on a dedicated branch; on a protected branch with a clean tree the installer offers to create and switch to `chore/devkit-upgrade-<version>`, and non-git directories get a warn-and-confirm path. A single `--skip-preflight` flag bypasses the guard; `--smoke-test` runs and fresh installs are exempt. - New `--preview` mode prints the add/overwrite/preserve/delete file report (including mode-prune deletions such as the retired `.devcontainer/justfile.base`) and exits without changing any files — unlike `--dry-run`, which only prints the container command. ## Testing - [x] Tests pass locally (`just test`) - [x] Manual testing performed (describe below) ### Manual Testing Details TDD (RED commit first, then implementation): - `tests/bats/install.bats`: 78/78 — protected branches (main/dev/`release/*` prefix), detached HEAD, dirty tree (tracked + untracked-unignored), gitignored-only clutter passes, git-worktree fixture (`.git` file) both refusing and passing, `--skip-preflight`, `--smoke-test` exemption, non-git warn/confirm/decline, dry-run branch offer never mutates, fresh-install exemption, `--preview` forwarding + guard exemption, help text. - `tests/bats/init-workspace.bats`: 81/81 — `--preview` exits 0 with the report, leaves the tree byte-identical (`diff -r` against a pre-copy), lists `.devcontainer/justfile.base` and the direnv-mode `.devcontainer/` prune as DELETED without deleting, works without `--force` on a populated tree, lists ADDED files without scaffolding them. - `uv run pytest`: 820 passed; the two `tests/test_image.py` failures are stale-local-image artifacts (one also fails on the dev base commit; the other is the manifest sha check against a local image that predates this branch's changelog/justfile.devc edits — CI rebuilds the image from the branch). - Full hook suite green: `just precommit` → exit 0. ## 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 (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 - Accepted residual gap (per the issue's alternatives): direct `podman run … init-workspace.sh --force` invocations bypass the host guard. - The `nix-image.yml` CI scaffold check runs `init-workspace.sh` directly against a fresh temp dir — host guard not in its path, unaffected. Refs: #886
…consumer surface nix/hooks.nix defines every pre-commit hook once and renders three artifacts: the sandbox-pure checks.pre-commit gate (unchanged rawConfig), the PATH-portable committed .pre-commit-config.yaml + scaffold copy (drift-gated via lib.hooksPortable), and an opt-in consumer surface — mkProjectShell gains hooks (per-hook toggle/override/custom hooks) and hooksExcludes (global excludes) wired through git-hooks.nix, whose shellHook installs the rendered config on shell entry. The zero-hooks shell derivation is byte-identical to the previous builder. Refs: #883
…al (#907) ## Summary Moves the release approval gate off the **release-candidate (RC)** dispatch and onto the **final** dispatch. Today `release.yml`'s `validate` job runs the same "Find and verify PR" gate for *both* `release-kind=candidate` and `release-kind=final`: it requires the release PR to be **non-draft**, **approved**, and **CI-green** before it will cut anything. That forces a reviewer to approve the release PR *before* any RC image exists — i.e. before the artifact they would functionally verify has been built — and lands approval on an intermediate diff rather than the one that ships. RCs are already low-blast-radius: an RC burns a fresh auto-incrementing `X.Y.Z-rcN` tag + `:X.Y.Z-rcN` GHCR images (+cosign/SBOM) and dispatches the smoke-test. It does **not** touch `:latest`, creates **no** GitHub Release on this repo, merges nothing, and is pruned at promote. Gating that behind full PR approval is over-restrictive. ## What changed - **`release.yml`** (`validate` job): the draft (`isDraft`) + approval (`reviewDecision`) checks are now guarded by `if [ "$RELEASE_KIND" = "final" ]`. The CI-status checks stay unconditional — **candidates gate on CI-green only**. - **Docs / justfile / CONTRIBUTE**: reordered so candidates are published to verify *first*, then the PR is marked ready + approved *before* `finalize-release`. `docs/RELEASE_CYCLE.md` flowchart, phase summaries, prerequisites, and troubleshooting updated; `CONTRIBUTE.md` change made in its Jinja template (`docs/templates/CONTRIBUTE.md.j2`). - **CHANGELOG**: `Changed` entry under `## Unreleased` (+ synced workspace mirror). ## Why this is safe The gate that protects `main` is **never lost**: `promote-release.yml`'s `merge` job independently re-verifies not-draft + approved + CI before merging to `main` and undrafting the Release. Final still burns the immutable `X.Y.Z` tag, so it keeps the ready + approval gate. Promote is unchanged. ## Design decisions (from discussion) - **RC gate = CI-green only** (not fully ungated): keeps the cheap "no RC on a red branch" floor and a thin supply-chain floor; `build-and-test`/`vulnix-gate` run inside the RC anyway. - **Approval at the final dispatch** (not deferred to promote): final burns the immutable tag, so it deserves human sign-off at that step. ## Verification - `just precommit` green end-to-end locally (incl. `generate-docs`, `sync-manifest` idempotent). - No unit test covers the `release.yml` gate (no `release.bats`); this workflow change is verified by the hook suite + the conditional logic. The RC/final paths differ only by the guarded block. Refs: #902
…ffold example docs/NIX.md supersedes the two-artifact section with the three-render model; docs/MIGRATION.md documents the opt-in generation contract (preserved YAML never overwritten, gitignore the generated file, #885 manifest opt-out cross-reference); the scaffold consumer flake gains a commented hooks example; scripts/manifest.toml drops the .pre-commit-config.yaml transform chain (the fidelity test is the single agreement mechanism); CHANGELOG Unreleased/Added entry + mirror. Refs: #883
…nifest .vig-os becomes the project's declarative manifest: DEVKIT_MODE, DEVKIT_PROJECT, DEVKIT_ORG, DEVKIT_REPO (and reserved DEVKIT_MODULES) are resolved with flag/env > .vig-os > prompt/default precedence, written back on every (re)scaffold, and read by install.sh so upgrades need no mode/identity flags. An explicit --mode contradicting the persisted DEVKIT_MODE refuses, pointing at --preview and the preflight-guard flow. Refs: #885
A version-only .vig-os (or none) gets its DEVKIT_MODE inferred from the tree shape on --force upgrades: populated .devcontainer/ plus flake/envrc widens to both (ambiguity resolves wide, with a printed note), single markers map to devcontainer/direnv, interactive runs confirm, and the result is persisted so the manifest self-documents from the first upgrade. Refs: #885
test_install_creates_src_directory / _tests_directory asserted the installed workspace has a Python package layout; the language-neutral scaffold ships neither. Flip both to assert absence, matching the dropped pyproject.toml. Refs: #929
) ## Summary The autochangelog was silently dropping grouped Renovate PRs. `renovate-changelog-pr` parsed the update table only when the change cell used an ASCII `->`, but Renovate renders it with the Unicode arrow `→` (U+2192), e.g. `` `v4.2.0` → `v4.4.0` ``. So `_parse_table_updates` returned `[]` for every real Renovate PR body; a changelog entry only appeared when the PR *title* matched the fallback (digest bumps, single `update X to Y`). Grouped PRs (#866) and pins got nothing. Discovered while verifying autochangelog behaviour on the recreated #862/#866. ## Change - `_parse_change_cell`: accept both `→` and `->` (quoted and unquoted/digest cells). ## TDD - **RED** (`6097c9c7`): tests with the real Unicode arrow — failed (parser returned `[]`). - **GREEN** (`daf2e54e`): widen the regex — 14/14 file tests pass, full vig-utils suite 516 passed. - End-to-end: the real #866 body now parses all three updates (`trivy`, `setup-uv`, `docker/login-action`). Root `CHANGELOG.md` + its verbatim `.devcontainer` mirror updated in lockstep. Full pre-commit suite green. Refs: #936 Closes #936
…late (#933) ## Summary Makes the copied project scaffold **language-neutral** and ships Python as an **opt-in** flake template. Historically every consumer inherited a Python *package* starter (`pyproject.toml`, `src/template_project/`, `tests/`) plus a uv/ruff/pytest CI contract — wrong for the many non-Python repos (Rust, TS actions, data mirrors), whose CI even failed on adoption (`just test` → `uv run pytest` exits 5 with no project). Closes #929 Closes #930 ## What changed **Language-neutral scaffold (#929)** - Deleted the Python package starter from `assets/workspace/` (`pyproject.toml`, `src/template_project/`, `tests/`). - Guarded `lint`/`format`/`test`/`test-cov` in `justfile.project` on `pyproject.toml` (mirroring the existing `sync` guard), so `just sync|precommit|test` and both CI contracts stay green on a repo with no Python. - Removed the now-dead `src/template_project` rename + test-import rewrite from `init-workspace.sh`; `pyproject.toml` stays in `PRESERVE_FILES`, so a consumer that brings its own is never clobbered. - Updated bats + image tests, `MIGRATION.md`, the README template, `manifest.toml` (documents that Python files are intentionally never synced), and `CHANGELOG.md`. **Opt-in Python starter (#930)** - New `templates/python/` (concrete `example_pkg`, minimal pytest dev group), registered as `templates.python`. Restore a Python layout on demand with `nix flake init -t github:vig-os/devcontainer#python`. ## Why one PR #929 and #930 must ship together (removal + restore path), so they are bundled here; each commit carries its own `Refs:`. ## Verification (local, all green) - **bats: 112/112**. - **Non-Python CI proof:** every guarded recipe + `just sync && just test` exit 0 with no `pyproject.toml`. - **Template smoke:** `nix flake init -t .#python` → rename `example_pkg` → `uv sync` + `pytest` → 1 passed. - **`nix flake check --no-build`:** all checks pass (validates `templates.python`). - **Full `prek run --all-files`: green.** - Image-dependent pytest (`test_install_script.py`, `test_image.py`, `test_integration.py`) edited + syntax/lint-clean; exercised by the `test-integration` CI job.
…932) Closes the last live Scorecard \`TokenPermissions\` finding (alert #7627). ## What `nix-image.yml` granted `packages: write` at the **top level**, so every job in the workflow inherited a writable `GITHUB_TOKEN`. Scorecard scores that 0. This defaults the top-level token to `contents: read` and escalates `packages: write` per job: - `build-and-test` — new job-scoped block (GHCR login + per-arch discovery-tag push) - `multi-arch-index` — already self-scoped, unchanged No behavioural change; the same jobs retain the same write scope, just declared at job level. Alert #7627 auto-resolves on the next Scorecard run of `main`. ## Context Part of the post-#642 security-tab close-out (#931): the 308 orphaned Debian Trivy alerts were cleared by deleting the dead `container-image-latest` analysis chain, and the 12 job-level Scorecard writes (release/promote/sync automation, minimal required scope) were dismissed as won't-fix. This PR is the one finding worth fixing in code. Refs: #931
Move Unreleased content to [0.5.0] - TBD and create fresh empty Unreleased section for continued development.
The 2026-06-24 curl advisory batch added 17 HIGH/CRITICAL CVEs against curl 8.20.0 to the vulnix feed, blocking the 0.5.0-rc1 publish at the vulnix gate. curl is 8.20.0 in the pinned rev, latest nixos-26.05, and nixpkgs-unstable, and upstream has no newer release, so there is no version bump to advance to. Accept the findings as awaiting-upstream with a short expiry (2026-07-22); drop the block and advance the pin once a patched curl lands. Refs: #941
Unblocks the `0.5.0-rc1` publish, which failed at the vulnix CVE gate on 17 HIGH/CRITICAL curl 8.20.0 findings ([run](https://github.com/vig-os/devcontainer/actions/runs/28954286382)). ## Why an exception (not a bump) curl is `8.20.0` in the pinned rev, latest `nixos-26.05`, and `nixpkgs-unstable`; upstream curl has no release newer than 8.20.0. Since vulnix matches by version, there is no bump to advance to — the only levers are a register exception or holding the release. ## Change Adds a time-boxed block to `.vulnixignore` (expiry **2026-07-22**, `awaiting-upstream` rationale) covering the 17 CVEs, per the IEC 62304 exception-register model already used for openssl/glibc/zlib/libssh2/podman. Also unblocks the red nightly `security-scan`. ## Verification - `check-expirations .vulnixignore` → pass (53 exceptions validated) - `vulnix-gate` against synthetic curl-8.20.0 findings: old register blocks all 17 (exit 1), new register passes (exit 0, 53 exceptions applied) - Full `prek run --all-files` green ## Follow-up Drop the block and advance the nixpkgs pin once a patched curl lands (Renovate nix manager should surface it). Refs: #941
The #python starter declared pytest/pytest-cov as a [project.optional-dependencies] extra, but the scaffold's managed sync is groups-only (uv sync --all-groups; extras opt-in). A project scaffolded from the template and following its README (just sync && just test) thus could not find pytest. Move them to [dependency-groups].dev so the default sync installs them and uv run pytest works. Refs: #944
## Problem
`templates/python/pyproject.toml` declares dev tooling as an extra
(`[project.optional-dependencies].dev`), but the scaffold's managed
`sync` is groups-only by design (`sync *args="--all-groups"`). So a
project scaffolded from `nix flake init -t ...#python` that follows the
template README ("Then `just sync` and `just test`") can't find pytest —
`just test` fails with `Failed to spawn: pytest`. Not caught by CI (no
test inits the template and runs its test flow).
## Fix
Move `pytest`/`pytest-cov` to `[dependency-groups].dev` (PEP 735).
Aligns the template with the scaffold's 'extras are opt-in' contract;
the documented `just sync && just test` flow now works.
## Verification
Scaffolded a copy of the template: `uv sync --all-groups` installs
pytest==9.1.1 / pytest-cov==7.1.0; `uv run pytest` → 1 passed. Full
`prek run --all-files` green.
## Notes
- Template/config change, no test to break (`test_just_test_recipe`
covers only the language-neutral base) — TDD skipped per repo policy for
template/config.
- Independent of the smoke-test fix (devcontainer-smoke-test#206); the
smoke-test does not use the template.
Refs: #944
#920 added packages: read to the reusable release workflows' (release-core, release-publish) jobs so they can pull the authenticated GHCR image, but the reusable-workflow-calling jobs (core, publish) in the scaffold release.yml were not updated to grant it. A reusable workflow cannot request a permission its calling job did not grant, so a consumer release run fails with startup_failure. Grant packages: read on both callers (release-extension requests none; the extension caller inherits the workflow-level default). Verified: each caller's grant is now a superset of its callee's requested scopes. Refs: #947
## Problem #920 added `packages: read` to the reusable release workflows' jobs (`release-core` x3, `release-publish` x2) to pull the authenticated GHCR image, but the reusable-**calling** jobs (`core`, `publish`) in the scaffold `release.yml` weren't updated to grant it. A reusable workflow can't request a permission its calling job didn't grant → a consumer release run fails with `startup_failure`. Surfaced by the 0.5.0-rc1 smoke-test's downstream release orchestration (release run startup_failure). Worked in 0.4.1 (no `packages: read` anywhere). Never caught upstream (the devcontainer repo's own release.yml is monolithic; the split lives only in the shipped scaffold). Refs #943. ## Fix Grant `packages: read` on the `core` and `publish` calling jobs. Verified each caller's grant is now a superset of its callee's requested scopes: - release-core needs {actions:write, contents:write, pull-requests:read, packages:read} — core now grants all (actions:write was already present). - release-publish needs {contents:write, packages:read} — publish now grants both. - release-extension needs {contents:read} — extension caller inherits the workflow-level {contents:read, packages:read}. `promote-release.yml` audited: it calls no reusables and already sets `packages: read` where needed — no change. Refs: #947
🧪 Local validation —
|
| Area | Feature | Verdict |
|---|---|---|
| #885 | .vig-os manifest + mode inference on upgrade |
✅ PASS — devcontainer inferred for mat/vault, both for talys/scitadel; printed, persisted, tree never reshaped |
| #885 | New bare delivery mode |
✅ PASS — prunes .devcontainer/+flake.nix+.envrc, ships host-native ci.yml (setup-uv, no resolve-image), pins rust-just/prek |
| #886 | Preflight guard | ✅ PASS — refuses on main/dev/release/*/detached/dirty (each with --skip-preflight hint); offers + really creates/switches chore/devkit-upgrade-<v>; --skip-preflight bypasses; fresh installs exempt |
| #886 | --preview no-mutation |
✅ PASS — leaves tree clean; |
| #921 | Imageless init-workspace.sh tag stamp |
✅ PASS — bare podman run pins the real 0.5.0-rc2 from baked /root/assets/VERSION; explicit VIG_OS_VERSION still wins |
| #929 | Language-neutral scaffold | ✅ PASS — on no-code vault, just lint/format/test/test-cov/sync all no-op rc=0; consumer pyproject.toml preserved on mat |
| #930 | Opt-in #python template |
✅ PASS — nix flake init -t …#python restores pyproject+src/example_pkg+tests, no placeholders, dev=[pytest,pytest-cov] only (no science/jupyter), builds+tests green in-container |
| #883 | Flake-generated hooks | ✅ PASS — single nix/hooks.nix fans out to checks.pre-commit+committed YAML+consumer surface; test_flake_hooks.py 13 passed (no drift); installs as symlink, never touches core.hooksPath; #878 hand-edit preserved |
| #884 | Capability modules | ✅ PASS — module-native check builds; test_flake_modules.py 3 passed (C-ext sdist compile); zero-module drvPath byte-identical to default; extraPackages wins PATH |
| #892 | sync no longer forces --all-extras |
✅ PASS — shipped justfile.project is sync *args="--all-groups" |
🐛 Confirmed bug — --preview/--force file report is blank on the Nix image
The pre-upgrade "which files will be OVERWRITTEN / ADDED / PRESERVED" report is always empty on the 0.5.0 Nix image, so --preview (and the interactive --force confirmation) reports "No existing files would be overwritten. No new files would be added." immediately before an upgrade that in fact rewrites ~21 managed files (verified on talys).
Root cause: the classifier at assets/init-workspace.sh:534 uses find "$TEMPLATE_DIR" -type f, but on the Nix image /root/assets/workspace is 998 store symlinks, 0 regular files — so -type f matches nothing. The actual copy uses rsync -avL (follows symlinks) and works fine; only the report is blind. The DELETED section stays accurate (it scans the workspace, not the template).
# in the rc2 image:
find /root/assets/workspace -type f → 0
find -L /root/assets/workspace -type f → 1872
Suggested fix: add -L (follow symlinks) to that find, e.g. find -L "$TEMPLATE_DIR" -type f …. This defeats the purpose of the #886 reviewable-upgrade preview, so worth fixing before 0.5.0 final. Reproduced 3 independent ways (in-flight, clean-talys repro, controlled tree-divergence). Tracked in the follow-up issue below.
✅ Clarified as working-as-designed (not a bug)
- [FEATURE] Nix-direct (direnv-mode) CI lane + version-skew hardening for shipped workflows #854 both-mode CI:
both-mode consumers (talys,scitadel) keep the containerci.yml, not the nix-direct one. This is correct — the nix-direct lane is deliberatelydirenv-only (abothrepo has a.devcontainer/, so container CI works). Confirmed againstinit-workspace.sh(both) : # keep everything) anddocs/MIGRATION.md("still work unchanged inboth/devcontainermode").
⚠️ Expected migration debt (#897 shim removal — correctly warned)
The pre-commit → prek shim is gone, so preserved consumer files still calling pre-commit now exit 127. The installer warns with file:line: mat (ci-container.yml:119), vault (justfile.project:31). Minor gap: scitadel's consumer flake.nix lists pre-commit as a dev-shell package (not an invocation), which the scan doesn't flag.
🔧 Test-harness caveats (not rc2 defects)
Testing via git worktrees means each .git is a file pointing outside the container mount, so in-container git couldn't resolve the repo. This (only) degraded three sub-checks, all of which work on a normal full clone: in-container just precommit, the installer's template-vs-preserved diff display, and git-remote identity resolution (manifests got DEVKIT_REPO=OWNER/REPO). The imageless probe with a full mount + GITHUB_REPOSITORY resolved identity correctly (vig-os/probe3), confirming the mechanism.
Bottom line: rc2 is healthy across mode inference, preflight, bare mode, imageless stamping, language-neutral scaffold, the python template, flake hooks, and capability modules. One fix recommended before final: the find -type f symlink blindness that blanks the #886 upgrade preview report.
The Nix image bakes assets/workspace as symlinks into the nix store, so the --preview/--force classifier's find -type f matched zero files and the OVERWRITTEN/ADDED report was always empty. Add bats coverage that seeds a symlinked TEMPLATE_DIR and asserts a conflicting file lands under OVERWRITTEN and a workspace-absent one under ADDED. Refs: #949
On the Nix image the baked template /root/assets/workspace is a tree of symlinks into the nix store, so the --preview/--force classifier's find -type f matched zero files and the OVERWRITTEN/ADDED report was always empty. The real copy uses rsync -avL (follows symlinks), so only the report was blind. Add -L so the classifier dereferences symlinks and matches the copy semantics. Refs: #949
… (#950) ## Problem On the Nix image the baked template `/root/assets/workspace` is a tree of **symlinks into the nix store**. The `--preview`/`--force` upgrade classifier at `assets/init-workspace.sh:534` walked it with `find "$TEMPLATE_DIR" -type f …`, which matches **zero** files against a symlink tree (verified: `find -type f` → 0, `find -L -type f` → 1872). So the OVERWRITTEN / ADDED / PRESERVED report was always empty ("No existing files would be overwritten"). ## Root cause The real copy uses `rsync -avL`, which **follows symlinks**, so files were still overwritten — only the *report* was blind. The `DELETED` section is computed separately and was unaffected. This is the sole `find` over `$TEMPLATE_DIR`. ## Fix Make the classifier follow symlinks to match the copy semantics: ```diff - done < <(find "$TEMPLATE_DIR" -type f ! -path "*/.git/*" -print0) + done < <(find -L "$TEMPLATE_DIR" -type f ! -path "*/.git/*" -print0) ``` ## Tests (TDD, red → green) Added two bats tests in `tests/bats/init-workspace.bats` that seed a **symlinked** `TEMPLATE_DIR` (mirroring the baked image) and drive `--preview --force --no-prompts` against a host workspace: - a symlinked template file whose path already exists in the workspace must be listed under **OVERWRITTEN**; - a symlinked, workspace-absent template file must be listed under **ADDED**. Both **failed** on the old code (report said "No existing files would be overwritten" / "No new files would be added") and **pass** with the fix. Full `init-workspace.bats` suite: 123 passed, 0 failed. Full `prek run --all-files` hook suite: green (sync-manifest propagated the CHANGELOG entry to the scaffold copy). Refs: #949 Closes #949
🧪 Local validation —
|
| Target | OVERWRITTEN listed | git status after preview |
|---|---|---|
| mat | 48 files | clean |
| talys | 93 files | clean |
| scitadel | 48 files (+1 DELETED: justfile.base) |
clean |
| vault | 44 files | clean |
| B4 seeded repo | 3 files (incl. the stale justfile) + 1 ADDED (.typos.toml) |
clean |
Root cause of the rc2 blindness re-confirmed in the image: /root/assets/workspace is a store-symlink tree, so find -type f → 0, find -L -type f → 1872. The find -L fix is baked into the rc3 image. The safety-critical "what will I overwrite" report is now accurate.
✅ Regression: everything else still green
- feat(workspace): persist delivery mode, identity, and modules in .vig-os — declarative manifest with a new "bare" mode #885 mode inference —
devcontainerfor mat/vault,bothfor talys/scitadel; persisted, no reshape. - feat(workspace): persist delivery mode, identity, and modules in .vig-os — declarative manifest with a new "bare" mode #885 bare mode — prunes container/flake, host-native
ci.yml(setup-uv, noresolve-image),DEVKIT_MODE=bare. - fix(image): bake an authoritative built-tag version record for init-workspace .vig-os stamping #921 imageless stamp — pins the real
0.5.0-rc3from baked/root/assets/VERSION. - [FEATURE] Language-neutral scaffold: drop the shipped Python package starter #929 language-neutral — no-code
vault:just lint/test/syncallrc=0;matpyproject.tomlpreserved. - [FEATURE] Opt-in Python starter as a flake template (nix flake init -t ...#python) #930 python template — layout restored,
dev=[pytest,pytest-cov]only, builds+tests green in-container. - feat(workspace): generate .pre-commit-config.yaml from the flake (git-hooks.nix) — composable base hooks, consumer-extensible in the project flake #883 flake hooks —
test_flake_hooks.py13 passed (no drift);checks.pre-commitbuilds; symlink install, nocore.hooksPath. - feat(flake): modular capability shells — opt-in vigos capability modules (native, geant4, rust, …) on top of mkProjectShell #884 capability modules —
module-nativebuilds; sdist C-ext smoke 3 passed; zero-moduledrvPath== default. - fix(workspace): template sync recipe uses --all-extras --all-groups, breaking repos with platform-limited optional extras #892
sync *args="--all-groups"(no forced--all-extras). chore(image): remove the pre-commit compat shim (one-cycle deprecation ends) #897 prek-shim removal warns withfile:lineon preservedpre-commitinvocations. [FEATURE] Nix-direct (direnv-mode) CI lane + version-skew hardening for shipped workflows #854both-mode keeps containerci.yml(nix-direct isdirenv-only — by design). - feat(workspace): preflight guard for scaffold upgrades — require a dedicated clean branch, add diff preview #886 preflight — full refusal matrix holds (protected branches offer + create/switch
chore/devkit-upgrade-0.5.0-rc3; dirty/detached refuse;--skip-preflightbypasses; fresh installs exempt);--previewvs--dry-rundistinct.
🐛 New follow-up — the find -L fix over-reports the ADDED section (report-only, no data risk)
The same fix now inflates the ADDED list: the report walk find -L "$TEMPLATE_DIR" -type f ! -path "*/.git/*" at assets/init-workspace.sh:534 lacks the --exclude=.venv that the real copy (rsync -avL --exclude='.venv', lines 669/717) has, and the image template carries a .venv. Result across all targets: ~1763 of ~1867 ADDED entries are phantom .venv/.../site-packages/* files the upgrade never writes.
- Impact: cosmetic / report-only. The real
--forceupgrade excludes.venv(verified: no.venv/site-packages land in any consumer tree), and the safety-critical OVERWRITTEN section is correct. But the ADDED list is unusable as-is. - Fix: mirror the rsync excludes in the report
find— add! -path "*/.venv/*"(and, for full parity,! -path "*/docs/issues/*" ! -path "*/docs/pull-requests/*"). One-liner. - Not rc3-blocking (no data risk), but worth closing before
0.5.0final since the preview report is a headline feature.
Minor notes (not blockers)
init-workspace.shraw-invoke path (noinstall.sh) derivedDEVKIT_ORG=vigOS/devcfromGITHUB_REPOSITORYwith noORG_NAME; theinstall.shpath resolves org correctly. Pre-existing.scitadelcarries a stale.cursor/worktrees.jsoncallingpre-commit install(exit-127 under prek-only); the.cursor/→.claude/move doesn't remove the old tree. Pre-existing consumer content.DEVKIT_REPO=OWNER/REPOon the isolated worktrees is a test-harness artifact (noorigin); resolves on a full clone.
Bottom line: rc3 fixes the #949 preview blindness and regresses nothing. One low-severity, report-only follow-up remains (ADDED .venv over-count from the same find -L), fixable with a one-line exclude.
The #949 fix switched the preview/report classifier to `find -L` so it follows the Nix image's store-symlink template. But `find -L` also descends the baked .venv symlink tree, so the ADDED section over-reported phantom .venv/.../site-packages/* files the real rsync copy never writes. Mirror the static excludes the real copy applies (.git, .venv, docs/issues/, docs/pull-requests/) in the report `find` so ADDED matches what the upgrade actually does. Refs: #951
#951) (#952) ## Problem `--preview`/`--force` upgrade report over-reported ~1763 phantom `.venv/…/site-packages/*` files in the **ADDED** section that the real upgrade never writes, making the ADDED list unusable. Report-only bug — no data risk. ## Root cause The #949 fix switched the report classifier to `find -L` (`assets/init-workspace.sh:534`) so it follows the Nix image's store-symlink template — correct for the OVERWRITTEN section. But `find -L` now also follows the baked template's `.venv` symlink tree. The report `find` excluded only `.git`, whereas the real rsync copy excludes more: ``` rsync -avL --delete --exclude='.git' --exclude='.venv' --exclude='docs/issues/' --exclude='docs/pull-requests/' … ``` So every symlinked `.venv` file leaked into ADDED. ## Fix Mirror the copy's static excludes in the report `find` (single-site change, line 534): ```sh done < <(find -L "$TEMPLATE_DIR" -type f \ ! -path "*/.git/*" ! -path "*/.venv/*" \ ! -path "*/docs/issues/*" ! -path "*/docs/pull-requests/*" -print0) ``` `.venv` is the one that leaks today; the two `docs/*` excludes are for parity so future template changes can't leak either. ## Test evidence (TDD) New bats test `upgrade preview omits the baked .venv symlink tree from ADDED (#951)` places a symlinked `.venv/…/site-packages/phantom-venv-pkg.py` (mirroring the image's baked venv) plus a normal symlinked template file under `TEMPLATE_DIR`, and asserts the normal file is still in ADDED while the `.venv` file is not. - **RED** (before fix): `refute_output --partial "phantom-venv-pkg.py"` failed — the `.venv` file showed in ADDED. - **GREEN** (after fix): new test passes; the two existing #949 OVERWRITTEN/ADDED tests still pass; full `init-workspace.bats` suite 124/124 green. Full `prek run --all-files` hook suite green (sync-manifest mirror of `CHANGELOG.md` re-staged). Refs: #951 Closes #951
🧪 Local validation —
|
| Probe | ADDED | .venv/site-packages |
OVERWRITTEN (#949) |
|---|---|---|---|
| mat | 51 | 0 | 48 |
| talys | 4 | 0 | 93 |
| scitadel | 52 | 0 | 48 |
| vault | 56 | 0 | 44 |
| B4 (seeded) | 108 | 0 | 1 |
B4 pinned the mechanism: the report walk collapses from 1872 → 109 real files (matching the image), exactly the .venv exclusion. Preview still mutates nothing.
✅ Regression + smoke — all green
- B1 python template 6/6 · B2 capability modules 5/5 · B3 flake hooks
13 passed(no drift) — all stable across rc2/rc3/rc4. - Mode inference (
devcontainer/both), bare mode, imageless stamp (0.5.0-rc4),#929/#892/#897/#854, and the full feat(workspace): preflight guard for scaffold upgrades — require a dedicated clean branch, add diff preview #886 preflight matrix all as expected. - Smoke test green (
vig-os/devcontainer-smoke-test): rc4 deployed → PR-to-devCI passed & merged → prepare-release → release workflow → required checks, every stagesuccess.
Minor, non-blocking follow-ups (distinct from #951)
- Preview↔apply nested-doc gap — preview lists a few nested
README.md/CHANGELOG.mdscaffold docs as ADDED (mat 3, talys 2) that the apply step skips by basename (the rule protecting the consumer's root README/CHANGELOG over-matches nested devkit docs). Consistent rc3→rc4; possibly those nested docs never ship. Worth a separate issue. DEVKIT_ORG=vigOS/devcon the imageless rawinit-workspace.shpath (theinstall.shpath resolvesvigOScorrectly). Recurring, minor.
Bottom line: both cycle fixes (#949 preview blindness, #951 .venv over-report) are confirmed on real consumers and through the smoke pipeline; nothing regressed. rc4 looks ready to finalize.
Set release date to 2026-07-09 and regenerate release docs. Refs: #938
Smoke test + promotion — corrected accountCorrection to my earlier note: What happened:
Unblock: published the existing smoke draft release ( Follow-up worth filing on |
Release 0.5.0 - 2026-07-09
This PR prepares release 0.5.0 for merge to main.
0.5.0 - 2026-07-09
Added
Opt-in Python starter flake template (#930)
nix flake init -t github:vig-os/devcontainer#pythonrestores a Python package layout (pyproject.toml,src/,tests/) onto the now language-neutral scaffold (#929). The template uses a concreteexample_pkgname the user renames —nix flake init -tdoes no placeholder substitution — and ships a minimal pytest dev group (noscience/jupyterextras).Authenticated GHCR pulls for the shipped container CI (#920)
resolve-imageaction now runs an authenticated manifest probe: it logs in toghcr.iobefore the probe when given a token (new optionalregistry-token/registry-usernameinputs) and no longer swallows the probe's stderr, so failures are classified into actionable::error::annotations that distinguish an auth/denied failure ("set theGHCR_PULL_TOKENsecret / grantpackages: read") from a genuinely missing tag. The anonymous path is kept for public images.ci.yml,prepare-release.yml,promote-release.yml,release.yml,release-core.yml,release-publish.yml,sync-issues.yml,sync-main-to-dev.yml,renovate-changelog-build.yml) gains an opt-incredentials:block (username: github.actor,password: ${{ secrets.GHCR_PULL_TOKEN || github.token }}) andpackages: read, so a private or rate-limited image pulls without per-repo edits.GHCR_PULL_TOKENunset the expression falls back to the automaticgithub.token(never an empty password), which performs an authenticated pull of a public image successfully.docs/container-ci-quirks.mdre-framed from a "public-image limitation" note into first-class authenticated-pull documentation (secret contract,github.tokenfallback,packages: readrequirement). Split out of the workflow audit (#854) and rides the devkit rename cycle (#781).Nix-direct CI lane for direnv-mode consumers (#854)
direnvmode now scaffolds a host-nativeci.ymloverlay (assets/workspace-direnv/, applied like the bare overlay and keyed off the persistedDEVKIT_MODE): noresolve-image, no in-container jobs — the runner installs Nix (with the vig-os Cachix substituter, SHA-pinnedinstall-nix/cachixactions reused from this repo's own lane) and drives the samejust sync|precommit|testcontract inside the flake dev-shell vianix develop -c, dropping the container-onlyPREK_HOME/UV_PROJECT_ENVIRONMENTenv.docs/MIGRATION.md("direnv-mode CI"): onlyci.ymlis converted for direnv mode; the other shipped workflows (prepare-release,promote-release,release*,sync-issues,renovate-changelog-build,sync-main-to-dev) stay container-based and devcontainer-mode-only until the full workflow audit rides the devkit rename (#781); the container-independent ones (codeql,scorecard,renovate-changelog-commit,release-extension) keep working in every mode.Opt-in capability modules for
mkProjectShell(#884)modules = [ "native" ]composes curated capability modules (packages + env vars + shellHook fragments) onto the project dev-shell; contract recorded indocs/rfcs/ADR-capability-modules.md.extraPackagesremains the per-repo escape hatch and wins PATH lookup.nativemodule ships first (stdenv.cc,cmake,gnumake,pkg-config, genericCC/CXX) — the long-term #879 answer;geant4/rust/fortran/rootstay ask-gated candidates.checks.<system>.module-<name>) plus a uv C-extension sdist smoke test (tests/test_flake_modules.py)..vig-osproject manifest and newbaredelivery mode (#885).vig-osnow persists the delivery mode and identity (DEVKIT_MODE,DEVKIT_PROJECT,DEVKIT_ORG,DEVKIT_REPO, reservedDEVKIT_MODULES) alongside the version pin — flatKEY=VALUEformat unchanged, existing parsers byte-for-byte unaffected. Precedence flag/env >.vig-os> prompt/default, with resolved values written back, so manifest-bearing repos upgrade with--forceand no mode/identity flags while keeping shape and names.--modecontradicting the persistedDEVKIT_MODErefuses, pointing at--previewand the preflight-guard flow.baremode ships the standards layer only (justfiles, hooks config,.github/CI,.vig-os), prunes.devcontainer//flake.nix/.envrcbehind the [BUG] install.sh --mode direnv --force overwrites populated consumer files (pyproject.toml, .devcontainer/) #738/[CHORE] Field-validate 0.4.0-rc4 in real consumer repos before finalize #859 pre-existence guards, and scaffolds a host-nativeci.yml(no image resolution, no container jobs —setup-uvon the runner drives the samejust sync|precommit|testcontract) withrust-just/prekpinned to the toolchain versions..vig-osshipsDEVKIT_MODEempty and the resolved mode/identity are persisted immediately after the template copy, so an upgrade aborted mid-scaffold can never persist a delivery mode the repo did not choose.Preflight guard and diff preview for scaffold upgrades (#886)
install.sh --forceupgrades now refuse onmain/dev/release/*/detached HEAD and on a dirty tree, so every upgrade lands as a reviewable, revertible diff on a dedicated branch; on a protected branch with a clean tree the installer offers to create and switch tochore/devkit-upgrade-<version>, and non-git directories get a warn-and-confirm path. A single--skip-preflightflag bypasses the guard;--smoke-testruns and fresh installs are exempt.--previewmode prints the add/overwrite/preserve/delete file report (including mode-prune deletions such as the retired.devcontainer/justfile.base) and exits without changing any files — unlike--dry-run, which only prints the container command.Flake-generated pre-commit hooks: one definition, consumer-extensible (#883)
nix/hooks.nixnow defines the pre-commit hook set once; it renders the sandbox-purechecks.pre-commitgate, the committed.pre-commit-config.yaml+ scaffold copy (drift CI-gated bytests/test_flake_hooks.pyagainstnix eval .#lib.hooksPortable— the hand-synced triangle and the manifest transform chain are retired), and the consumer surface.mkProjectShellgains opt-inhooks(toggle base hooks, per-hookexcludes/overrides, fully custom hooks) andhooksExcludes(global excludes): entering the shell installs the rendered config as a repo-root symlink without ever touchingcore.hooksPath— the scaffold's.githooksentry point stays in charge; a preserved hand-edited YAML (#878) is never overwritten, and the zero-hooks dev-shell stays byte-identical.docs/MIGRATION.md; the.vig-osmanifest raw-YAML opt-out flag is tracked in #885.Changed
Release-candidate dispatch gates on CI only (#902)
release.ymlno longer requires the release PR to be marked ready-for-review and approved before publishing a candidate — candidate dispatch now gates on CI status only, so RCs are freely dispatchable during verification while the PR stays a draft.X.Y.Ztag);promote-release.yml's merge job still re-enforces approval before merging tomain, somainand:latestremain fully protected.justfile, andCONTRIBUTE.mdreordered accordingly: publish candidates to verify first, then mark ready and get approval beforefinalize-release.Copied scaffold is language-neutral (#929)
just lint/format/test/test-covare guarded onpyproject.tomland no-op (exit 0) when it is absent, mirroring the existingsyncguard, so a non-Python repo'sjust sync|precommit|testCI contract stays green out of the box.init-workspace.shdrops thesrc/template_project→src/<name>rename and test-import rewrite;pyproject.tomlstays in the preserved set, so a consumer that brings its own is never clobbered.Removed
pre-commitcompat shim removed from the image (#897)pre-commit → prekshim shipped in 0.4.x (#881) is gone;pre-commitinvocations now fail with exit 127.file:lineon preserved surfaces — seedocs/MIGRATION.mdfor the rename checklist (justfile recipes, repo-owned.githooks/, CI configs →prek).Python package starter dropped from the scaffold (#929)
pyproject.toml,src/template_project/, andtests/are no longer shipped inassets/workspace/; a fresh scaffold is language-neutral. Restore a Python layout on demand with the opt-innix flake init -t github:vig-os/devcontainer#pythontemplate (#930).Fixed
Upgrade preview report follows template symlinks (#949)
--preview/--forceclassifier'sfind … -type fmatched zero files and the OVERWRITTEN/ADDED report was always empty even though the real copy (rsync -avL) still overwrote them. The classifier now usesfind -Lto follow symlinks and match the copy semantics.Upgrade preview no longer over-reports the baked
.venvtree (#951)find -Lalso descended the baked.venvsymlink tree, so the ADDED section listed phantom.venv/…/site-packages/*files the real upgrade never writes. The reportfindnow mirrors the static excludes the rsync copy applies (.venv,docs/issues/,docs/pull-requests/), so ADDED matches what the upgrade actually does.Autochangelog now records grouped Renovate PRs (#936)
renovate-changelog-prparsed the update table only when the change cell used an ASCII->arrow, but Renovate renders it with the Unicode arrow→(U+2192). Every real Renovate PR body therefore parsed to nothing; a changelog entry only appeared when the PR title happened to match (digest bumps, singleupdate X to Y), so grouped dependency PRs were silently skipped. The change-cell parser now accepts both arrows.Imageless upgrades stamp the real built tag (#921)
/root/assets/VERSION) distinct from the template.vig-ospin: the releasebuild-imageaction runsnix build --impurewithVIG_OS_VERSIONset to the true publish tag (RCs included), which the flake reads viabuiltins.getEnv. A plain, purenix buildreads""and falls back to the checked-in repo pin, so ordinary builds stay bit-reproducible.init-workspace.shreads that record when noVIG_OS_VERSIONis forwarded, so a barepodman run … init-workspace.shupgrade (noinstall.sh) now pins.vig-osto the image's real tag instead of the stale baked template pin (#916); an explicitVIG_OS_VERSIONstill wins, and an absent record leaves the pin untouched.Template
syncrecipe no longer forces--all-extras(#892)justfile.projectsyncrecipe useduv sync --all-extras --all-groups, which forced every optional extra to install. Repos that quarantine platform-limited dependencies (e.g. cp312/cp313-only wheels) in extras got a hardjust syncfailure on the cp314 image.sync *args="--all-groups") and defaults to--all-groups: dev groups stay synced while extras become opt-in viajust sync --all-extras. Theupdaterecipe (which callsjust sync) uses the new default unchanged.Version-skew hardening for the shipped CI glue (#854)
ci.ymland the new direnvci.ymllint jobs now fail fast with an actionable::error::if the toolchain does not provideprek, turning an opaquejust precommitexit 127 (old scaffold vs new image, or an image too old to ship the prek hook runner) into a one-line diagnosis.prepare-release.ymlresolver unified: the scaffold's forked inline-awk image resolver with a silentlatestfallback is replaced by the sharedresolve-imageaction, which hard-fails on a missing/unreadableDEVCONTAINER_VERSIONpin.devc-upgradehonors the pin: the recipe readinstall.shfrommainregardless of the consumer's pin; it now readsDEVCONTAINER_VERSIONfrom.vig-osand upgrades to that generation (script ref +--version), keepingmain/latestonly for unpinned repos.set shell := ["bash", "-euo", "pipefail", "-c"]moved from the devc-onlyjustfile.devcto the rootjustfile(the SSoT), so direnv/bare recipes get pipefail too.init-precommit.shderives its root from the script location instead of a hard-coded/workspace/{{SHORT_NAME}}.docs/container-ci-quirks.mdno longer describes a removeduv run banditpre-commithook; the private-image (unauthenticatedresolve-imageprobe + missingcredentials:) limitation is documented, with the first-class fix tracked in #920.