Repository navigation
chore: release 1.18.0 - #1819
Merged
Merged
Conversation
Syncs `dev` with `main` (sync-main-to-dev workflow).
The guard comment above the DEVKIT_COMMIT_APP_ENVIRONMENT validation guard claimed the value is rendered as an UNQUOTED YAML scalar, "exactly as for DEVKIT_SYNC_TARGET above". render_commit_app_environment() actually emits `environment: '<name>'` single-quoted, unconditionally, precisely because the allowed charset admits YAML 1.1 bool/number shapes that an unquoted scalar would let YAML mistype. Reword the comment to state the single-quoting, keep the charset allowlist as load-bearing (it refuses `'`, so no escaping is ever needed), and make the quoting difference from DEVKIT_SYNC_TARGET's mixed quoted/unquoted splices explicit instead of implying the two behave alike. No other content of the comment changes. Comment-only change with no rendered byte difference, so TDD is skipped per CLAUDE.md's carve-out for non-testable constructs; verified instead by confirming `git diff` touches only comment lines and by running the existing tests/test_commit_app_environment.py suite (48 passed) unchanged. Refs: #1738
Replays the 1.17.0 race (finalize's sync-issues push re-triggering release PR CI after the wait already observed a green, pre-push check set) against the wait step's real bash: required checks green for a superseded SHA must never satisfy the wait, a head move straddling the checks query must be discarded rather than judged, and the confirmed SHA must be exposed for the promote lane's last-mile guard to consume. Refs: #1737
## Description Fixes a factually wrong guard comment above the `DEVKIT_COMMIT_APP_ENVIRONMENT` validation guard in `assets/init-workspace.sh` (around line 515). The comment claimed the value is rendered as an **unquoted** YAML scalar, "exactly as for `DEVKIT_SYNC_TARGET` above". `render_commit_app_environment()` (around line 2351, unchanged by this PR) actually emits `environment: '<name>'` — **single-quoted, unconditionally** — precisely because the allowed charset admits YAML 1.1 bool/number shapes (`true`/`no` parse as booleans, `0755` as the integer 493, `1e3` as a float), and an unquoted scalar would hand GitHub a non-string `environment` it rejects at dispatch, a failure `actionlint` does not catch. ## Type of Change - [x] `docs` -- Documentation only ### Modifiers - [ ] Breaking change (`!`) ## Changes Made Reworded the guard comment only, in `assets/init-workspace.sh`: - States the value is rendered as a single-quoted YAML scalar (`environment: '<name>'`), not unquoted. - Keeps the charset allowlist as the LOAD-BEARING guard, now explicitly because it refuses `'`, so the quoted splice never needs escaping. - Keeps the cross-reference to `DEVKIT_SYNC_TARGET` but makes the quoting difference explicit (mixed quoted/unquoted splices there) instead of implying the two keys behave alike. - Preserves the rest of the comment's content unchanged: the GitHub 255-char / case-insensitive constraint, the "pure `.vig-os` key, no CLI flag, so only a format guard" note, and the `#1710` reference. No code changed — `git diff -- assets/init-workspace.sh` touches only `#` comment lines. `render_commit_app_environment()` and the validation guard's `if` body are untouched, so this is a byte-identical render for every existing consumer. ## Changelog Entry No changelog needed. This is a comment-only change with no rendered byte difference and no consumer-visible effect (confirmed by diff + the existing render test suite passing unchanged), so it carries no user-visible impact per `CLAUDE.md`'s changelog scoping rule. ## Testing - [x] Tests pass locally (`uv run pytest tests/test_commit_app_environment.py -v -s --tb=short` — 48 passed) - [x] `prek run --all-files` — green, no findings - [x] `git diff -- assets/init-workspace.sh` reviewed by hand: only comment lines change; the guard's code and `render_commit_app_environment()` are untouched ### Manual Testing Details N/A — no CLI-visible or rendered behavior to exercise manually; verification is the diff review + the existing automated render-test suite above. ## Checklist - [x] My code follows the project's style guidelines (comment wrapped to match the surrounding column width and tone) - [x] I have performed a self-review of my code - [x] I have commented my code, particularly in hard-to-understand areas - [ ] I have updated the documentation accordingly -- N/A, no `docs/templates/` content is affected - [ ] I have updated `CHANGELOG.md` -- intentionally skipped, see Changelog Entry above - [x] My changes generate no new warnings or errors - [ ] I have added tests that prove my fix is effective -- TDD skipped per `CLAUDE.md`'s carve-out for non-testable constructs (a comment has no observable behavior to pin); verified instead by running the existing `tests/test_commit_app_environment.py` suite unchanged (48 passed) and by hand-confirming the diff is comment-only - [x] New and existing unit tests pass locally with my changes - [x] Any dependent changes have been merged and published ## Additional Notes This cannot ride the release-neutral lane: `assets/init-workspace.sh` is baked into `devkitImage`, so even a comment-only edit moves that derivation's path and gate 2 will refuse it. It needs a normal release train to reach `main`. Refs: #1738
The smoke listener's wait-release-pr-ci job could observe a complete, green required-check set for the release PR's pre-push head SHA and let trigger-promote-release dispatch promote-release.yml while finalize's sync-issues push was still re-triggering that PR's CI -- a timing race, live on the 1.17.0 train, not a content defect. The wait now holds on two conditions per iteration: the release branch (read from the PR itself) carries no queued/in_progress workflow run, and the required-check read is anchored by a headRefOid snapshot taken immediately before and after the query, discarding the observation on any mismatch instead of judging it. The confirmed SHA is exposed as a job output and consumed by a new last-mile guard in trigger-promote-release that re-checks the PR head immediately before dispatch, failing loudly on a mismatch rather than surfacing promote-release.yml's own (unchanged, still correct) "checks still in progress" refusal. Refs: #1737
## Description Adds the missing creation runbook for the `vigos-devkit-upgrade` GitHub App — the machine identity behind the scaffolded self-polling `devkit-upgrade.yml` workflow — and points that workflow's grant header at the new runbook instead of restating the grant inline. ## Type of Change - [x] `docs` -- Documentation only ### Modifiers - [ ] Breaking change (`!`) -- This change breaks backward compatibility ## Changes Made - New `docs/runbooks/devkit-upgrade-app.md` (`docs/runbooks/` did not exist yet), mirroring the structure of `vig-os/org-config`'s `docs/runbooks/github-app.md`: Purpose, Prerequisites, Create the App, Permissions, Webhooks, Visibility, Installation, Bootstrap secrets, Key rotation, What this App must NOT be given. - `assets/workspace/.github/workflows/devkit-upgrade.yml`'s grant header: removed the restated permission list and replaced the closing `App provisioning + rotation: https://github.com/vig-os/devkit/issues/1302` line with a link to the new runbook (absolute URL, since the runbook itself is not shipped into consumer repos — `test_scaffold_has_no_unshipped_path_references` requires that). - `CHANGELOG.md` `## Unreleased` → `### Added` entry (and its `assets/workspace/.devcontainer/CHANGELOG.md` mirror, regenerated by the `sync-manifest` pre-commit hook). **This is a normal-train change, not release-neutral.** It edits `assets/workspace/...`, which moves the image derivation path, so it cannot ride the release-neutral lane. ## Acceptance criteria (issue #1739) - [x] A runbook for the `vigos-devkit-upgrade` App exists in this repo and states the grant, the visibility setting, the install targets and the key-rotation procedure — `docs/runbooks/devkit-upgrade-app.md`, Permissions / Visibility / Installation / Key rotation sections. - [x] The visibility paragraph links to the recorded decision in `vig-os/org-config` rather than re-deciding it, and says which repo is the source of truth for the credential lists — the runbook's Visibility section links `vig-os/org-config#271` and the `APP VISIBILITY DECISION` jsonnet comment; Bootstrap secrets states `vig-os/org-config`'s `otterdog/vig-os/vig-os.jsonnet` is authoritative for the secret lists. - [x] Key rotation includes the `GET /app/installations` inventory sweep — step 6 of Key rotation, called out as a **required** step (the only compensating control for a public App's install page). - [x] The scaffolded `devkit-upgrade.yml` header links to the runbook — see the header diff above. ## Factual gaps flagged instead of guessed The runbook calls these out inline as "verify against the live App" rather than inventing values, since no source read for this issue states them: - The App's exact display name if it differs from its slug, and its Homepage URL. - The installation's repository scope ("All repositories" vs. "Only select repositories") on `vig-os` and on `exo-pet`. ## Changelog Entry ``` ### Added - **Creation runbook for the `vigos-devkit-upgrade` GitHub App** ([#1739](#1739)) - New `docs/runbooks/devkit-upgrade-app.md` documents the App's grant, its public visibility (linking to the recorded decision in `vig-os/org-config`), its install targets, which org secrets carry its credentials, and the key-rotation procedure, including the mandatory `GET /app/installations` inventory sweep for a public App with no webhook - The scaffolded `devkit-upgrade.yml` grant header now links to the runbook instead of restating the permission set inline ``` ## Testing - [x] Tests pass locally - `uv run pytest tests/test_workflow_devkit_upgrade.py -v --tb=short` — 32 passed - `uv run pytest tests -q --tb=short --deselect tests/test_image.py --deselect tests/test_integration.py` — 1307 passed, 1 skipped, 193 deselected - `prek run --all-files` — green (exit 0) - [ ] Manual testing performed (n/a — documentation + a comment-only workflow change) ### Manual Testing Details N/A. ## 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 (edit `docs/templates/`, then run `just docs`) — n/a, this adds a runbook under `docs/runbooks/`, which is not part of the generated-docs pipeline (`docs/generate.py` only watches `docs/templates/*.j2`, `docs/narrative/*.md`, etc.) - [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 or that my feature works — n/a for the doc content; the existing `test_scaffold_has_no_unshipped_path_references` and `test_workflow_model.py` scaffold tests already cover the workflow header change - [x] New and existing unit tests pass locally with my changes - [x] Any dependent changes have been merged and published ## Additional Notes Not urgent (issue is `priority:low`, `effort:small`). No App facts were invented — every claim in the runbook traces to the workflow header, the `vig-os/org-config` jsonnet's `APP VISIBILITY DECISION` comment, that repo's own `docs/runbooks/github-app.md`, or issue #1739 itself. Refs: #1739
## Description The cross-repo smoke gate's `wait-release-pr-ci` job could observe a complete, green required-check set for the release PR's *pre-push* head SHA and let `trigger-promote-release` dispatch `promote-release.yml` while `release.yml`'s `finalize` job's `sync-issues` push was still re-triggering that PR's `pull_request` CI. `promote-release.yml`'s `Validate promote prerequisites` step then refused with "PR #<n> has checks still in progress" -- a timing race, not a content defect. Live on the 1.17.0 train (run `36389373270`; a plain re-dispatch, run `36392110808`, passed cleanly over identical content). Incident record: #1735. ## Type of Change - [x] `fix` -- Bug fix - [x] `test` -- Adding or updating tests - [x] `docs` -- Documentation only ## Changes Made - `wait-release-pr-ci`'s poll step now holds on two conditions each iteration: 1. **Release-branch quiescence** -- no workflow run `queued`/ `in_progress` on the release branch (resolved via `gh pr view --json headRefName`, never reconstructed from the version). This is the half that actually holds the wait across the whole `finalize` -> `sync-issues` -> push chain, since the `Sync Issues and PRs` run itself is `in_progress` on the branch for as long as it takes to push. 2. **SHA-anchored required-check read** -- `headRefOid` is read immediately before and immediately after `gh pr checks --required`; a mismatch discards the observation (no pass, no fail/cancel verdict) instead of judging it. This catches a push landing in the narrow window of the checks query itself, which a per-iteration recheck 30s apart would not: on the 1.17.0 incident `sync-issues` ran for ~63s (`06:57:29` -> `06:58:32`), longer than one poll interval. - The confirmed SHA is now a `wait-release-pr-ci` job output (`head_sha`). - `trigger-promote-release` gained a cheap last-mile guard step that re-reads the PR head immediately before dispatching `promote-release.yml` and fails with an explicit, actionable message on a mismatch, rather than surfacing the confusing downstream "checks still in progress" refusal. `promote-release.yml`'s own guard is unchanged and still correct -- it refuses before the irreversible undraft, and this PR does not loosen it. - `docs/CROSS_REPO_RELEASE_GATE.md`: documents the new wait contract and adds a troubleshooting entry for the race. Preserved unchanged: the `CLOSED` -> error and `MERGED` -> warn-and-exit-0 early outs, the `--required` filter, the "no required checks reported yet" tolerance, the `gh pr checks` transient-failure retry, the fail/cancel-only-when-`PENDING_COUNT`-is-0 rule, the `TIMEOUT`/`INTERVAL` structure, and the timeout error message. ## Changelog Entry ``` ### Fixed - **SHA-anchored release-PR check-wait in the smoke gate** ([#1737](#1737)) - The smoke listener's `wait-release-pr-ci` job could observe a complete, green required-check set for the release PR's *pre-push* head SHA and let `trigger-promote-release` dispatch `promote-release.yml` while `finalize`'s `sync-issues` push was still re-triggering that PR's CI -- a timing race, not a content defect (live on the 1.17.0 train). - The wait now requires both a quiet release branch (no `queued`/ `in_progress` workflow run) and a required-check read anchored by a `headRefOid` snapshot taken immediately before and after the query; a head move discards the observation instead of judging it. - The confirmed SHA is exposed as a job output and consumed by a new last-mile guard in `trigger-promote-release` that re-checks the PR head immediately before dispatch and fails with an explicit message on a mismatch, instead of a confusing downstream "checks still in progress" refusal. ``` ## IMPORTANT -- not live until mirrored to smoke-test `main` `repository_dispatch` always runs the **default-branch** version of the listener workflow (`docs/CROSS_REPO_RELEASE_GATE.md`, Contract dependencies #2). This devkit asset change is **not** live on the smoke gate until it reaches `devkit-smoke-test` `main` through that repo's own release cycle (or an explicit hotfix mirror, per precedent devkit-smoke-test#345/#353). **This is owed follow-up work, out of scope for this PR**, and should land before the next final train that could otherwise reproduce the race. ## Audit: does devkit's own promote path need the same fix? The issue's Notes asked whether devkit's own promote path deserves the same audit, since `release.yml`'s `finalize` job also triggers `sync-issues.yml` and that push can re-trigger the release PR's CI. **Conclusion: no automated-dispatch hazard found; not changed here.** - Devkit's own `release.yml` `finalize` job triggers `sync-issues.yml` and **waits synchronously for it to complete inside the same job** (see "Trigger sync-issues workflow and wait" / "Record post-sync branch tip"), before `build-and-test` and the rest of the pipeline even start. There is no separate "wait for green checks, then auto-dispatch promote" job chain like the smoke listener's `wait-release-pr-ci` -> `trigger-promote-release`. - `promote-release.yml` is **dispatched manually by a human** (`just promote-release X.Y.Z`), only after: (a) smoke-test has published its final GitHub Release, and (b) the human approves the release PR -- "the cycle's single human approval" (`docs/RELEASE_CYCLE.md`). Its own `validate` job re-checks CI green and approval synchronously at the moment of manual dispatch. - A human choosing to dispatch promote in the same narrow window a push is landing is a possible but self-correcting mistake (the existing `CI_PENDING` guard refuses loudly, and a human just waits and re-runs) -- not the systemic, unattended race #1737 describes for the smoke listener. No follow-up issue filed for devkit's own promote path; happy to file one if review disagrees with this read. ## Testing - [x] Tests pass locally - [x] Manual testing performed (executed-bash harness against a stubbed `gh`, described below) ### Manual Testing Details New harness `tests/test_smoke_release_pr_check_wait.py` executes the poll step's and the guard step's real bash against a stubbed `gh` (reusing the pattern from `tests/test_smoke_dispatch_wait.py`). RED phase confirmed against the unmodified workflow (12/13 new tests failed); GREEN after the fix (13/13, plus the pre-existing suite untouched): ``` uv run pytest tests/test_smoke_dispatch_wait.py tests/test_smoke_release_pr_check_wait.py -v --tb=short ... 38 passed in 9.15s uv run pytest tests -q --tb=short --deselect tests/test_image.py --deselect tests/test_integration.py ... 1320 passed, 1 skipped, 193 deselected in 303.64s ``` `prek run --all-files` is green (actionlint, shellcheck, sync-manifest included). ## 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 - [ ] I have updated the documentation accordingly (edit `docs/templates/`, then run `just docs`) -- N/A, `docs/CROSS_REPO_RELEASE_GATE.md` is not a templated doc - [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 - [ ] Any dependent changes have been merged and published -- N/A, this change stands alone; the smoke-test `main` mirroring is owed follow-up work (see above), not a dependency of this PR ## Additional Notes TDD commits, in order: 1. `test: add SHA-anchored release-PR check-wait coverage` -- failing tests first 2. `fix: anchor release-PR check-wait to a SHA in the smoke gate` -- minimal implementation 3. `docs: document the SHA-anchored release-PR check-wait contract` -- docs + changelog Refs: #1737
Failing first: asserts the plugin tree, the plugin.json <-> DEVKIT_VERSION lock, the marketplace entry, every skill's frontmatter and refusal coverage, and the drift gate proper -- every `just <recipe>` and `<name>.yml` token inside a SKILL.md code region must resolve against devkit's or the scaffold's justfiles/workflows. The extractors are unit-tested against constructed fixtures so a green suite still proves the rules can fail. Refs: #1744
Candidates are computed by the release-version CLI from a format selected
by dispatch input > .vig-os DEVKIT_PRERELEASE_FORMAT > rc{N}. The default
reproduces X.Y.Z-rcN; a format switch that would lower the ordering for
the same X.Y.Z is refused.
Refs: #1746
release-publish.yml now creates the draft against the finalize SHA and POSTs the tag ref afterwards, so tag-triggered consumer workflows always find the draft during the pre-publish assets window. A failed tag POST discards the orphan draft this run created. Refs: #1746
A preserved, default no-op workflow on release: published plus a workflow_dispatch tag retry, for irreversible outward publishes after promote. Standalone so Trusted Publishing binds to its own path; the token stays contents: read with id-token and environment opt-ins seeded as comments. Refs: #1746
…g final tag The monotonicity gate now blocks only lowering pre-release label switches. An existing final X.Y.Z tag is the forward-fix recovery state after a failed final run, so it produces a warning annotation. Refs: #1746
Pins cargo-dist citations to a commit SHA. Refs: #1746
Eleven state-lookup-first operator skills under plugins/devkit/, published through a marketplace in this repo (/plugin marketplace add vig-os/devkit, then /plugin install devkit@vigos-devkit) rather than vendored into the consumer scaffold. Every skill's step 1 is /devkit:status, re-read in the same run, and every mutating skill carries a refusal table naming the state, why it is a foot-gun and the verb that clears it. Skills wrap the canonical just recipes and workflow dispatches; none re-implements release logic. Read-only skills stay model-invocable; every mutating skill sets disable-model-invocation so an agent cannot infer its way into dispatching a release verb. plugin.json's version equals DEVKIT_VERSION and release.yml's finalize step now bumps both, so the skills and the workflows they drive can never drift across a release. Two deviations from the issue body, both required by the plugin format: .claude-plugin/ holds only plugin.json (skills/ live at the plugin root), and components are namespaced, so the commands are /devkit:status rather than /devkit-status. Refs: #1744
Ran /devkit:status's own queries against this repo, as #1744's acceptance criteria ask for. Two checks were wrong in the direction that blocks a release that would have worked: - The App credentials are ORGANIZATION secrets. `gh secret list` shows the repository scope only, so the skill reported all four as absent and would have refused every release verb. It now queries the organization-secrets endpoint as well, and reports `unknown` rather than `absent` when either query fails -- a secret you could not see is not a secret that is missing. - The #1642 preserved-hook check read the branch guard's `--branch` argument. Devkit's own config deliberately passes `--branch __none__` and does the whole job in `--pattern`, so the check produced a false finding on the very repo it is dogfooded against. It now compares the pattern's `(?!dev$)` clause and is scoped to a consumer repo. Also: an absent DEVKIT_WORKFLOW key means gitflow (it is written back only for trunk), which the section now states. Refs: #1744
The check read "is the release branch an ancestor of dev", which looks conclusive and is not: prepare-release.yml pushes the Unreleased reset to dev immediately after cutting the branch, so dev's tip stops being an ancestor of a branch that was cut from dev minutes earlier. Both lanes therefore answer the same way, and the skill would have reported a regular train as a hotfix -- the state that decides whether a new train may be cut at all (#1627) and whether promote order walks the floating tag backwards (#1626). Replaced with direct evidence in both places: which workflow created the branch, and whether the version is the next patch of main's latest tag, which is exactly what the hotfix lane enforces. release-hotfix verifies its own dispatch instead, and checks that the branch differs from main by the seed commit alone. Refs: #1744
install.sh's preview is by definition a preview of an upgrade and rides the force report path internally (assets/init-workspace.sh), so --force adds nothing. Pairing the two in an operator skill teaches the reader that a preview needs it -- i.e. that a preview might mutate something, which is the one thing it never does. Refs: #1744
#1808) ## Description The `resolve-toolchain` job in all seven scaffolded workflows that declare it now takes its runner from the repository or organization variable `DEVKIT_CI_RESOLVE_RUNNER`: ```yaml runs-on: ${{ vars.DEVKIT_CI_RESOLVE_RUNNER || 'ubuntu-26.04' }} ``` `vars` resolves server-side before any runner is provisioned, so this avoids the chicken-and-egg problem that rules out `.vig-os`. When the variable is unset, the job stays on the hosted default, so nothing changes for existing consumers. A private consumer can opt in to stop paying one billed hosted minute per workflow run. ## Type of Change - [x] `feat` -- New feature ### Modifiers - [ ] Breaking change (`!`) -- This change breaks backward compatibility ## Changes Made - `assets/workspace/.github/workflows/{ci,sync-issues,sync-main-to-dev,abandon-release,prepare-hotfix,promote-release,release}.yml`: the `resolve-toolchain` `runs-on` is now overridable by the variable (one line each). I also updated `ci.yml`'s header comment. - `assets/workspace/.vig-os`: the `DEVKIT_CI_RUNNER` comment now points the resolve jobs at the variable. - `docs/MIGRATION.md`: the "some jobs always stay hosted" limitation is replaced with a section on the variable. It covers how to set it, that the value is one label and not a list, that **nothing validates it**, and that it is **not an outage fallback**. - `tests/test_ci_runner.py`: the two "stays hosted" asserts are replaced with a parametrized check over all seven workflows. A completeness test also fails if a scaffolded workflow adds a `resolve-toolchain` job that is missing from the list. ### Validation (the issue's second spike point) The issue asks for validation in `resolve-toolchain` or documentation of the failure mode. Validating in the job isn't possible: the job is the thing waiting for a runner, so an unmatched label queues and never fails. I documented the failure mode instead, along with the fix that needs no commit (`gh variable delete DEVKIT_CI_RESOLVE_RUNNER`). ## Changelog Entry ### Added - **`DEVKIT_CI_RESOLVE_RUNNER` variable for the `resolve-toolchain` jobs** ([#1796](#1796)) - The `resolve-toolchain` job in all seven scaffolded workflows that declare it takes its runner from the repository or organization variable `DEVKIT_CI_RESOLVE_RUNNER` (one runner label), so a private consumer stops paying a billed hosted minute per workflow run for it - Unset => the hosted `ubuntu-26.04` default, unchanged for every existing consumer; an unmatched label queues rather than failing, as documented in `docs/MIGRATION.md` ## Testing - [x] Tests pass locally (`just test`): 1707 passed, 1 skipped. `test_image`/`test_integration` were excluded because the local `:dev` image is stale. CI covers them. - [x] Manual testing performed (describe below) ### Manual Testing Details **Spike (the issue's first point, same method as #992).** A temporary push-triggered workflow was added in 8bdb60b and removed in ee4f19c. Run: https://github.com/vig-os/devkit/actions/runs/37143060031 (green). | Job | `runs-on` | Result | |---|---|---| | set variable | `${{ vars.CACHIX_CACHE && 'ubuntu-26.04-arm' \|\| 'ubuntu-26.04' }}` | `arch=aarch64`: the existing org variable steered the runner | | unset variable | `${{ vars.DEVKIT_SPIKE_1796_UNSET \|\| 'ubuntu-26.04' }}` | `arch=x86_64`: fell back to the default | The repo's settings were not changed. The spike used the existing `CACHIX_CACHE` org variable. - `just precommit` is green over all files. - `actionlint` on the template workflows reports the same 4 pre-existing findings before and after. They are reusable-workflow file lookups that fail only when linting outside the repo root. ## 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 or that my feature works - [x] New and existing unit tests pass locally with my changes - [x] Any dependent changes have been merged and published ## Additional Notes Consumers pick this up through the usual `devkit-upgrade` adoption once a release ships it. To opt in, set the variable at repo or org level after adopting. Refs: #1796
## Description `DEVKIT_SYNC_TARGET` mirror mode only folds back into the trunk through the release train (#1424), which is rendered into `release-core.yml`. With `release` in `DEVKIT_FEATURES_DISABLED`, that file is pruned. The fold render's `-f` guard then skipped it without any output, so the mirror was never merged back and the trunk's `docs/issues/` + `docs/pull-requests/` froze at the switch with no marker (hit in tessera#362). The scaffold now prints a notice for this combination. It does not abort: a release-less consumer can choose this as a deliberate interim setup, which matches the #1284 / #1431 notice precedent. The docs also claimed that "each sync run regenerates full state", which made the permanent divergence look self-healing. The sync is incremental (it uses a watermark), and only a `force-update` dispatch rebuilds from scratch. See the issue comment and #1757. ## Type of Change - [x] `fix` -- Bug fix ### Modifiers - [ ] Breaking change (`!`) -- This change breaks backward compatibility ## Changes Made - `assets/init-workspace.sh`: composition notice next to the #1284 sync-issues notice. It fires only when the release group is disabled, sync-issues is enabled and `DEVKIT_SYNC_TARGET` is set. The stale "regenerates full state" wording in the `render_sync_settings` comment is fixed. - `assets/workspace/.vig-os`: the `DEVKIT_SYNC_TARGET` comment now describes the incremental sync and the release-train fold-back. The `DEVKIT_FEATURES_DISABLED` comment now says that disabling `release` removes that fold-back. - `docs/MIGRATION.md`: "self-healing archive" is gone. There is a new paragraph on the release dependency in the mirror section, and the coupling is noted on the `release` feature-group entry. - `tests/bats/init-workspace.bats`: one test checks that the notice fires. Another checks that it stays quiet when release is enabled, and when sync-issues is disabled too (there only the #1284 notice applies). ## Changelog Entry ### Fixed - **Mirror mode without a release feature froze the trunk's archive silently** ([#1758](#1758)) - The `DEVKIT_SYNC_TARGET` mirror's only fold-back is the release train, so with `release` in `DEVKIT_FEATURES_DISABLED` it was never merged back and the trunk's `docs/issues/` stopped updating, with no output. The scaffold now prints a notice for that combination (it still proceeds) - The `.vig-os` and migration docs no longer claim each sync regenerates full state: the sync is incremental, and only `force-update` rebuilds ## Testing - [x] Tests pass locally (`just test`) - [ ] Manual testing performed (describe below) ### Manual Testing Details TDD: the notice test was committed failing first (f36da62) and passes after the fix. Full BATS suite: 648/648 ok. `prek run --all-files` is green. ## 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 (edit `docs/templates/`, then run `just docs`) - [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 or that my feature works - [x] New and existing unit tests pass locally with my changes - [x] Any dependent changes have been merged and published ## Additional Notes Out of scope: a fold-back that does not depend on releases (option 2 in the issue). It brings back the protected-branch problem that mirror mode exists to avoid. It should get its own issue if a release-less consumer needs one. Refs: #1758
This PR contains the following updates: | Update | Change | |---|---| | lockFileMaintenance | All locks refreshed | 🔧 This Pull Request updates lock files to use the latest dependency versions. --- ### Configuration 📅 **Schedule**: (in timezone Etc/UTC) - Branch creation - "before 9am on monday" - Automerge - At any time (no schedule defined) 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://redirect.github.com/renovatebot/renovate/discussions) if that's undesired. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/vig-os/devkit). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0NC4xMjUuMSIsInVwZGF0ZWRJblZlciI6IjQ0LjEyNS4xIiwidGFyZ2V0QnJhbmNoIjoiZGV2IiwibGFiZWxzIjpbXX0=-->
This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [anchore/sbom-action](https://redirect.github.com/anchore/sbom-action) | action | patch | `v0.24.2` → `v0.24.3` | | [aquasecurity/trivy](https://redirect.github.com/aquasecurity/trivy) | uses-with | minor | `v0.74.0` → `v0.75.0` | | [vig-os/sync-issues-action](https://redirect.github.com/vig-os/sync-issues-action) | action | patch | `v0.5.0` → `v0.5.1` | --- ### Release Notes <details> <summary>anchore/sbom-action (anchore/sbom-action)</summary> ### [`v0.24.3`](https://redirect.github.com/anchore/sbom-action/releases/tag/v0.24.3) [Compare Source](https://redirect.github.com/anchore/sbom-action/compare/v0.24.2...v0.24.3) ##### Added Features - bump type-fest from 5.9.0 to 5.10.0 \[PR [#​742](https://redirect.github.com/anchore/sbom-action/pull/742) [@​dependabot](https://redirect.github.com/dependabot)] - bump [@​types/node](https://redirect.github.com/types/node) from 26.5.1 to 26.6.1 \[PR [#​741](https://redirect.github.com/anchore/sbom-action/pull/741) [@​dependabot](https://redirect.github.com/dependabot)] - bump [@​types/node](https://redirect.github.com/types/node) from 26.4.1 to 26.5.1 \[PR [#​737](https://redirect.github.com/anchore/sbom-action/pull/737) [@​dependabot](https://redirect.github.com/dependabot)] - bump typescript-eslint from 8.69.0 to 8.70.0 \[PR [#​736](https://redirect.github.com/anchore/sbom-action/pull/736) [@​dependabot](https://redirect.github.com/dependabot)] - bump type-fest from 5.8.0 to 5.9.0 \[PR [#​732](https://redirect.github.com/anchore/sbom-action/pull/732) [@​dependabot](https://redirect.github.com/dependabot)] - bump eslint from 10.9.1 to 10.10.0 \[PR [#​733](https://redirect.github.com/anchore/sbom-action/pull/733) [@​dependabot](https://redirect.github.com/dependabot)] - bump typescript-eslint from 8.68.0 to 8.69.0 \[PR [#​730](https://redirect.github.com/anchore/sbom-action/pull/730) [@​dependabot](https://redirect.github.com/dependabot)] - bump [@​types/node](https://redirect.github.com/types/node) from 26.2.0 to 26.4.0 \[PR [#​727](https://redirect.github.com/anchore/sbom-action/pull/727) [@​dependabot](https://redirect.github.com/dependabot)] - bump typescript-eslint from 8.67.0 to 8.68.0 \[PR [#​726](https://redirect.github.com/anchore/sbom-action/pull/726) [@​dependabot](https://redirect.github.com/dependabot)] ##### Bug Fixes - bump github.com/anchore/go-make from 0.8.0 to 0.8.1 in /.make \[PR [#​738](https://redirect.github.com/anchore/sbom-action/pull/738) [@​dependabot](https://redirect.github.com/dependabot)] - bump anchore/go-make/.github/actions/setup from 0.8.0 to 0.8.1 in /.github/actions/bootstrap \[PR [#​740](https://redirect.github.com/anchore/sbom-action/pull/740) [@​dependabot](https://redirect.github.com/dependabot)] - bump zizmorcore/zizmor-action from 0.6.3 to 0.6.4 \[PR [#​739](https://redirect.github.com/anchore/sbom-action/pull/739) [@​dependabot](https://redirect.github.com/dependabot)] - bump zizmorcore/zizmor-action from 0.6.2 to 0.6.3 \[PR [#​734](https://redirect.github.com/anchore/sbom-action/pull/734) [@​dependabot](https://redirect.github.com/dependabot)] - bump [@​types/node](https://redirect.github.com/types/node) from 26.4.0 to 26.4.1 \[PR [#​731](https://redirect.github.com/anchore/sbom-action/pull/731) [@​dependabot](https://redirect.github.com/dependabot)] - bump tsx from 4.23.12 to 4.23.13 \[PR [#​729](https://redirect.github.com/anchore/sbom-action/pull/729) [@​dependabot](https://redirect.github.com/dependabot)] - bump eslint from 10.9.0 to 10.9.1 \[PR [#​728](https://redirect.github.com/anchore/sbom-action/pull/728) [@​dependabot](https://redirect.github.com/dependabot)] - bump [@​humanfs/node](https://redirect.github.com/humanfs/node) from 0.16.7 to 0.16.8 \[PR [#​725](https://redirect.github.com/anchore/sbom-action/pull/725) [@​dependabot](https://redirect.github.com/dependabot)] **[(Full Changelog)](https://redirect.github.com/anchore/sbom-action/compare/v0.24.2...v0.24.3)** </details> <details> <summary>aquasecurity/trivy (aquasecurity/trivy)</summary> ### [`v0.75.0`](https://redirect.github.com/aquasecurity/trivy/releases/tag/v0.75.0) [Compare Source](https://redirect.github.com/aquasecurity/trivy/compare/v0.74.0...v0.75.0) #### ⚡ Highlights ⚡ 👉 <https://redirect.github.com/aquasecurity/trivy/discussions/11333> #### Changelog <https://github.com/aquasecurity/trivy/blob/main/CHANGELOG.md#0750-2026-10-01> </details> <details> <summary>vig-os/sync-issues-action (vig-os/sync-issues-action)</summary> ### [`v0.5.1`](https://redirect.github.com/vig-os/sync-issues-action/blob/HEAD/CHANGELOG.md#v051---2026-09-28) [Compare Source](https://redirect.github.com/vig-os/sync-issues-action/compare/v0.5.0...v0.5.1) ##### Changed ##### Dependencies - Update `eslint` from `10.8.0` to `10.11.0` ([#​177](https://redirect.github.com/vig-os/sync-issues-action/pull/177), [#​186](https://redirect.github.com/vig-os/sync-issues-action/pull/186), [#​190](https://redirect.github.com/vig-os/sync-issues-action/pull/190), [#​195](https://redirect.github.com/vig-os/sync-issues-action/pull/195), [#​202](https://redirect.github.com/vig-os/sync-issues-action/pull/202)) - Update `@vercel/ncc` from `^0.44.0` to `^0.45.0` ([#​181](https://redirect.github.com/vig-os/sync-issues-action/pull/181)) - Update `@typescript-eslint/eslint-plugin` from `8.67.0` to `8.70.0` ([#​190](https://redirect.github.com/vig-os/sync-issues-action/pull/190), [#​195](https://redirect.github.com/vig-os/sync-issues-action/pull/195), [#​199](https://redirect.github.com/vig-os/sync-issues-action/pull/199)) - Update `@typescript-eslint/parser` from `8.67.0` to `8.70.0` ([#​190](https://redirect.github.com/vig-os/sync-issues-action/pull/190), [#​195](https://redirect.github.com/vig-os/sync-issues-action/pull/195), [#​199](https://redirect.github.com/vig-os/sync-issues-action/pull/199)) - Update `jest` from `30.4.2` to `30.5.2` ([#​190](https://redirect.github.com/vig-os/sync-issues-action/pull/190), [#​195](https://redirect.github.com/vig-os/sync-issues-action/pull/195), [#​202](https://redirect.github.com/vig-os/sync-issues-action/pull/202)) - Update `tsx` from `4.23.12` to `4.23.15` ([#​190](https://redirect.github.com/vig-os/sync-issues-action/pull/190), [#​202](https://redirect.github.com/vig-os/sync-issues-action/pull/202)) - Update `typescript-eslint` from `8.67.0` to `8.70.0` ([#​190](https://redirect.github.com/vig-os/sync-issues-action/pull/190), [#​195](https://redirect.github.com/vig-os/sync-issues-action/pull/195), [#​199](https://redirect.github.com/vig-os/sync-issues-action/pull/199)) - Update `globals` from `17.11.0` to `17.12.0` ([#​195](https://redirect.github.com/vig-os/sync-issues-action/pull/195)) - Update `@octokit/auth-app` from `8.3.0` to `8.3.1` ([#​194](https://redirect.github.com/vig-os/sync-issues-action/pull/194)) - Update `@types/node` from `25.9.5` to `25.9.8` ([#​199](https://redirect.github.com/vig-os/sync-issues-action/pull/199), [#​202](https://redirect.github.com/vig-os/sync-issues-action/pull/202)) - Update `prettier` from `3.9.6` to `3.9.8` ([#​202](https://redirect.github.com/vig-os/sync-issues-action/pull/202)) - Update `ubuntu` from `24.04` to `26.04` ([#​203](https://redirect.github.com/vig-os/sync-issues-action/pull/203)) - Lock file maintenance (npm) ([#​178](https://redirect.github.com/vig-os/sync-issues-action/pull/178), [#​182](https://redirect.github.com/vig-os/sync-issues-action/pull/182), [#​185](https://redirect.github.com/vig-os/sync-issues-action/pull/185), [#​187](https://redirect.github.com/vig-os/sync-issues-action/pull/187), [#​191](https://redirect.github.com/vig-os/sync-issues-action/pull/191), [#​196](https://redirect.github.com/vig-os/sync-issues-action/pull/196), [#​204](https://redirect.github.com/vig-os/sync-issues-action/pull/204), [#​208](https://redirect.github.com/vig-os/sync-issues-action/pull/208)) - Adopt vigOS devkit 1.17.0 ([#​180](https://redirect.github.com/vig-os/sync-issues-action/pull/180), [#​184](https://redirect.github.com/vig-os/sync-issues-action/pull/184), [#​189](https://redirect.github.com/vig-os/sync-issues-action/pull/189), [#​193](https://redirect.github.com/vig-os/sync-issues-action/pull/193), [#​206](https://redirect.github.com/vig-os/sync-issues-action/pull/206), [#​210](https://redirect.github.com/vig-os/sync-issues-action/pull/210)) — [release notes](https://redirect.github.com/vig-os/devkit/releases/tag/1.17.0) ##### Fixed - **The published `dist/` bundle now carries the locked runtime dependencies** ([#​211](https://redirect.github.com/vig-os/sync-issues-action/issues/211)) - `dist/index.js` had been byte-identical to v0.5.0 since that release, so every dependency update merged in the meantime was absent from the bundle consumers actually run: it still embedded `@octokit/auth-app` 8.3.0, `@octokit/core` 10.0.13 and `@octokit/request` 7.0.7 - Regenerated with `@vercel/ncc` 0.45.0 against the current lockfile, so the versions listed under **Dependencies** above are the ones shipped in this release - `dist-check.yml` only runs on pull requests to `release/**` and `main`, so the drift was invisible on `dev` — tracked upstream as [#1745](https://redirect.github.com/vig-os/devkit/issues/1745) </details> --- ### Configuration 📅 **Schedule**: (in timezone Etc/UTC) - Branch creation - "before 9am on monday" - Automerge - At any time (no schedule defined) 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://redirect.github.com/renovatebot/renovate/discussions) if that's undesired. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/vig-os/devkit). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0NC4xMjUuMSIsInVwZGF0ZWRJblZlciI6IjQ0LjEyNS4xIiwidGFyZ2V0QnJhbmNoIjoiZGV2IiwibGFiZWxzIjpbXX0=-->
…1816) ## Description Fixes the intermittent `FileNotFoundError` on a `.git/objects/` path in the placeholder-scan integration tests. Seen on PR #1812, run 37247340361. Root cause (full RCA in [#1815 comment](#1815 (comment))): - The `install.sh` scaffold commit spawns a detached `git maintenance run --auto`. - Under the git ≥2.54 default `geometric` strategy, that job sometimes repacks and deletes every loose object ~200–400 ms after the commit, depending on content. - That window overlaps the first tests of the class, whose lazy `rglob("*")` walks into `.git/objects/`. ## Type of Change - [ ] `feat` -- New feature - [x] `fix` -- Bug fix - [ ] `docs` -- Documentation only - [ ] `chore` -- Maintenance task (deps, config, etc.) - [ ] `refactor` -- Code restructuring (no behavior change) - [x] `test` -- Adding or updating tests - [ ] `ci` -- CI/CD pipeline changes - [ ] `build` -- Build system or dependency changes - [ ] `revert` -- Reverts a previous commit - [ ] `style` -- Code style (formatting, whitespace) ### Modifiers - [ ] Breaking change (`!`) -- This change breaks backward compatibility ## Changes Made - `tests/conftest.py`: new `scaffold_files(root, excluded_dirs=())` returns a sorted list of the workspace's regular files and skips `.git/`. Git internals never hold a placeholder, and the materialized list means no caller iterates a live walk. - `tests/test_install_script.py`: `test_install_replaces_placeholder` now uses the helper. `test_install_replaces_org_name_placeholder` is deleted; it duplicated the parametrized `{{ORG_NAME}}` case, and it was the test that failed. - `tests/test_integration.py`: `test_placeholders_replaced` now uses the helper (keeping its `.pre-commit-cache` / `.ruff_cache` exclusions). Its workspace also gets commits, so it was exposed to the same race. - `tests/test_scaffold_files.py`: unit tests for the helper. They run in Project Tests, so the guard does not depend on the image-backed jobs. - `install.sh` is unchanged. The background repack is correct for real consumer repos. ## Changelog Entry No changelog needed: test-only change with no user-visible impact. ## Testing - [x] Tests pass locally (`just test`) - [x] Manual testing performed (describe below) ### Manual Testing Details - TDD: `tests/test_scaffold_files.py` committed RED first (`ImportError`), then GREEN (2 passed). - `uv run pytest tests/test_install_script.py tests/test_integration.py::TestPlaceholders` against the local `:dev` image: 19 passed. - Race reproduced locally with git 2.55.0. The scaffold commit plus one extra blob in `objects/17/` goes from 162 loose / 0 packs to 0 loose / 1 pack within 400 ms. The race itself is nondeterministic, so it has no deterministic red test; the helper's `.git` exclusion is the regression guard. - `just precommit` (full suite): green. ## 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 - [ ] I have updated the documentation accordingly (edit `docs/templates/`, then run `just docs`) - [ ] 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 or that my feature works - [x] New and existing unit tests pass locally with my changes - [ ] Any dependent changes have been merged and published ## Additional Notes Not done: disabling maintenance in the fixtures (`-c maintenance.auto=false`). Skipping `.git` already removes the race, and the fixtures keep real-install behaviour. Refs: #1815
#1818) ## Description `just clean-test-containers` only matched `workspace-devcontainer*` (the devcontainer fixtures). The image-test fixture `test_container` (`tests/conftest.py`) names its containers `test-devcontainer-<epoch>`, so a killed `test_image.py` run left containers the recipe never removed. ## Type of Change - [ ] `feat` -- New feature - [x] `fix` -- Bug fix - [ ] `docs` -- Documentation only - [ ] `chore` -- Maintenance task (deps, config, etc.) - [ ] `refactor` -- Code restructuring (no behavior change) - [x] `test` -- Adding or updating tests - [ ] `ci` -- CI/CD pipeline changes - [ ] `build` -- Build system or dependency changes - [ ] `revert` -- Reverts a previous commit - [ ] `style` -- Code style (formatting, whitespace) ### Modifiers - [ ] Breaking change (`!`) -- This change breaks backward compatibility ## Changes Made - `justfile` (`clean-test-containers`): also collects `podman ps -a --filter "name=^test-devcontainer-"` and removes those containers, with its own progress line. The "[OK] / none found" summary covers both kinds. - `tests/bats/just.bats`: two behavioral tests run the real recipe against a `podman` stub that applies `--filter name=` as a regex: - `test-devcontainer-*` leftovers are removed, and unrelated containers are left alone. - `workspace-devcontainer-*` removal still works. ## Changelog Entry No changelog needed: devkit's own dev-tooling recipe (root `justfile`, not shipped to consumers). ## Testing - [x] Tests pass locally (`just test`) - [x] Manual testing performed (describe below) ### Manual Testing Details - TDD: the bats tests were committed RED first. The `test-devcontainer` case failed because no `rm` was issued, while the existing-behaviour case passed. They are GREEN after the fix, and the whole of `just.bats` passes. - Live: `podman create --name test-devcontainer-0 …` followed by `just clean-test-containers` removed the container, leaving 0 `test-devcontainer-*` containers. - `just precommit` (full suite): green. ## 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 - [ ] I have updated the documentation accordingly (edit `docs/templates/`, then run `just docs`) - [ ] 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 or that my feature works - [x] New and existing unit tests pass locally with my changes - [ ] Any dependent changes have been merged and published ## Additional Notes Out of scope, not changed: the pytest session-start check for leftover containers in `tests/conftest.py` (the `pytest_sessionstart` lingering-container check and its `PYTEST_AUTO_CLEANUP` path) also only checks `workspace-devcontainer`, so it never flags `test-devcontainer-*` leftovers either. Refs: #1817
This PR contains the following updates: | Update | Change | |---|---| | lockFileMaintenance | All locks refreshed | 🔧 This Pull Request updates lock files to use the latest dependency versions. --- ### Configuration 📅 **Schedule**: (in timezone Etc/UTC) - Branch creation - "before 9am on monday" - Automerge - At any time (no schedule defined) 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://redirect.github.com/renovatebot/renovate/discussions) if that's undesired. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/vig-os/devkit). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0NC4xMjUuMSIsInVwZGF0ZWRJblZlciI6IjQ0LjEyNS4xIiwidGFyZ2V0QnJhbmNoIjoiZGV2IiwibGFiZWxzIjpbXX0=-->
Move Unreleased content to [1.18.0] - 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.
c-vigo
marked this pull request as ready for review
October 5, 2026 08:40
Set release date to 2026-10-05 and regenerate release docs. Refs: #1819
c-vigo
approved these changes
Oct 5, 2026
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.18.0 - 2026-10-05
This PR prepares release 1.18.0 for merge to main.
1.18.0 - 2026-10-05
Added
DEVKIT_CI_RESOLVE_RUNNERvariable for theresolve-toolchainjobs(#1796)
resolve-toolchainjob in all seven scaffolded workflows that declare ittakes its runner from the repository or organization variable
DEVKIT_CI_RESOLVE_RUNNER(one runner label), so a private consumer stopspaying a billed hosted minute per workflow run for it
ubuntu-26.04default, unchanged for every existingconsumer; an unmatched label queues rather than failing, as documented in
docs/MIGRATION.mdConsumer matrix in devkit PR CI
(#1762)
Consumer Matrixjob renders consumer variants with the PR's owninit-workspace.shand runs each rendered consumer's own gates(
just lint,just precommit, the commit-stage hooks over the stagedfirst commit, actionlint, zizmor, the declared-language guard). Cells:
direnv,devcontainerandbaremodes, trunk, everyfeature disabled, a custom
DEVKIT_CI_RUNNER,DEVKIT_TAG_PREFIX=v, and adeclared language with no marker file that must fail the guard
scripts/consumer-matrix/render-cell.shholds the cell list and runs anycell locally, as the RC validation recipe
world (
tests/fixtures/consumer/) and runjust syncandjust test; thefixture test must prove it ran, so a
just testthat silently skips failsrustcell is a strict expected-fail on#1496: it passes only while
just testsilently skips the Rust suite, and fails once that is fixed sothe marker gets removed
direnv-flakecell runsnix flake checkon the rendered flake againstthe PR's own devkit and runs the direnv cell's gates inside its dev shell,
so the flake-generated hooks are exercised too
packages.<system>.guardrails: the vendored gates without amkProjectShellmigration(#1572)
mkProjectShell'smodules = [ "guardrails" ]) is now exposed directlyas
packages.<system>.guardrails, for a consumer that owns its own devshell and pre-commit/prek config and only wants the hermetic gate
binaries. Composes with Decision: which layer owns module-contributed pre-commit hooks? #1492: the consumer's hook config stays
consumer-owned
docs/NIX.md:$out/share/guardrails/gates/test-gates.shis the supported way for a consumer to assert gate execution in its own
flake
validate-branch-name: one branch-name rule for every enforcement point(#1760)
validate-branch-name(--branch,--types,--issueless-types,--workflow; pure arguments, no.vig-osreads). Itaccepts
main,dev(gitflow),<issueless-type>/<summary>,<type>/<issue>-<summary>,worktree/<issue>,renovate/*andrelease/X.Y.Z; a detached HEAD passes with a noteValidate branch namesteps now call itinstead of hand-kept bash alternations, so the local and CI gates can no
longer disagree on shape
CI extension seam so consumer jobs gate CI Summary
(#1761)
.github/workflows/ci-extension.yml, calledunconditionally from the managed
ci.ymlas theextensionjob — noopt-in knob, so a consumer's own CI jobs can never be silently skipped.
summary(CI Summary) lists it inneeds:and fails onfailureorcancelled, exactly like every other laneworkflow_callinput (mode,image,image-tag,runner-json)is
required: false; the stub'sruns-onresolves fromfromJSON(inputs.runner-json)rather than a literal labelseam is live-proven by the release train
Issue-less branch form for every Refs-optional commit type
(#1767)
DEVKIT_REFS_OPTIONAL_TYPESset now gets a<type>/<summary>branch form, aschorealready did. WithDEVKIT_REFS_OPTIONAL_TYPES=chore,docs,docs/<summary>is accepted nextto
docs/<issue>-<summary>. There is no new key: a branch may skip theissue only where its commits may
branch-name gate (new
issueless-branch-typesoutput ofresolve-toolchain).chore/<summary>stays allowed under every policy,requiredincluded, so the default pattern is unchangedDEVKIT_REFS_POLICY=optionalexempt every approved type, soevery type now gets the issue-less form (e.g.
feat/<summary>)DEVKIT_FLAKE_PIN_ADVANCE: advance a pinned devkit flake input on upgrade
(#1752, #1756)
.vig-oskeyDEVKIT_FLAKE_PIN_ADVANCE. Withtrue, aninstall.sh --forceupgrade in direnv orbothmode rewrites a pinnedrelease ref (
?ref=Xor/X, form kept) to the newDEVKIT_VERSIONandruns
nix flake update <input>in the same step. If the lock update fails,flake.nixandflake.lockare both restored. Empty orfalse(default)leaves a pin untouched, and the
flake-bump:line now names the keyci.ymlfails itsresolve-toolchainjob when a pinnedrelease ref differs from
DEVKIT_VERSION, so an adoption PR can no longerwire hooks the pinned toolchain cannot run. Floating inputs, non-release
pins,
bareanddevcontainermodes are not gatedin one commit on that branch (bump the pin,
nix flake update <input>, setthe key) and merge it before the next weekly upgrade run replaces the
branch; see
docs/MIGRATION.mdRelease train: pluggable pre-release format, draft-Release-first owner
contract, and a standalone publish seam
(#1746)
alpha.{N}for
v0.1.0-alpha.1({N}counter,{YYYYMMDD}date). Precedence:release.ymlinputpre-release-format>.vig-osDEVKIT_PRERELEASE_FORMAT>rc{N}, which keeps today'sX.Y.Z-rcNtagsbyte-identical. A format switch that would sort below an existing tag of
the same
X.Y.Zis refused. Computed by the newrelease-versionvig-utils CLI
X.Y.Z-*tag, not only-rc*, so astray pre-release tag that sorts above the next
rcN(e.g.1.2.3-test)now stops a candidate for that version. Delete the stray tag, or release
the next version
release-publish.ymlnow creates the draft GitHub Release before the tagref, so tag-triggered asset workflows always find it (the "pre-publish
assets window"); a failed tag push discards the orphan draft.
promote-release.ymlstays the only place a draft is publishedpublish-release-extension.ymlonrelease: published(plus aworkflow_dispatchtag retry) forirreversible publishes such as crates.io or PyPI. It is standalone so
Trusted Publishing binds to its own path
docs/DOWNSTREAM_RELEASE.mddocuments the contract and a cargo-distrecipe: cargo-dist builds the assets and a tag-push workflow uploads them
into the train's draft, because
create-release = falsemakes cargo-distpublish the draft itself
devkitClaude Code plugin -- state-lookup-first operator skills(#1744)
plugins/devkit/plugin with eleven skills covering adoption(
/devkit:adopt), the read-only state report (/devkit:status), everyrelease-train pathway (
/devkit:release-prepare,-candidate,-finalize,-promote,-abandon,-hotfix,-neutral), consumerupgrades (
/devkit:upgrade) and the Rust pack audit(
/devkit:pack-rust).refusal table for the states that would foot-gun the verb it wraps --
another train in flight (#1627),
a floating tag that would move backwards
(#1626), a published
Release whose deletion tombstones the tag name
(#1301), a dirty tree,
devbehindmain. Skills wrap the canonicaljustrecipes and workflowdispatches; they never re-implement release logic.
disable-model-invocation: true, so an agent cannot infer its way intodispatching a release verb.
plugin.json's version equalsDEVKIT_VERSION, andrelease.yml's finalize step bumps and verifiesboth, so every release tag carries skills matching that release's verbs.
the consumer scaffold -- the per-repo copy is the drift model
#927 exists to retire.
Pin the marketplace to your
DEVKIT_VERSION(
/plugin marketplace add vig-os/[email protected] --sparse .claude-plugin pluginsthen
/plugin install devkit@vigos-devkit): an unpinned marketplacetracks devkit's default branch, so the skills would be the newest
release's whatever the scaffold pins.
/devkit:statusreports themismatch. Moving to a new version is remove-then-add; a repeat add is a
no-op and
marketplace updatekeeps the ref it was added with.^[0-9]+\.[0-9]+\.[0-9]+$in the same snippet, before the fetch, andresolve it as
refs/tags/<version>. The version is read from theinspected repo's manifest and interpolated into a URL that is piped to
a shell, and
curlcollapses..before sending, so an unvalidatedvalue would reach an arbitrary repository.
tests/test_devkit_plugin.pyfails when a skill names ajustrecipe ora workflow file that does not exist in devkit or in the scaffold.
Creation runbook for the
vigos-devkit-upgradeGitHub App(#1739)
docs/runbooks/devkit-upgrade-app.mddocuments the App's grant, itspublic visibility (linking to the recorded decision in
vig-os/org-config), its install targets, which org secrets carry itscredentials, and the key-rotation procedure, including the mandatory
GET /app/installationsinventory sweep for a public App with no webhookdevkit-upgrade.ymlgrant header now links to the runbookinstead of restating the permission set inline
Changed
(#1749)
promote-release.ymlcleanup job used to prune only-rc*candidate tags, so a repo on a non-defaultDEVKIT_PRERELEASE_FORMAT(e.g.alpha.{N}, Release train: first-class Rust release extension (crates.io, cargo-dist binaries, wheels) via a general publish/Release-owner seam #1746) never got itscandidate tags cleaned up. The match is now derived from the resolved
format via the new
release-version --list-patternCLI mode(
PreReleaseFormat.list_patternin vig-utils), reusing the format'sexisting
re.escape/placeholder machinery rather than a second parserintentionally left alone; the existing "no GitHub Release" guard is
unchanged
.github/workflows/promote-release.ymlstays on literalrc{N}-- itsets no pre-release format and its cleanup also prunes per-arch GHCR
-rcN-<arch>tags, which a format-generic matcher would not covervalidate-branch-namehook(#1760)
.pre-commit-config.yamland the flake-generated hook setreplace pre-commit-hooks'
no-commit-to-branchregex with arepo: localvalidate-branch-namehook;DEVKIT_BRANCH_TYPES, the Refs-optional setand
DEVKIT_WORKFLOWnow render its--types,--issueless-typesand--workflowargs.release/X.Y.Zbranches now pass locally, as they didin CI
config into the new one, reported as
preserved-hook-fold: no-commit-to-branch-pre-1760. A hand-editedpattern is left in place and reported as
preserved-hook-drift: no-commit-to-branch-pre-1760Dependencies
anchore/sbom-actionfromv0.24.2tov0.24.3(#1812)aquasecurity/trivyfromv0.74.0tov0.75.0(#1812)vig-os/sync-issues-actionfromv0.5.0tov0.5.1(#1812)Removed
DEVKIT_UPGRADE_APP_IDfallback indevkit-upgrade.yml(#1366)
DEVKIT_UPGRADE_APP_CLIENT_ID; the legacynumeric secret is no longer read at all, and its deprecation warning is
gone. Every consumer org already carries the Client-ID secret (Switch stamped workflows to client-id App credentials (next release) #1365), so
no consumer loses its App identity. The org secret can be retired in
org-config once this release is adopted
Fixed
(#1800)
DEVKIT_FEATURES_DISABLED=actionlintexcised the# >>> devkit:actionlint…
# <<< devkit:actionlintblock from a rendered.pre-commit-config.yamlbut left the blank lines flanking it, so the two ends met as two adjacent
blank lines —
too many blank lines (2 > 1)under the scaffold's own.yamllint(empty-lines: max: 1). The excision now also drops the blankline immediately before the block, scoped to that one seam
later upgrade: the excision is sentinel-gated and the sentinels are
already gone from an already-excised file, so there is nothing new to
trigger on. Fixing the double blank line by hand (or re-adding the hook
and re-running the opt-out) clears it
check-added-large-fileson.devcontainer/CHANGELOG.md(#1801)
CHANGELOG.mdinto.devcontainer/CHANGELOG.md(528 KB+ ondev), which crossed the hook's500 KB default.
check-added-large-filesnow excludes that path; devkit'sown repo has no
.devcontainer/directory, so the exclude is an inertno-op on devkit's own commits
sync-issues.yml'ssyncjob ignoredDEVKIT_CI_RUNNER(#1795)
resolve-toolchainnow re-exportsrunner-json, and thesyncjob routesruns-onthrough it (${{ fromJSON(needs.resolve-toolchain.outputs.runner-json) }}),matching
ci.yml. A self-hosted consumer's own runner now also carriesthis daily-cron job instead of paying for it on the hosted default every
day regardless of activity.
resolve-toolchain's ownruns-onisunchanged (hosted default, per Scaffolded ci.yml: manifest-driven runner override (self-hosted consumers can't keep hand-edits) #1173)
(#1793)
repository-dispatch.yml'sdeployjob mints the commit App token but wasmissing from
render_commit_app_environment's render list, so a--smoke-testscaffold withDEVKIT_COMMIT_APP_ENVIRONMENTset left itreading
COMMIT_APP_CLIENT_ID/COMMIT_APP_PRIVATE_KEYfrom org/reposecrets instead of the environment. It is now bound alongside the other
token-minting jobs.
(#1757)
sync-issues.ymlsaved its incremental cutoff withif: always(), so afailed
Commit and pushstep still advanced it and the next run neverregenerated the unpushed issues and PRs. The save now runs only when the
sync succeeded and the push did not fail; a skipped push (nothing changed)
still saves
(#1758)
DEVKIT_SYNC_TARGETmirror's only fold-back is the release train, sowith
releaseinDEVKIT_FEATURES_DISABLEDit was never merged back andthe trunk's
docs/issues/stopped updating, with no output. The scaffoldnow prints a notice for that combination (it still proceeds)
.vig-osand migration docs no longer claim each sync regenerates fullstate: the sync is incremental, and only
force-updaterebuilds(#1759)
ci.ymlandcodeql.ymlfilteredpull_requesttodev,release/**andmain, so a PR onto a topic branch showed no checks atall. Both now accept any base (
'**');codeql.ymlgains the sameconcurrency group as
ci.yml, cancelling superseded runs except on push(#1745)
bundlerecipe now rebuilds its committeddist/when therelease is prepared, and the refreshed bundle rides the CHANGELOG freeze
commit, so the release PR opens with a fresh artifact instead of failing
Dist Check before the candidate can run. Finalize still rebuilds it. The
detect-and-build logic moved into a shared managed action,
.github/actions/build-bundle, which thereleasefeature group prunesvigos.multiplexerre-attached a window to an on-screen session(#1753)
detach-on-destroyis nowno-detached: killing a session switches theclient to a detached session if one exists and otherwise closes the
window, instead of showing a project already attached elsewhere
(#1737)
wait-release-pr-cijob could observe a complete,green required-check set for the release PR's pre-push head SHA and let
trigger-promote-releasedispatchpromote-release.ymlwhilefinalize'ssync-issuespush was still re-triggering that PR's CI --a timing race, not a content defect (live on the 1.17.0 train).
queued/in_progressworkflow run) and a required-check read anchored by aheadRefOidsnapshot taken immediately before and after the query; ahead move discards the observation instead of judging it.
last-mile guard in
trigger-promote-releasethat re-checks the PR headimmediately before dispatch and fails with an explicit message on a
mismatch, instead of a confusing downstream "checks still in progress"
refusal.
consumers (#1763)
for dependencies an enabled manager extracts. The smoke-test overlay
enabled
github-actionsonly, and every smoke deploy overwrote a handfix; it now also enables
pep621.renovate.jsontemplate now enablescargo, and the presetcarries a
cargorule (build(cargo)) so Cargo PRs pass the commit gate.renovate.jsonis preserved on upgrade: existing Rust consumers addcargoby hand (seedocs/MIGRATION.md).vulnerabilityAlertsexplicitly and labelsvulnerability PRs
security.