Skip to content

chore: sync dev with main (conflicts) - #1091

Merged
c-vigo merged 35 commits into
devfrom
chore/sync-main-to-dev-19-1
Jul 14, 2026
Merged

c-vigo merged 35 commits into
devfrom
chore/sync-main-to-dev-19-1

Conversation

@vig-os-release-app

Copy link
Copy Markdown
Contributor

Automated sync of main to dev found merge conflicts that require manual resolution.

How to resolve

git fetch origin chore/sync-main-to-dev-19-1:chore/sync-main-to-dev-19-1
git checkout chore/sync-main-to-dev-19-1
git merge origin/dev
# resolve conflicts
git commit -S
git push origin chore/sync-main-to-dev-19-1

Once pushed, this PR will update and become mergeable.

commit-action-bot Bot and others added 30 commits July 14, 2026 15:22
Regenerate the synced workspace mirror so
assets/workspace/.devcontainer/CHANGELOG.md matches the frozen root
CHANGELOG.md on the release branch.
The shared preset's lockFileMaintenance.description is rendered by Renovate
into every consumer's Dependency Dashboard issue, so its references are read
in the consumer's repo context:

- renovatebot/renovate#41825 is a GitHub Discussion, not an issue, so the
  shorthand resolved to nothing. Use the full discussions URL and describe it
  as the open idea thread it is (the CHANGELOG entry for #1049 already linked
  it correctly).
- The trailing bare "Refs #1041" autolinked to the *consumer's* issue 1041.
  Use the absolute devkit issue URL, as #1056/#1062 did for doc paths.

Text-only: no Renovate behaviour changes, so no test accompanies it.

Refs: #1041
…set (#1069)

## Summary

The shared preset's `lockFileMaintenance.description` (added in #1049)
is rendered by Renovate **into every consumer's Dependency Dashboard
issue**, so its references are resolved in the *consumer's* repo
context. Two of them were broken there:

- `renovatebot/renovate#41825` — the upstream blocker is a GitHub
**Discussion**, not an issue, so the `owner/repo#N` shorthand resolves
to nothing (`gh` returns 404 on it). Now the full [discussions
URL](renovatebot/renovate#41825),
described as the open idea thread it is: unanswered, *Suggest an Idea*
category, 23 upvotes, last activity 2026-06-30 — not a planned item with
a timeline, as the earlier wording implied.
- Trailing `Refs #1041` — a bare reference that GitHub autolinks to the
**consumer's** issue 1041. Now the absolute devkit issue URL, the same
treatment #1056/#1062 gave doc paths (this one differs in that it is
actually *rendered*, not sitting in a YAML comment).

The `#1049` CHANGELOG entry already linked the discussion correctly, so
the preset and the re-scope comment on #1041 were the only two places
carrying the broken shorthand. [The comment is
updated](#1041 (comment)).

Targets `release/1.2.0`: the preset it fixes ships in 1.2.0, so the
CHANGELOG entry lands in that section (mirror re-synced via
`sync-manifest`).

**Does not close #1041.** That issue still tracks the open upstream
scope — alert-driven remediation of out-of-range transitive vulns, and
transitive packages appearing in the Dependency Dashboard at all.

Text-only, no behaviour change, so no test accompanies it; the preset's
contract is covered by `renovate-config-validator --strict` in
`renovate-validate.yml`.

## Test evidence
- `prek run --all-files` → green, 0 failures (incl. `sync-manifest`,
`check json`)
- `renovate-config-validator --strict
assets/workspace/.github/renovate-default.json renovate.json` → `Config
validated successfully against 2 file(s)`
- `uv run pytest tests/test_scaffold_lint.py` → 34 passed

Refs: #1041
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
…#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
Add a comment on the skip-leading-blanks loop in Banner.apply
(scripts/transforms.py) stating the normalization is intentional and
one-shot: the source's leading blank lines are dropped so the banner is
always followed by exactly one blank line, visible only when diffing
initial sync output. No behavior change.

TDD skipped: comment-only change, no testable behavior.

Refs: #1077
… tag prefix

A reused release branch re-running prepare-changelog finalize with a
different --tag-prefix hit the generic 'Version section not found'
ValueError. Detect the already-finalized heading under another prefix,
name it and the expected prefix in the error, and document that re-run
idempotency holds only for an unchanged tag prefix.

Refs: #1073
Add a comment on the sync job's checkout step: no ref is needed because
the checkout exists only to resolve the ./.github/actions/setup-env
composite, and every subsequent git operation targets origin/main /
origin/dev explicitly. The workspace scaffold twin
(assets/workspace/.github/workflows/sync-main-to-dev.yml) is
intentionally decoupled and unchanged. No behavior change.

TDD skipped: comment-only change, no testable behavior.

Refs: #1081
The rollback guard only matches result == 'failure' for prepare, extension
and open-pr, so a run cancelled after the freeze commit strands the partial
release branch and the freeze commit on dev. Pin the cancelled-handling in
the job-shape assertions (both caller copies) before extending the guard.

Refs: #1078
Investigated whether refs_optional_types=approved_types in validate_title
lets a merge commit land on dev that would fail full commit validation.
It cannot: validate_commits() skips merge commits (is_merge), CI's
commit-checks job is the only re-validator of history, and the commit-msg
hook never fires on GitHub's server-side merges. Document the exemption
at the call site and pin the end-to-end scenario (a Refs-requiring
docs: title passing as a merge subject) with a regression test.

Single commit rather than RED-GREEN: no behavior changes, the new test
passes against existing code and documents the exemption.

Refs: #1074
…range

Comment-only change, so no test accompanies it (TDD exemption:
non-testable documentation change).

Refs: #1075
Extend the rollback guard so needs.<job>.result == 'cancelled' for prepare,
extension and open-pr triggers the rollback alongside 'failure'. The guard
already used always(), which is what keeps the job eligible to run after the
run itself is cancelled; without the cancelled match a run cancelled after
the freeze commit stranded the partial release/X.Y.Z branch and the freeze
commit on dev. Applied to both the devkit workflow and the independently
authored scaffold copy (not manifest-synced), which shares the guard shape.

Refs: #1078
The open-pr job's only real work is gh pr create (gh is preinstalled on
GitHub-hosted runners), yet it stands up the full setup-env composite
(Nix + uv sync) on the release critical path just to reach the uv run retry
wrapper. Pin the slim shape first: no local composite actions and no uv run
in the job, with retries still present via the canonical bash helper.

Refs: #1079
The open-pr job only runs gh pr create, which needs no toolchain: gh is
preinstalled on GitHub-hosted runners and the retry semantics move from the
uv run retry wrapper to sourcing the canonical bash retry() helper
(.github/scripts/retry.sh) from the checkout. Use a bare shallow checkout
(no fetch-depth: 0, no Nix + uv sync), removing minutes of environment
setup from the release critical path.

Refs: #1079
… tag prefix (#1082)

Implements #1073 (review follow-up from #1068).

`prepare-changelog finalize` re-run with a different `--tag-prefix` now
raises a specific ValueError naming the already-finalized heading it
found, the expected prefix, and the invariant (prefix must be stable
across re-runs on a reused release branch) — instead of the generic "TBD
not found" error. No auto-re-finalize (per approved plan); the file is
left untouched, asserted by tests. Docstring states the invariant. A
lookbehind keeps e.g. `11.0.0` from matching as prefixed `1.0.0`.

TDD: RED commit with both prefix directions (`""`→`"v"`, `"v"`→`""`),
then the fix. Evidence: `test_prepare_changelog.py` 147 passed; full
`just precommit` green. Changelog entry under `## [1.2.0] - TBD` ###
Fixed, root + mirror.

Refs: #1073
Implements #1076 (review follow-up from #1068).

`strip_banner(text, style)` no longer defaults `style` to `"html"` — a
hash-style caller forgetting the kwarg would get wrong header splitting
(no shebang / YAML doc-start handling) and could corrupt a file. The
single external caller (`test_scaffold_downstream_release_doc.py`) now
passes `style="html"` explicitly; internal callers already did.

TDD: RED test asserting TypeError on omitted style, then the change.
Evidence: 38 passed across the two affected test files; full `just
precommit` green (sync-manifest/generate-docs exercise the real
callers). Changelog entry under `## [1.2.0] - TBD` ### Changed, root +
mirror.

Refs: #1076
…1084)

Implements #1077 (review follow-up from #1068).

Comment-only: documents the leading-blank-line drop in `Banner.apply` as
an intentional one-shot normalization (banner always followed by exactly
one blank line; visible only when diffing the initial sync; idempotent
thereafter). Note: the issue cites `sync_manifest.py:180`, but the loop
lives in `scripts/transforms.py` (`Banner.apply`) since the transforms
extraction — comment placed there. No behavior change, no changelog
(internal comment).

Full `just precommit` green.

Refs: #1077
Implements #1081 (review follow-up from #1068).

Comment-only: two-line YAML comment on the sync job's checkout step — no
`ref:` needed because the checkout exists solely to resolve
`./.github/actions/setup-env`, and every later git op targets
`origin/main`/`origin/dev` explicitly. The scaffolded twin
(`assets/workspace/.github/workflows/sync-main-to-dev.yml`) is
intentionally decoupled (own header says so, different composite) and
was left untouched. No changelog (internal comment).

Full `just precommit` green (actionlint, sync-manifest pass).

Refs: #1081
…ts (#1086)

Implements #1074 (review follow-up from #1068).

**Investigation verdict: merge-commit subjects are exempt from Refs
enforcement downstream**, so the looser
`refs_optional_types=approved_types` in `validate_title` is safe and now
documented rather than changed:
- `validate_commits()` skips merges (`commit.is_merge`) — the --no-ff
merge subject a PR title becomes never faces the Refs rule.
- CI's `commit-checks` job is the only re-validator of history and is
pull_request-only; ranges are merge-base..head with merges skipped.
- The `validate-commit-msg` hook is commit-msg-stage: fires on local
commits only, never on GitHub's server-side merges.

Change: call-site comment explaining the mechanism + end-to-end
regression test (`docs: update readme` passes as title, passes as merge
subject, still fails as a plain commit). No behavior change, hence
single commit (TDD note in body) and no changelog entry.

Evidence: `test_validate_commit_range.py` 34 passed; full `just
precommit` green.

Refs: #1074
…range (#1087)

Implements #1075 (review follow-up from #1068).

Comment-only: the `_FIELD_SEP`/`_RECORD_SEP` comment now acknowledges
that git does not escape raw `\x1f`/`\x1e` bytes, so a commit body
carrying them would silently misparse — accepted as not a real-world
failure mode. No behavior change, no changelog.

Full `just precommit` green.

Refs: #1075
…rsion (#1088)

Implements #1080 (review follow-up from #1068).

A non-integer `version` in the node capability module (`{ name = "node";
version = ...; }`) is now rejected by a `builtins.isInt` guard
**before** the `nodejs_${toString version}` interpolation, throwing the
module-scoped message `node module: invalid Node version of type
'<type>' (the 'version' option must be an integer major, e.g. 22)` —
consistent with the existing unknown-key and unavailable-major throws —
instead of Nix's generic "cannot coerce to string".

Review note: the RED test exposed that a *string* major (`"22"`) was
previously silently accepted by coercion; the guard now enforces the
documented int contract for that case too (tightening, covered by the
parametrized test).

TDD: RED (string silently accepted, attrset → generic coerce error) →
GREEN (3 passed incl. the existing unknown-option test); `version = 22`
regression-probed as still evaluating. Full `just precommit` green
(nixfmt, sync-manifest). Changelog under `## [1.2.0] - TBD` ### Changed,
root + mirror.

Refs: #1080
Implements #1078 (review follow-up from #1068).

The rollback job's guard now matches `cancelled` for each phase
(`prepare`/`extension`/`open-pr`) alongside `failure`, so cancelling a
run after the freeze commit lands rolls back the partial release branch
and dev freeze exactly like a failure. `always()` is kept (and
documented as load-bearing — it's what keeps the job eligible after a
run-level cancel); `validate.result == 'success'` is kept deliberately
(a cancelled validate means no freeze commit exists to roll back).

Scope note: the scaffolded twin
(`assets/workspace/.github/workflows/prepare-release.yml`) is
independently authored (not manifest-synced, per #996/#991) and had the
identical gap — both copies fixed, and the shape tests are parametrized
over both.

TDD: RED (2 pytest + 1 bats failures) → GREEN
(`test_workflow_prepare_extension.py` 15 passed, bats rollback filter 3
ok); full `just precommit` green (actionlint). Runtime path exercises at
the next prepare-release run. Changelog under `## [1.2.0] - TBD` ###
Fixed, root + mirror.

Refs: #1078
c-vigo and others added 4 commits July 14, 2026 20:23
…1090)

Implements #1079 (review follow-up from #1068).

The `open-pr` job no longer runs the `setup-env` composite (Nix + uv
sync) — audit showed its only consumer was the `uv run retry` wrapper
around `gh pr create`. Now: bare shallow checkout (`fetch-depth: 0` also
dropped — no history use), `gh` from the runner image, and retries via
`source .github/scripts/retry.sh` (the canonical bash helper with
identical flags: `--retries 3 --backoff 5 --max-backoff 60`). Cuts
minutes of Nix/uv setup from the release critical path.

Scope note: devkit's workflow only. The scaffolded twin's `open-pr` is
architecturally different (runs in the consumer's devkit container where
`retry` comes from the toolchain) — slimming it would be a separate
issue. The new shape test (`test_devkit_open_pr_needs_no_toolchain`) is
scoped to the devkit copy.

TDD: RED → GREEN (`test_workflow_prepare_extension.py` 14 passed); full
`just precommit` green. Runtime path exercises at the next
prepare-release run. Changelog under `## [1.2.0] - TBD` ### Changed,
root + mirror.

Refs: #1079
Set release date to 2026-07-14 and regenerate release docs.

Refs: #1068
# [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.
@c-vigo
c-vigo merged commit ec7aec2 into dev Jul 14, 2026
16 checks passed
@c-vigo
c-vigo deleted the chore/sync-main-to-dev-19-1 branch July 14, 2026 20:54
c-vigo added a commit that referenced this pull request Jul 15, 2026
…1121)

## Summary

Every release cycle the post-promote `sync-main-to-dev` PR conflicted on
exactly one file: the workspace changelog mirror
`assets/workspace/.devcontainer/CHANGELOG.md` (#1091, #1114). Root
cause, verified on the 1.2.1 cycle: the prepare extension minted the
mirror reconcile as a **sibling commit** on `dev` (`11ff0e1c`) — same
parent (freeze `849b324a`) and same tree (`d5b4f190`) as the
release-branch sync commit (`e727daf0`), but a distinct object. Dev's
copy was never an ancestor of the release branch, so the mirror's merge
base at sync time was the stale pre-freeze content → deterministic
overlap conflict. The root changelog merges clean precisely because the
freeze commit *is* shared ancestry.

## Fix

After the extension commits the mirror sync to the release branch,
**fast-forward `dev` to that commit** (non-force ref `PATCH` via the
COMMIT_APP token) — but only while dev still sits on the freeze commit
(`inputs.branch_sha`). Both branches then share the literal commit
object, giving the mirror the same shared-ancestry property that already
keeps the root changelog conflict-free.

- FF target is the release commit-action step's `commit-sha` **output**,
not a fresh ref read (avoids the read-after-write ref lag documented in
#617).
- `force=false` makes the update FF-only and atomic: a dev that advanced
in the race window can never be clobbered. Deliberately not retried — a
legitimate non-FF rejection must not be retried; transient failures
degrade to the fallback.
- Dev-advanced race or any PATCH failure → fall back to the previous
sibling-commit reconcile (status quo, never worse; that one cycle may
conflict).
- Rollback interplay preserved: every step after the FF is gated on
`ff_done != 'true'`, and the fallback reconcile commit stays the job's
last step — every failure path still leaves dev's root+mirror consistent
under prepare-release.yml's dev-advanced guard. Header comment rewritten
with the full analysis.

Devkit-local change only: `prepare-release.yml` stays scaffold-verbatim;
the consumer no-op scaffold extension is untouched.

## Verification

- TDD: `5f991fa2` pins the new invariants (3 red structural tests),
`71dc5d79` turns them green —
`tests/test_workflow_prepare_extension.py`: 18 passed.
- Full pre-commit suite green locally (actionlint validates the new
step's `steps.*.outputs` references and `if` expressions).
- Scratch-repo ancestry proof: root-only freeze → sibling mirror commits
on both branches → `git merge-tree --write-tree` conflicts on the mirror
(reproduces #1114); dev fast-forwarded to the release-branch sync commit
instead → same merge is clean.
- Real end-to-end proof lands next release cycle: the sync PR should
come out titled without "(conflicts)" and auto-merge.

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

This PR prepares release 1.3.0 for merge to main.

## [1.3.0] - TBD

### Added

- **Scaffold CI dependency-review gate**
([#1140](vig-os/devkit#1140))
  - Consumer `ci.yml` now runs a standalone `dependency-review` job
(`actions/dependency-review-action` v5, `fail-on-severity: high`) that
    blocks PRs introducing known-vulnerable dependencies off GitHub's
    dependency graph — no toolchain or container required.
- Guarded to public-repo pull requests (the action only diffs base/head
on
PRs, and the dependency-graph API is unavailable on Free-plan private
repos), so private repos get a skipped-neutral run and auto-activate
when
flipped public (#1039 pattern); `CI Summary` requires it without going
red
    on push/dispatch/private-repo skips.

### Changed

- **Smoke-test deploy of 1.3.0** -- automated devcontainer
release-pipeline validation; no functional changes
- **Renovate dependency update**
([#1134](vig-os/devkit#1134))
  - Update `actions/setup-node` from `v6.4.0` to `v6.5.0`
  - Update `cachix/install-nix-action` from `v31.10.7` to `v31.11.0`
  - Update `vig-os/commit-action` from `v0.2.0` to `v0.3.0`
- **Renovate: update `actions/setup-node` from `v6.4.0` to `v7.0.0`**
([#1135](vig-os/devkit#1135))
- **Evict perl from the image (neovim without wl-clipboard)**
([#1108](vig-os/devkit#1108))
- perl 5.42.0 and its module stack (libwww-perl, XML-Twig,
File-MimeInfo,
    X11-Protocol, …) had one remaining anchor after
[#1107](vig-os/devkit#1107) swapped full `git`
for
`gitMinimal`: `neovim → wl-clipboard → xdg-utils → perl`. The nixpkgs
neovim
wrapper suffixes `wl-clipboard` onto the wrapped binary's PATH as the
Wayland
    clipboard provider (`waylandSupport`, on by default on Linux), and
    wl-clipboard drags xdg-utils, which drags perl.
- In a headless container this provider is dead code — there is no
Wayland
socket, so `wl-copy`/`wl-paste` never run. The clipboard path that
actually
works over VS Code remote / SSH is OSC52, which nvim >= 0.10 uses
natively
    when no display clipboard tool is on PATH.
  - The image now re-wraps `neovim-unwrapped` with `wrapNeovimUnstable`
(replicating the stock legacy wrap — empty rc, providers disabled — but
with
`waylandSupport = false`), evicting the wl-clipboard → xdg-utils → perl
    subtree. Measured **~108 MiB** off the uncompressed closure
    (1,758,754,952 → 1,645,235,648 bytes).
- Dev-shell behavior is unchanged: `devTools` still ships the stock
wrapped
neovim (which keeps wl-clipboard for real Wayland hosts); the swap is
scoped
    to the image only.
- **Restrict image locales to en_US.UTF-8**
([#1104](vig-os/devkit#1104))
- The image shipped the full 222 MiB upstream `glibcLocales` archive but
only
ever uses `en_US.UTF-8`. The `imageTools` entry and the `LOCALE_ARCHIVE`
    OCI-config env now share one overridden derivation
(`allLocales = false; locales = [ "en_US.UTF-8/UTF-8" ]`), so exactly
one
small (~3 MiB) locale path lands in the closure — a ~220 MiB
uncompressed
    reduction with zero functional change.
- **Drop vestigial baked bandit from the image**
([#1105](vig-os/devkit#1105))
- Hooks already run the venv bandit via `uv run` (pinned
`bandit[toml]==1.9.4`); the baked copy was unused.
- Removes ~74 MiB from the image closure — a stray CPython 3.13 package
stack (nixpkgs builds `bandit` on 3.13 while the image toolchain is
3.14) plus a duplicate `git-minimal` pulled in via gitpython.
- **Evict the redundant CPython 3.13 interpreter from the image**
([#1107](vig-os/devkit#1107))
- The image carried a second CPython interpreter (`python3-3.13.13`, 127
MiB)
that the chosen toolchain (`python3.14`, `UV_PYTHON`, `vig-utils`) never
uses. It was held by four independent anchors, all of which had to fall:
`bandit` ([#1105](vig-os/devkit#1105)), `criu`
via
the podman runtime
([#1106](vig-os/devkit#1106)),
    full `git` (git-p4/python helpers), and `actionlint` (its optional
    `python3.13-pyflakes` lint wrapper) — the last two removed here.
  - The image now ships `gitMinimal` (`perlSupport`/`pythonSupport`/
    `guiSupport`/`withManual` all off) instead of full `git`, and an
`overrideAttrs`'d `actionlint` whose wrapper drops `pyflakes` (keeping
`shellcheck`). Together this evicts the 3.13 interpreter and full git's
`git-doc`, measuring **~149 MiB** off the uncompressed closure beyond
the
    bandit/criu cuts.
  - Contract (declared non-contract in
[#1103](vig-os/devkit#1103), `semver:minor`):
the
image loses `git send-email`/`svn`/`p4`/`gitk`/`git gui` and built-in
`git help <cmd>` man pages, and actionlint's inline-python lint on
workflow
`run:` steps. Builtin-C porcelain (`log`, `commit`, `rebase -i`, `add
-p`,
worktrees) and SSH commit signing are unaffected; `gettext` stays (still
    linked by gitMinimal for i18n).
- Dev-shell behavior is unchanged: `devTools` still ships full `git` and
stock
    `actionlint`; the swaps are scoped to the image only.
- **Replace in-image podman runtime with DooD-only client**
([#1106](vig-os/devkit#1106))
  - The image now ships a client-only podman: its local-runtime helpers
(`crun`, `criu`, `conmon`, `netavark`, `passt`, `libkrun`/`libkrunfw`,
`aardvark-dns`, `fuse-overlayfs`, `runc`) are `.override`n with an empty
stub, dropping ~67 MiB of uncompressed image closure. The epic's ~254
MiB
estimate assumed removing podman entirely; retaining the client binary
(~54 MiB) and `systemd` (rpath-linked into it; `systemdMinimal` breaks
`podman logs` per the nixpkgs pin) reduces the net saving to ~67 MiB.
- In-container isolated (nested) container execution is removed — the
retired
    podman-in-podman sidecar model, declared non-contract in
    [#1103](vig-os/devkit#1103).
  - Docker-out-of-Docker against the host's rootless podman socket (the
    consumer scaffold's existing `DOCKER_HOST` wiring) is unchanged.
- The `docker -> podman` shim is retained and now execs the client-only
    podman.
- Dev-shell behavior is unchanged: `devTools` still ships the full
podman
runtime for daemonless `podman run` on a real host; the swap is scoped
to
    the image only.

### Fixed

- **Gate promote on release-PR mergeability before the irreversible
publish** ([#1132](vig-os/devkit#1132))
  - `promote-release.yml`'s `validate` job verified the release PR was
non-draft, approved, and CI-green but never checked whether it was
actually
*mergeable*. Because the sequence is `validate → promote (undraft,
one-way
under immutable releases) → merge`, a PR that was `BEHIND` `main` (or
`BLOCKED`/`DIRTY`) passed validation, the GitHub Release was published,
and
only then did the merge fail — leaving a half-promoted release whose PR
    never reached `main` and which cannot be re-run to recover.
- The `validate` PR check now fetches `mergeable`/`mergeStateStatus` and
fails fast unless the PR is mergeable, re-querying while GitHub is still
computing the state (`UNKNOWN`). Keeps the invariant: never start the
    irreversible publish unless the merge can succeed.
- **Migrate hand-added root `.gitignore` lines into `.gitignore.project`
on upgrade** ([#1111](vig-os/devkit#1111))
  - The [#1092](vig-os/devkit#1092) fix made
`.gitignore.project` the durable home for repo-root ignores, but the
upgrade
that introduces it seeds it empty — so any ignores a consumer had
hand-added
directly to the managed (regenerated) root `.gitignore` (`.DS_Store`,
editor/OS cruft, project paths) were silently dropped when
`render_gitignore`
    rebuilt root `.gitignore` from the template.
- `init-workspace.sh` now snapshots the pre-overwrite root `.gitignore`
and
migrates its consumer-added entries (non-blank, non-comment lines that
are
not provided by the template base, an active language fragment, or the
#1092
seed, and not already present) into `.gitignore.project`, from where
they
    flow back into the regenerated root `.gitignore`. The migration is
append-only and deduplicated, so it never reorders the consumer's
existing
entries and a second upgrade re-adds nothing (idempotent); it prints the
    count and list of migrated lines.
- **Install project deps before building the release artifact**
([#1130](vig-os/devkit#1130))
- The `Build release artifact` step in `release-core.yml` ran `just
bundle`
without a preceding `just sync`, so a JS-Action consumer's bundler
(`ncc`, a
devDependency) was absent from PATH — the finalization step exited 127
and
the `final` release rolled back. Only surfaced on a real `final` release
(the
step is gated on `release_kind == 'final'` and a detected `bundle`
recipe).
- The step now runs `just sync` (language-neutral: `npm ci` / `uv sync`)
before
`just bundle`, matching every other build job. No-op for consumers
without a
    bundle recipe.
- **Wire `core.hooksPath` for direnv consumers**
([#1112](vig-os/devkit#1112))
- In direnv / `nix develop` mode the dev-shell never set
`core.hooksPath`, so
commit-time hooks (pre-commit / commit-msg via prek) were silently
inactive
until the consumer set it by hand — a local commit could bypass the gate
with
only CI catching it later. Devcontainer mode already wired it in setup.
- `mkProjectShell`'s shellHook now sets `core.hooksPath` → `.githooks`
on shell
entry, mirroring the devcontainer and reinforcing the `.githooks`
entry-point
    invariant (never installing into `.git/hooks`, never unsetting it).
- Guarded to a scaffold-shaped repo (a `.githooks/` directory at the git
toplevel) and to the main worktree, so it leaves non-scaffold consumers
untouched and never fights the worktree flow (which deliberately unsets
`core.hooksPath` and installs prek hooks directly); idempotent on
re-entry.
- **Post-scaffold dependency sync is mode-aware and no longer aborts a
successful upgrade**
([#1118](vig-os/devkit#1118))
- In `direnv` and `bare` modes the container-side `just sync` is now
skipped
entirely: the consumer's host nix/direnv shell owns dependency install,
and a
container-side `npm ci`/`uv sync` would write wrong-platform,
wrong-owner
artifacts into the bind-mounted workspace. An informational line notes
the skip.
- In `devcontainer`/`both` modes the sync still runs but is non-fatal —
a failure
(e.g. `npm error Exit handler never called!`) now warns and continues
instead of
aborting init with a misleading "Failed to initialize workspace", since
the
    scaffold itself is already complete.
- **Preserve a flake-hooks `.pre-commit-config.yaml` store symlink on
upgrade** ([#1117](vig-os/devkit#1117))
- In direnv mode a flake with `hooks = { }` generates
`.pre-commit-config.yaml`
as a symlink into the host `/nix/store`, which is not mounted inside the
image
    where `init-workspace.sh` runs — so the symlink is dangling from the
container's view. The preserve/exclude and report gates tested presence
with
`-e`/`-f`, which follow the link and reported it absent, so `rsync -avL`
    overwrote the symlink with the ~6 KB template config and the
[#1092](vig-os/devkit#1092) ignore auto-seed
never
fired — leaving a committed, non-ignored template shadowing the
generated
    config (observed on `commit-action` 1.2.0→1.2.1).
- A new `path_present` helper treats a symlink of any kind (including a
dangling
    one) as present at all three gates — the rsync exclude builder, the
add/preserve report classification (`--preview` now lists it as
PRESERVED),
and the `PRECOMMIT_CONFIG_PREEXISTED` divergence guard — so the symlink
    survives untouched and the ignore seed still runs.
- **Preserve tag-scheme keys across `--force` upgrades**
([#1116](vig-os/devkit#1116))
- `init-workspace.sh` read back `DEVKIT_MODE`/identity/`DEVKIT_MODULES`
before
the managed-template overwrite of `.vig-os`, but not `DEVKIT_TAG_PREFIX`
or
`DEVKIT_FLOATING_TAGS`, so an upgrade silently reset a consumer's
release
tag scheme to the empty template defaults (observed cutting bare tags
and
    stalling floating tags on the commit-action 1.2.0 → 1.2.1 upgrade).
- Both keys are now read before the overwrite and written back (bare,
matching
    the template's unquoted form) when the consumer set them.
- **Post-promote sync-main-to-dev no longer conflicts on the workspace
changelog mirror**
([#1115](vig-os/devkit#1115))
- The prepare extension's sibling-commit reconcile left the mirror's
merge base
at pre-freeze content, so `assets/workspace/.devcontainer/CHANGELOG.md`
conflicted in the post-promote sync-main-to-dev merge every release
cycle
    ([#1091](vig-os/devkit#1091),
    [#1114](vig-os/devkit#1114)).
- The extension now fast-forwards dev to the release branch's
mirror-sync
commit (a non-force app ref update, taken only while dev still sits on
the
freeze commit) so the mirror rewrite is shared ancestry — the same
property
    that keeps the root changelog conflict-free.
- A dev-advanced race (or any ref-update failure) falls back to the
previous
    sibling-commit reconcile, exactly the status quo.

### Security

- **Drop vestigial job-level `GITHUB_TOKEN` write grants from workflow
templates** ([#1136](vig-os/devkit#1136))
  - An OpenSSF Scorecard TokenPermissions audit traced every job-level
`contents: write` / `actions: write` grant in the rendered release/sync
workflows to the token that performs the write: each git push, tag push,
`gh release`, `gh pr`, `gh api` mutation and `gh workflow run` rides a
COMMIT_APP / RELEASE_APP installation token, not the job's
`GITHUB_TOKEN`.
- Those grants are now reduced to `read` across `prepare-release.yml`
(prepare,
    rollback), `promote-release.yml` (validate, promote, merge, cleanup,
floating-tags), `release.yml` (core + publish caller blocks, rollback),
    `release-core.yml` (finalize), `release-publish.yml` (publish),
`sync-issues.yml` (sync) and `sync-main-to-dev.yml` (sync), shrinking
the
    blast radius of a compromised step to a read-only `GITHUB_TOKEN`.
- `promote-release.yml`'s *Verify draft GitHub Release exists* step now
reads
drafts with the RELEASE_APP token (GitHub only returns drafts to a token
with
push access), so the `validate` job can drop to `contents: read` without
hiding the draft. `sync-issues.yml`'s `sync` job keeps `actions: write`
— its
    cache-deletion step calls `gh api ... -X DELETE` on `github.token`.
- **Retire the perl 5.42.0 CVE exception batch**
([#1108](vig-os/devkit#1108))
- With perl gone from the image closure (neovim no longer anchors it via
wl-clipboard → xdg-utils), the perl 5.42.0 CVE exceptions in
`.vulnixignore`
are **deleted** rather than maintained: CVE-2026-4176, and the CPANSec
batch
CVE-2026-13221 / CVE-2026-57432 (accepted "pending upstream stable fix"
in

[#1097](https://github.com/vig-os/devkit/issues/1097)/[#1098](https://github.com/vig-os/devkit/issues/1098),
fixed only in the perl 5.43.x development series). Fewer packages, fewer
    exceptions to babysit; the nightly vulnix scan no longer needs them.
vig-os-release-app Bot added a commit that referenced this pull request Jul 15, 2026
# [Release 1.3.0](https://github.com/vig-os/devkit/releases/tag/1.3.0) -
2026-07-15

This PR prepares release 1.3.0 for merge to main.

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

### Added

- **Scaffold CI dependency-review gate**
([#1140](#1140))
  - Consumer `ci.yml` now runs a standalone `dependency-review` job
(`actions/dependency-review-action` v5, `fail-on-severity: high`) that
    blocks PRs introducing known-vulnerable dependencies off GitHub's
    dependency graph — no toolchain or container required.
- Guarded to public-repo pull requests (the action only diffs base/head
on
PRs, and the dependency-graph API is unavailable on Free-plan private
repos), so private repos get a skipped-neutral run and auto-activate
when
flipped public (#1039 pattern); `CI Summary` requires it without going
red
    on push/dispatch/private-repo skips.

### Changed

- **Renovate dependency update**
([#1134](#1134))
  - Update `actions/setup-node` from `v6.4.0` to `v6.5.0`
  - Update `cachix/install-nix-action` from `v31.10.7` to `v31.11.0`
  - Update `vig-os/commit-action` from `v0.2.0` to `v0.3.0`
- **Renovate: update `actions/setup-node` from `v6.4.0` to `v7.0.0`**
([#1135](#1135))
- **Evict perl from the image (neovim without wl-clipboard)**
([#1108](#1108))
- perl 5.42.0 and its module stack (libwww-perl, XML-Twig,
File-MimeInfo,
    X11-Protocol, …) had one remaining anchor after
[#1107](#1107) swapped full `git`
for
`gitMinimal`: `neovim → wl-clipboard → xdg-utils → perl`. The nixpkgs
neovim
wrapper suffixes `wl-clipboard` onto the wrapped binary's PATH as the
Wayland
    clipboard provider (`waylandSupport`, on by default on Linux), and
    wl-clipboard drags xdg-utils, which drags perl.
- In a headless container this provider is dead code — there is no
Wayland
socket, so `wl-copy`/`wl-paste` never run. The clipboard path that
actually
works over VS Code remote / SSH is OSC52, which nvim >= 0.10 uses
natively
    when no display clipboard tool is on PATH.
  - The image now re-wraps `neovim-unwrapped` with `wrapNeovimUnstable`
(replicating the stock legacy wrap — empty rc, providers disabled — but
with
`waylandSupport = false`), evicting the wl-clipboard → xdg-utils → perl
    subtree. Measured **~108 MiB** off the uncompressed closure
    (1,758,754,952 → 1,645,235,648 bytes).
- Dev-shell behavior is unchanged: `devTools` still ships the stock
wrapped
neovim (which keeps wl-clipboard for real Wayland hosts); the swap is
scoped
    to the image only.
- **Restrict image locales to en_US.UTF-8**
([#1104](#1104))
- The image shipped the full 222 MiB upstream `glibcLocales` archive but
only
ever uses `en_US.UTF-8`. The `imageTools` entry and the `LOCALE_ARCHIVE`
    OCI-config env now share one overridden derivation
(`allLocales = false; locales = [ "en_US.UTF-8/UTF-8" ]`), so exactly
one
small (~3 MiB) locale path lands in the closure — a ~220 MiB
uncompressed
    reduction with zero functional change.
- **Drop vestigial baked bandit from the image**
([#1105](#1105))
- Hooks already run the venv bandit via `uv run` (pinned
`bandit[toml]==1.9.4`); the baked copy was unused.
- Removes ~74 MiB from the image closure — a stray CPython 3.13 package
stack (nixpkgs builds `bandit` on 3.13 while the image toolchain is
3.14) plus a duplicate `git-minimal` pulled in via gitpython.
- **Evict the redundant CPython 3.13 interpreter from the image**
([#1107](#1107))
- The image carried a second CPython interpreter (`python3-3.13.13`, 127
MiB)
that the chosen toolchain (`python3.14`, `UV_PYTHON`, `vig-utils`) never
uses. It was held by four independent anchors, all of which had to fall:
`bandit` ([#1105](#1105)), `criu`
via
the podman runtime
([#1106](#1106)),
    full `git` (git-p4/python helpers), and `actionlint` (its optional
    `python3.13-pyflakes` lint wrapper) — the last two removed here.
  - The image now ships `gitMinimal` (`perlSupport`/`pythonSupport`/
    `guiSupport`/`withManual` all off) instead of full `git`, and an
`overrideAttrs`'d `actionlint` whose wrapper drops `pyflakes` (keeping
`shellcheck`). Together this evicts the 3.13 interpreter and full git's
`git-doc`, measuring **~149 MiB** off the uncompressed closure beyond
the
    bandit/criu cuts.
  - Contract (declared non-contract in
[#1103](#1103), `semver:minor`):
the
image loses `git send-email`/`svn`/`p4`/`gitk`/`git gui` and built-in
`git help <cmd>` man pages, and actionlint's inline-python lint on
workflow
`run:` steps. Builtin-C porcelain (`log`, `commit`, `rebase -i`, `add
-p`,
worktrees) and SSH commit signing are unaffected; `gettext` stays (still
    linked by gitMinimal for i18n).
- Dev-shell behavior is unchanged: `devTools` still ships full `git` and
stock
    `actionlint`; the swaps are scoped to the image only.
- **Replace in-image podman runtime with DooD-only client**
([#1106](#1106))
  - The image now ships a client-only podman: its local-runtime helpers
(`crun`, `criu`, `conmon`, `netavark`, `passt`, `libkrun`/`libkrunfw`,
`aardvark-dns`, `fuse-overlayfs`, `runc`) are `.override`n with an empty
stub, dropping ~67 MiB of uncompressed image closure. The epic's ~254
MiB
estimate assumed removing podman entirely; retaining the client binary
(~54 MiB) and `systemd` (rpath-linked into it; `systemdMinimal` breaks
`podman logs` per the nixpkgs pin) reduces the net saving to ~67 MiB.
- In-container isolated (nested) container execution is removed — the
retired
    podman-in-podman sidecar model, declared non-contract in
    [#1103](#1103).
  - Docker-out-of-Docker against the host's rootless podman socket (the
    consumer scaffold's existing `DOCKER_HOST` wiring) is unchanged.
- The `docker -> podman` shim is retained and now execs the client-only
    podman.
- Dev-shell behavior is unchanged: `devTools` still ships the full
podman
runtime for daemonless `podman run` on a real host; the swap is scoped
to
    the image only.

### Fixed

- **Gate promote on release-PR mergeability before the irreversible
publish** ([#1132](#1132))
  - `promote-release.yml`'s `validate` job verified the release PR was
non-draft, approved, and CI-green but never checked whether it was
actually
*mergeable*. Because the sequence is `validate → promote (undraft,
one-way
under immutable releases) → merge`, a PR that was `BEHIND` `main` (or
`BLOCKED`/`DIRTY`) passed validation, the GitHub Release was published,
and
only then did the merge fail — leaving a half-promoted release whose PR
    never reached `main` and which cannot be re-run to recover.
- The `validate` PR check now fetches `mergeable`/`mergeStateStatus` and
fails fast unless the PR is mergeable, re-querying while GitHub is still
computing the state (`UNKNOWN`). Keeps the invariant: never start the
    irreversible publish unless the merge can succeed.

- **Migrate hand-added root `.gitignore` lines into `.gitignore.project`
on upgrade** ([#1111](#1111))
  - The [#1092](#1092) fix made
`.gitignore.project` the durable home for repo-root ignores, but the
upgrade
that introduces it seeds it empty — so any ignores a consumer had
hand-added
directly to the managed (regenerated) root `.gitignore` (`.DS_Store`,
editor/OS cruft, project paths) were silently dropped when
`render_gitignore`
    rebuilt root `.gitignore` from the template.
- `init-workspace.sh` now snapshots the pre-overwrite root `.gitignore`
and
migrates its consumer-added entries (non-blank, non-comment lines that
are
not provided by the template base, an active language fragment, or the
#1092
seed, and not already present) into `.gitignore.project`, from where
they
    flow back into the regenerated root `.gitignore`. The migration is
append-only and deduplicated, so it never reorders the consumer's
existing
entries and a second upgrade re-adds nothing (idempotent); it prints the
    count and list of migrated lines.

- **Install project deps before building the release artifact**
([#1130](#1130))
- The `Build release artifact` step in `release-core.yml` ran `just
bundle`
without a preceding `just sync`, so a JS-Action consumer's bundler
(`ncc`, a
devDependency) was absent from PATH — the finalization step exited 127
and
the `final` release rolled back. Only surfaced on a real `final` release
(the
step is gated on `release_kind == 'final'` and a detected `bundle`
recipe).
- The step now runs `just sync` (language-neutral: `npm ci` / `uv sync`)
before
`just bundle`, matching every other build job. No-op for consumers
without a
    bundle recipe.

- **Wire `core.hooksPath` for direnv consumers**
([#1112](#1112))
- In direnv / `nix develop` mode the dev-shell never set
`core.hooksPath`, so
commit-time hooks (pre-commit / commit-msg via prek) were silently
inactive
until the consumer set it by hand — a local commit could bypass the gate
with
only CI catching it later. Devcontainer mode already wired it in setup.
- `mkProjectShell`'s shellHook now sets `core.hooksPath` → `.githooks`
on shell
entry, mirroring the devcontainer and reinforcing the `.githooks`
entry-point
    invariant (never installing into `.git/hooks`, never unsetting it).
- Guarded to a scaffold-shaped repo (a `.githooks/` directory at the git
toplevel) and to the main worktree, so it leaves non-scaffold consumers
untouched and never fights the worktree flow (which deliberately unsets
`core.hooksPath` and installs prek hooks directly); idempotent on
re-entry.
- **Post-scaffold dependency sync is mode-aware and no longer aborts a
successful upgrade**
([#1118](#1118))
- In `direnv` and `bare` modes the container-side `just sync` is now
skipped
entirely: the consumer's host nix/direnv shell owns dependency install,
and a
container-side `npm ci`/`uv sync` would write wrong-platform,
wrong-owner
artifacts into the bind-mounted workspace. An informational line notes
the skip.
- In `devcontainer`/`both` modes the sync still runs but is non-fatal —
a failure
(e.g. `npm error Exit handler never called!`) now warns and continues
instead of
aborting init with a misleading "Failed to initialize workspace", since
the
    scaffold itself is already complete.
- **Preserve a flake-hooks `.pre-commit-config.yaml` store symlink on
upgrade** ([#1117](#1117))
- In direnv mode a flake with `hooks = { }` generates
`.pre-commit-config.yaml`
as a symlink into the host `/nix/store`, which is not mounted inside the
image
    where `init-workspace.sh` runs — so the symlink is dangling from the
container's view. The preserve/exclude and report gates tested presence
with
`-e`/`-f`, which follow the link and reported it absent, so `rsync -avL`
    overwrote the symlink with the ~6 KB template config and the
[#1092](#1092) ignore auto-seed
never
fired — leaving a committed, non-ignored template shadowing the
generated
    config (observed on `commit-action` 1.2.0→1.2.1).
- A new `path_present` helper treats a symlink of any kind (including a
dangling
    one) as present at all three gates — the rsync exclude builder, the
add/preserve report classification (`--preview` now lists it as
PRESERVED),
and the `PRECOMMIT_CONFIG_PREEXISTED` divergence guard — so the symlink
    survives untouched and the ignore seed still runs.
- **Preserve tag-scheme keys across `--force` upgrades**
([#1116](#1116))
- `init-workspace.sh` read back `DEVKIT_MODE`/identity/`DEVKIT_MODULES`
before
the managed-template overwrite of `.vig-os`, but not `DEVKIT_TAG_PREFIX`
or
`DEVKIT_FLOATING_TAGS`, so an upgrade silently reset a consumer's
release
tag scheme to the empty template defaults (observed cutting bare tags
and
    stalling floating tags on the commit-action 1.2.0 → 1.2.1 upgrade).
- Both keys are now read before the overwrite and written back (bare,
matching
    the template's unquoted form) when the consumer set them.
- **Post-promote sync-main-to-dev no longer conflicts on the workspace
changelog mirror**
([#1115](#1115))
- The prepare extension's sibling-commit reconcile left the mirror's
merge base
at pre-freeze content, so `assets/workspace/.devcontainer/CHANGELOG.md`
conflicted in the post-promote sync-main-to-dev merge every release
cycle
    ([#1091](#1091),
    [#1114](#1114)).
- The extension now fast-forwards dev to the release branch's
mirror-sync
commit (a non-force app ref update, taken only while dev still sits on
the
freeze commit) so the mirror rewrite is shared ancestry — the same
property
    that keeps the root changelog conflict-free.
- A dev-advanced race (or any ref-update failure) falls back to the
previous
    sibling-commit reconcile, exactly the status quo.

### Security

- **Drop vestigial job-level `GITHUB_TOKEN` write grants from workflow
templates** ([#1136](#1136))
  - An OpenSSF Scorecard TokenPermissions audit traced every job-level
`contents: write` / `actions: write` grant in the rendered release/sync
workflows to the token that performs the write: each git push, tag push,
`gh release`, `gh pr`, `gh api` mutation and `gh workflow run` rides a
COMMIT_APP / RELEASE_APP installation token, not the job's
`GITHUB_TOKEN`.
- Those grants are now reduced to `read` across `prepare-release.yml`
(prepare,
    rollback), `promote-release.yml` (validate, promote, merge, cleanup,
floating-tags), `release.yml` (core + publish caller blocks, rollback),
    `release-core.yml` (finalize), `release-publish.yml` (publish),
`sync-issues.yml` (sync) and `sync-main-to-dev.yml` (sync), shrinking
the
    blast radius of a compromised step to a read-only `GITHUB_TOKEN`.
- `promote-release.yml`'s *Verify draft GitHub Release exists* step now
reads
drafts with the RELEASE_APP token (GitHub only returns drafts to a token
with
push access), so the `validate` job can drop to `contents: read` without
hiding the draft. `sync-issues.yml`'s `sync` job keeps `actions: write`
— its
    cache-deletion step calls `gh api ... -X DELETE` on `github.token`.
- **Retire the perl 5.42.0 CVE exception batch**
([#1108](#1108))
- With perl gone from the image closure (neovim no longer anchors it via
wl-clipboard → xdg-utils), the perl 5.42.0 CVE exceptions in
`.vulnixignore`
are **deleted** rather than maintained: CVE-2026-4176, and the CPANSec
batch
CVE-2026-13221 / CVE-2026-57432 (accepted "pending upstream stable fix"
in

[#1097](https://github.com/vig-os/devkit/issues/1097)/[#1098](https://github.com/vig-os/devkit/issues/1098),
fixed only in the perl 5.43.x development series). Fewer packages, fewer
    exceptions to babysit; the nightly vulnix scan no longer needs them.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant