Repository navigation
chore: release 1.2.1 - #1109
Merged
Merged
chore: release 1.2.1#1109
Conversation
The changelog freeze commits only the root CHANGELOG.md (scaffold- verbatim); regenerate assets/workspace/.devcontainer/CHANGELOG.md on dev so the sync-manifest hook stays green during the release window.
Automated sync of `main` to `dev` found **merge conflicts** that require manual resolution. ### How to resolve ```bash 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.
The scaffolded release-core.yml "Find and verify PR" step applied the draft + approval gate to every release kind, so a candidate dispatch failed against a still-draft PR. Mirror the #902 guard already present in devkit's own release.yml: wrap the draft and approval checks in release_kind=final, keep the CI-failure check unconditional, and add RELEASE_KIND to the step env. Candidates now gate on CI only. Refs: #1095
Add a time-boxed .vulnixignore block for CVE-2026-13221 (9.1) and CVE-2026-57432 (8.4) in perl 5.42.0, the two new HIGH/CRITICAL findings that failed the nightly vulnix gate (run 29396607272). Both fixes exist only in the perl 5.43.x dev series (fixed in 5.43.10); stable perl is 5.42.0 in the pinned rev, nixos-26.05, and Debian stable, so there is no rev to advance to yet. perl is in-closure via git's perl-based subcommands and processes developer/CI-chosen inputs only. Short expiry (2026-08-14) forces re-review once a patched perl reaches the channel. Refs: #1094
…1097) ## Description The scaffolded release template `assets/workspace/.github/workflows/release-core.yml` applied the **draft + approval gate to every release kind**, so a `release_kind=candidate` dispatch failed against a still-draft PR with `ERROR: PR #N is still in draft`. This blocked a real consumer (`vig-os/commit-action`'s 0.3.0 candidate — [run 29396249943](https://github.com/vig-os/commit-action/actions/runs/29396249943/job/87290340861)). Root cause is **template drift**: #902's fix (gate RC dispatch on CI only) landed in devkit's *own* `.github/workflows/release.yml` but was never mirrored into the scaffolded `release-core.yml` that consumers receive. Devkit dogfoods the fixed copy, so the regression went unnoticed until a downstream repo ran a candidate. Closes #1095. ## Type of Change - [x] `fix` -- Bug fix ## Changes Made - Wrapped the draft (`isDraft`) and approval (`reviewDecision` + #438 bot-approval fallback) checks in the "Find and verify PR" step behind `if [ "$RELEASE_KIND" = "final" ]`, with an `else` branch that logs the deferral — a verbatim port of the guard already in `release.yml:354-380`. - Added `RELEASE_KIND: ${{ steps.vars.outputs.release_kind }}` to the step env. - Left the `CI_FAILED` check unconditional: candidates still gate on CI. - Scope kept minimal — did **not** port `release.yml`'s additional `CI_PENDING`/`CI_SUCCESS` checks (separate divergence, out of scope for this bug). ## Changelog Entry ### Fixed - **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`. ## Testing - [x] Tests pass locally (`prek run --all-files` — fully green) - [x] Manual testing performed (describe below) ### Manual Testing Details - Validated YAML (`yaml.safe_load`). - Full hook suite (`prek run --all-files`) green: actionlint, yamllint, check-yaml, sync-manifest, agent-identity, commit-msg. - The ported logic is byte-equivalent to the guard already running in devkit's own `release.yml`, which has executed successfully across 1.1.0 and 1.2.0 candidate + final releases. ## Checklist - [x] My code follows the project's style guidelines - [x] I have performed a self-review of my code - [x] I have updated `CHANGELOG.md` in the `[Unreleased]` section (and pasted the entry above) - [x] My changes generate no new warnings or errors - [x] New and existing unit tests pass locally with my changes
…ix (#1098) ## Summary The nightly vulnix gate ([run 29396607272](https://github.com/vig-os/devkit/actions/runs/29396607272)) went red on two **new** HIGH/CRITICAL findings in `perl 5.42.0`. Running the real `vulnix-gate` against the run's `vulnix-findings.json` with the live register confirmed these are the **only** blocking findings — every other reported CVE (curl, gawk, openssh, glibc, openssl, …) is still masked by a non-expired exception. | CVE | CVSS | Description | |-----|------|-------------| | CVE-2026-13221 | 9.1 | 16-bit trie-delta overflow in `Perl_study_chunk`; regex alternations of >65535 fixed branches silently miscompile (false pos/neg matches). Correctness bug; needs a pathological developer-authored pattern. | | CVE-2026-57432 | 8.4 | Integer overflow in `S_measure_struct` → OOB heap read in `pack`/`unpack` when the template derives from untrusted input (info disclosure). | ## Remediation Both fixes exist **only in the perl 5.43.x development series** (fixed in 5.43.10). Stable perl is 5.42.0 in the pinned rev, `nixos-26.05`, **and** Debian stable — all unpatched, no backport — so the "advance the rev" lever has nowhere to land today. `perl` is in-closure via git's perl-based subcommands (send-email/instaweb), same provenance as the existing CVE-2026-4176 entry, and processes developer/CI-chosen inputs only (no untrusted-input path in the single-user dev model). This PR adds a **time-boxed `.vulnixignore` exception** (`Expiration: 2026-08-14`) with a verified rationale, mirroring the #1071/#1072 gawk triage. Flip to a nixpkgs rev-advance once a patched perl reaches the pinned channel. ## Verification - `vulnix-gate` against the run's artifact with the edited register: **0 blocking findings** (was 2). - `check-expirations`: all 60 exceptions validated. - `just precommit` (full suite, `--all-files`): green. Closes #1094
Add bats cases for the consumer-owned durable root-ignore file: .gitignore.project preserved on upgrade and appended to the regenerated .gitignore; the node fragment ignoring dist/src/ byproducts while keeping dist/index.js tracked; and the flake-hooks store-symlink seeding the .pre-commit-config.yaml ignore while a real committed file is not. Refs: #1092
Promote both lint configs to PRESERVE_FILES so consumer rule exceptions survive install.sh --force, mirroring the .typos.toml (#913) promotion: capture *_PREEXISTED and print the template diff on upgrade. The banner transform derives the variant from PRESERVE_FILES, so both templates now render the preserved banner. Refs: #1099
During a --force direnv/both upgrade, compare the pinned `vigos` flake ref in the consumer's flake.nix against the DEVKIT_VERSION being written. When a pin exists and differs, print a non-fatal warning: the scaffold and the flake input ship coupled halves of the same change (e.g. #1053's JSONC banner + its check-json exclude), so update `vigos.url` to the target ref and run `nix flake update vigos`. A floating (unpinned) input or a matching pin stays silent. flake.nix is a PRESERVE_FILE, so we warn rather than rewrite it. Refs: #1093
Add .gitignore.project, a preserved consumer-owned file (mirroring justfile.project) whose contents render_gitignore appends to the regenerated root .gitignore after the per-language fragments — the only committed home git honors for repo-ROOT ignores, which the managed .gitignore otherwise drops on every upgrade. Also seed the .pre-commit-config.yaml ignore automatically when the flake-hooks opt-in installs it as a /nix/store symlink (gated strictly on the store-symlink condition, never for a hand-managed real file), and add a dist/src/ ignore to the node fragment for the tsc/ncc declaration byproducts while keeping the committed dist/index.js bundle tracked. The base .gitignore header and the flake.nix opt-in note now point at .gitignore.project instead of instructing an edit the upgrade destroys. .gitignore.project is banner-skip-listed since its contents are appended into the managed .gitignore. Refs: #1092
.pymarkdown is the strict-JSON config pymarkdown actually reads (md0xx rule settings) — the file a consumer really customizes. Promote it to PRESERVE_FILES with a *_PREEXISTED capture and template-diff guard, like .yamllint. Being comment-less JSON it stays banner-skipped, exactly like renovate.json. Refs: #1099
Closes #1092. Part of #1096. ## Problem The managed root `.gitignore` is fully overwritten on every `install.sh --force`, and there was no committed place a consumer could put repo-**root** ignores that survives — git only honors a root ignore from the root `.gitignore`, which devkit regenerates. The file's own advice ("put repo-specific ignores in a committed file your team owns") had no valid form for root paths, and `flake.nix` even *instructed* an edit to the managed `.gitignore` that the next upgrade destroyed. ## Change - **New preserved `.gitignore.project`** (mirrors `justfile.project`): the durable, consumer-owned home for repo-root ignores. `render_gitignore()` appends its contents to the regenerated `.gitignore` after the per-language fragments, so they survive every upgrade. Added to `PRESERVE_FILES` and to `_BANNER_SKIP` (its content is inlined into the managed file, so it carries a hand-written header, not a preserved banner). - **Auto-seed** the `.pre-commit-config.yaml` ignore when the flake-hooks opt-in makes it a `/nix/store` symlink — gated strictly on the store-symlink condition, so a hand-managed committed file is never ignored. - **Node byproducts**: `dist/src/` (`.d.ts`/`.d.ts.map`) is ignored while the committed bundle `dist/index.js`/`dist/package.json` stays tracked — no blanket `dist/`. - **`flake.nix:68`** no longer tells the opt-in consumer to edit the managed `.gitignore`; it points at the auto-seed / `.gitignore.project`. ## Tests / verification 7 new bats cases in `tests/bats/init-workspace.bats` (preserve, append, dist/src, store-symlink seed vs real-file no-seed). Full `prek run --all-files` green locally; `init-workspace.bats` 184 ok / 0 fail. ## Merge note Cut from and re-merged onto `dev` (includes the `chore: merge dev` commit; conflict-free). Siblings #1093 and #1099 also touch `CHANGELOG.md` — whichever merges second/third will need a one-click "Update branch" (trivial changelog union).
Closes #1093. Part of #1096. ## Problem For direnv/flake consumers, two coupled halves of a change ship from different version vehicles: the **scaffold** (`.vig-os` `DEVKIT_VERSION`) writes files, while the pinned **`vigos` flake input** delivers the hook behavior in `nix/hooks.nix` that acts on them (e.g. the #1053 `check-json` exclude paired with a scaffold-written JSONC banner). A consumer who bumps only the scaffold but leaves the pinned flake `ref` behind gets, e.g., the banner without its exclude → every commit fails, with nothing warning about the skew. ## Change (warn-only — no auto-edit of the preserved `flake.nix`) - `install.sh --force` now **detects and warns** when the pinned `vigos.url = "…?ref=<X>"` in `flake.nix` differs from the target `DEVKIT_VERSION`, telling the user to update the pin and run `nix flake update vigos`. Gated on force + direnv/both + a pin that exists and differs; a **floating** (unpinned) input and a **matching** pin are both silent. Non-fatal. - **`docs/MIGRATION.md`**: new subsection documenting the lockstep invariant (why the two must move together, and how). ## Tests / verification 3 new bats cases (skew warns; match silent; floating silent) — RED before, GREEN after. Handles the `set -euo pipefail` grep-exit-1 trap. Full `prek run --all-files` green locally. ## Merge note Re-merged onto `dev` (conflict-free; its changelog `Added` entry auto-merged). Siblings #1092 and #1099 also touch `CHANGELOG.md` — a later merge may need "Update branch".
…ade (#1102) Closes #1099. Part of #1096. ## Problem `.pymarkdown` (the JSON config pymarkdown reads), `.yamllint`, and the `.pymarkdown.config.md` doc were fully-managed and overwritten on every `install.sh --force`, silently destroying repo-specific `ignore:` globs and rule disables — the exact defect fixed for `.pre-commit-config.yaml` (#878) and `.typos.toml` (#913) by promoting them to `PRESERVE_FILES`. That reasoning was never applied here. ## Change - Promote **`.pymarkdown`**, **`.yamllint`**, and **`.pymarkdown.config.md`** to `PRESERVE_FILES`, mirroring the `.typos.toml` (#913) change set: `*_PREEXISTED` captures + `print_preserved_template_diff` so template evolution stays visible. - `.yamllint` / `.pymarkdown.config.md` (comment-capable) render the **preserved** banner; `.pymarkdown` is strict JSON and stays un-bannered in `_BANNER_SKIP`, exactly like the already-preserved `renovate.json`. > Scope note: the original issue named only `.pymarkdown.config.md` (it carried the managed banner); the actual config a consumer customizes is `.pymarkdown` (comment-less JSON, banner-skip-listed, missed by a banner-keyed grep). Corrected to preserve the real config plus its doc companion. ## Tests / verification 6 new bats cases (preserve + customized-survives + diff-hint for `.pymarkdown` and `.yamllint`) + `test_transforms.py` `PRESERVE_FILES` membership and preserved-banner coverage. `init-workspace.bats` 186 ok / 0 fail; `test_transforms.py` 37 passed; full `prek run --all-files` green locally. ## Merge note Re-merged onto `dev` (changelog union resolved). Siblings #1092 and #1093 also touch `CHANGELOG.md` — a later merge may need "Update branch".
Move Unreleased content to [1.2.1] - TBD and create fresh empty Unreleased section for continued development.
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
c-vigo
marked this pull request as ready for review
July 15, 2026 11:00
Set release date to 2026-07-15 and regenerate release docs. Refs: #1109
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Release 1.2.1 - 2026-07-15
This PR prepares release 1.2.1 for merge to main.
1.2.1 - 2026-07-15
Added
.gitignore.project) (#1092).gitignore.project(mirroringjustfile.project): the only committed place git honors for repo-ROOT ignores, since git reads root ignores solely from the managed root.gitignorethat devkit regenerates on every upgrade.init-workspace.shappends its contents to the regenerated.gitignoreafter the per-language fragments, so root-level consumer ignores survive every upgrade. The base.gitignoreheader and theflake.nixopt-in note now point here instead of advising an edit the upgrade destroys.DEVKIT_VERSIONskew (#1093)--forcedirenv/both upgrade that advances the scaffold now warns when theconsumer's pinned
vigosflakereflags theDEVKIT_VERSIONbeingwritten — the two ship coupled halves of the same change (e.g. feature(workspace): extend provenance banners to JSONC files (check-json exclude) #1053's JSONC
banner + its
check-jsonexclude) and must move together, else strict hooksreject files the new scaffold wrote.
vigos.urlinput line only, not the?ref=<tag>doc-comment example that ships above it in the standard-layoutflake.nix; previously the extractor matched the comment first, reported theliteral
<tag>, and false-fired even on an aligned pin (#1110).Fixed
.gitignorerewrite no longer drops consumer-required ignores (#1092).pre-commit-config.yamlas a/nix/storesymlink, 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.yamlfile is never affected.tsc/nccdeclaration byproducts underdist/src/(.d.ts/.d.ts.mapfiles embed absolutefile://paths regenerated per checkout) while keeping the committed bundledist/index.jsanddist/package.jsontracked — no blanketdist/ignore..pymarkdown/.yamllinton upgrade (#1099).pymarkdown(the JSON pymarkdown reads),the
.yamllintconfig, and the.pymarkdown.config.mddoc companion toPRESERVE_FILES, so repo-specificignore:globs and rule disables surviveinstall.sh --forceinstead of being silently overwritten (same class as.pre-commit-config.yamlfix(workspace): scaffold upgrade replaces .pre-commit-config.yaml, silently clobbering repo-specific hook config #878 and.typos.tomlfix(workspace): scaffold upgrade clobbers a customized .typos.toml (dual-config corruption) #913).lint-rule evolution stays visible. The comment-capable
.yamllint/.pymarkdown.config.mdtemplates render the preserved provenance banner;.pymarkdownis strict JSON and stays un-bannered, likerenovate.json.release-core.yml"Find and verify PR" step applied the draft + approval gate to every release kind, so arelease_kind=candidatedispatch failed against a still-draft PR (ERROR: PR #N is still in draft). This was template drift: the feat(ci): gate RC dispatch on CI only — move approval + ready-for-review to the final release #902 fix landed in devkit's ownrelease.ymlbut was never mirrored into the scaffolded template consumers receive. The draft + approval checks are now guarded behindrelease_kind=final; candidates gate on CI only, consistent withRELEASE_CYCLE.md.