Skip to content

gawk: 5.4.0 -> 5.4.1 - #540158

Merged
dasJ merged 1 commit into
NixOS:stagingfrom
r-ryantm:auto-update/gawk
Jul 12, 2026
Merged

dasJ merged 1 commit into
NixOS:stagingfrom
r-ryantm:auto-update/gawk

Conversation

@r-ryantm

Copy link
Copy Markdown
Contributor

Automatic update generated by nixpkgs-update tools. This update was made based on information from https://repology.org/project/gawk/versions.

meta.description for gawk is: GNU implementation of the Awk programming language

meta.homepage for gawk is: https://www.gnu.org/software/gawk/

Updates performed
  • Version update
To inspect upstream changes
Impact

Checks done


  • built on NixOS
  • The tests defined in passthru.tests, if any, passed
  • found 5.4.1 with grep in /nix/store/0ns8fqg64p246sshn2hlag74c70r4z8y-gawk-5.4.1
  • found 5.4.1 in filename of file in /nix/store/0ns8fqg64p246sshn2hlag74c70r4z8y-gawk-5.4.1

Rebuild report (if merged into master) (click to expand)
79700 total rebuild path(s)

79698 package rebuild(s)

First fifty rebuilds by attrpath

AMB-plugins
ArchiSteamFarm
CuboCore.coreaction
CuboCore.corearchiver
CuboCore.corefm
CuboCore.coregarage
CuboCore.corehunt
CuboCore.coreimage
CuboCore.coreinfo
CuboCore.corekeyboard
CuboCore.corepad
CuboCore.corepaint
CuboCore.corepdf
CuboCore.corepins
CuboCore.corerenamer
CuboCore.coreshot
CuboCore.corestats
CuboCore.corestuff
CuboCore.coreterminal
CuboCore.coretime
CuboCore.coretoppings
CuboCore.coreuniverse
CuboCore.libcprime
CuboCore.libcsys
DisnixWebService
Fabric
LAStools
LycheeSlicer
MMA
OVMF
OVMF-cloud-hypervisor
OVMF-xen
OVMFFull
QuadProgpp
R
SDL
SDL2
SDL2_Pango
SDL2_gfx
SDL2_image
SDL2_mixer
SDL2_net
SDL2_sound
SDL2_ttf
SDL_Pango
SDL_audiolib
SDL_compat
SDL_gfx
SDL_image
Instructions to test this update (click to expand)

Either download from the cache:

nix-store -r /nix/store/0ns8fqg64p246sshn2hlag74c70r4z8y-gawk-5.4.1 \
  --option binary-caches 'https://cache.nixos.org/ https://nixpkgs-update-cache.nix-community.org/' \
  --option trusted-public-keys '
  nixpkgs-update-cache.nix-community.org-1:U8d6wiQecHUPJFSqHN9GSSmNkmdiFW7GW7WNAnHW0SM=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The nixpkgs-update cache is only trusted for this store-path realization.)
For the cached download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.

Or, build yourself:

nix-build -A gawk https://github.com/r-ryantm/nixpkgs/archive/1488f541dc3309d5e9b64470ce9890aa4a3fcbba.tar.gz

Or:

nix build github:r-ryantm/nixpkgs/1488f541dc3309d5e9b64470ce9890aa4a3fcbba#gawk

After you've downloaded or built it, look at the files and if there are any, run the binaries:

ls -la /nix/store/0ns8fqg64p246sshn2hlag74c70r4z8y-gawk-5.4.1
ls -la /nix/store/0ns8fqg64p246sshn2hlag74c70r4z8y-gawk-5.4.1/bin


Pre-merge build results

Nixpkgs review skipped


Maintainer pings

cc @dasJ @helsinki-Jo for testing.

Tip

As a maintainer, if your package is located under pkgs/by-name/*, you can comment @NixOS/nixpkgs-merge-bot merge to automatically merge this update using the nixpkgs-merge-bot.

@nixpkgs-ci
nixpkgs-ci Bot requested review from dasJ and helsinki-Jo July 10, 2026 00:48
@nixpkgs-ci nixpkgs-ci Bot added 8.has: package (update) This PR updates a package to a newer version 10.rebuild-linux: 501+ This PR causes many rebuilds on Linux and should normally target the staging branches. 10.rebuild-darwin: 501+ This PR causes many rebuilds on Darwin and should normally target the staging branches. 10.rebuild-linux-stdenv This PR causes stdenv to rebuild on Linux and must target a staging branch. 10.rebuild-darwin-stdenv This PR causes stdenv to rebuild on Darwin and must target a staging branch. 10.rebuild-darwin: 5001+ This PR causes many rebuilds on Darwin and must target the staging branches. 10.rebuild-linux: 5001+ This PR causes many rebuilds on Linux and must target the staging branches. 10.rebuild-nixos-tests This PR causes rebuilds for all NixOS tests and should normally target the staging branches. labels Jul 10, 2026
@nixpkgs-ci nixpkgs-ci Bot added 12.approvals: 1 This PR was reviewed and approved by one person. 12.approved-by: package-maintainer This PR was reviewed and approved by a maintainer listed in any of the changed packages. labels Jul 10, 2026
@dasJ
dasJ added this pull request to the merge queue Jul 12, 2026
Merged via the queue into NixOS:staging with commit 860a66f Jul 12, 2026
36 of 38 checks passed
@trofi

trofi commented Jul 12, 2026

Copy link
Copy Markdown
Contributor

Bisect says 1488f54 somehow broken libpng in staging as:

$ nix build --no-link -f. libpng -L
...
libpng-apng> contrib/libtests/pnggetset.c: In function 'test_plte_roundtrip':
libpng-apng> contrib/libtests/pnggetset.c:53:8: error: implicit declaration of function 'setjmp' [-Wimplicit-function-declaration]
libpng-apng>    53 |    if (setjmp(png_jmpbuf(png_ptr)))
libpng-apng>       |        ^~~~~~
libpng-apng> In file included from contrib/libtests/pnggetset.c:23:
libpng-apng> contrib/libtests/../../png.h:996:8: error: 'LIBPNG_WAS_COMPILED_WITH__PNG_NO_SETJMP' undeclared (first use in this function)
libpng-apng>   996 |       (LIBPNG_WAS_COMPILED_WITH__PNG_NO_SETJMP)
libpng-apng>       |        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

@r-ryantm
r-ryantm deleted the auto-update/gawk branch July 13, 2026 00:52
@dasJ

dasJ commented Jul 13, 2026

Copy link
Copy Markdown
Member

Didn't find anything relevant in the gawk announcement and in the libpng issues :/

c-vigo added a commit to vig-os/devkit that referenced this pull request Jul 14, 2026
The 1.2.0-rc1 publish failed at the blocking vulnix gate on four gawk
5.4.0 findings disclosed by CERT-PL on 2026-07-13 (CVE-2026-40467/-40468/
-40469/-40553). All are fixed upstream in gawk 5.4.1, but the nixpkgs
bump (NixOS/nixpkgs#540158) merged to staging only (stdenv mass-rebuild)
and has not reached any release branch, so no rev-advance is possible
today. Accept the batch in the exception register with per-CVE rationale
and a short 2026-07-28 expiry to force re-review once 5.4.1 lands in
nixos-26.05.

Refs: #1071
c-vigo added a commit to vig-os/devkit that referenced this pull request Jul 14, 2026
…#1072)

## Summary

Unblocks the **1.2.0-rc1** publish, which failed at the blocking Vulnix
CVE Gate ([run
29346662524](https://github.com/vig-os/devkit/actions/runs/29346662524))
on four gawk 5.4.0 findings disclosed by CERT-PL on 2026-07-13
([advisory](https://cert.pl/en/posts/2026/07/CVE-2026-40467/)):

| CVE | CVSS | What | Reachability here |
|-----|------|------|-------------------|
| CVE-2026-40468 | 9.1 | integer overflow, `builtin.c` |
developer/CI-chosen awk input only |
| CVE-2026-40469 | 9.1 | integer overflow, `do_sub()` | **32-bit builds
only** — image is 64-bit |
| CVE-2026-40467 | 7.5 | UAF, `do_getline_redir()` | crash only,
dev-chosen input |
| CVE-2026-40553 | 7.5 | stack overflow, `readdir` ext | needs opt-in
`-l readdir`, unused here |

## Why an exception and not a bump

All four are fixed upstream in **gawk 5.4.1**. The nixpkgs bump
([NixOS/nixpkgs#540158](NixOS/nixpkgs#540158))
merged to `staging` on 2026-07-12 (gawk is a stdenv mass-rebuild) and
has not reached `nixos-26.05` — nor `release-26.05`, `staging-26.05`,
`master`, or `nixpkgs-unstable` (verified 2026-07-14). The "advance the
rev" lever has nowhere to land, so this follows the exception-register
model (precedents #941, #963): short-dated block (**expires
2026-07-28**), per-CVE rationale, dropped in favour of a pin advance
once 5.4.1 lands.

## Verification

- Full `just precommit` suite green (incl. `check-expirations`,
`sync-manifest`).
- `vulnix-gate` run locally against the updated register with a findings
file reproducing the four CVEs: **exit 0**; negative control with an
unregistered CVE still fails (exit 1).

Refs: #1071
@whispersofthedawn

whispersofthedawn commented Jul 14, 2026 •

Copy link
Copy Markdown
Contributor

Bisect also says this commit broke gcc16 in staging:

g++  -fno-PIE -c   -g -O2     -DIN_GCC    -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-error=narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -Wconditionally-supported -Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings  -DHAVE_CONFIG_H -fno-PIE -I. -I. -I../../gcc-16.1.0/gcc -I../../gcc-16.1.0/gcc/. -I../../gcc-16.1.0/gcc/../include  -I../../gcc-16.1.0/gcc/../libcpp/include -I../../gcc-16.1.0/gcc/../libcody -I/nix/store/li6mfa29d1zb9vq5sww1cfz4hjn6jmxp-gmp-with-cxx-6.3.0-dev/include -I/nix/store/945vpvpkzm7fp3wyhc0xjrzqacnfsmw0-mpfr-4.2.2-dev/include -I/nix/store/fzf36mv5sl37wn9l4a087p1qkb85xaj2-libmpc-1.4.1/include  -I../../gcc-16.1.0/gcc/../libdecnumber -I../../gcc-16.1.0/gcc/../libdecnumber/bid -I../libdecnumber -I../../gcc-16.1.0/gcc/../libbacktrace -I/nix/store/987194rdcg29fy9xd4f63cydcb0bcdsy-isl-0.20/include  -o vec.o -MT vec.o -MMD -MP -MF ./.deps/vec.TPo ../../gcc-16.1.0/gcc/vec.cc
options.cc:27216:2: error: #error 0Wabsolute-value does not have a Var() flag
27216 | #error 0Wabsolute-value does not have a Var() flag
      |  ^~~~~
options.cc:27292:2: error: #error 0Wexpansion-to-defined does not have a Var() flag
27292 | #error 0Wexpansion-to-defined does not have a Var() flag
      |  ^~~~~
options.cc:27296:2: error: #error 0Wmaybe-uninitialized does not have a Var() flag
27296 | #error 0Wmaybe-uninitialized does not have a Var() flag
      |  ^~~~~
options.cc:27300:2: error: #error 0Wshadow-ivar does not have a Var() flag
27300 | #error 0Wshadow-ivar does not have a Var() flag
      |  ^~~~~
...

and many more errors of the same shape. Full logs: gcc-16.1.0.log

There's some relevant discussion on bug-gawk: https://lists.gnu.org/archive/html/bug-gawk/2026-07/msg00013.html

@mweinelt

Copy link
Copy Markdown
Member

Backed out in 4169bd4

vig-os-release-app Bot added a commit to vig-os/devkit-smoke-test that referenced this pull request Jul 14, 2026
# Release 1.2.0

This PR prepares release 1.2.0 for merge to main.

## [1.2.0] - TBD

### Added

- **Prepare-release extension hook (`prepare-release-extension.yml`)**
([#1059](vig-os/devkit#1059))
- New scaffolded reusable workflow (`on: workflow_call`, default no-op)
— the *mutating* counterpart to `release-extension.yml`.
`prepare-release.yml` calls it after the `release/X.Y.Z` branch is
created and before the draft PR to `main` opens, so any commits a
consumer's extension pushes to the fresh release branch are in the PR
diff from the start. It is a preserved, consumer-owned file (upgrades
never clobber it) and receives `version`, `release_branch`,
`branch_sha`, `dry_run`, and the git user name/email, with `secrets:
inherit` so it can mint the `COMMIT_APP` token to push to the
write-protected release branch.
- The prepare phase is split into jobs (`prepare` → `extension` →
`open-pr`) with a single `rollback` job across all of them; an extension
failure deletes the partial release branch (erasing its commits) and
restores `CHANGELOG.md` on `dev`, reusing the existing rollback logic.
The hook contract, dry-run, and rollback semantics are documented in
[`docs/DOWNSTREAM_RELEASE.md`](https://github.com/vig-os/devkit/blob/main/docs/DOWNSTREAM_RELEASE.md).
- Devkit dogfoods the hook: its own `prepare-release-extension.yml` runs
the workspace-manifest sync that was a hardcoded divergence in
`prepare-release.yml`, making the prepare workflow scaffold-shaped
again. It also reconciles the changelog mirror
(`assets/workspace/.devcontainer/CHANGELOG.md`) on `dev` after the
root-only freeze — as its last step, so every failure path leaves dev's
root and mirror consistent — keeping the `sync-manifest` hook green on
dev PRs during the release window.
- **Provenance banners on the JSONC scaffold files**
([#1053](vig-os/devkit#1053))
- `.devcontainer/devcontainer.json`, `.vscode/settings.json`, and
`.devcontainer/workspace.code-workspace.example` now carry the two-line
provenance banner as `//` (JSONC) comments — the same managed/preserved
mechanism as every other scaffolded file, closing the gap left open in
#1036. A new `jsonc` comment style was added to the `Banner` transform
and the three paths were removed from the banner skip-list.
- The strict `check-json` pre-commit hook is given an `exclude` for
exactly these three paths in `nix/hooks.nix` (the SSoT; both committed
`.pre-commit-config.yaml` files follow, drift-gated). Strict-JSON files
(`renovate.json` and friends) remain banner-free and strictly checked.
- **Provenance banner in scaffolded assets**
([#1036](vig-os/devkit#1036))
- Every comment-capable file scaffolded into a downstream repo now
carries a two-line banner stating that devkit manages the file, whether
an upgrade overwrites it, and where to file bugs / missing tools. The
banner comes in two variants — **managed** (regenerated on upgrade) and
**preserved** (seeded once, yours to edit) — chosen automatically from
`PRESERVE_FILES` (the SSoT in `init-workspace.sh`) by a new `Banner`
transform wired into `sync_manifest.py`, so the classification cannot
drift from a hand-typed copy. The `sync-manifest` pre-commit hook
regenerates the banners on every commit and fails on any hand-edited or
missing one.
- The banner carries **no version string** (`.vig-os` remains the
version SSoT), so it stays byte-stable across releases and never floods
upgrade diffs. Strict-JSON files (`renovate.json`,
`.github/renovate-default.json`, `.claude/worktrees.json`,
`.pymarkdown`) and a small documented set of other files (JSONC under
the strict `check-json` hook, the render-gated
`.pre-commit-config.yaml`, changelogs, `.vig-os`, `LICENSE`) are
explicitly skipped; coverage is knowingly partial.
- The stale `justfile.devc` banner — which pointed at the root
`justfile` that an upgrade overwrites — is corrected to point at
`justfile.project`.
- **Opt-in floating major/minor tags at promote
(`DEVKIT_FLOATING_TAGS`)**
([#1045](vig-os/devkit#1045))
- New optional `.vig-os` key (comma-separated subset of `major,minor`;
empty =
off) makes the scaffolded `promote-release.yml` force-move `<prefix>X`
and/or
`<prefix>X.Y` to the promoted final-release commit, giving Action
consumers the
standard `uses: owner/repo@v0` pinning contract with promote-gated
moves.
- A new `floating-tags` job runs only after the Release is published and
the
release PR is merged (the post-acceptance gate); it is idempotent (skips
when a
    tag already points at the release commit), final-only, composes with
`DEVKIT_TAG_PREFIX`, and pushes with the RELEASE_APP token so a tag
ruleset can
make floating-tag moves app-exclusive. Off by default — no change for
devkit or
    existing consumers.
- **Per-repo release tag prefix (`DEVKIT_TAG_PREFIX`)**
([#1044](vig-os/devkit#1044))
- New optional `.vig-os` key threads a tag prefix through the scaffolded
release
pipeline, applied **only at the publishing edge** — the pushed git tag
name and
the changelog release link. Absent/empty reproduces today's bare `X.Y.Z`
tags
byte-for-byte (no change for devkit or existing consumers);
Action-publishing
    repos set `v` for the `actions/checkout@v5` ecosystem convention.
- `resolve-toolchain` reads the key and emits a `tag-prefix` output;
`release.yml`
threads it into `release-core.yml`/`release-publish.yml`, and it
composes into
the RC-discovery pattern, publish tag, `tag_state` check, `gh release
create`,
the `prepare-release` tag-existence guard, and the `promote-release`
release/RC
validation and cleanup. The `version` input, `release/X.Y.Z` branch
name, and
    `## [X.Y.Z]` freeze heading stay bare everywhere.
- `prepare-changelog finalize` gains `--tag-prefix`, prefixing both the
release
link URL and the displayed heading (`## [v0.3.0](…/tag/v0.3.0) - DATE`);
an
    empty prefix is byte-identical to prior output.
- **Scaffolded security-scan workflows skip on private repos**
([#1039](vig-os/devkit#1039))
  - `codeql.yml` and `scorecard.yml` now guard their analysis job with
`if: ${{ !github.event.repository.private }}`. Neither scan can ever
succeed
on a private repo — CodeQL needs GitHub Advanced Security (unavailable
on
Free-plan private repos) and OpenSSF Scorecard is public-only — so a
private
consumer previously scaffolded two permanently red workflows. Private
repos
now get a skipped (neutral) run; a repo later flipped public starts
scanning
automatically with no re-scaffold. Public consumers are unaffected. The
guard
is valid on every declared trigger (`pull_request`, `push`, `schedule`).
- **`mkProjectShell` accepts an overridable Python interpreter**
([#1038](vig-os/devkit#1038))
- New opt-in `python ? pkgs.python314` argument: `UV_PYTHON` and the
bare
`python`/`python3` on PATH now follow the override, so a consumer whose
nixpkgs C-extension dependency is built against a different CPython ABI
(e.g. `pkgs.freecad`, built against the nixpkgs default 3.13) can align
the
interpreter `uv` pins — `mkProjectShell { python = pkgs.python313;
extraPackages = [ pkgs.freecad ]; }`.
    Omitting the argument is byte-identical to the pinned-3.14 default.
- **`node` capability module with selectable Node version**
([#1027](vig-os/devkit#1027))
- `mkProjectShell` gains a `node` capability module: `modules = [ "node"
]`
    puts `nodejs` (which bundles `npm`) in the dev-shell, replacing the
hand-wired `extraPackages = [ pkgs.nodejs ]` every TS-action consumer
copied.
- Lands the per-module-options mechanism the capability-modules ADR
deferred:
a `modules` entry may now be an attrset `{ name = "node"; version = 22;
}`
(selecting `pkgs.nodejs_<major>`) alongside the plain `"node"` string;
unknown option keys and unavailable/insecure majors fail at eval time. A
    pinned version is prepended on PATH so it wins over the `nodejs` the
toolchain SSoT already ships. `modules = [ ]` is byte-identical to
before.
- Node-detected repos get npm-mapped `justfile.project` recipes seeded
at
their first scaffold (`sync` = `npm ci`, plus
`lint`/`test`/`build`/`bundle`)
instead of the uv template, so `just sync` / `just test` work under
Node; an
existing `justfile.project` is never touched. The module ships shell
packages
only — eslint/prettier hooks and the codeql language stay out of scope.
- **Opt-in release artifact/bundle step for repos that ship a committed
build** ([#1029](vig-os/devkit#1029))
- `release-core.yml` now detects a `bundle` just recipe via `just
--summary` in the finalize job; when present it runs `just bundle` and
commits `dist/` alongside `CHANGELOG.md` in the finalization commit, so
a JS Action (or any repo shipping a committed `@vercel/ncc` artifact)
tags a fresh bundle instead of a stale one. Repos without a `bundle`
recipe (e.g. a pure-Python consumer) are unaffected — no new config
surface, the recipe's presence is the flag.
- **Commit messages are validated in CI**
([#1019](vig-os/devkit#1019))
- New `commit-checks` job (devkit and scaffolded repos) runs
`validate-commit-range` over every commit a pull request adds, plus the
**pull request title** — which becomes the merge commit's subject under
`--no-ff`. `validate-commit-msg` is a `commit-msg`-stage hook, so `prek
run --all-files` never ran it: until now the standard was enforced only
by a local hook, and only on a machine whose `core.hooksPath` was
intact.
- Merge commits and bot-authored commits (`…[bot]`) are exempt. Renovate
and Dependabot emit `build(pip): …` / `ci(actions): …` with no `Refs:`
line, so without the exemption the new gate would fail every dependency
PR. The exemption is keyed on the author — the same message from a human
is still rejected.
- **Scaffolded repos can enforce the commit standard**
([#1019](vig-os/devkit#1019))
- `validate-commit-msg` and `prepare-commit-msg-strip-trailers` now
reach the consumer pre-commit config. Scaffolded repos already shipped a
`.githooks/commit-msg` shim and a `COMMIT_MESSAGE_STANDARD.md`, but had
no `commit-msg`-stage hooks for the shim to run — the documented
standard was unenforceable in every consumer repo.
- **Scaffold lint for unshipped references and foreign-ref local
actions** ([#1057](vig-os/devkit#1057))
- A new `tests/test_scaffold_lint.py` pins two structural invariants in
`Project Checks`, no new hook. Rule 1 walks the scaffold and fails if a
workflow header comment or a shipped `docs/*.md` cross-link points at a
repo path the scaffold does not ship (the #1046/#1056 dangling-reference
class). Rule 2 parses every scaffold and devkit workflow and fails if a
job checks out a ref foreign to its trigger while invoking a local
`uses: ./...` action (the #1034 bootstrap-deadlock shape), with the
pre-#1034 pattern covered by a constructed regression fixture.

### Changed

- **Smoke-test deploy of 1.2.0** -- automated devcontainer
release-pipeline validation; no functional changes
- **`perf` is now an approved commit type**
([#1030](vig-os/devkit#1030))
- `perf` joins the approved commit-type allowlist in `nix/hooks.nix`
(both rendered `.pre-commit-config.yaml` files),
`DEFAULT_APPROVED_TYPES` (the default CI's `validate-commit-range`
uses), and `docs/COMMIT_MESSAGE_STANDARD.md`. It is a standard
[Conventional Commits](https://www.conventionalcommits.org/) type and
was already used once in history; before this the live `commit-checks`
job would reject the next `perf(...)` commit.
- **Commit scopes are free-form**
([#1019](vig-os/devkit#1019))
- The `validate-commit-msg` hook no longer pins an allowlist of commit
scopes. The previous five-scope list (`agent,ci,setup,image,vigutils`)
rejected 594 of the 1206 scoped commits in history (~49%), including the
scopes used by our own bots, and contradicted
`docs/COMMIT_MESSAGE_STANDARD.md`, which defines a scope as free-form
"alphanumeric and hyphens only". The commit **type**, the `Refs:` line
and the agent blocklist remain enforced; only the scope vocabulary is
open.
- **`strip_banner` requires an explicit comment style**
([#1076](vig-os/devkit#1076))
- The helper in `scripts/transforms.py` defaulted `style` to `"html"`,
so a future caller stripping a hash-style file that forgot the kwarg
would get the wrong header split (no shebang / YAML doc-start handling)
and could corrupt the file. The default is removed — omitting `style`
now raises `TypeError` — and all callers pass it explicitly.
- **Friendlier eval error for an invalid `node` module version**
([#1080](vig-os/devkit#1080))
- The `node` capability module now validates that the `version` option
is an integer (`builtins.isInt`) before interpolating it into
`pkgs.nodejs_<major>`, so a string, path, derivation or other non-int
fails eval with the module-scoped message `node module: invalid Node
version of type '…' (the 'version' option must be an integer major, e.g.
22)` instead of Nix's generic "cannot coerce to string" (or, for
strings, being silently accepted) — consistent with the module's
existing throws for unknown option keys and unavailable majors.
- **`prepare-release`'s `open-pr` job runs on a bare checkout**
([#1079](vig-os/devkit#1079))
- The job's only real work is `gh pr create` (gh is preinstalled on
GitHub-hosted runners), yet it stood up the full `setup-env` composite
(Nix + `uv sync`) on the release critical path just to reach the `uv run
retry` wrapper. It now uses a bare shallow checkout and sources the
canonical bash `retry()` helper (`.github/scripts/retry.sh`) instead,
keeping the same retry semantics while shaving minutes off every prepare
run.

### Fixed

- **Renovate preset's references resolve for consumers**
([#1041](vig-os/devkit#1041))
- The shared preset's `lockFileMaintenance.description` — which Renovate
renders into every consumer's Dependency Dashboard issue — cited the
upstream blocker as `renovatebot/renovate#41825`. That is a GitHub
*Discussion*, not an issue, so the shorthand resolved to nothing; it now
uses the full
`https://github.com/renovatebot/renovate/discussions/41825` URL and is
described as the open idea thread it is. The trailing `Refs #1041` was
likewise a bare reference that GitHub autolinked to the *consumer's*
issue 1041, and is now the absolute devkit URL — the same
dangling-reference class as
[#1062](vig-os/devkit#1062), but rendered
rather than in a comment.
- **Remaining scaffolded references resolve to absolute docs**
([#1062](vig-os/devkit#1062))
- The #1056/#1057 lint was scoped conservatively and left further
instances of the #1046 dangling-reference class unreached: the composite
actions (`resolve-toolchain`, `setup-devkit-toolchain`), `flake.nix`,
the `docs.yml` issue template, `docs/container-ci-quirks.md`, and seven
agent skills all pointed at devkit-only docs
(`docs/rfcs/ADR-conditional-container-toolchain.md`,
`docs/MIGRATION.md`, `docs/NIX.md`, `docs/RELEASE_CYCLE.md`,
`docs/templates/{CONTRIBUTE.md.j2,DESIGN.md,RFC.md}`, and repo-root
`CLAUDE.md`) the scaffold never ships. All now use absolute
`https://github.com/vig-os/devkit/blob/main/...` URLs; the skill and
issue-template fixes were made in the `.claude/skills/` and
`.github/ISSUE_TEMPLATE/` SSoT and re-synced.
- The #1057 scaffold lint (`tests/test_scaffold_lint.py`) is extended
file-type by file-type to cover composite-action and `flake.nix`
comments, `ISSUE_TEMPLATE` body text, shipped-doc prose (inline code
spans stripped), and skill Markdown links (resolved against the scaffold
tree). The immutable `.devcontainer/CHANGELOG.md` mirror stays out of
the walk by construction; the zero-false-positive bar and empty
`RULE1_ALLOWLIST` hold.
- **CI runs the lightweight shape-test suites**
([#1061](vig-os/devkit#1061))
- The `Project Checks` job (`test-project` action, suite `all`) ran an
explicit two-item list — `tests/test_utils.py` plus the vig-utils
package tests — so every dependency-light shape-test file added since
(`test_transforms.py`, `test_workflow_*`, `test_release_tag_prefix.py`,
`test_floating_tags.py`, `test_scaffold_downstream_release_doc.py`,
`test_workflow_pr_agent_fingerprints.py`) ran only on developer laptops,
never in CI. The job now runs all of `tests/` minus an explicit,
slow-changing deny-list of the heavy modules that need Nix (`flake*`,
`downstream_flake`) or a built image + podman (`image`,
`install_script`, `integration`) — each already covered by its own
targeted job. New shape-test files are picked up automatically, with no
action-file edit required.
- **`test_scaffold_doc_matches_root_sssot` is banner-aware**
([#1060](vig-os/devkit#1060))
- The DOWNSTREAM_RELEASE.md identity test asserted byte-identity between
the root SSoT and the scaffold copy, but #1043's provenance banner
stamps three lines onto the managed scaffold copy, so the test has
failed since that merge (unnoticed because it never ran in CI — see
#1061). The assertion now strips the banner from the scaffold copy with
the `Banner` transform's own helper (`strip_banner` in
`scripts/transforms.py`) before comparing, so it still guards real
content drift without re-encoding the banner shape.
- **`justfile.local` is now preserved on upgrade**
([#1054](vig-os/devkit#1054))
- The scaffolded `justfile.local` (personal, gitignored recipes) shipped
a header claiming it was preserved during upgrades, but it was absent
from `PRESERVE_FILES` — so a re-scaffold silently overwrote personal
recipes (same silent-clobber class as #878/#913). It is now in
`PRESERVE_FILES`, receives the **preserved** banner variant, and its
hand-written header no longer restates the provenance claim the banner
owns.
- **Node `justfile.project` seed carries the preserved banner**
([#1055](vig-os/devkit#1055))
- The npm recipe seed (`assets/justfile.d/node.justfile.project`) lives
outside `assets/workspace/`, so the #1036 banner pass never touched it
and a Node consumer's first-scaffold `justfile.project` lacked the
preserved banner the uv template it replaces already carries. The banner
pass now stamps seed inputs too, via an explicit map that derives each
seed's variant from the `PRESERVE_FILES` target it feeds (no hand-typed
banner). The gitignore fragments in `assets/gitignore.d/` need no
banner: they append into the managed `.gitignore`, which already opens
with one.
- **Scaffolded references resolve to shipped or absolute docs**
([#1056](vig-os/devkit#1056))
- Two more instances of the #1046 dangling-reference class: the
scaffolded `ci.yml` header pointed at
`docs/rfcs/ADR-conditional-container-toolchain.md`, and the synced
`docs/DOWNSTREAM_RELEASE.md` cross-linked `docs/RELEASE_CYCLE.md`,
`docs/CROSS_REPO_RELEASE_GATE.md`, `docs/MIGRATION.md`, and the same ADR
— none of which the scaffold ships, so every consumer carried dead
pointers. These now use absolute
`https://github.com/vig-os/devkit/blob/main/docs/...` URLs (rewritten in
the root `DOWNSTREAM_RELEASE.md` SSoT, which resolve from both devkit
and a consumer checkout); links that resolve within the scaffold stay
relative. Structurally guarded by the #1057 scaffold lint.
- **Scaffold ships `docs/DOWNSTREAM_RELEASE.md`**
([#1046](vig-os/devkit#1046))
- The scaffolded `promote-release.yml` header points at
`docs/DOWNSTREAM_RELEASE.md` — the consumer's primary release-process
documentation — but the scaffold never shipped it, leaving every
consumer with a dangling reference. The doc is now a manifest-synced
managed file (root copy is the SSoT), so the reference resolves inside
consumer repos and refreshes on scaffold upgrades.
- **Interim transitive npm vulnerability coverage via weekly lockfile
maintenance** ([#1041](vig-os/devkit#1041))
- The Renovate preset never touched transitive npm dependencies, so
vulnerabilities in packages only reachable through a parent (12 of 21
alerts in the `commit-action` pilot, including the only critical) were
neither reported nor remediated. The preset now enables
`lockFileMaintenance` (weekly, same Monday cadence), which regenerates
the lockfile and picks up in-range fixes for indirect dependencies. This
is an **interim** mechanism, not a full fix: alert-driven transitive
remediation is unimplemented upstream
([renovatebot/renovate#41825](https://github.com/renovatebot/renovate/discussions/41825))
and the former `transitiveRemediation` option was removed from Renovate.
devkit's own `renovate.json` drops its now-duplicated
`lockFileMaintenance` block and inherits it from the preset.
- **Renovate preset groups npm updates instead of one PR per package**
([#1047](vig-os/devkit#1047))
- The scaffolded `renovate-default.json` gave `github-actions` and
`pep621` a `groupName` but left `npm` ungrouped, so npm consumers got
one PR per package — each touching `package-lock.json` and
`CHANGELOG.md`, so they conflicted pairwise and were effectively
unlandable serially. npm now gets two grouping rules matching the other
managers' style: `devDependencies` group across all update types ("npm
dev dependencies"), and runtime `dependencies` minor/patch ("npm (minor
and patch)") with majors staying as individual PRs. The existing
`build(npm)` semantic-commit rule still applies to every npm PR
(Renovate merges matching `packageRules` in order).
- **`sync-main-to-dev` no longer deadlocks on new local actions**
([#1034](vig-os/devkit#1034))
- The `sync` job checked out `ref: dev` and then invoked a local `uses:
./.github/actions/...` composite, which GitHub resolves against the
checked-out workspace. When `main` added or renamed a local action
absent from `dev`, the job died on its first run — and the only PR that
would carry the action onto `dev` was the very sync PR the job could no
longer open. Dropping `ref: dev` builds against the triggering `main`
SHA, where the action is guaranteed to exist; every downstream step
already operates on `origin/main`/`origin/dev` or the API, so behavior
is otherwise unchanged.
- **`setup-devkit-toolchain` no longer forces Python/uv env on
non-Python consumers**
([#1028](vig-os/devkit#1028))
- The scaffolded CI toolchain composite applied
`UV_PROJECT_ENVIRONMENT`, forwarded `UV_PYTHON_DOWNLOADS_JSON_URL`, and
filtered the Nix CPython out of `$GITHUB_PATH` unconditionally. These
are now gated on the consumer being Python (a `pyproject.toml` at the
repo root), so the composite is a no-op for those steps on a Node/TS
repo and keeps the Nix python on PATH there.
- **Neutral release/CI step labels**
([#1029](vig-os/devkit#1029))
- The release sync step is renamed "Sync Python dependencies" -> "Sync
dependencies" and the `ci.yml` job comment "Pytest" -> "Run tests"; both
run language-neutral `just` recipes, so the Python-shaped labels were
misleading on a Node/TS consumer.
- **Language-aware scaffold `.gitignore`**
([#1024](vig-os/devkit#1024))
- `init-workspace.sh` now detects the consumer's language from marker
files
(`pyproject.toml` → Python, `package.json` → Node, `Cargo.toml` → Rust)
and
assembles the managed `.gitignore` as a language-neutral base plus the
matching per-language fragment on every (re)scaffold, so the correct
ignore
    set is upgrade-persistent.
- Node consumers now ignore `node_modules/`, `*.tsbuildinfo`,
`coverage/` and
`.nyc_output/`, and no longer get a blanket `dist/` ignore (a JS Action
commits its bundled `dist/index.js`). Python consumers keep their
existing
    ignore set.
- **Language-aware scaffold CodeQL matrix**
([#1025](vig-os/devkit#1025))
- `init-workspace.sh` now rewrites the managed `codeql.yml` language
matrix
    from the same language detection (#1024): Python → `python`, Node →
`javascript-typescript`, Rust omits its leg (no first-class CodeQL Rust
    analyzer); `actions` is always analyzed. This fixes the hardcoded
`['python', 'actions']` matrix failing the `python` leg on repos with no
    Python.
- The scaffolded `codeql.yml` and an install-time note now document that
this
advanced config conflicts with GitHub's default code-scanning setup
(which
must be disabled). The installer never changes the code-scanning API
setting.
- **`prepare-changelog finalize` names the heading on a tag-prefix
mismatch** ([#1073](vig-os/devkit#1073))
- Re-running `finalize` on a reused release branch with a different
`--tag-prefix` than the first run raised the generic "Version section
not found" ValueError. It now detects the already-finalized heading,
names it and the expected prefix in the error, and states that the tag
prefix must be stable across re-runs; the docstring records the
invariant (re-run idempotency holds only for an unchanged prefix).
- **`prepare-release` rolls back on workflow cancellation**
([#1078](vig-os/devkit#1078))
- The `rollback` job's guard only matched `needs.<job>.result ==
'failure'` for the `prepare`, `extension` and `open-pr` phases, so
cancelling a run after the freeze commit landed skipped the rollback and
stranded the partial `release/X.Y.Z` branch plus the freeze commit on
`dev`. Each phase guard now also matches `result == 'cancelled'` (the
job already used `always()`, which keeps it eligible to run after a
cancellation), in both the devkit workflow and the scaffolded consumer
copy.

### Security

- **Accept the gawk 5.4.0 CERT-PL CVE batch
(CVE-2026-40467/-40468/-40469/-40553) in the vulnix register pending the
nixpkgs bump to 5.4.1**
([#1071](vig-os/devkit#1071))
- The 1.2.0-rc1 publish failed at the blocking vulnix gate on four gawk
5.4.0 findings disclosed by CERT-PL on 2026-07-13: two CVSS 9.1 integer
overflows in `builtin.c` (CVE-2026-40468; CVE-2026-40469, 32-bit builds
only — this image is 64-bit), a 7.5 use-after-free in `io.c`
`do_getline_redir()` (CVE-2026-40467), and a 7.5 stack buffer overflow
in the opt-in `readdir` extension (CVE-2026-40553). gawk is a stdenv
closure member that only processes developer/CI-chosen awk programs and
inputs — no untrusted-input path in the single-user dev model — so this
is a time-boxed risk acceptance, not a dismissal.
- Fixed upstream in gawk 5.4.1; the nixpkgs bump
([NixOS/nixpkgs#540158](NixOS/nixpkgs#540158))
merged to `staging` on 2026-07-12 (stdenv mass-rebuild) and has not
reached the pinned `nixos-26.05` (nor `release-26.05`, `staging-26.05`,
`master`, or `nixpkgs-unstable` — all still 5.4.0). Added a short-dated
`.vulnixignore` exception (expires 2026-07-28) to unblock the gate; the
block is dropped and the pin advanced once 5.4.1 lands in `nixos-26.05`.
- **PR body guarded against AI agent fingerprints**
([#1052](vig-os/devkit#1052))
- The `commit-checks` job (both ci.yml copies) now runs
`check-pr-agent-fingerprints`, wiring a previously dead entry point into
CI. After [#1026](vig-os/devkit#1026) the job
already validated the PR **title** via `validate-commit-range --title`;
this closes the remaining gap by greping the PR **body** against
`.github/agent-blocklist.toml`
([#163](vig-os/devkit#163)). The body is
attacker-controlled text visible in the UI and notifications even though
it never enters git history, so title and body reach the guard via
`env:` (`PR_TITLE`/`PR_BODY`), never interpolated into the shell
command.
- **Scaffolded repos reject AI-authored commits**
([#1031](vig-os/devkit#1031))
- `check-agent-identity` now reaches the consumer pre-commit config. It
is the only hook of the agent-identity pipeline
([#163](vig-os/devkit#163)) that guards the
commit **author/committer** — the one that catches `git commit
--author="Claude <...>"`. After
[#1026](vig-os/devkit#1026) scaffolded repos
rejected an AI-attributed commit *message* while accepting an
AI-authored *commit*; the `COMMIT_MESSAGE_STANDARD.md` they ship
promised the opposite. It runs at the pre-commit stage, so `prek run
--all-files` enforces it in the scaffold's lint job too.
vig-os-release-app Bot added a commit to vig-os/devkit that referenced this pull request Jul 14, 2026
# [Release 1.2.0](https://github.com/vig-os/devkit/releases/tag/1.2.0) -
2026-07-14

This PR prepares release 1.2.0 for merge to main.

## [1.2.0](https://github.com/vig-os/devkit/releases/tag/1.2.0) -
2026-07-14

### Added

- **Prepare-release extension hook (`prepare-release-extension.yml`)**
([#1059](#1059))
- New scaffolded reusable workflow (`on: workflow_call`, default no-op)
— the *mutating* counterpart to `release-extension.yml`.
`prepare-release.yml` calls it after the `release/X.Y.Z` branch is
created and before the draft PR to `main` opens, so any commits a
consumer's extension pushes to the fresh release branch are in the PR
diff from the start. It is a preserved, consumer-owned file (upgrades
never clobber it) and receives `version`, `release_branch`,
`branch_sha`, `dry_run`, and the git user name/email, with `secrets:
inherit` so it can mint the `COMMIT_APP` token to push to the
write-protected release branch.
- The prepare phase is split into jobs (`prepare` → `extension` →
`open-pr`) with a single `rollback` job across all of them; an extension
failure deletes the partial release branch (erasing its commits) and
restores `CHANGELOG.md` on `dev`, reusing the existing rollback logic.
The hook contract, dry-run, and rollback semantics are documented in
[`docs/DOWNSTREAM_RELEASE.md`](https://github.com/vig-os/devkit/blob/main/docs/DOWNSTREAM_RELEASE.md).
- Devkit dogfoods the hook: its own `prepare-release-extension.yml` runs
the workspace-manifest sync that was a hardcoded divergence in
`prepare-release.yml`, making the prepare workflow scaffold-shaped
again. It also reconciles the changelog mirror
(`assets/workspace/.devcontainer/CHANGELOG.md`) on `dev` after the
root-only freeze — as its last step, so every failure path leaves dev's
root and mirror consistent — keeping the `sync-manifest` hook green on
dev PRs during the release window.
- **Provenance banners on the JSONC scaffold files**
([#1053](#1053))
- `.devcontainer/devcontainer.json`, `.vscode/settings.json`, and
`.devcontainer/workspace.code-workspace.example` now carry the two-line
provenance banner as `//` (JSONC) comments — the same managed/preserved
mechanism as every other scaffolded file, closing the gap left open in
#1036. A new `jsonc` comment style was added to the `Banner` transform
and the three paths were removed from the banner skip-list.
- The strict `check-json` pre-commit hook is given an `exclude` for
exactly these three paths in `nix/hooks.nix` (the SSoT; both committed
`.pre-commit-config.yaml` files follow, drift-gated). Strict-JSON files
(`renovate.json` and friends) remain banner-free and strictly checked.
- **Provenance banner in scaffolded assets**
([#1036](#1036))
- Every comment-capable file scaffolded into a downstream repo now
carries a two-line banner stating that devkit manages the file, whether
an upgrade overwrites it, and where to file bugs / missing tools. The
banner comes in two variants — **managed** (regenerated on upgrade) and
**preserved** (seeded once, yours to edit) — chosen automatically from
`PRESERVE_FILES` (the SSoT in `init-workspace.sh`) by a new `Banner`
transform wired into `sync_manifest.py`, so the classification cannot
drift from a hand-typed copy. The `sync-manifest` pre-commit hook
regenerates the banners on every commit and fails on any hand-edited or
missing one.
- The banner carries **no version string** (`.vig-os` remains the
version SSoT), so it stays byte-stable across releases and never floods
upgrade diffs. Strict-JSON files (`renovate.json`,
`.github/renovate-default.json`, `.claude/worktrees.json`,
`.pymarkdown`) and a small documented set of other files (JSONC under
the strict `check-json` hook, the render-gated
`.pre-commit-config.yaml`, changelogs, `.vig-os`, `LICENSE`) are
explicitly skipped; coverage is knowingly partial.
- The stale `justfile.devc` banner — which pointed at the root
`justfile` that an upgrade overwrites — is corrected to point at
`justfile.project`.
- **Opt-in floating major/minor tags at promote
(`DEVKIT_FLOATING_TAGS`)**
([#1045](#1045))
- New optional `.vig-os` key (comma-separated subset of `major,minor`;
empty =
off) makes the scaffolded `promote-release.yml` force-move `<prefix>X`
and/or
`<prefix>X.Y` to the promoted final-release commit, giving Action
consumers the
standard `uses: owner/repo@v0` pinning contract with promote-gated
moves.
- A new `floating-tags` job runs only after the Release is published and
the
release PR is merged (the post-acceptance gate); it is idempotent (skips
when a
    tag already points at the release commit), final-only, composes with
`DEVKIT_TAG_PREFIX`, and pushes with the RELEASE_APP token so a tag
ruleset can
make floating-tag moves app-exclusive. Off by default — no change for
devkit or
    existing consumers.
- **Per-repo release tag prefix (`DEVKIT_TAG_PREFIX`)**
([#1044](#1044))
- New optional `.vig-os` key threads a tag prefix through the scaffolded
release
pipeline, applied **only at the publishing edge** — the pushed git tag
name and
the changelog release link. Absent/empty reproduces today's bare `X.Y.Z`
tags
byte-for-byte (no change for devkit or existing consumers);
Action-publishing
    repos set `v` for the `actions/checkout@v5` ecosystem convention.
- `resolve-toolchain` reads the key and emits a `tag-prefix` output;
`release.yml`
threads it into `release-core.yml`/`release-publish.yml`, and it
composes into
the RC-discovery pattern, publish tag, `tag_state` check, `gh release
create`,
the `prepare-release` tag-existence guard, and the `promote-release`
release/RC
validation and cleanup. The `version` input, `release/X.Y.Z` branch
name, and
    `## [X.Y.Z]` freeze heading stay bare everywhere.
- `prepare-changelog finalize` gains `--tag-prefix`, prefixing both the
release
link URL and the displayed heading (`## [v0.3.0](…/tag/v0.3.0) - DATE`);
an
    empty prefix is byte-identical to prior output.
- **Scaffolded security-scan workflows skip on private repos**
([#1039](#1039))
  - `codeql.yml` and `scorecard.yml` now guard their analysis job with
`if: ${{ !github.event.repository.private }}`. Neither scan can ever
succeed
on a private repo — CodeQL needs GitHub Advanced Security (unavailable
on
Free-plan private repos) and OpenSSF Scorecard is public-only — so a
private
consumer previously scaffolded two permanently red workflows. Private
repos
now get a skipped (neutral) run; a repo later flipped public starts
scanning
automatically with no re-scaffold. Public consumers are unaffected. The
guard
is valid on every declared trigger (`pull_request`, `push`, `schedule`).
- **`mkProjectShell` accepts an overridable Python interpreter**
([#1038](#1038))
- New opt-in `python ? pkgs.python314` argument: `UV_PYTHON` and the
bare
`python`/`python3` on PATH now follow the override, so a consumer whose
nixpkgs C-extension dependency is built against a different CPython ABI
(e.g. `pkgs.freecad`, built against the nixpkgs default 3.13) can align
the
interpreter `uv` pins — `mkProjectShell { python = pkgs.python313;
extraPackages = [ pkgs.freecad ]; }`.
    Omitting the argument is byte-identical to the pinned-3.14 default.
- **`node` capability module with selectable Node version**
([#1027](#1027))
- `mkProjectShell` gains a `node` capability module: `modules = [ "node"
]`
    puts `nodejs` (which bundles `npm`) in the dev-shell, replacing the
hand-wired `extraPackages = [ pkgs.nodejs ]` every TS-action consumer
copied.
- Lands the per-module-options mechanism the capability-modules ADR
deferred:
a `modules` entry may now be an attrset `{ name = "node"; version = 22;
}`
(selecting `pkgs.nodejs_<major>`) alongside the plain `"node"` string;
unknown option keys and unavailable/insecure majors fail at eval time. A
    pinned version is prepended on PATH so it wins over the `nodejs` the
toolchain SSoT already ships. `modules = [ ]` is byte-identical to
before.
- Node-detected repos get npm-mapped `justfile.project` recipes seeded
at
their first scaffold (`sync` = `npm ci`, plus
`lint`/`test`/`build`/`bundle`)
instead of the uv template, so `just sync` / `just test` work under
Node; an
existing `justfile.project` is never touched. The module ships shell
packages
only — eslint/prettier hooks and the codeql language stay out of scope.
- **Opt-in release artifact/bundle step for repos that ship a committed
build** ([#1029](#1029))
- `release-core.yml` now detects a `bundle` just recipe via `just
--summary` in the finalize job; when present it runs `just bundle` and
commits `dist/` alongside `CHANGELOG.md` in the finalization commit, so
a JS Action (or any repo shipping a committed `@vercel/ncc` artifact)
tags a fresh bundle instead of a stale one. Repos without a `bundle`
recipe (e.g. a pure-Python consumer) are unaffected — no new config
surface, the recipe's presence is the flag.
- **Commit messages are validated in CI**
([#1019](#1019))
- New `commit-checks` job (devkit and scaffolded repos) runs
`validate-commit-range` over every commit a pull request adds, plus the
**pull request title** — which becomes the merge commit's subject under
`--no-ff`. `validate-commit-msg` is a `commit-msg`-stage hook, so `prek
run --all-files` never ran it: until now the standard was enforced only
by a local hook, and only on a machine whose `core.hooksPath` was
intact.
- Merge commits and bot-authored commits (`…[bot]`) are exempt. Renovate
and Dependabot emit `build(pip): …` / `ci(actions): …` with no `Refs:`
line, so without the exemption the new gate would fail every dependency
PR. The exemption is keyed on the author — the same message from a human
is still rejected.
- **Scaffolded repos can enforce the commit standard**
([#1019](#1019))
- `validate-commit-msg` and `prepare-commit-msg-strip-trailers` now
reach the consumer pre-commit config. Scaffolded repos already shipped a
`.githooks/commit-msg` shim and a `COMMIT_MESSAGE_STANDARD.md`, but had
no `commit-msg`-stage hooks for the shim to run — the documented
standard was unenforceable in every consumer repo.
- **Scaffold lint for unshipped references and foreign-ref local
actions** ([#1057](#1057))
- A new `tests/test_scaffold_lint.py` pins two structural invariants in
`Project Checks`, no new hook. Rule 1 walks the scaffold and fails if a
workflow header comment or a shipped `docs/*.md` cross-link points at a
repo path the scaffold does not ship (the #1046/#1056 dangling-reference
class). Rule 2 parses every scaffold and devkit workflow and fails if a
job checks out a ref foreign to its trigger while invoking a local
`uses: ./...` action (the #1034 bootstrap-deadlock shape), with the
pre-#1034 pattern covered by a constructed regression fixture.

### Changed

- **`perf` is now an approved commit type**
([#1030](#1030))
- `perf` joins the approved commit-type allowlist in `nix/hooks.nix`
(both rendered `.pre-commit-config.yaml` files),
`DEFAULT_APPROVED_TYPES` (the default CI's `validate-commit-range`
uses), and `docs/COMMIT_MESSAGE_STANDARD.md`. It is a standard
[Conventional Commits](https://www.conventionalcommits.org/) type and
was already used once in history; before this the live `commit-checks`
job would reject the next `perf(...)` commit.
- **Commit scopes are free-form**
([#1019](#1019))
- The `validate-commit-msg` hook no longer pins an allowlist of commit
scopes. The previous five-scope list (`agent,ci,setup,image,vigutils`)
rejected 594 of the 1206 scoped commits in history (~49%), including the
scopes used by our own bots, and contradicted
`docs/COMMIT_MESSAGE_STANDARD.md`, which defines a scope as free-form
"alphanumeric and hyphens only". The commit **type**, the `Refs:` line
and the agent blocklist remain enforced; only the scope vocabulary is
open.
- **`strip_banner` requires an explicit comment style**
([#1076](#1076))
- The helper in `scripts/transforms.py` defaulted `style` to `"html"`,
so a future caller stripping a hash-style file that forgot the kwarg
would get the wrong header split (no shebang / YAML doc-start handling)
and could corrupt the file. The default is removed — omitting `style`
now raises `TypeError` — and all callers pass it explicitly.
- **Friendlier eval error for an invalid `node` module version**
([#1080](#1080))
- The `node` capability module now validates that the `version` option
is an integer (`builtins.isInt`) before interpolating it into
`pkgs.nodejs_<major>`, so a string, path, derivation or other non-int
fails eval with the module-scoped message `node module: invalid Node
version of type '…' (the 'version' option must be an integer major, e.g.
22)` instead of Nix's generic "cannot coerce to string" (or, for
strings, being silently accepted) — consistent with the module's
existing throws for unknown option keys and unavailable majors.
- **`prepare-release`'s `open-pr` job runs on a bare checkout**
([#1079](#1079))
- The job's only real work is `gh pr create` (gh is preinstalled on
GitHub-hosted runners), yet it stood up the full `setup-env` composite
(Nix + `uv sync`) on the release critical path just to reach the `uv run
retry` wrapper. It now uses a bare shallow checkout and sources the
canonical bash `retry()` helper (`.github/scripts/retry.sh`) instead,
keeping the same retry semantics while shaving minutes off every prepare
run.

### Fixed

- **Renovate preset's references resolve for consumers**
([#1041](#1041))
- The shared preset's `lockFileMaintenance.description` — which Renovate
renders into every consumer's Dependency Dashboard issue — cited the
upstream blocker as `renovatebot/renovate#41825`. That is a GitHub
*Discussion*, not an issue, so the shorthand resolved to nothing; it now
uses the full
`https://github.com/renovatebot/renovate/discussions/41825` URL and is
described as the open idea thread it is. The trailing `Refs #1041` was
likewise a bare reference that GitHub autolinked to the *consumer's*
issue 1041, and is now the absolute devkit URL — the same
dangling-reference class as
[#1062](#1062), but rendered
rather than in a comment.
- **Remaining scaffolded references resolve to absolute docs**
([#1062](#1062))
- The #1056/#1057 lint was scoped conservatively and left further
instances of the #1046 dangling-reference class unreached: the composite
actions (`resolve-toolchain`, `setup-devkit-toolchain`), `flake.nix`,
the `docs.yml` issue template, `docs/container-ci-quirks.md`, and seven
agent skills all pointed at devkit-only docs
(`docs/rfcs/ADR-conditional-container-toolchain.md`,
`docs/MIGRATION.md`, `docs/NIX.md`, `docs/RELEASE_CYCLE.md`,
`docs/templates/{CONTRIBUTE.md.j2,DESIGN.md,RFC.md}`, and repo-root
`CLAUDE.md`) the scaffold never ships. All now use absolute
`https://github.com/vig-os/devkit/blob/main/...` URLs; the skill and
issue-template fixes were made in the `.claude/skills/` and
`.github/ISSUE_TEMPLATE/` SSoT and re-synced.
- The #1057 scaffold lint (`tests/test_scaffold_lint.py`) is extended
file-type by file-type to cover composite-action and `flake.nix`
comments, `ISSUE_TEMPLATE` body text, shipped-doc prose (inline code
spans stripped), and skill Markdown links (resolved against the scaffold
tree). The immutable `.devcontainer/CHANGELOG.md` mirror stays out of
the walk by construction; the zero-false-positive bar and empty
`RULE1_ALLOWLIST` hold.
- **CI runs the lightweight shape-test suites**
([#1061](#1061))
- The `Project Checks` job (`test-project` action, suite `all`) ran an
explicit two-item list — `tests/test_utils.py` plus the vig-utils
package tests — so every dependency-light shape-test file added since
(`test_transforms.py`, `test_workflow_*`, `test_release_tag_prefix.py`,
`test_floating_tags.py`, `test_scaffold_downstream_release_doc.py`,
`test_workflow_pr_agent_fingerprints.py`) ran only on developer laptops,
never in CI. The job now runs all of `tests/` minus an explicit,
slow-changing deny-list of the heavy modules that need Nix (`flake*`,
`downstream_flake`) or a built image + podman (`image`,
`install_script`, `integration`) — each already covered by its own
targeted job. New shape-test files are picked up automatically, with no
action-file edit required.
- **`test_scaffold_doc_matches_root_sssot` is banner-aware**
([#1060](#1060))
- The DOWNSTREAM_RELEASE.md identity test asserted byte-identity between
the root SSoT and the scaffold copy, but #1043's provenance banner
stamps three lines onto the managed scaffold copy, so the test has
failed since that merge (unnoticed because it never ran in CI — see
#1061). The assertion now strips the banner from the scaffold copy with
the `Banner` transform's own helper (`strip_banner` in
`scripts/transforms.py`) before comparing, so it still guards real
content drift without re-encoding the banner shape.
- **`justfile.local` is now preserved on upgrade**
([#1054](#1054))
- The scaffolded `justfile.local` (personal, gitignored recipes) shipped
a header claiming it was preserved during upgrades, but it was absent
from `PRESERVE_FILES` — so a re-scaffold silently overwrote personal
recipes (same silent-clobber class as #878/#913). It is now in
`PRESERVE_FILES`, receives the **preserved** banner variant, and its
hand-written header no longer restates the provenance claim the banner
owns.
- **Node `justfile.project` seed carries the preserved banner**
([#1055](#1055))
- The npm recipe seed (`assets/justfile.d/node.justfile.project`) lives
outside `assets/workspace/`, so the #1036 banner pass never touched it
and a Node consumer's first-scaffold `justfile.project` lacked the
preserved banner the uv template it replaces already carries. The banner
pass now stamps seed inputs too, via an explicit map that derives each
seed's variant from the `PRESERVE_FILES` target it feeds (no hand-typed
banner). The gitignore fragments in `assets/gitignore.d/` need no
banner: they append into the managed `.gitignore`, which already opens
with one.
- **Scaffolded references resolve to shipped or absolute docs**
([#1056](#1056))
- Two more instances of the #1046 dangling-reference class: the
scaffolded `ci.yml` header pointed at
`docs/rfcs/ADR-conditional-container-toolchain.md`, and the synced
`docs/DOWNSTREAM_RELEASE.md` cross-linked `docs/RELEASE_CYCLE.md`,
`docs/CROSS_REPO_RELEASE_GATE.md`, `docs/MIGRATION.md`, and the same ADR
— none of which the scaffold ships, so every consumer carried dead
pointers. These now use absolute
`https://github.com/vig-os/devkit/blob/main/docs/...` URLs (rewritten in
the root `DOWNSTREAM_RELEASE.md` SSoT, which resolve from both devkit
and a consumer checkout); links that resolve within the scaffold stay
relative. Structurally guarded by the #1057 scaffold lint.
- **Scaffold ships `docs/DOWNSTREAM_RELEASE.md`**
([#1046](#1046))
- The scaffolded `promote-release.yml` header points at
`docs/DOWNSTREAM_RELEASE.md` — the consumer's primary release-process
documentation — but the scaffold never shipped it, leaving every
consumer with a dangling reference. The doc is now a manifest-synced
managed file (root copy is the SSoT), so the reference resolves inside
consumer repos and refreshes on scaffold upgrades.
- **Interim transitive npm vulnerability coverage via weekly lockfile
maintenance** ([#1041](#1041))
- The Renovate preset never touched transitive npm dependencies, so
vulnerabilities in packages only reachable through a parent (12 of 21
alerts in the `commit-action` pilot, including the only critical) were
neither reported nor remediated. The preset now enables
`lockFileMaintenance` (weekly, same Monday cadence), which regenerates
the lockfile and picks up in-range fixes for indirect dependencies. This
is an **interim** mechanism, not a full fix: alert-driven transitive
remediation is unimplemented upstream
([renovatebot/renovate#41825](https://github.com/renovatebot/renovate/discussions/41825))
and the former `transitiveRemediation` option was removed from Renovate.
devkit's own `renovate.json` drops its now-duplicated
`lockFileMaintenance` block and inherits it from the preset.

- **Renovate preset groups npm updates instead of one PR per package**
([#1047](#1047))
- The scaffolded `renovate-default.json` gave `github-actions` and
`pep621` a `groupName` but left `npm` ungrouped, so npm consumers got
one PR per package — each touching `package-lock.json` and
`CHANGELOG.md`, so they conflicted pairwise and were effectively
unlandable serially. npm now gets two grouping rules matching the other
managers' style: `devDependencies` group across all update types ("npm
dev dependencies"), and runtime `dependencies` minor/patch ("npm (minor
and patch)") with majors staying as individual PRs. The existing
`build(npm)` semantic-commit rule still applies to every npm PR
(Renovate merges matching `packageRules` in order).

- **`sync-main-to-dev` no longer deadlocks on new local actions**
([#1034](#1034))
- The `sync` job checked out `ref: dev` and then invoked a local `uses:
./.github/actions/...` composite, which GitHub resolves against the
checked-out workspace. When `main` added or renamed a local action
absent from `dev`, the job died on its first run — and the only PR that
would carry the action onto `dev` was the very sync PR the job could no
longer open. Dropping `ref: dev` builds against the triggering `main`
SHA, where the action is guaranteed to exist; every downstream step
already operates on `origin/main`/`origin/dev` or the API, so behavior
is otherwise unchanged.
- **`setup-devkit-toolchain` no longer forces Python/uv env on
non-Python consumers**
([#1028](#1028))
- The scaffolded CI toolchain composite applied
`UV_PROJECT_ENVIRONMENT`, forwarded `UV_PYTHON_DOWNLOADS_JSON_URL`, and
filtered the Nix CPython out of `$GITHUB_PATH` unconditionally. These
are now gated on the consumer being Python (a `pyproject.toml` at the
repo root), so the composite is a no-op for those steps on a Node/TS
repo and keeps the Nix python on PATH there.
- **Neutral release/CI step labels**
([#1029](#1029))
- The release sync step is renamed "Sync Python dependencies" -> "Sync
dependencies" and the `ci.yml` job comment "Pytest" -> "Run tests"; both
run language-neutral `just` recipes, so the Python-shaped labels were
misleading on a Node/TS consumer.
- **Language-aware scaffold `.gitignore`**
([#1024](#1024))
- `init-workspace.sh` now detects the consumer's language from marker
files
(`pyproject.toml` → Python, `package.json` → Node, `Cargo.toml` → Rust)
and
assembles the managed `.gitignore` as a language-neutral base plus the
matching per-language fragment on every (re)scaffold, so the correct
ignore
    set is upgrade-persistent.
- Node consumers now ignore `node_modules/`, `*.tsbuildinfo`,
`coverage/` and
`.nyc_output/`, and no longer get a blanket `dist/` ignore (a JS Action
commits its bundled `dist/index.js`). Python consumers keep their
existing
    ignore set.
- **Language-aware scaffold CodeQL matrix**
([#1025](#1025))
- `init-workspace.sh` now rewrites the managed `codeql.yml` language
matrix
    from the same language detection (#1024): Python → `python`, Node →
`javascript-typescript`, Rust omits its leg (no first-class CodeQL Rust
    analyzer); `actions` is always analyzed. This fixes the hardcoded
`['python', 'actions']` matrix failing the `python` leg on repos with no
    Python.
- The scaffolded `codeql.yml` and an install-time note now document that
this
advanced config conflicts with GitHub's default code-scanning setup
(which
must be disabled). The installer never changes the code-scanning API
setting.
- **`prepare-changelog finalize` names the heading on a tag-prefix
mismatch** ([#1073](#1073))
- Re-running `finalize` on a reused release branch with a different
`--tag-prefix` than the first run raised the generic "Version section
not found" ValueError. It now detects the already-finalized heading,
names it and the expected prefix in the error, and states that the tag
prefix must be stable across re-runs; the docstring records the
invariant (re-run idempotency holds only for an unchanged prefix).
- **`prepare-release` rolls back on workflow cancellation**
([#1078](#1078))
- The `rollback` job's guard only matched `needs.<job>.result ==
'failure'` for the `prepare`, `extension` and `open-pr` phases, so
cancelling a run after the freeze commit landed skipped the rollback and
stranded the partial `release/X.Y.Z` branch plus the freeze commit on
`dev`. Each phase guard now also matches `result == 'cancelled'` (the
job already used `always()`, which keeps it eligible to run after a
cancellation), in both the devkit workflow and the scaffolded consumer
copy.

### Security

- **Accept the gawk 5.4.0 CERT-PL CVE batch
(CVE-2026-40467/-40468/-40469/-40553) in the vulnix register pending the
nixpkgs bump to 5.4.1**
([#1071](#1071))
- The 1.2.0-rc1 publish failed at the blocking vulnix gate on four gawk
5.4.0 findings disclosed by CERT-PL on 2026-07-13: two CVSS 9.1 integer
overflows in `builtin.c` (CVE-2026-40468; CVE-2026-40469, 32-bit builds
only — this image is 64-bit), a 7.5 use-after-free in `io.c`
`do_getline_redir()` (CVE-2026-40467), and a 7.5 stack buffer overflow
in the opt-in `readdir` extension (CVE-2026-40553). gawk is a stdenv
closure member that only processes developer/CI-chosen awk programs and
inputs — no untrusted-input path in the single-user dev model — so this
is a time-boxed risk acceptance, not a dismissal.
- Fixed upstream in gawk 5.4.1; the nixpkgs bump
([NixOS/nixpkgs#540158](NixOS/nixpkgs#540158))
merged to `staging` on 2026-07-12 (stdenv mass-rebuild) and has not
reached the pinned `nixos-26.05` (nor `release-26.05`, `staging-26.05`,
`master`, or `nixpkgs-unstable` — all still 5.4.0). Added a short-dated
`.vulnixignore` exception (expires 2026-07-28) to unblock the gate; the
block is dropped and the pin advanced once 5.4.1 lands in `nixos-26.05`.
- **PR body guarded against AI agent fingerprints**
([#1052](#1052))
- The `commit-checks` job (both ci.yml copies) now runs
`check-pr-agent-fingerprints`, wiring a previously dead entry point into
CI. After [#1026](#1026) the job
already validated the PR **title** via `validate-commit-range --title`;
this closes the remaining gap by greping the PR **body** against
`.github/agent-blocklist.toml`
([#163](#163)). The body is
attacker-controlled text visible in the UI and notifications even though
it never enters git history, so title and body reach the guard via
`env:` (`PR_TITLE`/`PR_BODY`), never interpolated into the shell
command.
- **Scaffolded repos reject AI-authored commits**
([#1031](#1031))
- `check-agent-identity` now reaches the consumer pre-commit config. It
is the only hook of the agent-identity pipeline
([#163](#163)) that guards the
commit **author/committer** — the one that catches `git commit
--author="Claude <...>"`. After
[#1026](#1026) scaffolded repos
rejected an AI-attributed commit *message* while accepting an
AI-authored *commit*; the `COMMIT_MESSAGE_STANDARD.md` they ship
promised the opposite. It runs at the pre-commit stage, so `prek run
--all-files` enforces it in the scaffold's lint job too.
@whispersofthedawn

Copy link
Copy Markdown
Contributor

reapplied with a patch from gawk's repository that fixes libpng and gcc16 in #541941

@vcunat

vcunat commented Jul 15, 2026

Copy link
Copy Markdown
Member

Thanks for these 🙂

c-vigo added a commit to vig-os/devkit that referenced this pull request Jul 21, 2026
## What

Extend the `.vulnixignore` exception for the gawk 5.4.0 CERT-PL CVE
batch
(`CVE-2026-40467`/`-40468`/`-40469`/`-40553`, originally #1071 / #1072)
from
`Expiration: 2026-07-28` to `2026-08-18`, and record the extension in
the
`## Unreleased` → `### Security` changelog section.

## Why

The exception was short-dated to force a re-check once the fix lands in
the
pinned nixpkgs channel and we can flip to a rev-advance. That has not
happened
yet, so the exception would otherwise lapse and re-fail the vulnix gate.

## Upstream evidence (re-verified 2026-07-21 via
raw.githubusercontent.com)

| nixpkgs branch | `pkgs/tools/text/gawk/default.nix` |
|----------------|-------------------------------------|
| `nixos-26.05` (pinned channel) | `version = "5.4.0"` — still
vulnerable |
| `release-26.05` | `version = "5.4.0"` — still vulnerable |
| `staging` | `version = "5.4.1"` — fixed |

The fix (gawk 5.4.1, `NixOS/nixpkgs#540158`) merged to `staging` on
2026-07-12.
gawk is a stdenv mass-rebuild, so it must traverse `staging` ->
`staging-next`
-> the release branch before reaching `nixos-26.05`; that propagation is
still
in flight. Risk posture is unchanged from the #1071 triage
(developer/CI-chosen
awk inputs only; readdir CVE requires the opt-in `-l readdir` path).

## Verification

- `prek run --all-files` fully green (including `check-expirations`,
which now
  passes with the future 2026-08-18 date).
- `sync-manifest` auto-mirrored the changelog entry into
`assets/workspace/.devcontainer/CHANGELOG.md` (regenerated, not
hand-edited).

## Follow-up

Flip to the nixpkgs rev-advance and drop this exception once 5.4.1
reaches
`nixos-26.05`.

Closes #1240
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

8.has: package (update) This PR updates a package to a newer version 10.rebuild-darwin: 501+ This PR causes many rebuilds on Darwin and should normally target the staging branches. 10.rebuild-darwin: 5001+ This PR causes many rebuilds on Darwin and must target the staging branches. 10.rebuild-darwin-stdenv This PR causes stdenv to rebuild on Darwin and must target a staging branch. 10.rebuild-linux: 501+ This PR causes many rebuilds on Linux and should normally target the staging branches. 10.rebuild-linux: 5001+ This PR causes many rebuilds on Linux and must target the staging branches. 10.rebuild-linux-stdenv This PR causes stdenv to rebuild on Linux and must target a staging branch. 10.rebuild-nixos-tests This PR causes rebuilds for all NixOS tests and should normally target the staging branches. 12.approvals: 1 This PR was reviewed and approved by one person. 12.approved-by: package-maintainer This PR was reviewed and approved by a maintainer listed in any of the changed packages.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants