Skip to content

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

Merged
c-vigo merged 8 commits into
devfrom
chore/sync-main-to-dev-20-1
Jul 15, 2026
Merged

c-vigo merged 8 commits into
devfrom
chore/sync-main-to-dev-20-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-20-1:chore/sync-main-to-dev-20-1
git checkout chore/sync-main-to-dev-20-1
git merge origin/dev
# resolve conflicts
git commit -S
git push origin chore/sync-main-to-dev-20-1

Once pushed, this PR will update and become mergeable.

commit-action-bot Bot and others added 7 commits July 15, 2026 09:00
Regenerate the synced workspace mirror so
assets/workspace/.devcontainer/CHANGELOG.md matches the frozen root
CHANGELOG.md on the release branch.
…doc-comment pin

Cover the #1110 defect: the #1093 skew-warning pin extractor matches the
doc-comment example line (`?ref=<tag>`) that ships in the standard-layout
flake.nix before the real input line, so `head -n1` reports `<tag>` and the
warning false-fires even on an aligned pin. Seed a fixture flake.nix carrying
both the doc-comment example and a real pin.

Refs: #1110
… doc comment

The #1093 skew-warning pin extractor matched the doc-comment example line
(`#   vigos.url = "github:vig-os/devkit?ref=<tag>";`) that ships above the real
input in the standard-layout flake.nix, and `head -n1` picked it — reporting the
literal `<tag>` and false-firing even when the consumer's pin already matched
the target, violating the feature's "matching pin stays silent" contract.

Anchor the grep on `^[[:space:]]*vigos.url` so only the real (non-comment) input
line is read. Found during 1.2.1-rc1 verification on commit-action.

Refs: #1110
… doc comment (#1113)

## rc1 finding

Found during **1.2.1-rc1 verification** on the `commit-action` consumer:
the #1093 flake-pin / `DEVKIT_VERSION` skew warning (new in 1.2.1) read
the pinned `vigos` ref from the wrong line of the consumer `flake.nix`.

The standard-layout `flake.nix` ships a doc-comment example line
(`# vigos.url = "github:vig-os/devkit?ref=<tag>";`) above the real input
line. The unanchored extractor matched the comment first, and `head -n1`
picked it. Consequences:

- (a) the warning always reported the current pin as the literal `<tag>`
instead of the real value;
- (b) because `<tag>` never equals a real `DEVKIT_VERSION`, the warning
**false-fired even when the consumer's pin already matched the target**
— violating the changelog contract "a floating (unpinned) input or a
matching pin stays silent". It never wrongly stays silent, so severity
is quality/noise, but it defeats the feature's contract.

## Fix

Anchor the grep on `^[[:space:]]*vigos\.url` so only the real
(non-comment) input line is read (the doc-comment starts with `#`, so
the anchor skips it). One-line change in `assets/init-workspace.sh`.

## Test evidence (TDD)

New fixture flake.nix carries BOTH the `?ref=<tag>` doc-comment and a
real pin, mirroring the shipped template:

- Failing (before fix): both #1110 tests red — `pinned vigos flake input
is still <tag>` reported; aligned-pin case false-fired.
- Passing (after fix): all 5 tests green (3 existing #1093 + 2 new
#1110), real pin `1.1.0` reported, aligned pin `1.2.0` stays silent.

## Changelog

Amends the frozen `## [1.2.1] - TBD` #1093 entry with a sub-bullet
noting the pin is now read from the real input line, not the doc
comment.

## Issue closure

`Refs: #1110`. `Closes #` only auto-fires on default-branch (main)
merges here, so **#1110 will be closed manually after rc2
verification**.

Refs: #1110
Set release date to 2026-07-15 and regenerate release docs.

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

This PR prepares release 1.2.1 for merge to main.

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

### Added

- **Durable committed home for repo-root ignores
(`.gitignore.project`)**
([#1092](#1092))
- New preserved, consumer-owned `.gitignore.project` (mirroring
`justfile.project`): the only committed place git honors for repo-ROOT
ignores, since git reads root ignores solely from the managed root
`.gitignore` that devkit regenerates on every upgrade.
`init-workspace.sh` appends its contents to the regenerated `.gitignore`
after the per-language fragments, so root-level consumer ignores survive
every upgrade. The base `.gitignore` header and the `flake.nix` opt-in
note now point here instead of advising an edit the upgrade destroys.
- **Warn on flake pin / `DEVKIT_VERSION` skew**
([#1093](#1093))
- A `--force` direnv/both upgrade that advances the scaffold now warns
when the
consumer's pinned `vigos` flake `ref` lags the `DEVKIT_VERSION` being
written — the two ship coupled halves of the same change (e.g. #1053's
JSONC
banner + its `check-json` exclude) and must move together, else strict
hooks
    reject files the new scaffold wrote.
- Non-fatal; a floating (unpinned) input or a matching pin stays silent.
- The pinned ref is read from the real `vigos.url` input line only, not
the
`?ref=<tag>` doc-comment example that ships above it in the
standard-layout
`flake.nix`; previously the extractor matched the comment first,
reported the
literal `<tag>`, and false-fired even on an aligned pin
([#1110](#1110)).

### Fixed

- **Managed `.gitignore` rewrite no longer drops consumer-required
ignores** ([#1092](#1092))
- When the flake-hooks opt-in installs `.pre-commit-config.yaml` as a
`/nix/store` symlink, the ignore for it is now seeded automatically on
every (re)scaffold — gated strictly on the store-symlink condition, so a
hand-managed consumer that commits a real `.pre-commit-config.yaml` file
is never affected.
- The Node fragment now ignores the `tsc`/`ncc` declaration byproducts
under `dist/src/` (`.d.ts` / `.d.ts.map` files embed absolute `file://`
paths regenerated per checkout) while keeping the committed bundle
`dist/index.js` and `dist/package.json` tracked — no blanket `dist/`
ignore.
- **Preserve customized lint configs `.pymarkdown` / `.yamllint` on
upgrade** ([#1099](#1099))
- Promoted the markdown-lint config `.pymarkdown` (the JSON pymarkdown
reads),
the `.yamllint` config, and the `.pymarkdown.config.md` doc companion to
`PRESERVE_FILES`, so repo-specific `ignore:` globs and rule disables
survive
`install.sh --force` instead of being silently overwritten (same class
as
    `.pre-commit-config.yaml` #878 and `.typos.toml` #913).
- The upgrade now prints a template diff against each preserved file so
    lint-rule evolution stays visible. The comment-capable `.yamllint` /
`.pymarkdown.config.md` templates render the preserved provenance
banner;
`.pymarkdown` is strict JSON and stays un-bannered, like
`renovate.json`.
- **Candidate releases no longer fail the draft/approval gate**
([#1095](#1095))
- The scaffolded `release-core.yml` "Find and verify PR" step applied
the draft + approval gate to every release kind, so a
`release_kind=candidate` dispatch failed against a still-draft PR
(`ERROR: PR #N is still in draft`). This was template drift: the #902
fix landed in devkit's own `release.yml` but was never mirrored into the
scaffolded template consumers receive. The draft + approval checks are
now guarded behind `release_kind=final`; candidates gate on CI only,
consistent with `RELEASE_CYCLE.md`.
@c-vigo
c-vigo merged commit fce84de into dev Jul 15, 2026
13 checks passed
@c-vigo
c-vigo deleted the chore/sync-main-to-dev-20-1 branch July 15, 2026 12:19
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