Repository navigation
chore: release 0.4.1 - #898
Conversation
Adds the accepted ADR deciding the terminal home environment product: parameterized home-manager modules under the vigos.* namespace shipped from this repo as a second product, home-manager as the only new flake input, no devcontainer-image integration, the ~/.claude management policy, platform tiers (aarch64-darwin first-class, x86_64-darwin best-effort), the resident-credentials convention, and the module release/versioning policy. Refs: #815, #814
…tegory Records the second-product contract for the vigos.* home-manager modules: one release train (consumers pin tags), mkRenamedOptionModule deprecation shims for one release, the dogfood-canary exception, and the '#### Modules' changelog sub-heading convention. Documents the workspace scaffold's deliberate vigos.url float with the pin recipe. Refs: #816
Weekly (+ dispatchable) workflow that refreshes the nixpkgs-unstable pin feeding the fastMovers overlay (uv, gh, claude-code) and opens a chore PR to dev with full CI as the merge gate. Implements the ADR decision to keep claude-code fresh from nixpkgs instead of a third-party flake. Refs: #817
The multiline --body string escaped the run literal block, breaking YAML indentation; build the body with printf instead. Adds the house truthy disable-line comment on the trigger key. Caught by the sandbox-pure pre-commit flake check (Tier-0). Refs: #817
Hotfix for E3 caught by the Tier-0 sandbox pre-commit check. Refs: #817
Extends the flake schema tests ahead of implementation (TDD red):
required checks gain hm-minimal/hm-full (except x86_64-darwin,
eval-only tier); homeManagerModules must expose the full vigos.*
module set as importable path modules plus the homeModules alias;
homeConfigurations must cover the ci-{minimal,full} x 4-system matrix
and evaluate end to end.
Refs: #819, #818
Relocates the devTools SSoT list to nix/devtools.nix (unchanged content) so path modules can share it; adds nix/home/ with vigos.packages (the re-keyed #777 module + mkRenamedOptionModule shim for programs.vigos-devtools.enable) and enable-option skeletons for shell/multiplexer/cli/direnv/git behind an imports-only umbrella. Exports the set as path modules under homeManagerModules.* with the homeModules alias; extends the deadnix/statix check scope to nix/. Refs: #818
…ier-0 checks
Adds home-manager (release-26.05, nixpkgs follows) as the module
product's only new input. Builds ci-{minimal,full}-<system>
homeConfigurations from the vigos umbrella with self-pkgs (the same
stable base + fast-mover overlay + allowUnfree as the dev-shell, so
claude-code resolves identically across surfaces) and exposes them as
hm-minimal/hm-full checks on every system except eval-only
x86_64-darwin. Extracts batsWithLibs to nix/bats.nix so the relocated
devTools list and flake.nix share one definition.
Refs: #819
…#835) Lands A1 (#818) and A2 (#819) for epic #814: vigos.* path-module set with rename shim and umbrella, devTools relocated to nix/devtools.nix (SSoT shared with the modules), home-manager input, ci-{minimal,full} homeConfigurations across 4 systems, hm-minimal/hm-full Tier-0 checks (x86_64-darwin eval-only). Local evidence: full x86_64-linux Tier-0 green incl. new legs (hm builds: 7s warm); schema pytest 9/9. Refs: #818, #819
… push Separate non-required workflow building hm-minimal/hm-full for the platforms the x86_64-linux Tier-0 gate cannot cover, pushing closures to the vig-os Cachix so the darwin cache exists before first colleague onboarding. Fail-soft by non-required status, never continue-on-error; promotion to required is a follow-up decision. Refs: #820
Both shells under one switch so colleagues keep their login shell; every scalar mkDefault. The opt-in secretsEnv hook exports each ~/.config/vigos/secrets/<NAME> file ([A-Z_][A-Z0-9_]* names, trailing newline stripped, idempotent via guard variable) from both profile and rc files, implementing the ADR resident-credentials interface. Refs: #821
…direnv tmux with vi keys and org-default ergonomics (all mkDefault, extraConfig open); modern-unix configuration that never duplicates the devTools package list; direnv + nix-direnv as the per-project activation layer. Refs: #821
git with delta pager, gh on ssh protocol, lazygit. userName/userEmail/ signingKeyPath are null-default options: signing configuration is written only when a key path is set (per-user x host keys; minting and forge registration are C2 runbook steps). Refs: #821
The template scaffolds a personal flake importing the vigos.* modules (pin-placeholder per the E2 policy); demo is the full-profile reference homeConfiguration. Template excluded from deadnix/statix scope like the workspace scaffold. Refs: #827
Determinate installer, the macOS trusted-users/Cachix trap, template scaffold, first-activation dotfile-collision path (-b backup), the one-HM-mode-per-user-per-host rule, uninstall. Refs: #825
mkDefault/mkForce/extraConfig override patterns; per-surface rollback table; the operational meaning of best-effort x86_64-darwin; the resident-credentials interface, per-user x host SSH key policy, rotation/offboarding runbook, and the honest threat model. Refs: #826
User-global, workspace-root, and workspace-layer templates exploiting the root-to-cwd CLAUDE.md cascade, with the directory-layout convention documented as the assumption that makes the workspace layer work. Org-level URLs only (rename-agnostic); the optional management option lands with vigos.claude (#823). Refs: #828
…kport (#906) ## Summary Unblocks the `release/0.4.1` RC, which failed the **Vulnix CVE Gate** ([run 28869306823](https://github.com/vig-os/devcontainer/actions/runs/28869306823)) on a single unexcepted HIGH finding: ``` 1 unexcepted HIGH/CRITICAL or unscored vulnix finding(s): - CVE-2026-57231 (CVSS 7.5) in podman 5.8.2 ``` [CVE-2026-57231](https://cve.threatint.eu/CVE/CVE-2026-57231) (CVSS 7.5): a malicious image manifest with malformed `Env` entries makes podman leak matching **host** environment variables into the container — a supply-chain risk when running untrusted images. `podman` is a direct devTool + the docker-shim binary, so the finding is a real product match. ## Why an exception, not a rev-advance Fixed upstream in podman 5.8.4/6.0.0, but the pinned `nixpkgs` `release-26.05` (and `staging-26.05`) still ships **5.8.2** — the fix is only on `master`/`staging`/`unstable`. The 26.05 backport [NixOS/nixpkgs#536367](NixOS/nixpkgs#536367) is an **open draft**, so advancing the rev cannot remediate today. This adds a short-dated `.vulnixignore` exception (expires **2026-08-06**, re-check weekly) matching the register's established convention; it flips to a rev-advance once the backport lands. ## Changes - `.vulnixignore` — new 2026-07-07 triage section accepting `CVE-2026-57231` with provenance, reachability note, upstream/nixpkgs fix status, and expiry. - `CHANGELOG.md` `[0.4.1]` `### Security` entry (+ auto-synced `.devcontainer` mirror). ## Verification - `check-expirations`: passed (36 exceptions validated). - Gate simulation: negative control reproduces the exact CI error against the pre-fix register; **passes** against the updated register. - Full `just precommit` suite: green. Closes #905
…gelog template Refs: #914
Rename the scaffold-managed git helper recipes `log` -> `gh-log` and `branch` -> `gh-branch` so they cannot clash with a consumer's preserved justfile.project recipes on import. A collision made `just` fail to parse entirely (recipe redefined), cascading into disabling the base-recipe repair. Matches the existing `gh-issues` naming convention. Refs: #915
The image ships git but no diff(1)/cmp(1), so the #878 preview printed 'diff: command not found' and an empty box in-container. Route the preview and its gate through git diff --no-index (long-flag --quiet gates; --no-index exits 1 on divergence, which is expected). Factor the preview into a shared helper for reuse by other preserved files. Refs: #916
Add .typos.toml to PRESERVE_FILES so a consumer's curated spell-check exceptions survive a --force upgrade, and print the template diff like the #878 handling. Since the typos tool also reads the legacy _typos.toml, skip shipping the template .typos.toml when a consumer carries _typos.toml and no .typos.toml, so two active configs never collide. Refs: #913
Move the GITHUB_REPOSITORY resolution/validation ahead of the rsync copy so a --no-prompts run with no derivable origin aborts while the workspace is still pristine, instead of leaving a half-scaffolded tree. The resolved value still feeds the later placeholder substitution. Refs: #916
…record The image exposes no independent runtime record of its own built tag: the only in-image version is the baked template .vig-os (repo-root pin at build), which the scaffold already copies, so stamping from it is a no-op and stays stale for RC images. Document that pinning the true built tag for RCs (when VIG_OS_VERSION is unset) requires baking an authoritative version record at build time. Refs: #916
…onsumer template (#918) ## Summary Fixes #914 — the manifest synced the devcontainer repo's own `renovate-changelog-build.yml` / `-commit.yml` into the consumer template verbatim, carrying the upstream-only `assets/workspace/.devcontainer/CHANGELOG.md` mirror plumbing. Consumers have no `assets/workspace/` tree, so under `set -euo pipefail` those steps hard-failed on every Renovate changelog run. ## Change Added manifest transforms (`scripts/manifest.toml`) that strip, **from the consumer template only**: - the `cp CHANGELOG.md assets/workspace/.devcontainer/CHANGELOG.md` step and the `assets/workspace` artifact-copy block in `renovate-changelog-build.yml` (keeping the consumer-facing `cp CHANGELOG.md changelog-artifact/` and `metadata.env` logic); - the extra `,assets/workspace/.devcontainer/CHANGELOG.md` path from `FILE_PATHS` in `renovate-changelog-commit.yml`. The devcontainer repo's own root workflows are unchanged; only the generated `assets/workspace/…` copies drop the mirror. Regenerated via `just sync-workspace`. ## Verification - `uv run pytest tests/test_transforms.py -q` → 6 passed (2 new tests RED→GREEN). - Generated consumer workflows: `grep -c assets/workspace` = 0 on both; valid YAML. - Root workflows unchanged (empty diff). - Full `prek run --all-files` green locally (incl. `sync-manifest`, `yamllint`). Discovered during 0.4.1-rc1 consumer-upgrade testing. Refs #874.
…ustfile-gh-recipe-namespace # Conflicts: # CHANGELOG.md # assets/workspace/.devcontainer/CHANGELOG.md
…reserve-typos-init-hardening # Conflicts: # CHANGELOG.md # assets/workspace/.devcontainer/CHANGELOG.md
The #916 reorder moved resolve_github_repository ahead of the rsync so a --no-prompts run aborts before mutating the workspace. But the function also prompts interactively when no origin is derivable, so the move pushed that prompt ahead of the 'Copying files from' output, hanging the interactive integration flow. Guard the early call to --no-prompts only and restore the interactive resolution to its original post-copy call site. Refs: #916
… recipe collisions (#919) ## Summary Fixes #915 — the scaffold-managed `justfile.gh` shipped bare `log` / `branch` recipes. A consumer whose preserved `justfile.project` also defined `log`/`branch` hit a hard `just` parse failure after upgrade (`recipe log … is redefined`), making `just` unusable and silently disabling the #877 base-recipe repair. Reproduced on a real consumer (mat) both from a clean 0.3.3 base and from its 0.4.0 branch during 0.4.1-rc1 testing. ## Change Renamed the shipped git-helper recipes at the SSoT root `justfile.gh`: - `log` → `gh-log` - `branch` → `gh-branch` matching the existing `gh-issues` convention, so scaffold recipes can no longer collide with arbitrary consumer recipe names. Regenerated the template (`assets/workspace/.devcontainer/justfile.gh`) via `just sync-workspace` and the embedded recipe listings in `README.md` / `CONTRIBUTE.md` via `generate-docs`. No live internal callers referenced the old names. ##⚠️ Migration (user-facing) Consumers who scripted against the shipped `just log` / `just branch` recipes must switch to `just gh-log` / `just gh-branch`. Consumers who defined their **own** `log`/`branch` recipes now keep them without collision — which is the bug being fixed. ## Verification - New BATS tests (reproduce the `redefined` collision against old names; assert no bare `log`/`branch` in `justfile.gh`); `bats tests/bats/just.bats` → 39/39. - `just --list` parses; `just sync-workspace` self-consistent (`sync-manifest` gate green). - Full `prek run --all-files` green locally. Refs #877.
…reserve-typos-init-hardening # Conflicts: # CHANGELOG.md # assets/workspace/.devcontainer/CHANGELOG.md
…es (#922) ## Summary Addresses **#913** (fully) and four items of the **#916** hardening bundle, all found during 0.4.1-rc1 consumer-upgrade testing. All changes are in `assets/init-workspace.sh` with BATS coverage (TDD, test-then-fix per item). ## Changes - **Preserve `.typos.toml` (#913).** Added to `PRESERVE_FILES` so a consumer's spell-check exceptions survive `--force`; prints the template diff like #878. A consumer carrying the legacy `_typos.toml` no longer also receives the template `.typos.toml` (no dual active config — the exact corruption seen on vault, where `typos` rewrote `Nd`→`And` in the scaffold's own `version-check.sh`). - **`git diff --no-index` for preserved-file previews (#916).** The image ships no `diff`/`cmp`, so the #878 preview box printed `command not found`; now uses `git`. - **Scan preserved CI workflows (#916).** The #881 reference scan now also covers preserved `.github/workflows/*.yml`, flagging real `pre-commit` invocations with `file:line` while ignoring comments and step `name:` descriptions. - **Resolve origin before mutation (#916).** Under `--no-prompts`, an underivable origin now aborts before any files are copied, instead of leaving a half-scaffolded tree. ## Not included - **F5 (`.vig-os` pin on bare `docker run`)** cannot be fixed runtime-only — the image has no authoritative built-tag record. Split out to **#921** (build-side); a NOTE was added at the stamping site. The `install.sh` path is already correct. - **F6 (`.gitignore` clobber warning; source-stub skip)** deferred — both are ambiguous/risky per the issue's "only if clean" guidance; recommend a dedicated issue if wanted. ## Verification - `bats tests/bats/init-workspace.bats` → 84/84 (+9 new); `tests/bats/init.bats` → 29/29. - Full `prek run --all-files` green locally (shellcheck, typos, agent-identity, sync-manifest). Closes #913. Refs #916, #921.
0.4.1 downstream deployment check — statusDeployed the 0.4.1 line into local git-worktree copies of a representative spread of downstream consumers — Python and Rust; What works well
What doesn't (rough edges to fix or document)
What to be careful about
Method noteTesting ran in git worktrees, so a couple of observations were harness artifacts, not 0.4.1 defects and are excluded from the above: a cosmetic Bottom line: 0.4.1 is a solid upgrade target — the preservation and consumer-collision work all holds up in the field. The two things a rollout must account for are the explicit |
Set release date to 2026-07-08 and regenerate release docs. Refs: #898
Release 0.4.1 - 2026-07-08
This PR prepares release 0.4.1 for merge to main.
0.4.1 - 2026-07-08
Added
ADR: terminal home environment as devkit home-manager modules (#815)
docs/rfcs/ADR-home-environment-modules.md: parameterizedvigos.*home-manager modules as a second product of this repo (epic #814).Home-manager module release/versioning policy (#816)
docs/NIX.md: modules ride the existing release train (consumers pin tags),mkRenamedOptionModuledeprecation shims, dogfood-canary exception, and the#### Moduleschangelog sub-heading convention.vigos.urlfloat is now documented as deliberate, with the pin recipe.Scheduled nixpkgs-unstable lock bump (#817)
vigos. home module set + homeConfigurations matrix* (#818, #819)
homeManagerModules.{default,packages,shell,multiplexer,cli,direnv,git}exported as path modules (+homeModulesalias);home-managerflake input (release-26.05, nixpkgs follows);ci-{minimal,full}homeConfigurations across 4 systems built as Tier-0hm-*checks (x86_64-darwin eval-only).Home Matrix CI workflow (#820)
vigos.shell module (#821)
vigos.multiplexer, vigos.cli, vigos.direnv modules (#821)
vigos.git module (#821)
templates.personal + homeConfigurations.demo (#827)
nix flake init -t github:vig-os/devcontainer#personalscaffolds a personal home-manager flake on the vigos.* modules;demois the full-profile reference configuration.Home environment docs (#825, #826)
CLAUDE.md hierarchy templates (#828)
vigos.claude module + container secrets path (#823, absorbs #546)
vigos.sesh, vigos.ghdash, vigos.editor modules (#824)
Changed
Renovate: update
numpytov2.5.1(#865)MIGRATION.md: formalized the native-build contract (#882)
mkProjectShell.extraPackages/ in-containernix develop -cmiddle path), a worked Geant4/ROOT example, and the explicit non-goal of shipping a C/C++ toolchain in the base image. Cross-links #879 and #854.Modules
vigos.*module, each disabled by default (#818); existing imports keep working unchanged.Deprecated
Modules
programs.vigos-devtools.enable→vigos.packages.enable(#818); amkRenamedOptionModuleshim keeps the old option working for one release (docs/NIX.md policy).Removed
Fixed
Preserve a customized
.typos.tomlon upgrade (#913).typos.tomljoins the preserved-file set so a consumer's spell-check exceptions survive a--forceupgrade; the upgrade prints the template diff (like.pre-commit-config.yaml, #878). Previously the generic template overwrote it and thetyposhook then "corrected" real content._typos.tomlno longer also receives the template.typos.toml, avoiding two active typos configs.Render preserved-file diff previews with
git diff(#916)diff, which the image does not ship, printingcommand not foundinto an empty box; it now usesgit diff --no-index.Scan preserved CI workflows for the retired
pre-commitbinary (#916).github/workflows/*.yml, flagging realpre-commitinvocations withfile:linewhile ignoring comments and stepname:descriptions.Resolve the GitHub origin before scaffolding the workspace (#916)
--no-prompts, a missing or underivable origin now aborts before any files are copied, instead of leaving a half-scaffolded workspace mid-run.Namespace scaffold
justfile.ghgit helpers to prevent consumer recipe collisions (#915)log→gh-logandbranch→gh-branch(matching thegh-issuesconvention). A consumer whose preservedjustfile.projectdefined its ownlog/branchrecipes previously hit a hardjustparse failure (recipe log … is redefined) after upgrade, makingjustunusable and silently disabling the #877 base-recipe repair.just log/just branchrecipes must switch tojust gh-log/just gh-branch; consumers who defined their ownlog/branchnow keep them without collision.Renovate changelog template no longer leaks the upstream
assets/workspacemirror (#914)renovate-changelog-build.yml/-commit.ymlcopied theassets/workspace/.devcontainer/CHANGELOG.mdmirror plumbing verbatim; consumers have no such tree, so the steps hard-failed underset -euo pipefailon every Renovate changelog run. Manifest transforms now strip the mirror copies, leaving the template touching only the consumer's ownCHANGELOG.md.Scaffold upgrade strands base recipes in a preserved
justfile.project(#877)lint/format/precommit/test/test-cov/sync/updateintojustfile.project, which is preserved on upgrade — 0.3.x consumers never received them and the shippedci.ymlfailed withjustfile does not contain recipe 'sync'.init-workspace --forcenow appends the missing base recipes from the template into the preserved file (customized recipes always win; idempotent)..devcontainer/justfile.baseis removed on upgrade where the scaffold manages.devcontainer/(never indirenvmode, #738), and the installer warns if the rootjustfilelacks the scaffoldimport?block.Renovate changelog artifact drops the workspace mirror;
metadata.envbreaks on parenthesized branches (#874)upload-artifactsilently excluded the mirror under the hidden.devcontainerdirectory, so the bot commit updated only the rootCHANGELOG.mdand tripped thesync-manifestgate; now uploaded withinclude-hidden-files: true.metadata.envvalues are%q-quoted so grouped Renovate branch names (e.g.renovate/python-(minor-and-patch)) survive beingsourced by the commit workflow.Renovate changelog entries land as plain
### Changedbullets, not under#### Modules(#867)renovate-changelog-prappended entries at the bottom of the### Changedblock, so with the#### Modulessub-heading convention (#816) a dependency bump was filed beneath#### Modulesand read as a module change. Entries now insert at the top of### Changed, above any####sub-heading, with Keep-a-Changelog spacing preserved.Image Python advertised the phantom Nix build toolchain (
gcc/g++) in sysconfig (#879)sysconfig(CC/CXX/LINKCC/LDSHARED/BLDSHARED/LDCXXSHARED), but the image ships no compiler — PEP 517 backends inherited the phantom names verbatim: scikit-build-core exportsCC/CXX, so CMake hard-failed on the missingg++instead of discovering the project-flake toolchain onPATH, and setuptools invoked the literalgcc._sysconfigdata*.py/_sysconfig_vars*.json/ configMakefilefirst tokens to the generic POSIXcc/c++, restoringPATHcompiler discovery. Implemented as a shadow copy in the final image layer — no CPython rebuild, dev-shell toolchain untouched, and the no-compiler-baked consumer contract stands (documented via #882).Scaffold upgrade replaces
.pre-commit-config.yaml, silently clobbering repo-specific hook config (#878).pre-commit-config.yamlwholesale, dropping the repo-specific globalexclude:block and per-hookexclude:keys — the hook suite then rewrote data files it must never touch and false-flagged PEM marker literals. The file is now preserved on upgrade (likejustfile.project, #877).init-workspace --forceprints a diff of the preserved file against the incoming template so consumers can fold changes in deliberately, and warns (non-fatally) when the preserved config does not parse underprek validate-config— a config the runner cannot load breaks every commit in the new image.pre-commitbinary dropped without a compat path — preserved consumer recipes and.githookscalling it break (#881)pre-commitforprek(#778), but files preserved on upgrade still invoke it and exit 127 (field-validated on a 0.3.5 → 0.4.0 consumer: the preservedjustfile.projectprecommitrecipe and repo-managed.githooksscripts broke every commit). The image now ships a deprecated one-cyclepre-commit → prekshim (stderr notice, removed in 0.5) so consumer hook scripts keep working while they migrate.init-workspace --forcescans the post-scaffoldjustfile.project,.githooks/scripts and.pre-commit-config.yamlfor invocation-shapedpre-commitreferences and warns (non-fatally) withfile:line, pointing at the MIGRATION.md rename checklist — which now also covers the NixOS#!/bin/bashshebang gotcha in old-scaffold.githooks.Security
CVE-2026-57231in the vulnix register pending the nixpkgs 26.05 backport (#905)Enventries (a key with no value, via the*glob) — CVSS 7.5, a supply-chain risk only when running untrusted images. The release CVE gate blocked the 0.4.1 RC on this finding.nixpkgsrelease-26.05still ships 5.8.2 (backport NixOS/nixpkgs#536367 open), so advancing the rev cannot remediate yet. Added a short-dated.vulnixignoreexception (expires 2026-08-06, re-check weekly) to unblock the gate; the exception flips to a nixpkgs rev-advance once the backport lands.