Repository navigation
chore: release 1.2.0 - #1068
Merged
Merged
chore: release 1.2.0#1068
Conversation
Syncs `dev` with `main` (sync-main-to-dev workflow).
The five-scope pin (agent,ci,setup,image,vigutils) rejected 594 of the 1206 scoped commits in history (~49%), and contradicted docs/COMMIT_MESSAGE_STANDARD.md, which defines a scope as free-form "alphanumeric and hyphens only". The validator's subject regex already enforces that charset, so type, Refs and the agent blocklist stay enforced while the scope vocabulary is no longer pinned. Refs: #1019
Pins the two exemptions that make CI enforcement safe to enable: merge commits (their subject is the PR title) and bot-authored commits, which carry no Refs line and would otherwise redden every dependency PR. Refs: #1019
Validates every commit a PR carries plus its title, so commit-message enforcement no longer depends on a healthy local core.hooksPath. Merge commits are skipped (their subject is the PR title, checked via --title) and bot-authored commits are exempt: 18 of the 94 bot commits in a recent 150-commit window carry no Refs line, so the human rule would fail every dependency PR. Refs: #1019
prek run --all-files never runs commit-msg-stage hooks, so CI never checked commit messages despite the standard claiming it did. The new lane walks the PR's own commits from the merge-base and validates the PR title, which becomes the merge commit's subject under --no-ff. Refs: #1019
Scaffolded repos shipped a .githooks/commit-msg shim and a COMMIT_MESSAGE_STANDARD.md, but their rendered pre-commit config had no commit-msg stage hooks at all, so the shim was a no-op and the documented standard was unenforceable. Scaffold validate-commit-msg together with prepare-commit-msg-strip-trailers (which strips agent trailers before the validator's blocklist gate sees them) and mirror the CI lane. Refs: #1019
The standard claimed CI rejected non-compliant messages (it did not) and that Dependabot's Refs exemption was enforced automatically (there was no author-based exemption at all). Document the real rules: free-form scopes, the bot/merge-commit exemptions, and the local-hook vs commit-checks split. Refs: #1019
## Description Closes the stale commit-scope allowlist from #1019 — and the two deeper defects behind it. The scope list was a *symptom*. The root cause is that **both enforcement paths were dead**, so the config was free to rot for hundreds of commits: 1. **The scope allowlist was stale** — the five-scope pin (`agent,ci,setup,image,vigutils`) rejected **594 of the 1206 scoped commits in history (~49%)**, and contradicted `docs/COMMIT_MESSAGE_STANDARD.md`, which already defines a scope as free-form *"alphanumeric and hyphens only"*. 2. **CI never validated commit messages.** `validate-commit-msg` is a `commit-msg`-stage hook, and `prek run --all-files` (the `project-checks` lane) does not run stage-gated hooks. The docs claimed CI enforcement in three places; it never happened. 3. **Scaffolded repos had no commit validation at all.** They shipped a `.githooks/commit-msg` shim and a `COMMIT_MESSAGE_STANDARD.md`, but their rendered pre-commit config had **zero** `commit-msg`-stage hooks — so the shim was a no-op in every consumer repo. ###⚠️ The blocker that was not in the issue Turning CI enforcement on as-configured would have **failed every Renovate/Dependabot PR**. Those bots emit `build(pip): lock file maintenance` and `ci(actions): update …` with **no `Refs:` line**, and `--refs-optional-types` only covers `chore`. Measured on a recent 150-commit window: **18 of the 94 bot commits would have failed.** The docs claimed *"the commit-msg hook and CI validator enforce these exemptions automatically"* — there was no author-based exemption in the validator at all. This PR adds one, keyed on the `[bot]` author suffix, and pins it with tests. The same message from a human is still rejected. ## Type of Change - [x] `feat` -- New feature - [x] `fix` -- Bug fix - [x] `ci` -- CI/CD pipeline changes - [x] `docs` -- Documentation only ## Changes Made **Scope vocabulary is now free-form.** Dropped `--scopes` from `nix/hooks.nix` (the SSoT — both `.pre-commit-config.yaml` renders derive from it). This required **zero validator code**: with `--scopes` omitted, scope enforcement is off while the subject regex still enforces `[a-zA-Z0-9-]+` — precisely the documented rule. Type, `Refs:`, and the agent blocklist remain enforced. `gh_issues` (underscore) is still rejected. **New `validate-commit-range` entry point** (`packages/vig-utils/`, 33 tests). Reuses the existing `validate_commit_message()`; walks a git range, skips merge commits and bot-authored commits, and validates a PR title. Putting the logic in Python rather than a shell loop in YAML is what makes it unit-testable and reusable by the scaffolded consumer CI. **New `commit-checks` CI job** in devkit's *and* the scaffold's `ci.yml`. It validates every commit the PR adds (from the merge-base with the base branch — not `base.sha`, which would drag already-landed commits into the range if the branch merged `dev` back in) plus the **PR title**, which becomes the merge commit's subject under `--no-ff`. The PR title is passed via `env:`, never interpolated into the `run:` block. **Scaffold gap closed.** `validate-commit-msg` and `prepare-commit-msg-strip-trailers` now reach the consumer render. They ship together on purpose: the prepare hook strips agent trailers *before* the validator's blocklist gate sees them, so an agent-authored commit is repaired rather than hard-rejected in a consumer repo. **Docs corrected** to describe what is actually enforced: free-form scopes, the bot/merge-commit exemptions, and the local-hook vs `commit-checks` split. Not in scope, per the issue: **existing history is not rewritten.** ## Changelog Entry ### Added - **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. ### Changed - **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. ## Testing - [x] Tests pass locally — `pytest packages/vig-utils/tests tests/test_flake_hooks.py` → **565 passed** - [x] Full hook suite green — `prek run --all-files` → all hooks passed - [x] Manual testing performed (below) > Note: I ran the pytest suites above and the full pre-commit suite, but not the complete `just test` target (bats/integration included). CI covers those. ### Manual Testing Details **Dogfooded the new CI lane against this very branch** (the exact `commit-checks` logic, from a fresh `nix develop`): ``` Validating 973f436..5a8c9e9 (base: dev) commit-checks would PASS (exit=0) ``` **The gate is not vacuously passing.** Run against a real 150-commit slice of `dev`, it found three genuine violations: ``` Commit b91d782: 'perf(image): bake placeholder manifest into the Nix image' Unknown commit type 'perf'. Commit f566fff: 'fix(devshell): isolate neovim from host ~/.config/nvim' Missing mandatory 'Refs: <IDs>' line. Commit 08adf1f: 'docs(changelog): consolidate renovate dependency updates …' Missing blank line and 'Refs: <IDs>' after the subject line. ``` **The bot exemption is load-bearing** — same range, bypassing the exemption: ``` non-merge bot commits: 94 would FAIL without the exemption: 18 renovate[bot] build(pip): lock file maintenance renovate[bot] ci(actions): update cachix/install-nix-action action to v31.10.7 … ``` **Scope behaviour** — previously-rejected real scopes now pass; malformed ones still fail: | message | before | after | |---|---|---| | `fix(workspace): point scaffolded flake stub …` | rejected | **passes** | | `chore(nix): bump nixpkgs-unstable` | rejected | **passes** | | `fix(gh_issues): …` (underscore) | rejected | rejected | | `wibble(ci): …` (unknown type) | rejected | rejected | | `feat(ci): …` (no `Refs:`) | rejected | rejected | **Scaffold shim is no longer a no-op** — `commit-msg`-stage hooks in the consumer render: **0 → 2**. ## Checklist - [x] My code follows the project's style guidelines - [x] I have performed a self-review of my code - [x] I have commented my code, particularly in hard-to-understand areas - [x] I have updated the documentation accordingly - [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] I have added tests that prove my fix is effective - [x] New and existing unit tests pass locally with my changes - [x] Any dependent changes have been merged and published ## Additional Notes Two follow-ups surfaced while doing this, deliberately **not** bundled here: 1. **`perf` is not an approved commit type**, but `perf(image): …` exists in history — so the *type* vocabulary has drifted too, not just scopes. Harmless today (CI only validates a PR's own commits), but it deserves a decision: add `perf`, or leave it rejected. 2. **`check-agent-identity` is still not scaffolded** (#163). It guards the git *author/committer*, a distinct concern from message validation, so scaffolding it would have been scope creep. Worth its own issue if consumers should have it. This PR is itself the first change to pass through the new gate. Refs: #1019
Add `scaffold = true` to the check-agent-identity hook definition in nix/hooks.nix (the SSoT) and re-render assets/workspace/.pre-commit-config.yaml, so consumer repos guard the commit author/committer, not only the message. The blocklist it reads is already manifest-synced into the scaffold. Refs: #1031
Rename the Python-shaped sync/test labels and add an opt-in artifact build to release-core finalize: detect a `bundle` just recipe via `just --summary`, run `just bundle`, and commit dist/ in the finalization commit. Gated on the recipe existing, so it is a no-op for non-artifact (e.g. Python) consumers. Refs: #1029
Node consumers must get node_modules/, *.tsbuildinfo, coverage/, .nyc_output/ and never a blanket dist/ ignore (JS Actions commit dist/index.js); Python keeps its ignore set; a marker-less repo gets a language-neutral base only. Refs: #1024
Add `perf` (a standard Conventional Commits type, already used once in history) to the approved-type allowlist: the SSoT in nix/hooks.nix (both rendered .pre-commit-config.yaml files), DEFAULT_APPROVED_TYPES which CI's validate-commit-range uses by default, the type table in docs/COMMIT_MESSAGE_STANDARD.md, and the repo CLAUDE.md summary. Refs: #1030
The managed .gitignore shipped the stock Python github/gitignore template, which blanket-ignored dist/ (silently dropping a JS Action's committed dist/index.js) and carried no Node ignores, and — being overwritten on upgrade — no per-repo hand-fix survived. init-workspace.sh now detects the consumer language from marker files (pyproject.toml -> python, package.json -> node, Cargo.toml -> rust) and assembles the language-neutral base (assets/workspace/.gitignore) plus the matching fragment (assets/gitignore.d/<lang>.gitignore) on every (re)scaffold, so the correct ignore set is upgrade-persistent. Fragments live beside init-workspace.sh in the image, never under the template, so they never leak into the consumer tree. Refs: #1024
The scaffold codeql.yml matrix was hardcoded to ['python', 'actions'], which fails the python leg on a repo with no Python. Assert the matrix is rendered per detected language (python -> python, node -> javascript-typescript, rust -> omitted, always actions) and that the workflow documents the conflict with GitHub's default code-scanning setup. Refs: #1025
The managed .github/workflows/codeql.yml hardcoded the matrix to ['python', 'actions']; on a repo with no Python the python leg failed (no source code seen), and — being overwritten on upgrade — a per-repo fix did not survive. init-workspace.sh now rewrites the matrix from the same marker-file language detection as the .gitignore (#1024): python -> 'python', node -> 'javascript-typescript', rust omits its leg (no first-class CodeQL Rust analyzer); 'actions' is always analyzed. The scaffolded codeql.yml and an install-time note document that this advanced config conflicts with GitHub's default code-scanning setup, which must be disabled; the installer never flips the code-scanning API setting. Refs: #1025
…type (#1032) ## Summary Bundles two small hook-SSoT chores that touch the same files (`nix/hooks.nix` + rendered `.pre-commit-config.yaml`), sharing one CI run. ### #1031 — scaffold the `check-agent-identity` hook - `scaffold = true;` on the hook in `nix/hooks.nix`; re-rendered `assets/workspace/.pre-commit-config.yaml`. - Closes the #163 pipeline gap: consumers now guard the commit **author/committer**, not only the message. The blocklist the hook reads (`.github/agent-blocklist.toml`) was already manifest-synced — verified. - Being pre-commit-stage, it is also enforced by `prek run --all-files` in the scaffold's lint job. ### #1030 — `perf` is now an approved commit type (Option A) - Added to the SSoT `--types` list in `nix/hooks.nix` (both renders), `DEFAULT_APPROVED_TYPES` in `vig-utils` (the effective CI allowlist — `validate-commit-range` runs with no `--types` override), the type table in `docs/COMMIT_MESSAGE_STANDARD.md` (both copies), and the `CLAUDE.md` summary line. - Option A per the issue's own suggestion: standard Conventional Commits type, already reached for naturally once in history. TDD: each change lands as failing-test commit → implementation commit. ### Out of scope (deliberate) `check-pr-agent-fingerprints` remains dead code. Note for the follow-up decision on #1031: after #1026 the PR **title** is already guarded by `validate-commit-range --title`; the entry point's only unique coverage is the PR **body**. Recommend wiring it into `commit-checks` as a cheap defense-in-depth step, or dropping it — either resolves the documented-but-uncalled-guard shape. ## Test evidence - `uv run pytest tests/test_flake_hooks.py` → 17 passed (includes both drift gates) - `uv run pytest packages/vig-utils/tests/test_validate_commit_msg.py tests/test_flake_hooks.py` → 128 passed - `prek run --all-files` → green (re-verified independently before push) Closes #1031 Closes #1030 Refs: #163, #1019, #1026
Pin the invariant that both sync-main-to-dev workflows check out the triggering main SHA (default ref) rather than a pinned ref: dev, since the sync job runs a local composite action that only exists on the newer tree. Fails until ref: dev is dropped. Refs: #1034
The sync job in both sync-main-to-dev workflows checked out ref: dev and then invoked a local composite action (uses: ./.github/actions/...), 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 — a bootstrap deadlock, since the only PR that would carry the action onto dev was the very sync PR the job could no longer open. Check out the default ref (the triggering main SHA) instead, where the local action is guaranteed to exist, and rename the step accordingly. Every downstream step already operates on origin/main, origin/dev or the gh API, so behavior is otherwise unchanged. Refs: #1034
…ix (#1035) ## Summary Bundles the two "managed scaffold static is Python-hardcoded" bugs from the commit-action pilot — both are fixed by one shared language-detection mechanism, so they share a PR and a CI run. ### Shared mechanism `init-workspace.sh` populates a `DETECTED_LANGUAGES` array from consumer marker files (`pyproject.toml` → python, `package.json` → node, `Cargo.toml` → rust) before the template copy, and renders the managed statics from it after the copy. Detection re-runs on every (re)scaffold, so the result is **upgrade-persistent** — the core failure both issues reported. ### #1024 — language-aware `.gitignore` - `assets/workspace/.gitignore` is now a language-neutral base; per-language fragments live in `assets/gitignore.d/` (image-level, beside the installer — never shipped into the consumer tree) and are appended at install time. - Node consumers get `node_modules/`, `*.tsbuildinfo`, `coverage/`, `.nyc_output/` and **no blanket `dist/`** (JS Actions commit `dist/index.js`); `dist/` moves into the Python fragment. - Chosen over a preserved `.gitignore.project` companion because base+fragment re-assembly auto-tracks devkit ignore evolution across upgrades. ### #1025 — language-aware CodeQL matrix + default-setup conflict - The installer rewrites the `language:` matrix line per detected language (python → `python`, node → `javascript-typescript`, rust → omitted pending CodeQL support; `actions` always analyzed, so the matrix is never empty). The committed template stays `['python', 'actions']` — correct for the devkit itself and SSoT-synced from the root workflow. - The advanced-config vs GitHub default code-scanning setup conflict is documented in the workflow header (both copies) **and** printed as an install-time note. The installer never flips the repo's code-scanning API setting. TDD: each fix lands as failing-test commit → implementation commit (7 new end-to-end bats tests). ## Test evidence - `bats tests/bats/init-workspace.bats` → 166 ok / 0 failed (3 new for #1024, 4 for #1025, no regressions) - `uv run pytest tests/test_transforms.py` → 6 passed - `prek run --all-files` → green (re-verified independently before push) Closes #1024 Closes #1025 Refs: #1027
This was referenced Jul 14, 2026
…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
This was referenced Jul 14, 2026
… 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
…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
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.0 - 2026-07-14
This PR prepares release 1.2.0 for merge to main.
1.2.0 - 2026-07-14
Added
prepare-release-extension.yml) (#1059)on: workflow_call, default no-op) — the mutating counterpart torelease-extension.yml.prepare-release.ymlcalls it after therelease/X.Y.Zbranch is created and before the draft PR tomainopens, 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 receivesversion,release_branch,branch_sha,dry_run, and the git user name/email, withsecrets: inheritso it can mint theCOMMIT_APPtoken to push to the write-protected release branch.prepare→extension→open-pr) with a singlerollbackjob across all of them; an extension failure deletes the partial release branch (erasing its commits) and restoresCHANGELOG.mdondev, reusing the existing rollback logic. The hook contract, dry-run, and rollback semantics are documented indocs/DOWNSTREAM_RELEASE.md.prepare-release-extension.ymlruns the workspace-manifest sync that was a hardcoded divergence inprepare-release.yml, making the prepare workflow scaffold-shaped again. It also reconciles the changelog mirror (assets/workspace/.devcontainer/CHANGELOG.md) ondevafter the root-only freeze — as its last step, so every failure path leaves dev's root and mirror consistent — keeping thesync-manifesthook green on dev PRs during the release window..devcontainer/devcontainer.json,.vscode/settings.json, and.devcontainer/workspace.code-workspace.examplenow 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 [FEATURE] Ship a provenance banner in scaffolded assets (managed-vs-yours + where to file issues) #1036. A newjsonccomment style was added to theBannertransform and the three paths were removed from the banner skip-list.check-jsonpre-commit hook is given anexcludefor exactly these three paths innix/hooks.nix(the SSoT; both committed.pre-commit-config.yamlfiles follow, drift-gated). Strict-JSON files (renovate.jsonand friends) remain banner-free and strictly checked.PRESERVE_FILES(the SSoT ininit-workspace.sh) by a newBannertransform wired intosync_manifest.py, so the classification cannot drift from a hand-typed copy. Thesync-manifestpre-commit hook regenerates the banners on every commit and fails on any hand-edited or missing one..vig-osremains 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 strictcheck-jsonhook, the render-gated.pre-commit-config.yaml, changelogs,.vig-os,LICENSE) are explicitly skipped; coverage is knowingly partial.justfile.devcbanner — which pointed at the rootjustfilethat an upgrade overwrites — is corrected to point atjustfile.project.DEVKIT_FLOATING_TAGS) (#1045).vig-oskey (comma-separated subset ofmajor,minor; empty =off) makes the scaffolded
promote-release.ymlforce-move<prefix>Xand/or<prefix>X.Yto the promoted final-release commit, giving Action consumers thestandard
uses: owner/repo@v0pinning contract with promote-gated moves.floating-tagsjob runs only after the Release is published and therelease 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 canmake floating-tag moves app-exclusive. Off by default — no change for devkit or
existing consumers.
DEVKIT_TAG_PREFIX) (#1044).vig-oskey threads a tag prefix through the scaffolded releasepipeline, applied only at the publishing edge — the pushed git tag name and
the changelog release link. Absent/empty reproduces today's bare
X.Y.Ztagsbyte-for-byte (no change for devkit or existing consumers); Action-publishing
repos set
vfor theactions/checkout@v5ecosystem convention.resolve-toolchainreads the key and emits atag-prefixoutput;release.ymlthreads it into
release-core.yml/release-publish.yml, and it composes intothe RC-discovery pattern, publish tag,
tag_statecheck,gh release create,the
prepare-releasetag-existence guard, and thepromote-releaserelease/RCvalidation and cleanup. The
versioninput,release/X.Y.Zbranch name, and## [X.Y.Z]freeze heading stay bare everywhere.prepare-changelog finalizegains--tag-prefix, prefixing both the releaselink URL and the displayed heading (
## [v0.3.0](…/tag/v0.3.0) - DATE); anempty prefix is byte-identical to prior output.
codeql.ymlandscorecard.ymlnow guard their analysis job withif: ${{ !github.event.repository.private }}. Neither scan can ever succeedon 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).mkProjectShellaccepts an overridable Python interpreter (#1038)python ? pkgs.python314argument:UV_PYTHONand the barepython/python3on PATH now follow the override, so a consumer whosenixpkgs C-extension dependency is built against a different CPython ABI
(e.g.
pkgs.freecad, built against the nixpkgs default 3.13) can align theinterpreter
uvpins —mkProjectShell { python = pkgs.python313; extraPackages = [ pkgs.freecad ]; }.Omitting the argument is byte-identical to the pinned-3.14 default.
nodecapability module with selectable Node version (#1027)mkProjectShellgains anodecapability module:modules = [ "node" ]puts
nodejs(which bundlesnpm) in the dev-shell, replacing thehand-wired
extraPackages = [ pkgs.nodejs ]every TS-action consumer copied.a
modulesentry 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
nodejsthetoolchain SSoT already ships.
modules = [ ]is byte-identical to before.justfile.projectrecipes seeded attheir first scaffold (
sync=npm ci, pluslint/test/build/bundle)instead of the uv template, so
just sync/just testwork under Node; anexisting
justfile.projectis never touched. The module ships shell packagesonly — eslint/prettier hooks and the codeql language stay out of scope.
release-core.ymlnow detects abundlejust recipe viajust --summaryin the finalize job; when present it runsjust bundleand commitsdist/alongsideCHANGELOG.mdin the finalization commit, so a JS Action (or any repo shipping a committed@vercel/nccartifact) tags a fresh bundle instead of a stale one. Repos without abundlerecipe (e.g. a pure-Python consumer) are unaffected — no new config surface, the recipe's presence is the flag.commit-checksjob (devkit and scaffolded repos) runsvalidate-commit-rangeover every commit a pull request adds, plus the pull request title — which becomes the merge commit's subject under--no-ff.validate-commit-msgis acommit-msg-stage hook, soprek run --all-filesnever ran it: until now the standard was enforced only by a local hook, and only on a machine whosecore.hooksPathwas intact.…[bot]) are exempt. Renovate and Dependabot emitbuild(pip): …/ci(actions): …with noRefs: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.validate-commit-msgandprepare-commit-msg-strip-trailersnow reach the consumer pre-commit config. Scaffolded repos already shipped a.githooks/commit-msgshim and aCOMMIT_MESSAGE_STANDARD.md, but had nocommit-msg-stage hooks for the shim to run — the documented standard was unenforceable in every consumer repo.tests/test_scaffold_lint.pypins two structural invariants inProject Checks, no new hook. Rule 1 walks the scaffold and fails if a workflow header comment or a shippeddocs/*.mdcross-link points at a repo path the scaffold does not ship (the [BUG] Scaffolded promote-release.yml references docs/DOWNSTREAM_RELEASE.md, which the scaffold does not ship #1046/[BUG] Scaffolded files reference docs the scaffold does not ship (ci.yml ADR link, DOWNSTREAM_RELEASE.md cross-links) #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 localuses: ./...action (the [BUG] sync-main-to-dev checks out dev, then runs a local action that only exists on main #1034 bootstrap-deadlock shape), with the pre-[BUG] sync-main-to-dev checks out dev, then runs a local action that only exists on main #1034 pattern covered by a constructed regression fixture.Changed
perfis now an approved commit type (#1030)perfjoins the approved commit-type allowlist innix/hooks.nix(both rendered.pre-commit-config.yamlfiles),DEFAULT_APPROVED_TYPES(the default CI'svalidate-commit-rangeuses), anddocs/COMMIT_MESSAGE_STANDARD.md. It is a standard Conventional Commits type and was already used once in history; before this the livecommit-checksjob would reject the nextperf(...)commit.validate-commit-msghook 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 contradicteddocs/COMMIT_MESSAGE_STANDARD.md, which defines a scope as free-form "alphanumeric and hyphens only". The commit type, theRefs:line and the agent blocklist remain enforced; only the scope vocabulary is open.strip_bannerrequires an explicit comment style (#1076)scripts/transforms.pydefaultedstyleto"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 — omittingstylenow raisesTypeError— and all callers pass it explicitly.nodemodule version (#1080)nodecapability module now validates that theversionoption is an integer (builtins.isInt) before interpolating it intopkgs.nodejs_<major>, so a string, path, derivation or other non-int fails eval with the module-scoped messagenode 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'sopen-prjob runs on a bare checkout (#1079)gh pr create(gh is preinstalled on GitHub-hosted runners), yet it stood up the fullsetup-envcomposite (Nix +uv sync) on the release critical path just to reach theuv run retrywrapper. It now uses a bare shallow checkout and sources the canonical bashretry()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)
lockFileMaintenance.description— which Renovate renders into every consumer's Dependency Dashboard issue — cited the upstream blocker asrenovatebot/renovate#41825. That is a GitHub Discussion, not an issue, so the shorthand resolved to nothing; it now uses the fullhttps://github.com/renovatebot/renovate/discussions/41825URL and is described as the open idea thread it is. The trailingRefs #1041was 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, but rendered rather than in a comment.Remaining scaffolded references resolve to absolute docs (#1062)
resolve-toolchain,setup-devkit-toolchain),flake.nix, thedocs.ymlissue 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-rootCLAUDE.md) the scaffold never ships. All now use absolutehttps://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.tests/test_scaffold_lint.py) is extended file-type by file-type to cover composite-action andflake.nixcomments,ISSUE_TEMPLATEbody text, shipped-doc prose (inline code spans stripped), and skill Markdown links (resolved against the scaffold tree). The immutable.devcontainer/CHANGELOG.mdmirror stays out of the walk by construction; the zero-false-positive bar and emptyRULE1_ALLOWLISThold.CI runs the lightweight shape-test suites (#1061)
Project Checksjob (test-projectaction, suiteall) ran an explicit two-item list —tests/test_utils.pyplus 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 oftests/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_sssotis banner-aware (#1060)Bannertransform's own helper (strip_bannerinscripts/transforms.py) before comparing, so it still guards real content drift without re-encoding the banner shape.justfile.localis now preserved on upgrade (#1054)justfile.local(personal, gitignored recipes) shipped a header claiming it was preserved during upgrades, but it was absent fromPRESERVE_FILES— so a re-scaffold silently overwrote personal recipes (same silent-clobber class as fix(workspace): scaffold upgrade replaces .pre-commit-config.yaml, silently clobbering repo-specific hook config #878/fix(workspace): scaffold upgrade clobbers a customized .typos.toml (dual-config corruption) #913). It is now inPRESERVE_FILES, receives the preserved banner variant, and its hand-written header no longer restates the provenance claim the banner owns.Node
justfile.projectseed carries the preserved banner (#1055)assets/justfile.d/node.justfile.project) lives outsideassets/workspace/, so the [FEATURE] Ship a provenance banner in scaffolded assets (managed-vs-yours + where to file issues) #1036 banner pass never touched it and a Node consumer's first-scaffoldjustfile.projectlacked 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 thePRESERVE_FILEStarget it feeds (no hand-typed banner). The gitignore fragments inassets/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)
ci.ymlheader pointed atdocs/rfcs/ADR-conditional-container-toolchain.md, and the synceddocs/DOWNSTREAM_RELEASE.mdcross-linkeddocs/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 absolutehttps://github.com/vig-os/devkit/blob/main/docs/...URLs (rewritten in the rootDOWNSTREAM_RELEASE.mdSSoT, which resolve from both devkit and a consumer checkout); links that resolve within the scaffold stay relative. Structurally guarded by the [FEATURE] Scaffold lint: unshipped-path references and non-default-ref local-action usage #1057 scaffold lint.Scaffold ships
docs/DOWNSTREAM_RELEASE.md(#1046)promote-release.ymlheader points atdocs/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)
commit-actionpilot, including the only critical) were neither reported nor remediated. The preset now enableslockFileMaintenance(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) and the formertransitiveRemediationoption was removed from Renovate. devkit's ownrenovate.jsondrops its now-duplicatedlockFileMaintenanceblock and inherits it from the preset.Renovate preset groups npm updates instead of one PR per package (#1047)
renovate-default.jsongavegithub-actionsandpep621agroupNamebut leftnpmungrouped, so npm consumers got one PR per package — each touchingpackage-lock.jsonandCHANGELOG.md, so they conflicted pairwise and were effectively unlandable serially. npm now gets two grouping rules matching the other managers' style:devDependenciesgroup across all update types ("npm dev dependencies"), and runtimedependenciesminor/patch ("npm (minor and patch)") with majors staying as individual PRs. The existingbuild(npm)semantic-commit rule still applies to every npm PR (Renovate merges matchingpackageRulesin order).sync-main-to-devno longer deadlocks on new local actions (#1034)syncjob checked outref: devand then invoked a localuses: ./.github/actions/...composite, which GitHub resolves against the checked-out workspace. Whenmainadded or renamed a local action absent fromdev, the job died on its first run — and the only PR that would carry the action ontodevwas the very sync PR the job could no longer open. Droppingref: devbuilds against the triggeringmainSHA, where the action is guaranteed to exist; every downstream step already operates onorigin/main/origin/devor the API, so behavior is otherwise unchanged.setup-devkit-toolchainno longer forces Python/uv env on non-Python consumers (#1028)UV_PROJECT_ENVIRONMENT, forwardedUV_PYTHON_DOWNLOADS_JSON_URL, and filtered the Nix CPython out of$GITHUB_PATHunconditionally. These are now gated on the consumer being Python (apyproject.tomlat 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)
ci.ymljob comment "Pytest" -> "Run tests"; both run language-neutraljustrecipes, so the Python-shaped labels were misleading on a Node/TS consumer.Language-aware scaffold
.gitignore(#1024)init-workspace.shnow detects the consumer's language from marker files(
pyproject.toml→ Python,package.json→ Node,Cargo.toml→ Rust) andassembles the managed
.gitignoreas a language-neutral base plus thematching per-language fragment on every (re)scaffold, so the correct ignore
set is upgrade-persistent.
node_modules/,*.tsbuildinfo,coverage/and.nyc_output/, and no longer get a blanketdist/ignore (a JS Actioncommits its bundled
dist/index.js). Python consumers keep their existingignore set.
Language-aware scaffold CodeQL matrix (#1025)
init-workspace.shnow rewrites the managedcodeql.ymllanguage matrixfrom the same language detection ([BUG] Scaffold .gitignore is Python-only: blanket dist/ breaks JS Action repos, Node ignores dropped, not upgrade-persistent #1024): Python →
python, Node →javascript-typescript, Rust omits its leg (no first-class CodeQL Rustanalyzer);
actionsis always analyzed. This fixes the hardcoded['python', 'actions']matrix failing thepythonleg on repos with noPython.
codeql.ymland an install-time note now document that thisadvanced config conflicts with GitHub's default code-scanning setup (which
must be disabled). The installer never changes the code-scanning API setting.
prepare-changelog finalizenames the heading on a tag-prefix mismatch (#1073)finalizeon a reused release branch with a different--tag-prefixthan 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-releaserolls back on workflow cancellation (#1078)rollbackjob's guard only matchedneeds.<job>.result == 'failure'for theprepare,extensionandopen-prphases, so cancelling a run after the freeze commit landed skipped the rollback and stranded the partialrelease/X.Y.Zbranch plus the freeze commit ondev. Each phase guard now also matchesresult == 'cancelled'(the job already usedalways(), which keeps it eligible to run after a cancellation), in both the devkit workflow and the scaffolded consumer copy.Security
builtin.c(CVE-2026-40468; CVE-2026-40469, 32-bit builds only — this image is 64-bit), a 7.5 use-after-free inio.cdo_getline_redir()(CVE-2026-40467), and a 7.5 stack buffer overflow in the opt-inreaddirextension (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.stagingon 2026-07-12 (stdenv mass-rebuild) and has not reached the pinnednixos-26.05(norrelease-26.05,staging-26.05,master, ornixpkgs-unstable— all still 5.4.0). Added a short-dated.vulnixignoreexception (expires 2026-07-28) to unblock the gate; the block is dropped and the pin advanced once 5.4.1 lands innixos-26.05.commit-checksjob (both ci.yml copies) now runscheck-pr-agent-fingerprints, wiring a previously dead entry point into CI. After #1026 the job already validated the PR title viavalidate-commit-range --title; this closes the remaining gap by greping the PR body against.github/agent-blocklist.toml(#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 viaenv:(PR_TITLE/PR_BODY), never interpolated into the shell command.check-agent-identitynow reaches the consumer pre-commit config. It is the only hook of the agent-identity pipeline (#163) that guards the commit author/committer — the one that catchesgit commit --author="Claude <...>". After #1026 scaffolded repos rejected an AI-attributed commit message while accepting an AI-authored commit; theCOMMIT_MESSAGE_STANDARD.mdthey ship promised the opposite. It runs at the pre-commit stage, soprek run --all-filesenforces it in the scaffold's lint job too.