Skip to content

fix(ci): cap prepare-release draft-PR body under GitHub's 65536-char limit - #812

Merged
c-vigo merged 1 commit into
devfrom
bugfix/810-release-pr-body-length
Jul 4, 2026
Merged

c-vigo merged 1 commit into
devfrom
bugfix/810-release-pr-body-length

Conversation

@c-vigo

@c-vigo c-vigo commented Jul 4, 2026

Copy link
Copy Markdown
Contributor

Summary

Fixes the Prepare Release failure where the Create draft PR to main step aborts with:

pull request create failed: GraphQL: Body is too long (maximum is 65536 characters) (createPullRequest)

The step built the PR body from the entire frozen changelog section and passed it to gh pr create --body. GitHub caps PR bodies at 65,536 chars; the 0.4.0 section (~64k chars) overflowed, so the release aborted and rolled back (run 28699283187).

Change

In the Create draft PR to main step, cap the assembled body at a 65,000-char budget. When it would overflow, truncate the changelog at a line boundary and append a pointer to the full CHANGELOG.md on the release branch. Small releases still inline the whole changelog unchanged. Also mirrors the CHANGELOG entry into assets/workspace/.devcontainer/CHANGELOG.md (sync-enforced).

Verification

Inline-YAML shell isn't unit-testable (TDD skipped, noted in commit), so the capping logic was verified with a standalone harness:

  • Oversized input (~123k chars, multi-line): output PR body = 64,941 chars ≤ 65,000, truncation note present, cut lands on a clean line boundary (no partial bullet).
  • Real current 0.4.0 section (64,055 chars): passes through intact, body 64,123 < 65,536, no truncation note, full content preserved.
  • Small input: intact, correct blank-line separation between intro and changelog.

Repo gates green locally:

  • just precommit — all hooks Passed (both . and assets/workspace).
  • just test-bats — 267/267 pass, including prepare-release PR body omits persistent checklist and related sections and release workflow refreshes release PR body from changelog (both guard the edited region).
  • Targeted integration tests (test_template_*release*) — 2 passed.

Closes #810

…limit

The "Create draft PR to main" step passed the entire frozen changelog
section as the PR body. GitHub caps PR bodies at 65536 chars, so a large
release (0.4.0 at ~64k) overflowed with "GraphQL: Body is too long" and the
release rolled back. Cap the body at a 65000-char budget, truncating the
changelog at a line boundary and pointing to the full CHANGELOG.md on the
release branch when it would overflow; small releases still inline the
whole changelog unchanged.

Inline-YAML shell is not unit-testable, so TDD is skipped; the capping
logic was verified with a standalone harness (oversized -> <=65000 with a
truncation note at a line boundary; sub-threshold input passes through
intact) and the existing prepare-release structural BATS tests stay green.

Refs: #810
@c-vigo
c-vigo merged commit 9d9bf66 into dev Jul 4, 2026
13 checks passed
@c-vigo
c-vigo deleted the bugfix/810-release-pr-body-length branch July 4, 2026 14:43
c-vigo added a commit that referenced this pull request Jul 4, 2026
…it (#830)

## Summary

#812 capped the PR body only in `prepare-release.yml`. Two more sites in
`release.yml` rebuild the release-PR body from the full changelog
section uncapped:

- **Finalize path** — `Refresh release PR body from finalized changelog`
(blocking). The 0.4.0 section measures ~66.8k chars > GitHub's 65,536
limit, so the first `finalize-release 0.4.0` run would have crashed
mid-finalize on `GraphQL: Body is too long` and triggered rollback.
- **Rollback path** — `Restore release PR body from pre-finalization
CHANGELOG` (`continue-on-error`; overflow would leave the body
unrestored).

Both steps now apply the same cap as #812: 65,000-char budget,
truncation at a line boundary, and a note pointing to the full
`CHANGELOG.md` on the release branch. Small releases inline the whole
changelog unchanged.

Lands on `release/0.4.0` (before the RC dispatch) so the candidate tests
the exact tree that ships; reaches `dev`/`main` via the promote merge +
sync-back. Changelog entry added to the open `## [0.4.0] - TBD` section
(the #810 entry, extended).

Follow-up candidate (not this PR): the cap logic now exists in three
inline copies (`prepare-release.yml` + 2× `release.yml`) — worth
extracting into a shared `.github/scripts/` helper next cycle.

## Verification

- Standalone harness replicating the de-indented step script, run
against the **real 0.4.0 changelog section**: 66,794-char section →
64,869-char body, truncated at a line boundary, ending with the
truncation note; sub-threshold input passes through byte-identical.
- YAML de-indentation of the new `HEADER` strings asserted via
`yaml.safe_load` (no indent leak into the string literals).
- `just precommit` (full suite, all files): green, exit 0.
- `uv run pytest -k release` (10 passed) and
`tests/test_workflow_cachix.py` (4 passed).

Refs: #810
c-vigo added a commit that referenced this pull request Jul 4, 2026
…#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
@vig-os-release-app vig-os-release-app Bot mentioned this pull request Jul 6, 2026
vig-os-release-app Bot added a commit that referenced this pull request Jul 6, 2026
# [Release
0.4.0](https://github.com/vig-os/devcontainer/releases/tag/0.4.0) -
2026-07-06

This PR prepares release 0.4.0 for merge to main.

## [0.4.0](https://github.com/vig-os/devcontainer/releases/tag/0.4.0) -
2026-07-06

### Added

- **Shared `mkProjectServices` local-services helper (process-compose +
services-flake)**
([#795](https://github.com/vig-os/devcontainer/issues/795))
- New `lib.mkProjectServices` output implementing the local-services
axis of [ADR-nix-devenv-strategy](docs/rfcs/ADR-nix-devenv-strategy.md):
declared [`services-flake`](https://github.com/juspay/services-flake)
modules become a daemonless
[`process-compose`](https://github.com/F1bonacc1/process-compose) stack
— `nix run .#services` boots native-process services with **no
Docker/Podman daemon**, versions from the pinned `nixpkgs` lock (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)
- This flake carries the validating PoC: `nix run .#services` boots
**SeaweedFS (S3) + Postgres**, asserted end-to-end (boot, health probes,
teardown, no container fixtures) by the new
`tests/test_flake_services.py`. The issue named MinIO, but nixpkgs marks
`minio` abandoned upstream with unfixed CVEs, so the PoC ships the
maintained S3-compatible SeaweedFS instead (recorded in `docs/NIX.md`
and on the issue)
- The flake-parts question is resolved without adopting it:
`mkProjectServices` uses `process-compose-flake`'s standalone
`evalModules` (services-flake's documented no-flake-parts path), so the
flake stays on `flake-utils`. Measured cost recorded in `docs/NIX.md`
(~0.8 s eval / ~3 s boot-to-healthy vs devenv's ~165 s IFD)
- The scaffold opts consumers in but never forces them: the flake stub
documents a commented `packages.services` block and `justfile.project`
ships a commented `services` recipe — both preserved-on-upgrade files,
so existing consumers are untouched
- **Flake checks as CI Tier 0 (nix-fast-build)**
([#779](https://github.com/vig-os/devcontainer/issues/779))
- The `project-checks` CI job now builds every `checks.<system>`
derivation (treefmt formatting, deadnix/statix, dev-shell build,
`devShellTools`, and the git-hooks.nix `pre-commit` gate) in parallel
with an eval cache via **`nix-fast-build`**, replacing the serial `nix
flake check` build step. `nix-fast-build` is exposed as
`packages.<system>.nix-fast-build` (a pinned-nixpkgs passthrough) so CI
runs it reproducibly via `nix run .#nix-fast-build` without baking a
CI-only tool into the dev-shell or the image
- A new `docs/rfcs/ADR-flake-checks-tier0.md` records 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)
- The flake output schema `nix-fast-build` does not build (the treefmt
`formatter`, the `checks` names, the `install` app, the
nixos/homeManager modules) is now validated in CI by
`tests/test_flake_checks.py`, preserving what the removed `nix flake
check` covered
- **`checks.pre-commit` flake gate via git-hooks.nix + prek**
([#778](https://github.com/vig-os/devcontainer/issues/778))
- Added the
[`cachix/git-hooks.nix`](https://github.com/cachix/git-hooks.nix) input
and a `checks.pre-commit` output that runs the **sandbox-pure subset**
of the pre-commit hooks under `nix flake check`, driven by the `prek`
runner (`package = pkgs.prek`) — no network, no project venv. It reuses
the `treefmt` wrapper for the single formatting hook (nixfmt +
ruff-format + taplo), the nix-provided pure linters (`ruff`,
`shellcheck`, `yamllint`, `typos`, `taplo lint`, `just --fmt --check`),
the `pre-commit-hooks` meta hooks, and the `vig-utils`/`bandit` hooks
wired to hermetic Nix binaries — so the flake is a Nix-verified
guarantee that the committed config's pure hooks stay correct
- Impure/generator/stage-gated hooks (`generate-docs`, `sync-manifest`,
`pip-licenses`, `pymarkdown`, `no-commit-to-branch`,
`destroyed-symlinks`, `check-agent-identity`, and the
`commit-msg`/`prepare-commit-msg` hooks) stay runner-only in the
committed `.pre-commit-config.yaml`; the two-artifact model is
documented in `docs/NIX.md`
- **Docs: local Nix image build/iterate loop + downstream
`agent-models.toml` customization**
([#717](https://github.com/vig-os/devcontainer/issues/717))
- `docs/NIX.md` gained a "Building and iterating the image locally"
section: when to build locally vs. pull the published image, the `just
build` → `just test-image` iterate loop, and that `just build` tags
`<repo>:dev` (the tag the default `test`/`test-image`/`test-integration`
recipes use and auto-build)
- `docs/SKILL_PIPELINE.md` gained 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 needed
- **Flake polish: treefmt-nix, deadnix/statix gates, NixOS/home-manager
modules, `nix run .#install`**
([#777](https://github.com/vig-os/devcontainer/issues/777))
- `nix fmt` now runs [`treefmt`](https://github.com/numtide/treefmt-nix)
across every supported language in one pass (`nixfmt-rfc-style` for
`*.nix`, `ruff format` for `*.py`, `taplo` for `*.toml`), wrapping the
same formatters the pre-commit hooks already run so the editor, hooks,
and CI agree on one formatting
- Added `checks.deadnix` and `checks.statix` (dead-Nix-code +
anti-pattern linters), scoped to the authored `flake.nix`; `deadnix` and
`statix` also join `devTools`
- Added `nixosModules.default` and `homeManagerModules.default` that
install the shared `devTools` toolchain into a NixOS / home-manager
configuration via `programs.vigos-devtools.enable = true`
- Added `apps.install` so `nix run github:vig-os/devcontainer#install`
bootstraps a consumer project straight from the flake (wrapping
`install.sh`, which stays the behavior SSoT)
- **Secrets-management pattern ADR (sops-nix/age + OIDC)**
([#780](https://github.com/vig-os/devcontainer/issues/780))
- Added `docs/security/ADR-secrets-management.md` recording 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_TOKEN` and keyless cosign are already correct, and
ships an inert reference example under
`docs/security/examples/sops-nix/`. Complements the agent-behaviour
standard in [#786](https://github.com/vig-os/devcontainer/issues/786)
(design only; no workflow changed)
- **Nix dev-environment strategy ADR (activation / shell definition /
local services)**
([#794](https://github.com/vig-os/devcontainer/issues/794))
- Added `docs/rfcs/ADR-nix-devenv-strategy.md` recording why the org
uses `pkgs.mkShell` (via `mkProjectShell`) + `nix-direnv` and rejects
`devenv`/`numtide/devshell` as the shared builder. Reframes the
recurring "direnv vs devenv vs devshell vs mkshell" question as three
separable axes — activation (`nix-direnv` vs `nix develop`), shell
definition (`mkShell` vs `devshell` vs `devenv`), 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](https://github.com/exo-pet/exo-fleet/issues/76)),
and adopts `process-compose` + `services-flake` for local services, with
the shared `mkProjectServices` helper tracked in
[#795](https://github.com/vig-os/devcontainer/issues/795). Authoritative
for `vig-os`; a recommendation to `exo-pet`/`exoma` siblings.
Cross-linked from `docs/NIX.md` (decision record; no code or workflow
changed)
- **In-container `.#devShellTools` parity test**
([#754](https://github.com/vig-os/devcontainer/issues/754))
- `tests/test_image.py` now reads the `devTools` toolchain 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 via `command -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 to `devTools` but not shipping it in the image went
uncaught. This turns the SSoT into an actual image-side gate
- **Bake `/etc/nix/nix.conf` enabling `nix-command`/`flakes` and
on-demand local builds**
([#739](https://github.com/vig-os/devcontainer/issues/739),
[#749](https://github.com/vig-os/devcontainer/issues/749))
- The Nix-built image bundles CppNix but shipped no `nix.conf`, leaving
the modern CLI's `nix-command`/`flakes` features disabled by default so
ad-hoc on-demand tooling (`nix shell nixpkgs#<x>`, `nix run`, `nix
eval`) failed without an explicit `--extra-experimental-features` flag.
The `buildLayeredImage` bootstrap layer now writes `/etc/nix/nix.conf`
with `experimental-features = nix-command flakes` and an empty
`build-users-group =` so the in-image root/single-user/daemonless nix
(which has no `nixbld` group) can do on-demand local builds — not just
cache substitutions, e.g. a `rust-overlay` toolchain — instead of
aborting with "the group 'nixbld' … does not exist" (the explicit
`substituters`/`trusted-public-keys` are covered under Security,
[#773](https://github.com/vig-os/devcontainer/issues/773))
- **Consolidated `docs/NIX.md` Nix reference**
([#255](https://github.com/vig-os/devcontainer/issues/255))
- Added a single onboarding/architecture doc for the flake: the
`devTools` toolchain 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
and `pre-commit`-vs-`prek` decisions, the `vig-os` Cachix `direnv allow`
flow, how `nixpkgs` bumps flow (Renovate `nix` manager + `vulnix`
before/after), and the #639 publish-cutover — cross-linking
`CONTRIBUTE.md`, `docs/NIX2CONTAINER.md`, and
`docs/CONTAINER_SECURITY.md`
- **In-container Nix runtime smoke test**
([#675](https://github.com/vig-os/devcontainer/issues/675))
- The `Nix 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 real `nix eval`
exercising the evaluator with `nix-command`/`flakes`, and a `direnv
allow`/`exec` round-trip — gating the build/test job so a broken
in-container `nix`/`direnv` fails CI
- **Nix flake quality gates**
([#674](https://github.com/vig-os/devcontainer/issues/674))
- Added a `formatter` output (`nixfmt-rfc-style`) so `nix fmt` formats
nix files idempotently, a `nixfmt --check` pre-commit hook (nixfmt
sourced from the flake dev-shell), lightweight flake `checks` (format
check, dev-shell build, `devShellTools` eval), and a `nix flake check
--accept-flake-config` step in the CI project-checks job
- **Install/init delivery-mode picker (`--mode
devcontainer|direnv|both`)**
([#641](https://github.com/vig-os/devcontainer/issues/641))
- `install.sh` gained a `--mode devcontainer|direnv|both` flag (accepts
both `--mode X` and `--mode=X`), validated up front and passed through
to `init-workspace.sh`. Empty means "let init-workspace decide": the
one-line install runs non-interactively and defaults to `both`
(unchanged behaviour)
- `init-workspace.sh` gained the same `--mode` flag plus an interactive
prompt when the mode is unset and prompts are enabled (default selection
`both`); under `--no-prompts`/`--smoke-test` with no `--mode` it
defaults to `both`. After the rsync scaffold it prunes to the chosen
mode: `devcontainer` removes the `flake.nix` + `.envrc` stub, `direnv`
removes the `.devcontainer/` scaffold, and `both` keeps everything
(prune is idempotent and scoped to the new workspace)
- **Downstream minimal flake stub (non-overwriting) + `nix2container`
production builder**
([#640](https://github.com/vig-os/devcontainer/issues/640))
- Scaffold `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 placeholder `extraPackages`) and
`assets/workspace/.envrc` (`use flake` via nix-direnv). Updating the dev
environment is `nix flake update vigos`; it never overwrites user files
- Added both to the `PRESERVE_FILES` never-overwrite class in
`init-workspace.sh` (same guarantee as `justfile.project`) and committed
the template `.envrc` (un-ignored in the template `.gitignore`, with
`.direnv/`/`.envrc.local` still ignored)
- Documented the `nix2container` production-image pattern
(`docs/NIX2CONTAINER.md`) with a buildable example
(`examples/nix2container-production/`) that derives a minimal runtime
image from the same pinned `nixpkgs`, plus a note on the future opt-in
modular language shells
- CI now gates the stub: a `nix flake check ./assets/workspace
--override-input vigos path:.` step (and a
`tests/test_downstream_flake.py` parity test) validates the scaffold
against the working-tree toolchain, so an
`lib.mkProjectShell`/`overlays.default` API change can't silently break
a downstream `direnv allow`
- **`vulnix` + SBOM CVE scanning for the Nix image; re-authored security
policy** ([#637](https://github.com/vig-os/devcontainer/issues/637))
- Added a nightly `scan-nix-image` job that builds the image's package
closure (new flake `packages.devcontainerImageEnv`) and runs `vulnix`
(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 as `vulnix`-vs-Trivy overlap evidence
- Added the `vulnix-gate` utility (`packages/vig-utils`) and the
`.vulnixignore` exception register: a HIGH/CRITICAL finding (CVSS v3 ≥
7.0) blocks only when it is not covered by a non-expired exception.
`.vulnixignore` reuses the `.trivyignore` `Expiration:` format and the
`check-expirations` validator (pre-commit + CI), and exposes a pinned
`packages.vulnix` for reproducible scans. The gate is non-blocking
during discovery and becomes the #639 go/no-go gate at cutover
- Re-authored `docs/CONTAINER_SECURITY.md` for the Nix posture: dropped
the `apt --only-upgrade` escape hatch and the "why not `apt-get
upgrade`" section, made "advance the pinned `nixpkgs` rev" the primary
CVE lever, and documented the dual `.vulnixignore`/`.trivyignore`
registers and the residual Debian `:latest` scan until decommission
(#642)
- **Multi-arch Nix image (amd64 + arm64) discovery build**
([#636](https://github.com/vig-os/devcontainer/issues/636))
- The `Nix Image (discovery)` workflow now builds
`packages.devcontainerImage` natively 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`) with `docker buildx
imagetools create`, verifying both platforms via `imagetools inspect`
- `cachix-action` runs with an auth token on every leg so the arm64
closure is pushed to the `vig-os` Cachix cache; the workflow stays
`continue-on-error` and only touches the disposable `nix-dev*` tags —
the versioned/`:latest` publish-cutover remains #639
- **Renovate `nix` manager for `flake.lock` maintenance**
([#638](https://github.com/vig-os/devcontainer/issues/638))
- Enabled the Renovate `nix` manager and weekly `lockFileMaintenance` in
`renovate.json` so flake inputs (notably `nixpkgs`) are bumped through
the normal PR/CI gate; the existing `pep621`, `npm`, `github-actions`,
and `dockerfile` managers are retained
- Documented the compensating control in `docs/CONTAINER_SECURITY.md`:
every `flake.lock`/nixpkgs-bump PR must include a `vulnix` before/after
diff, since the `nix` manager reports only the input revision change and
not which CVE a bump fixes
- **De-duplicate the flake into the toolchain SSoT**
([#631](https://github.com/vig-os/devcontainer/issues/631))
- Factored a single `devTools` list in `flake.nix` as 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`) plus `claude`
([#545](https://github.com/vig-os/devcontainer/issues/545))
- Pinned `nixpkgs` to `nixos-25.05` and added a `nixpkgs-unstable` input
overlaid only for fast-movers (`uv`, `gh`, `claude-code`); refreshed
`flake.lock`
- Added reusable flake outputs `lib.mkProjectShell`, `overlays.default`,
and a `packages.devcontainerImage` stub for the later image build
- Added a non-blocking `Nix Cachix` workflow (with `workflow_dispatch`)
that builds the dev-shell and pushes its closure to the `vig-os` Cachix
cache
- Added a per-tool `nix develop -c <tool> --version` parity test driven
from the flake SSoT to guard against future dev-shell/image drift
- **nix-direnv onboarding fast path**
([#633](https://github.com/vig-os/devcontainer/issues/633))
- Switched `.envrc` from bare `use flake` to 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 first `direnv allow` and falls back to
bare `use flake` when unavailable
- Documented the clone → `direnv allow` onboarding flow, the `vig-os`
Cachix substituter (binary fetch instead of from-source build on first
allow), and enabling the `nix-command`/`flakes` experimental features in
`CONTRIBUTE.md`
([#255](https://github.com/vig-os/devcontainer/issues/255))
- **Build the devcontainer image with Nix (`buildLayeredImage`,
non-publishing)**
([#634](https://github.com/vig-os/devcontainer/issues/634))
- Fleshed out `packages.devcontainerImage` from a stub into a real,
bit-reproducible image assembled by `dockerTools.buildLayeredImage` (not
a Dockerfile `FROM`); a `--rebuild` verifies the closure hash is
identical
- Baked the in-container Nix evaluator (upstream CppNix, `pkgs.nix`)
plus `direnv`/`nix-direnv` into the closure so `nix`/`direnv` are live
inside the container; documented the CppNix-vs-Lix and
`pre-commit`-vs-`prek` decisions in the flake
- Reproduced the Debian bootstrap layers in Nix: locale via
`glibcLocales` + `LOCALE_ARCHIVE` (no `locale-gen`), `/root/assets`,
pre-commit cache dir, template `.venv` scaffold
(`UV_PYTHON_DOWNLOADS=never`, `UV_PYTHON=<nix python3.14>`), the
`precommit`/`cc`/`cld` aliases, and `IS_SANDBOX=1`
- Added `fakeNss` (root uid-0 user database) and a sticky `/tmp` to
close the first FHS gaps surfaced by the portable testinfra (fixing
`ssh`, `whoami`, and `tmux`)
- Added a non-publishing `Nix Image (discovery)` workflow (with
`workflow_dispatch`) that builds the image and runs the portable
testinfra under `continue-on-error: true`

### Changed

- **BREAKING for consumers — this release is the Nix publish-cutover**
([#639](https://github.com/vig-os/devcontainer/issues/639),
[#625](https://github.com/vig-os/devcontainer/issues/625))
- From this release on, the published image (`:latest` and every
versioned tag) is the Nix-built image: pure-Nix userland with **no
`apt`/`dpkg`**, a `docker → podman` shim (no Docker engine), and
uv-managed CPython 3.14 (pin `requires-python` as a range, never an
exact patch). See `docs/MIGRATION.md` for the full consumer contract
- The final Debian-built release is **0.3.9**; it stays pullable
indefinitely but frozen (no CVE fixes). Rollback/stay-behind: pin
`DEVCONTAINER_VERSION=0.3.9` in the repo-root `.vig-os`
- Heads-up: the next release cycle renames the project `devcontainer` →
`devkit`, moving the image to a new GHCR package `ghcr.io/vig-os/devkit`
([#781](https://github.com/vig-os/devcontainer/issues/781))
- **Scaffolded devcontainer verbs renamed `up`/`down`/… →
`devc-up`/`devc-down`/…**
([#795](https://github.com/vig-os/devcontainer/issues/795), completed by
[#806](https://github.com/vig-os/devcontainer/issues/806))
- The managed `.devcontainer/justfile.devc` namespaces 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-in `services` recipe was the trigger:
`up` was 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 breakage
- The audit follow-up (#806) completes the namespacing: `check` →
`devc-check` and `devcontainer-upgrade` → `devc-upgrade` (recipes, their
hint strings, and the `version-check.sh` notification text), freeing the
generic `check` name for project use
- **Git-hook runner migrated from `pre-commit` to `prek`**
([#778](https://github.com/vig-os/devcontainer/issues/778), closes
[#40](https://github.com/vig-os/devcontainer/issues/40))
- The Rust [`prek`](https://github.com/j178/prek) (a faster, drop-in
`pre-commit` replacement) is now the hook runner and joins the shared
`devTools` SSoT, so it ships in both the dev-shell and the image; the
standalone Python `pre-commit` is dropped from both — one fewer
manylinux/FHS consumer in the image closure
- The `.githooks` shims, `scripts/init.sh` (`prek prepare-hooks`), `just
precommit` (`prek run --all-files`), the worktree setup (`prek
install`), and the downstream scaffold now invoke `prek`; the baked hook
cache is renamed `PREK_HOME=/opt/prek-cache` and the `precommit` shell
alias runs `prek run`. The committed `.pre-commit-config.yaml` (root +
scaffold) is unchanged and prek runs it as-is
- The CI lint gate (`.github/actions/test-project`) now runs the whole
committed hook suite via `prek run --all-files` (was `uv run pre-commit
run --all-files`), so `prek` — not the Python `pre-commit` — is what CI
validates against the impure hooks too; `pre-commit==4.6.0` is removed
from `pyproject.toml` + `uv.lock` (and the now-vestigial `pre-commit-`
dev-shell PATH exclusion in `setup-env` is dropped), completing the
"dropped from both" migration
- Migration-completeness follow-ups: the committed `check-yaml` hook now
passes `--allow-multiple-documents` in both the runner and
`checks.pre-commit` so the Nix gate is no longer more lenient than the
runner on multi-document YAML; the worktree `prek install` wires 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 remaining `pre-commit`/`PRE_COMMIT_HOME`
references (CI `env`, `container-ci-quirks.md`, `init-precommit.sh`) are
repointed at `prek`/`PREK_HOME`
- **Nix image bakes the build-time placeholder manifest so workspace
init takes the fast path**
([#718](https://github.com/vig-os/devcontainer/issues/718))
- The flake bootstrap layer now generates
`/root/assets/.placeholder-manifest.txt` (the file `init-workspace.sh`
reads next to itself) by `grep`-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, so
`init-workspace.sh` always fell back to a slow runtime `find`+`grep`
over the whole scaffold; the fast substitution path now fires. Output is
unchanged (the fallback already produced correct results) — this is a
startup-time optimization only
- **CI provisions every job from the Nix flake — the ad-hoc `setup-env`
install path (and its hardcoded `uv` pin) is gone**
([#720](https://github.com/vig-os/devcontainer/issues/720))
- The `setup-env` composite action is now flake-only: it always installs
Nix + Cachix and enters the flake dev-shell, so CI and local `nix
develop` run the exact same toolchain (uv, Python, just, taplo, BATS,
linters). The `provision-via-flake` toggle and the ad-hoc install steps
(`astral-sh/setup-uv`, `actions/setup-python`, `taiki-e/install-action`
for just, the taplo curl, and `bats-action`) — with their now-removed
`install-python`/`python-version`/`install-just`/`install-taplo`/`install-bats`
inputs and the unused `uv-version` output — are deleted
- Resolves the version drift #720 was filed for: the second, hardcoded
`uv` pin (`0.11.23`) in `setup-env` is removed, so the provisioned `uv`
version now flows from a single source — the flake's overlaid
`pkgs.uv.version` in `flake.lock`. The lightweight security and
release-orchestration jobs (which previously used the ad-hoc path) now
pull the warm `vig-os` Cachix 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 steps
- **`nix fmt` and the flake format gate now run treefmt (superseding the
nixfmt-only formatter)**
([#777](https://github.com/vig-os/devcontainer/issues/777))
- The `formatter` output is the treefmt wrapper (was `nixfmt-rfc-style`
directly, #674) and the flake `checks.format` gate is replaced by
`checks.formatting` (a `treefmt --fail-on-change` check covering nix,
python, and toml — superseding the former `nixfmt --check`-over-`*.nix`
gate from #774)
- **Image-closure Cachix push is now first-class and blocking on the
trusted paths**
([#776](https://github.com/vig-os/devcontainer/issues/776))
- Published images are now guaranteed **cache-backed**: on the trusted
paths (push to `dev` and releases) the built image closure is pushed to
the `vig-os` Cachix 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 of `cachix-action`)
- `.github/actions/build-image` gained an opt-in `push-image-closure`
input (default `false`) that performs the blocking push, guarded on a
non-empty auth token — so per-PR CI stays **pull-only** and fork PRs
(which lack `CACHIX_AUTH_TOKEN`) never fail. The release
`build-and-test` job opts in; the `Nix Image (discovery)` workflow
pushes each per-arch image closure on `dev` as the same blocking step
(distinct from the still-non-blocking GHCR discovery *tag* push)
- The release CVE gate (`vulnix-gate`) now also pushes the
`devcontainerImageEnv` scan-target closure, so the vulnix scan surface
is cache-backed too. Documented the guarantee in `docs/NIX.md` and
`docs/CONTAINER_SECURITY.md`
- **Flake cheap-fix batch: darwin-guarded image outputs, single
nixpkgs-unstable eval, uv downloads URL derived from version, Renovate
wheel-hash rule, nixfmt over all `*.nix`**
([#774](https://github.com/vig-os/devcontainer/issues/774))
- The Linux-only `packages` (`devcontainerImage` plus its
`devcontainerImageEnv`/`vulnix` scan targets) are now exposed only on
`*-linux` systems, so `nix flake check --all-systems` no longer aborts
during the darwin `dockerTools` evaluation; the dev-shell stays
cross-platform
- `nixpkgs-unstable` is imported once per system and threaded into the
fast-mover overlay, instead of being re-imported inside the overlay
fixpoint on each application
- `UV_PYTHON_DOWNLOADS_JSON_URL` is derived from `pkgs.uv.version`
rather than a literal version pin, so it can no longer drift from the
overlaid (floating) `uv`
- Added a Renovate custom regex manager that tracks the `pip-licenses`
wheel version pinned in `flake.nix` (the sha256/URL hash path is
refreshed by hand when the bump PR lands)
- The flake `checks.format` gate now runs `nixfmt --check` over every
`*.nix` in the repo (source filtered to `.nix` files), not just
`flake.nix`
- **Resync security-gate docs to reflect the blocking vulnix gate**
([#758](https://github.com/vig-os/devcontainer/issues/758))
- `docs/NIX.md`, `docs/CONTAINER_SECURITY.md`, and the
`security-scan.yml` summary string still described the nightly `vulnix`
CVE gate as non-blocking / in a discovery phase, with a stale `builder:
debian|nix` selector reference; the gate is now **blocking** (#639) and
the build pipeline is Nix-only post-Debian-decommission (#642), so the
wording is corrected to match
- **Offline skip-guard for network-dependent image tests**
([#761](https://github.com/vig-os/devcontainer/issues/761))
- The image tests that fetch over the network — `test_uv_venv_workflow`
(`uv add`/`uv sync` from PyPI) and
`test_npm_global_install_resolves_on_path` (`npm install -g tsx` from
the npm registry) — now `pytest.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_reachable` PyPI check) backs the guards; online runs
still execute the tests unchanged
- **Applied the still-relevant Renovate dependency updates**
([#625](https://github.com/vig-os/devcontainer/issues/625))
- Folded the open Renovate PRs that still apply post-migration onto the
epic: `actions/cache` → v6.1.0 (the v6 service, superseding the v5.x
bumps), `actions/attest`/`actions/attest-build-provenance` → v4.1.1,
`actions/setup-python` and `taiki-e/install-action` (just) digest
refreshes, and `pandas` 3.0.3 → 3.0.4 in the workspace template. Stale
ones were dropped: the `python:3.14-slim-bookworm` Docker digest (the
`Containerfile` is gone) and the `ruff` pip pin (sourced from the flake
now, #697); the `uv` 0.11.23 → 0.11.25 bump is deferred to the
flake↔setup-env version sync (#720)
- **`SECURITY.md` describes the Nix image security posture**
([#642](https://github.com/vig-os/devcontainer/issues/642))
- Replaced the stale Debian/`Containerfile` base-image pin, the "Trivy
in CI/release" line, the 78 Debian LOW-CVE `.trivyignore` note, and the
nine legacy BATS-npm GHSA exceptions (the framework now ships from the
flake) with the current `vulnix` + CycloneDX SBOM scanning model and the
`.vulnixignore`/`.trivyignore` dual register, mirroring
`docs/CONTAINER_SECURITY.md`
- **README now describes the Nix-built image**
([#673](https://github.com/vig-os/devcontainer/issues/673))
- Replaced the stale `python:3.12-slim-trixie` Debian base-image claim
with the actual build: a Nix flake assembled via
`dockerTools.buildLayeredImage` (no Debian/Docker base), with CPython
3.14 and the toolchain from a pinned `nixpkgs`, bit-reproducible
- **Make `just init` Nix-first**
([#671](https://github.com/vig-os/devcontainer/issues/671))
- Rewrote `scripts/init.sh` from 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 advisory
`podman info` / `gh auth status` checks. It no longer installs any tool
— the toolchain is the flake's `devTools` — and short-circuits inside
the built image (`IN_CONTAINER=true`)
- Repointed `docs/generate.py` and the `CONTRIBUTE.md.j2` template: the
per-OS "Requirements" table is now a "Prerequisites: Nix + direnv + a
working host container runtime" section, with the toolchain sourced from
`flake.nix`
- **Nix image passes the full testinfra suite (toolchain parity)**
([#666](https://github.com/vig-os/devcontainer/issues/666))
- Packaged `vig-utils` (and `pip-licenses` from its PyPI wheel, as it is
not in nixpkgs) as Nix python packages exposed through a
`python314.withPackages` env, and added `ruff`, `bandit`,
`cargo-binstall`, `just-lsp`, and `typstyle` from nixpkgs — the Nix
image now carries the project Python toolchain hermetically, replacing
the Debian image's build-time `uv pip install`
- Relaxed `requires-python` from `==3.14.6` to `>=3.14,<3.15` across the
root, `vig-utils`, and workspace-template pyprojects: `flake.lock` is
the reproducibility anchor now, so the exact pin was redundant and
unsatisfiable against nixpkgs (3.14.4)
- Adapted `tests/test_image.py` to 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 the `nix-image.yml`
`build-and-test` job gate on it (discovery phase closed)
- **Stage the Nix publish-cutover; advance the nixpkgs baseline to
26.05** ([#639](https://github.com/vig-os/devcontainer/issues/639))
- Bumped the pinned channel `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)
- Made the nightly `vulnix-gate` **blocking** (the #639 go/no-go gate)
now that it is legitimately green, and archived the `vulnix`-vs-Trivy
scan overlap in `docs/security/nix-cutover-scan-overlap.md` (zero
overlap — disjoint surfaces, no finding class lost in the Debian→Nix
switch)
- Staged the publish-cutover so the versioned/`:latest` publish stays
paused pending a deliberate Nix release: the nightly `vulnix-gate` is
the go/no-go signal. The build pipeline became Nix-only once the Debian
path was decommissioned (#642), so no `builder` toggle remains — the
interim `builder: debian|nix` selector this issue introduced was
superseded by that decommission
- **Make `.claude/` the single source of truth for agent rules and
skills** ([#626](https://github.com/vig-os/devcontainer/issues/626))
- Moved the 30 agent skills from `.cursor/skills/` to `.claude/skills/`
and rewrote the 29 `.claude/commands/*.md` wrappers to point at the new
paths
- Split the seven `.cursor/rules/*.mdc`: static principles (coding
principles, commit messages, changelog, single source of truth) are now
consolidated in `CLAUDE.md`; workflow rules (`branch-naming`, `tdd`,
`subagent-delegation`) became on-demand `.claude/skills/`
- Ported `agent-models.toml` and `worktrees.json` to `.claude/`, updated
the docs generator, pre-commit hooks, shell entrypoints, and the
workspace sync manifest, and deleted the root `.cursor/` directory
- **Drive autonomous worktree pipelines with the `claude` CLI**
([#627](https://github.com/vig-os/devcontainer/issues/627))
- `just worktree-start`/`worktree-attach` now launch `claude
--dangerously-skip-permissions` in the tmux session instead of
`cursor-agent` (`agent chat --yolo --approve-mcps`); the cursor-specific
directory-trust step and the `tmux send-keys "a"` approval trigger are
no longer needed and have been removed
- Prerequisite, authentication (`claude auth status`/`claude auth
login`, `ANTHROPIC_API_KEY`), and `scripts/requirements.yaml` now
reference the `claude` CLI rather than the Cursor Agent CLI
- **Migrate the workspace template and editor glue off Cursor (VS Code
only)** ([#629](https://github.com/vig-os/devcontainer/issues/629))
- New workspaces now scaffold `.claude/` (skills, `agent-models.toml`,
`worktrees.json`) instead of the removed `.cursor/` template tree; the
sync manifest carries the `.claude/` payload accordingly
- `just open` launches VS Code only (dropped the `command -v cursor`
fallback), and `verify-auth.sh` no longer scans the `cursor-remote-ssh`
SSH-agent socket
- `COMMIT_MESSAGE_STANDARD.md` now refers to VS Code rather than "VS
Code / Cursor"
- **Make the image testinfra suite portable across Debian and Nix
images** ([#635](https://github.com/vig-os/devcontainer/issues/635))
- Replace dpkg `host.package(...).is_installed` checks (git, curl,
openssh-client, nano, tmux, rsync) with path-agnostic `--version`/`-V`
runs
- Resolve `gh`, `just`, `hadolint`, `taplo` and cargo-installed tools
via PATH (`command -v`) instead of hardcoded `/usr/local/bin` /
`/root/.cargo/bin` / `/root/.local/bin` locations
- Drop the `DEBIAN_FRONTEND` environment assertion and the apt-sourced
version-prefix checks (git, curl, tmux, rsync) from `EXPECTED_VERSIONS`
- **Provision CI build/test tooling from the flake dev-shell**
([#632](https://github.com/vig-os/devcontainer/issues/632))
- The `setup-env` action gained a `provision-via-flake` mode that
installs Nix (SHA-pinned `install-nix-action`) and the `vig-os` Cachix
substituter, builds the flake dev-shell, and prepends its tools to
`PATH`, replacing the ad-hoc installs of `uv`/Python, `just`,
`hadolint`, and `taplo`
- Enabled the mode in the CI build/test path (`build-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 paths
- Set `UV_PYTHON_DOWNLOADS_JSON_URL` in the flake dev-shell so the
nixpkgs `uv` (whose embedded Python-download list is stripped) can fetch
the project's pinned CPython `3.14.6`, which nixpkgs does not package,
letting `uv sync --frozen` succeed under flake provisioning
- Keep `podman` off the flake-provisioned `PATH` so the runner's
rootless-configured host `podman` is used (the nix-store `podman` cannot
reach the host's setuid `newuidmap`/`newgidmap`, so `podman info`
failed)

### Removed

- **Removed the sidecar / multi-container capability**
([#799](https://github.com/vig-os/devcontainer/issues/799))
- Dropped the `just sidecar`/`just sidecars` recipes, the
`docker-compose.project.yaml` sidecar examples, the sidecar test
fixtures (`sidecar.Containerfile`, `test-build.sh`, the fixtures
`justfile`, the `test-sidecar` compose service) and
`TestSidecarConnectivity`, and `hadolint` from `devTools` (unused since
the Containerfile lint hook was dropped in #642; the deleted sidecar
Containerfile was its last Dockerfile-like artifact)
- Migration: use Nix devShells for toolchains and
`process-compose`/`services-flake`
([#795](https://github.com/vig-os/devcontainer/issues/795)) for local
services; the Docker-out-of-Docker socket for building containers is
retained
- **Retire `scripts/requirements.yaml`**
([#671](https://github.com/vig-os/devcontainer/issues/671))
- Deleted the per-OS dependency manifest and its consumers (the
`load_requirements`/`format_requirements_table`/`format_install_commands`
helpers in `docs/generate.py` and their tests). `flake.nix` `devTools`
is now the single source of truth for the toolchain, ending the
dual-SSoT drift
- **Decommission the Debian build path**
([#642](https://github.com/vig-os/devcontainer/issues/642))
- Deleted the root `Containerfile`, `scripts/prepare-build.sh`,
`scripts/build.sh`, and the `.hadolint.yaml` config (plus its synced
workspace copy); the image now builds Nix-only
- Removed the `hadolint` pre-commit hook and its
`setup-env`/`test-project` install wiring, the `hadolint` and
Containerfile entries from `scripts/requirements.yaml` and
`scripts/manifest.toml`, and the `Containerfile`/build-script
`CODEOWNERS` entries
  - `build-image`, `release.yml`, and `ci.yml` are now Nix-only
- Dropped the Debian `scan-latest` nightly Trivy job, the ~78 Debian
OS-package CVE entries from `.trivyignore`, and the Renovate
`dockerfile` manager; `docs/CONTAINER_SECURITY.md` now reads as Nix-only
- **Remove the `cursor-agent` CLI install from the image**
([#628](https://github.com/vig-os/devcontainer/issues/628))
- Dropped the unpinned `curl … cursor.com/install` build step and its
`/root/.local/bin` PATH entry, leaving an all-nixpkgs toolchain ahead of
the Nix migration
  - Removed the coupled `test_cursor_agent_installed` image test

### Fixed

- **vulnix CVE scans survive `nvd.nist.gov` outages via a self-hosted
NVD feed mirror**
([#870](https://github.com/vig-os/devcontainer/issues/870))
- `nvd.nist.gov` is chronically throttled/unstable (upstream
`nix-community/vulnix#171`): cold scan runs crawled the full NVD
year-feed set for tens of minutes and failed with
`ReadTimeoutError`/`IncompleteRead`, blocking both the nightly gate and
the release publish gate. A dedicated public mirror,
[`vig-os/nvd-mirror`](https://github.com/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 NVD
- `security-scan.yml` and the `release.yml` `vulnix-gate` now run
`vulnix --mirror https://vig-os.github.io/nvd-mirror/`, fetching NVD
data from a CDN-backed mirror instead of `nvd.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
change
- **Renovate changelog automation no longer self-triggers an
empty-commit loop and keeps the workspace mirror in sync**
([#863](https://github.com/vig-os/devcontainer/issues/863))
- The changelog commit is pushed with a GitHub App token (which
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 fresh
`synchronize` events without end (#862 accrued 150+ identical empty
commits before the build was disabled by hand). The build now skips
`synchronize` events raised by the changelog commit bot
(`github.event.sender.login`), severing the loop
- The automation 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; the build now mirrors
the verbatim copy and commits both files
- **rc4 field-validation fix batch: direnv-mode commits, pipe-safe
scripts, prune/typos/installer hardening**
([#859](https://github.com/vig-os/devcontainer/issues/859))
- Scaffolded `.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)
- Restored the `${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 devcontainer` no longer deletes a consumer's **pre-existing**
`flake.nix`/`.envrc` (two real repos lost their own nix-direnv setup);
the prune now only removes stub files the scaffold itself created,
mirroring the #738 guard
- The installer's final `just sync` is non-fatal when the preserved
old-generation `justfile.project` predates the `sync` recipe (warns and
points to MIGRATION.md instead of failing an otherwise complete
scaffold)
- The typos hook (repo + scaffold) passes `--force-exclude` so `[files]
extend-exclude` applies to explicitly-passed staged files — three
consumer repos hit garbage findings on committed binary artifacts (PDFs,
SVGs, `.bin` fixtures)
- `docs/MIGRATION.md` gained 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)
- **Shipped consumer `prepare-release.yml` caps its PR body under
GitHub's 65,536-char limit**
([#857](https://github.com/vig-os/devcontainer/issues/857))
- #812 capped the PR body only in this repo's own workflow; the
scaffolded consumer copy still interpolated the full frozen changelog
section uncapped, so a consumer with a large release (the 0.4.0-rc3
smoke test seeds this repo's ~67k-char section) failed `Create draft PR
to main` with `GraphQL: Body is too long`. The shipped workflow now
applies the same line-boundary truncation with a pointer to the release
branch's full `CHANGELOG.md`
- **Scaffold ships `.typos.toml` so the shipped typos hook passes out of
the box** ([#855](https://github.com/vig-os/devcontainer/issues/855))
- The scaffolded `.pre-commit-config.yaml` runs the `typos` hook, but
the exception config stayed repo-local — consumers linted
scaffold-shipped content (`version-check.sh`'s `Nd` duration 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.toml` now syncs into the workspace template via
`scripts/manifest.toml`, same as `.yamllint`/`.pymarkdown`
- **`install.sh --version` now pins the scaffolded `.vig-os` to the
requested version**
([#852](https://github.com/vig-os/devcontainer/issues/852))
- The Nix image bakes the release it was built from into the scaffolded
`.vig-os` (correct for finals, where the repo pin is bumped at finalize
— but stale for release candidates), and `install.sh` never wrote its
`--version` into 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 with
`prek: command not found`. `install.sh` now forwards an explicit
`--version` as `VIG_OS_VERSION` and `init-workspace.sh` pins it in
`.vig-os` post-scaffold; plain `latest` installs keep the baked pin
- **Release-lane Trivy scan aligned with the ratified awareness-only
posture** ([#849](https://github.com/vig-os/devcontainer/issues/849))
- `release.yml`'s build-and-test Trivy step was the last Debian-era
blocking scanner (`exit-code: 1` with only `.trivyignore`), failing the
candidate on embedded language-ecosystem HIGHs already triaged into
`.vulnixignore`. Per the #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, mirroring `security-scan.yml` and `ci.yml`
- **`setup-env` no longer flakes on a SIGPIPE race when listing the
provisioned dev-shell PATH**
([#847](https://github.com/vig-os/devcontainer/issues/847))
- The provisioning step's `grep '^/nix/store' | head -50` summary runs
under the runner's `pipefail` shell; once the dev-shell PATH topped 50
nix-store entries, `head` exiting early could SIGPIPE `grep` (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 summary
- **Release lane fixed for the Nix stack: current runners + tolerated
vulnix findings exit**
([#842](https://github.com/vig-os/devcontainer/issues/842))
- `release.yml`'s build-and-test matrix still pinned Debian-era
`ubuntu-22.04`/`ubuntu-22.04-arm` runners, whose podman 3.4.4 breaks
rootless volume UID mapping — `init-workspace.sh`'s in-container rsync
failed to chmod the `/workspace` scaffold (`Operation not permitted`),
killing the integration tests that pass everywhere else on
`ubuntu-24.04` (podman 4.9.3). The matrix now uses the same
`ubuntu-24.04`/`ubuntu-24.04-arm` expression as `nix-image.yml`
- The release `Run vulnix` step missed `security-scan.yml`'s `|| rc=$?`
capture, so under the runner's `bash -e` a 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)
- **Release pipeline no longer fails when the release changelog exceeds
GitHub's PR-body limit**
([#810](https://github.com/vig-os/devcontainer/issues/810))
- The `Create draft PR to main` step 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 with `GraphQL: Body
is too long` and the release rolled back. The step now caps the body,
truncating the changelog at a line boundary and pointing to the full
`CHANGELOG.md` on the release branch when it would overflow; small
releases still inline the whole changelog unchanged
- The same uncapped rebuild existed in `release.yml`: the finalize-path
`Refresh release PR body from finalized changelog` step (which would
have crashed the final release run mid-finalize and triggered rollback)
and the rollback-path `Restore release PR body` step. Both now apply the
same cap
- **Scaffold justfile audit: worktree recipes reachable, compose docs
de-stale'd** ([#806](https://github.com/vig-os/devcontainer/issues/806))
- The scaffold root `justfile` now imports
`.devcontainer/justfile.worktree` (`import?`, so direnv-mode workspaces
still parse): the shipped `.claude` worktree skills invoke `just
worktree-start`, but nothing imported the recipes, so they were
unreachable in consumer repos
- The shipped `.devcontainer/README.md` no longer documents the
long-removed `docker-compose.override.yml(.example)` workflow; it now
describes the real layering (`docker-compose.project.yaml` team-shared /
`docker-compose.local.yaml` personal) that #799 deliberately kept
- Dropped a vacuous image-test assertion on a `docker-compose.local.yml`
(`.yml`) spelling nothing ships, and aligned the dev-env ADR's
illustrative services verb with the shipped `just services` recipe. The
audit found no other compose-era leftovers: the repo-root justfiles are
clean and the project/local compose layering is intentional
- **Review-nit batch: dry-run/scaffold-guard, summary cancel handling,
help/message fixes**
([#759](https://github.com/vig-os/devcontainer/issues/759))
- `install.sh` `--dry-run` now derives the shown command from the real
`CMD` array via `printf '%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 directory
- `release.yml` now treats a `cancelled` required job as not-green (it
triggers rollback like a failure), so a cancellation can no longer leave
a partial release un-rolled-back
- `version-check.sh` help text corrected (`And (days)` → `Nd (days)`),
and `init.sh` now reports "Pre-commit hook environments installed" (the
`install-hooks` step only fetches hook environments)
- **Restore arm64 image-testing coverage post-merge**
([#760](https://github.com/vig-os/devcontainer/issues/760))
- `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. Added `dev` to the workflow's `push:` branch filter (keeping
the existing `flake.nix`/`flake.lock`/workflow `paths:` guard) so the
native amd64 + arm64 build/test matrix keeps running on `dev` post-merge
- **release.yml publish retags the loaded Nix image tag**
([#752](https://github.com/vig-os/devcontainer/issues/752))
- **install.sh `--skip-pull` works under docker; ci.yml runs safety via
`uv run`** ([#757](https://github.com/vig-os/devcontainer/issues/757))
- `install.sh` checked for a present local image with the podman-only
`$RUNTIME image exists`, which docker lacks, so `--skip-pull` always
failed under docker; it now uses `$RUNTIME image inspect`, which works
on both runtimes
- The CI `safety` dependency scan was invoked bare instead of via `uv
run`, so it ran outside the uv env (unlike the adjacent `uv run
bandit`); it now runs via `uv run safety`
- **Dev-shell exposes `python3` + `pre-commit` (image parity),
CI-safely** ([#729](https://github.com/vig-os/devcontainer/issues/729))
- `mkProjectShell` now ships a bare `python3`/`pre-commit` on PATH so
the downstream flake-input/direnv dev-shell matches the image.
`setup-env` filters the Nix `python3-<ver>` (and `pre-commit`) out of
the forwarded CI runner PATH so `uv` keeps building the project venv
from the downloaded managed CPython. No new `LD_LIBRARY_PATH`, so the
#703 FHS leak-guard is intact. A `nix develop --ignore-environment`
parity test (and the FHS leak-guard) now run in the Project Checks job
- **Nix image runs pre-compiled PyPI (manylinux) wheels at runtime
(arch-aware FHS loader + baked `LD_LIBRARY_PATH`)**
([#736](https://github.com/vig-os/devcontainer/issues/736))
- The bare `dockerTools.buildLayeredImage` shipped neither the FHS
dynamic loader (the `PT_INTERP` every 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 PyPI `ruff`/`typos`) aborted with `cannot execute: required file
not found`, and C extensions dlopened by the baked CPython
(`numpy`/`scipy`, pre-commit `pymarkdown`'s `pyjson5`) failed with
`ImportError: libstdc++.so.6`
- The image now ships an architecture-aware FHS loader
(`/lib64/ld-linux-x86-64.so.2` on x86_64, `/lib/ld-linux-aarch64.so.1`
on aarch64 — the loader name and FHS dir are derived from the build
platform, so the arm64 build passes `test_fhs_loader_exists`) symlinked
to the Nix glibc loader (newer glibc runs the old-glibc wheels via
backward compatibility), and bakes `LD_LIBRARY_PATH` with
`${stdenv.cc.cc.lib}/lib` (libstdc++/libgcc_s) + `${zlib}/lib` (libz) so
both standalone wheel executables and C-extension `.so` files dlopened
by the store CPython resolve their runtime libs. This is the image-scope
analogue of the dev-shell
[#698](https://github.com/vig-os/devcontainer/issues/698) fix, but
ungated: an all-Nix container has no foreign FHS host binaries to
pollute, so the `/etc/NIXOS` ABI gate never applies
- **Nix image bakes the template `/root/assets/workspace/.venv`
(renameable prompt)**
([#735](https://github.com/vig-os/devcontainer/issues/735))
- The image advertised `UV_PROJECT_ENVIRONMENT`/`VIRTUAL_ENV` at
`/root/assets/workspace/.venv` but never created it (the Debian image
did). The published 0.3.x consumer `post-create.sh` runs `sed -i
.../.venv/bin/activate` as its first venv step and aborted under `set
-euo pipefail` (`exit 2`) when the file was missing — so git setup, gh
auth, pre-commit install, and `just sync` never 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
sync` populates it), and normalizes the activate `VIRTUAL_ENV_PROMPT` to
the quoted `"template-project"` form the consumer `post-create.sh`
rename targets (so the prompt rename no longer no-ops)
- **`docker` now resolves in the Nix-built image (podman compatibility
shim)** ([#740](https://github.com/vig-os/devcontainer/issues/740))
- The image shipped `podman` but no `docker` binary, while the consumer
`.devcontainer/docker-compose.yml` mounts the socket at
`/var/run/docker.sock` and sets `DOCKER_HOST`/`CONTAINER_HOST`.
Docker-out-of-Docker worked because podman honors `DOCKER_HOST`, but any
recipe/script invoking `docker` literally failed with `command not
found`. The bootstrap layer now bakes a tiny `docker -> podman` wrapper
at `/usr/local/bin/docker` (already on the baked `PATH`) that execs the
baked podman, so `docker`-literal callers get a working binary without
pulling in the Docker engine
- **`install.sh --mode direnv --force` no longer clobbers a populated
consumer repo**
([#738](https://github.com/vig-os/devcontainer/issues/738))
- Re-initializing an existing project in `direnv` mode deployed the full
workspace template over it: the scaffold `rsync` overwrote a real
`pyproject.toml` with 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.toml` is now in the never-overwrite `PRESERVE_FILES`
class, and `direnv` mode excludes `.devcontainer/` from the copy and
skips the prune when a populated `.devcontainer/` predates the
(re)scaffold, so real project files survive untouched. `--force` still
deploys the Nix/direnv stub (`flake.nix`, `.envrc`, `.vig-os`) onto
repos that lack it
- `install.sh` no longer prints a misleading `User configuration script
not found … copy-host-user-conf.sh` warning in `direnv` mode, which
scaffolds no `.devcontainer/` and therefore has no host-user-conf step
to run
- **`/usr/bin/env` now exists in the Nix-built image**
([#727](https://github.com/vig-os/devcontainer/issues/727))
- The bare `dockerTools.buildLayeredImage` had no `/usr/bin` at 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. Added `dockerTools.usrBinEnv` (the FHS shim
symlinking `/usr/bin/env` to coreutils `env`) to the image package set,
alongside the existing `fakeNss` shim
- **`npm install -g` now lands CLIs on PATH in the Nix image**
([#728](https://github.com/vig-os/devcontainer/issues/728))
- npm's default global prefix was the read-only `nodejs` nix-store path,
whose `bin/` is not on `PATH` — so `npm install -g <tool>` reported
success but the binary was unresolvable (`command -v <tool>` failed).
The image now bakes `NPM_CONFIG_PREFIX=/usr/local` (already on the baked
`PATH`) and creates a writable `/usr/local/bin` in the bootstrap layer,
so globally installed CLIs resolve on `PATH`
- **`init-workspace --mode direnv` now produces a loadable `justfile`**
([#641](https://github.com/vig-os/devcontainer/issues/641))
- The scaffolded root `justfile` hard-imported
`.devcontainer/justfile.devc` and `.devcontainer/justfile.gh`, but
`direnv` mode prunes `.devcontainer/` — so every `just` command
(including init-workspace's own final `just sync`) failed to parse in a
direnv-mode workspace. Made the two `.devcontainer/` imports optional
(`import?`, matching `justfile.project`/`justfile.local`); the `sync`
recipe lives in the preserved `justfile.project`, so `just sync` still
works in all modes
- **Worktree recipes read agent config from the `.claude/` SSoT**
([#627](https://github.com/vig-os/devcontainer/issues/627))
- The Cursor→Claude migration swapped the launch command but left
`justfile.worktree` reading the removed `.cursor/` tree: a dead
`_read_model` helper pointed at `.cursor/agent-models.toml`, and the
branch-naming rule passed to `derive-branch-summary` was
`.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. Added
`worktree-claude-cli.bats` / `test_claude_ssot.py` guards against
entrypoints reading removed `.cursor/` config paths
- `derive-branch-summary` (invoked by `just worktree-start` to name an
unlinked branch) still shelled out to the removed `cursor-agent` binary
(`agent --print --yolo --trust`); with no test exercising the
non-`BRANCH_SUMMARY_CMD` path it slipped through CI. It now drives
`claude --print --dangerously-skip-permissions`, and `agent-models.toml`
tiers map to claude model aliases (`haiku`/`sonnet`/`opus`) instead of
Cursor names (`composer-1.5`/`sonnet-4.5`/`opus-4.6`) so `--model`
resolves
- **Integration tests now exercise the freshly-built image, not the
published `DEVCONTAINER_VERSION`**
([#701](https://github.com/vig-os/devcontainer/issues/701))
- The integration suite scaffolded a workspace from the image under test
(`TEST_CONTAINER_TAG`) but then brought the devcontainer up from
whatever `DEVCONTAINER_VERSION` resolved to (the published `0.3.9`), so
it validated fresh scaffolding running inside a stale image. The
`devcontainer_up`/`devcontainer_with_sidecar` fixtures now export
`DEVCONTAINER_VERSION=TEST_CONTAINER_TAG`; compose reads the shell
environment over `.env`, so the scaffolded `docker-compose.yml` resolves
to the build under test (and every `devcontainer exec`, which inherits
the environment, agrees). Added
`test_devcontainer_runs_image_under_test` asserting the running
container's image
- **Dev-shell resolves `pymarkdown`'s `pyjson5` `libstdc++` on NixOS
without breaking `just` on FHS hosts**
([#698](https://github.com/vig-os/devcontainer/issues/698),
[#703](https://github.com/vig-os/devcontainer/issues/703))
- The `pymarkdown` 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 off the loader path
outside an FHS environment, so the hook aborted with `ImportError:
libstdc++.so.6` and forced `--no-verify`. Unlike the standalone binaries
in [#697](https://github.com/vig-os/devcontainer/issues/697),
`pymarkdown` is not in nixpkgs, so the "add to `devTools` + `language:
system`" recipe does not apply
- `mkProjectShell` now appends the Nix C++ runtime
(`${stdenv.cc.cc.lib}/lib`, libstdc++) to `LD_LIBRARY_PATH` **only 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 resolves `libstdc++` and
nothing is exported — avoiding the `GLIBC_ABI_DT_X86_64_PLT not found`
breakage an unconditional export caused in host `just`/bash recipes
(whose `#!/usr/bin/env bash`, plus anything `/etc/ld.so.preload` forces
`libstdc++` 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
added
- **pre-commit ruff/ruff-format/typos hooks now run on NixOS hosts
(sourced from the flake)**
([#697](https://github.com/vig-os/devcontainer/issues/697))
- The `ruff`, `ruff-format`, and `typos` hooks pulled compiled tools as
generic-linux (manylinux) wheels from `astral-sh/ruff-pre-commit` and
`crate-ci/typos`; a NixOS host cannot execute those binaries out of the
box (no FHS `ld-linux`), forcing `--no-verify` on every local commit
- Added `ruff` and `typos` to the flake `devTools` SSoT and converted
the three hooks to `repo: 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 track `nixpkgs`/`flake.lock` (Renovate
`nix` manager) instead of upstream `rev:` pins, consistent with the #625
toolchain consolidation. The scaffolded
`assets/workspace/.pre-commit-config.yaml` is `language: system` as well
(no upstream-hook decoupling — downstream workspaces resolve the tools
from the toolchain baked into the image)
- Removed `ruff` from the project's uv dependency groups
(`pyproject.toml`/`uv.lock`) and repointed `just lint`/`just format` to
the flake `ruff` (dropping `uv run`). Otherwise the venv's `ruff` (a
manylinux wheel) shadowed the flake `ruff` under `uv run` — which is how
the `.githooks/pre-commit` hook and the `just` recipes invoke it — so
`ruff` stayed broken on NixOS; the flake is now the single `ruff` source
(its `[tool.ruff]` config is unchanged)
- Declared `PATH` in the devcontainer image's OCI `config.Env`.
`buildLayeredImage` symlinks the toolchain into `/bin` but set no PATH;
`podman run` injects a default (so it worked), but `docker-compose` /
`devcontainer exec` inherit `config.Env` verbatim, leaving the baked
toolchain off PATH so `language: system` hooks could not resolve. Added
an image test asserting the OCI config declares a PATH containing `/bin`
- **BATS suite no longer fails locally on the Nix toolchain (helper
libraries unresolved)**
([#695](https://github.com/vig-os/devcontainer/issues/695))

_Changelog truncated to fit GitHub's 65000-char PR-body limit; see
`CHANGELOG.md` on `release/0.4.0` for the full entry._
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant