Repository navigation
chore: release 1.8.0 - #1441
Merged
Merged
chore: release 1.8.0#1441
Conversation
Scheduled refresh of the nixpkgs-unstable pin (uv, gh, claude-code via the fastMovers overlay). Full CI on this PR is the merge gate. Refs: #817
Automated sync of `main` to `dev` found **merge conflicts** that require manual resolution. ### How to resolve ```bash git fetch origin chore/sync-main-to-dev-29-1:chore/sync-main-to-dev-29-1 git checkout chore/sync-main-to-dev-29-1 git merge origin/dev # resolve conflicts git commit -S git push origin chore/sync-main-to-dev-29-1 ``` Once pushed, this PR will update and become mergeable.
The failure-notify job requested an installation token for the pre-rename vig-os/devcontainer repository; the App installation lookup does not follow rename redirects, so the mint failed with 404 and no upstream failure issue was ever filed. Refs: #1396
## Summary
Fixes the smoke-test listener's `notify-failure` job, which could never
mint its upstream App token: it requested an installation token for the
pre-rename `vig-os/devcontainer` repository, and the App-installation
lookup (`GET /repos/{owner}/{repo}/installation`) does not follow rename
redirects, so every mint failed with 404 and no upstream failure issue
was ever filed (observed on all 1.7.0-train listener failures: runs
31207370105, 31217441944, 31275371280).
## Changes
- `assets/smoke-test/.github/workflows/repository-dispatch.yml`: notify
job now mints for `repositories: devkit` (matching the `gh issue create
--repo vig-os/devkit` it feeds); stale repo name in the header comment
updated too.
- `CHANGELOG.md`: Unreleased > Fixed entry (mirrored to
`assets/workspace/.devcontainer/CHANGELOG.md` by sync-manifest).
No new secrets or installs needed: `vig-os-release-app` is installed
org-wide, and it already exercises issues:write (label creation in the
same workflow).
The fixed listener will additionally be hot-deployed to
`devkit-smoke-test` `main` (where the listener actually executes from)
and live-proven with a synthetic failing dispatch.
Refs: #1396
…ation (#1402) ## Summary 1.7.0-rc1 and rc2 both died in `publish` when the public-good Sigstore transparency log timed out. The outer retry we had — `sleep 30` between two attempts — capped the whole envelope at about 2 minutes, shorter than the incident that hit us. The action already retries internally, so widening had to happen on our side: `@actions/attest` hardcodes `DEFAULT_TIMEOUT = 10000` and `DEFAULT_RETRIES = 3` into the Rekor witness (4 attempts at 0/+1/+2/+4s, ~47s per step) and exposes no input to change it. Confirmed against the pinned bundle; `OCI_TIMEOUT` / `OCI_RETRY` apply to the registry push, not to Rekor. Since Actions cannot loop over a `uses:` step, more attempts would have meant a third and fourth copy of each attestation block. Instead the **wait** got smarter: it polls the transparency log until it answers again, up to a 10-minute budget, and returns the moment the service is actually back. ## Changes - **`.github/scripts/wait-for-rekor.sh`** (new) — settles 30s, then probes `${REKOR_URL}/api/v1/log` every 30s until it responds or the budget runs out. Always exits 0: deciding the release's fate is the retry step's job, and a non-zero exit here would abort the job before that retry ever ran. Tunable via `REKOR_URL` / `REKOR_SETTLE_SECONDS` / `REKOR_PROBE_INTERVAL` / `REKOR_WAIT_SECONDS`. - **`release.yml`** — both attestation waits (provenance and SBOM) call the helper with a 600s budget instead of `sleep 30`. Attempt/retry structure is otherwise untouched: attempt 1 stays `continue-on-error`, the retry still fails the job. - **`release.yml`** — `publish` timeout raised 30 → 45 min. Publishing itself runs ~5 min (measured across the 1.7.0 candidates); two full waits could burn 20 min, which would have hit the old ceiling and failed the release on the timeout instead. Coverage goes from ~2 minutes to ~12 per attestation, and the common case gets *faster* — a 40-second blip no longer costs a flat 30-second sleep. ## Testing - `tests/bats/wait-for-rekor.bats` (new, 5 tests) — stubs `curl` and `sleep` to drive a simulated clock: returns as soon as the log answers, keeps probing while it is down, gives up at the deadline **without failing the step**, probes the configured URL, and always settles before the first probe. - `tests/test_workflow_attest_retry_backoff.py` (new, 8 tests) — workflow shape: waits poll rather than sleep, the budget is minutes-scale, the guards keep the happy path free, attempt 1 is soft and the retry is final, retry and attempt stay in lockstep, no third copy of the `uses:` blocks, and the job timeout outlasts both waits. - Full local suite green: 590 bats, 462 pytest (docker/image/integration deselected locally, CI covers them), `just precommit` clean including actionlint and shellcheck. ## Notes The remaining acceptance criterion — exercising this on a release candidate — is inherently deferred to the next train; the path only runs when an attestation actually fails, so it cannot be proven green in PR CI. Out of scope, recorded on the issue: the undocumented `private-signing` input would sidestep public-good Rekor entirely but destroys public verifiability, and decoupling SBOM attestation from the publish critical path is a larger design change that deserves its own issue if this proves insufficient. Closes #1399
Smoke deploys must treat the consumer's root CHANGELOG.md as consumer state: preserved across deploys, bootstrapped from the scaffold skeleton only when absent, and never a copy of devkit's own changelog. The rewritten integration test replaces assertions that encoded the buggy copy-devkit-history behavior. Refs: #1403
…loys The smoke branch rsynced with --delete and no preserve excludes, then copied devkit's entire changelog (.devcontainer/CHANGELOG.md mirror) over the consumer's root CHANGELOG.md. The prepare-changelog unprepare safety valve no-ops since #590 (the first heading is always ## Unreleased), so devkit's dated/linked ## [X.Y.Z] headings replaced the consumer's frozen ## [X.Y.Z] - TBD heading — colliding with main's finalize rewrite of the same line and guaranteeing a main<->dev sync conflict whenever the versions coincide (structural for devkit-smoke-test). Root-anchor a /CHANGELOG.md exclude on the smoke rsync (consumer state, shielded from copy and --delete; .devcontainer/CHANGELOG.md still syncs), bootstrap the scaffold skeleton only when the file is absent, and drop the cp + unprepare block. prepare-changelog unprepare loses its only production caller; the vig-utils CLI surface is left untouched deliberately (removing a subcommand is out of scope for this bugfix). Refs: #1403
The deploy-entry seeding awk must be bounded at the next release heading and able to seed an Unreleased section that lacks a ### Changed subheading. Refs: #1403
The seeding awk never cleared in_unreleased at the next ## [X.Y.Z] heading, so with an empty Unreleased section the deploy bullet landed in the first ### Changed of a RELEASED section (the bounded verify awk then failed the job). Bound the insert scope at the release-heading boundary and synthesize a ### Changed subheading when Unreleased lacks one (defensive: prepare-changelog always emits the full skeleton). Refs: #1403
Pin the sync-main-to-dev auto-resolve pipeline shape in both decoupled copies: conflicted-path enumeration and snapshot allowlist, dev-side materialization, GitHub-signed commit via the pinned commit-action, merge re-verification against the updated sync branch, and the effective-conflict flag consumed by PR creation and auto-merge. Refs: #1403
… commit docs/issues and docs/pull-requests snapshots are generated independently on dev (nightly sync-issues) and on the release branch (release-time sync-issues), so every release produced add/add conflicts on paths absent at the merge base and the post-release main->dev sync PR opened conflicted every time. The signed-commits ruleset (all refs, no bypass actors) forbids a plain runner merge commit, so the resolution is a single-parent GitHub-signed commit-action commit that aligns the sync branch's copy of each conflicted snapshot with dev's content: with both merge sides identical the conflict vanishes. Dev's possibly-staler snapshot self-heals at the next nightly sync-issues run, whose updated-since cutoff predates anything the release-time sync captured. Only paths merge-tree reports as conflicted are aligned — a snapshot changed only on main still merges cleanly and is not touched. Any conflicted path outside the snapshot dirs (or a delete/modify conflict) keeps the existing manual merge-conflict path, preserved bit-for-bit via the falsy fallback in the effective-conflict expression. Note the issue text proposed taking main's side; that would require a merge commit the runner cannot sign, and snapshots are derived artifacts of live GitHub state, so the dev-side alignment loses nothing beyond a <=24h staleness window. Applied identically to the canonical workflow and the workspace template (intentionally decoupled copies, pinned by the new cross-copy test). Refs: #1403
## Summary Adoption PRs opened by the devkit-upgrade workflow now get a `CHANGELOG.md` entry, exactly like Renovate PRs (option B from the design discussion on #1404): - **`vig-utils`**: `renovate-changelog-pr` branches on the PR title — `chore: adopt devkit X.Y.Z[-rcN]` produces `- **Adopt vigOS devkit X.Y.Z** ([#PR](…)) — [release notes](…)` at the top of `## Unreleased` → `### Changed`, via the existing insertion helper (dedup on the PR link). The body is never fed through the Renovate table parser. The CLI also no-ops instead of crashing when `CHANGELOG.md` is absent (trunk consumers). - **Scaffold `renovate-changelog-build.yml`**: the author filter accepts `vigos-devkit-upgrade[bot]` alongside `renovate[bot]`. Workflow names are deliberately unchanged (a `workflow_run` rename has a default-branch transition hazard). Devkit's own de-coupled copy (#996) is untouched — devkit never receives adoption PRs. - **`renovate-changelog-commit.yml`** (root + manifest-derived scaffold): commit message generalized to `docs(changelog): add unreleased entry for PR N`. rc → final force-updates wipe the changelog commit, but the resulting `synchronize` event re-runs the build (sender guard only excludes `commit-action-bot[bot]`), so the entry is re-added with the new version. ## Verification - TDD: failing tests committed first (`dbf2de14`), implementation after (`22ee7f27`); 26/26 in `test_renovate_changelog_pr.py` - `just precommit` (all files), 666 pytest (vig-utils + transforms + scaffold lint/drift), 590 bats — all green - Insertion spike validated against commit-action's real `CHANGELOG.md` (clean insert, idempotent re-run) Closes #1404
## Summary The devkit-upgrade workflow no longer creates, reuses, or garbage-collects a per-train adoption issue — adoption PRs become bot PRs exactly like Renovate's, with the PR as the traceable artifact and the changelog entry (#1404 / PR #1407) linking it. Motivation (live evidence): on gitflow consumers the dev-targeted `Closes #N` never auto-closes, so every train strands an open issue (e.g. vig-os/commit-action#140, still open after its PR merged). The #1347 cleanup step existed only to garbage-collect issues the workflow itself created. Changes in `assets/workspace/.github/workflows/devkit-upgrade.yml`: - "Find or create the adoption issue" step and the entire #1347 no-diff cleanup step removed — a no-diff run now strands nothing by construction - Branch: `chore/devkit-<train-suffix>` (the branch guard explicitly allows the issue-less `chore/<summary>` shape; still keyed on the train so rc → final reuse the same branch/PR) - Staging commit: `chore: adopt devkit X.Y.Z` with no `Refs:` line (`chore` is exempt; hooks still validate in the project shell) - PR body: links the devkit release notes instead of an auto-close marker - Token mint: `permission-issues: write` dropped (three-permission least-privilege mint); preflight error message and header docstring updated ## Rollout notes - Takes effect one train after shipping (the workflow runs from the consumer's base branch) - One-time migration: close adoption issues left open by earlier trains on the consumers (commit-action#140 et al.) ## Verification - TDD: failing tests committed first (`880c7d32`), workflow refactor after (`cf47f622`); 18/18 in `test_workflow_devkit_upgrade.py` incl. new `test_no_adoption_issue_lifecycle` (no `gh issue`, no `Refs:`/auto-close markers, chore-shape branch, release-notes link) and the tightened least-privilege mint assertion - `just precommit` (all files), 695 pytest (vig-utils + workflow/scaffold/transform/model), full bats — all green - `docs/issues/*.md` mentions of the old flow are frozen historical records and deliberately untouched Closes #1405
## Summary Fixes the deterministic conflicts that make the post-release `main → dev` sync PR open red on every train (devkit#1395, smoke-test#351). Both root causes from #1403 are addressed; the `merge-conflict` manual path remains for genuine conflicts. ### Cause B — issue/PR snapshot add/add conflicts (every gitflow repo) `sync-main-to-dev.yml` (both the canonical copy and the workspace template, kept byte-identical and pinned by a new cross-copy test) gains three steps between branch push and PR creation: 1. **Auto-resolve** — re-probes with `git merge-tree --write-tree --name-only`, parses the conflicted paths, and proceeds only when *every* conflicted path is a generated snapshot (`docs/issues/`, `docs/pull-requests/`) still present on dev (delete/modify stays manual). It materializes dev's side of exactly those paths in the working tree. 2. **Signed commit** — `vig-os/commit-action` (COMMIT_APP token) commits them to the pushed sync branch. 3. **Re-verify** — refetches and re-runs `merge-tree` against the updated branch; only a proven-clean result flips the effective conflict flag consumed by `Create PR` and `Enable auto-merge` (falsy-fallback expression keeps today's manual path bit-for-bit when auto-resolve is skipped or ineligible). **Why dev-side wins (deviation from the issue's "main side" suggestion):** the `Signed commits` ruleset (`~ALL` refs, no bypass actors) means the runner can only produce single-parent GitHub-signed commits via GraphQL — a merge commit taking main's side is impossible. Aligning the sync branch to dev's content makes both merge sides identical, so the conflict vanishes; snapshots are derived artifacts of live GitHub state, and dev's next nightly sync-issues run re-captures anything main had (its updated-since cutoff predates the release-time sync), so nothing is lost beyond a ≤24 h staleness window. Only paths merge-tree reports as conflicted are touched — a snapshot changed only on main still merges cleanly. ### Cause A — smoke deploy clobbered the consumer changelog (smoke-test only) The smoke branch of `init-workspace.sh` rsynced with `--delete` and no preserve excludes, then copied devkit's entire changelog over the consumer's root `CHANGELOG.md`; the `prepare-changelog unprepare` safety valve no-ops since #590 (first heading is always `## Unreleased`). Devkit's dated `## [X.Y.Z](…devkit…)` heading replaced the consumer's frozen `## [X.Y.Z] - TBD`, colliding with main's finalize rewrite whenever versions coincide — structural for devkit-smoke-test. Now: root-anchored `--exclude='/CHANGELOG.md'` (consumer state preserved; `.devcontainer/CHANGELOG.md` still syncs), scaffold skeleton bootstrapped only when the file is absent, cp+unprepare block deleted. `prepare-changelog unprepare` loses its only production caller; the vig-utils CLI surface is deliberately untouched (removing a subcommand is out of scope here). Also fixes the latent unbounded seeding awk in `repository-dispatch.yml`: the deploy bullet is now bounded at the next `## [` heading and a `### Changed` subheading is synthesized when `## Unreleased` lacks one. ## Rollout timing (corrected) An earlier draft of this PR claimed the fix only goes live one release late. That was wrong: **push-triggered workflows execute the workflow file at the pushed commit**, and devkit's own run history proves it — the 1.7.0 promote's sync run executed at `headSha bcb0a25`, the promote merge commit itself. Since this fix flows dev → `release/1.7.1` → main, the 1.7.1 merge commit on main *contains* the new workflow, so **the very sync run fired by the 1.7.1 promote is already the auto-resolving version** — full live proof arrives with the next ordinary release, no extra train needed. Cause A proves even earlier, at the first 1.7.1-rc smoke deploy (the installer runs from the tagged tree). The smoke-test's already-copied changelog history is preserved as-is and converges over subsequent releases. ## Zero-release proof: replay against the real 1.7.0 conflict The pre-resolution state of devkit#1395 still exists in history (`dc25bfbb`'s parents: `bcb0a257` = main, `665a0901` = dev). Replaying the new auto-resolve pipeline against it: - `git merge-tree --write-tree --name-only` exits 1 and the output matches the parser's format assumption exactly (tree OID, conflicted paths, blank line, informational messages). - Parsed conflicted paths: `docs/issues/issue-1386.md`, `docs/issues/issue-1391.md`, `docs/issues/issue-529.md`, `docs/pull-requests/pr-1385.md` — all inside the allowlist, and `issue-529.md` is a **content** conflict (not add/add), confirming both classes are covered. - Eligibility loop passes (all paths present on dev). - The automated dev-side result is **byte-identical on all four files to the actual manual resolution** committed in `dc25bfbb`. ## Verification - TDD: each fix landed as a failing-test commit followed by the implementation (see commit sequence). - `tests/test_workflow_sync_autoresolve.py` (new, parametrized over both workflow copies incl. cross-copy identity) — 9 passed. - Rewritten `test_smoke_workspace_changelog_available_in_devcontainer_and_root` passed against a freshly built dev image. - New bats: smoke deploy preserves a pre-seeded consumer changelog (sentinel + frozen `## [9.9.9] - TBD` survive) and bootstraps the scaffold when absent; seeding-awk shape pinned in `just.bats`. The new awk was additionally exercised against three fixtures (skeleton present / missing `### Changed` before a released section / Unreleased at EOF) — bullet lands inside Unreleased in all three. - Full local gates: `pre-commit run --all-files` green; fast pytest 510 passed; vig-utils 566 passed (untouched); `just.bats` 54/54; rendered-template + smoke actionlint (#995) green; full `init-workspace.bats` green. Refs: #1403
## Description Documents the smoke-test final-release human-approval gate shipped in 1.7.0 (#1391 / PR #1392). The mechanism is live-proven, but its operational contract lived only in issue threads and workflow comments — an operator following the current docs at the next final leg would hit a silent 30-minute stall, because devkit's `release.yml` does not block on downstream state and nothing signals that the smoke listener is waiting for an approval. Closes #1409 ## Type of Change - [x] `docs` -- Documentation only ## Changes Made - **`docs/CROSS_REPO_RELEASE_GATE.md`** - Receiver Responsibilities: new step for the approval gate — candidates leave the smoke release PR unapproved (deferred-approval model, #902); the final dispatch polls `reviewDecision` (20 s interval, 30 min) for a human approval; cleanup-recreate semantics explain why the approval must happen while the gate is waiting - New **Contract dependencies** section: (1) smoke-test `main` must require ≥1 approving review or `reviewDecision` never computes (org-config-owned, org-config#127; workflow approvals blocked org-wide by org-config#122); (2) the listener executes from the smoke repo's default branch — asset is SSoT, urgent fixes are hotfixed to smoke main and mirrored (precedents devkit-smoke-test#345/#353) - Failure Signals: gate timeout added, distinguishing "nobody approved" (approve + re-run failed jobs) from "required reviews dropped" (org-config drift) - **`docs/RELEASE_CYCLE.md`** - Phase 4: notes the one human exception in the otherwise automated gate - Phase 5 runbook: explicit operator step 2 — locate the waiting listener run, approve the freshly created smoke release PR (`gh` commands included), timeout recovery; subsequent steps renumbered - `CHANGELOG.md` (+ synced `assets/workspace/.devcontainer/CHANGELOG.md` copy, propagated by the `sync-manifest` hook) ## Changelog Entry ### Changed - **Document the smoke-test final-release human-approval gate** ([#1409](#1409)) - `docs/CROSS_REPO_RELEASE_GATE.md` now describes the approval gate shipped in 1.7.0 and its two contract dependencies: required reviews on smoke-test `main` (org-config-owned) and default-branch listener execution (asset SSoT, hotfix-main + mirror procedure) - `docs/RELEASE_CYCLE.md` Phase 5 gains the explicit operator step: approve the freshly created smoke-test release PR while the final dispatch is paused at the gate, with timeout recovery ## Testing - [x] Manual testing performed (describe below) ### Manual Testing Details Docs-only change — TDD not applicable. Full `just precommit` suite green locally (the `sync-manifest` hook propagated the changelog to the workspace asset; committed). Content verified against the shipped gate implementation (`assets/smoke-test/.github/workflows/repository-dispatch.yml`, `Gate final release on human approval of release PR`), the org-config live config (`vig-os.jsonnet` devkit-smoke-test `Main protection`), and the 1.7.0 train record (#1391, org-config#122/#127, smoke run 31221248513). ## Checklist - [x] My code follows the project's style guidelines - [x] I have performed a self-review of my code - [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
The rollback job reset the branch tree to the run-start PRE_SHA whenever a failed run's tip had moved, destroying commits merged mid-run (#1459/#1460). It now no-ops when finalize never ran (and on branch-neutral candidates), verifies the tip is exactly the finalize commit — optionally with the sync-issues commit on top — parented on the snapshot, using SHAs finalize exports as job outputs, and refuses loudly otherwise. The scaffolded consumer rollback swaps its git reset --hard + force push for the identical guarded Git Data API revert; release-core exposes finalize_result/finalize_commit_sha to the caller, and the devkit PR-body restore skips when finalize was skipped. Refs: #1462
…rt (#1464) ## Summary `just worktree-start` ran `git config --unset-all core.hooksPath` from inside the new linked worktree. `core.hooksPath` is **shared** repo config, so the unset disarmed the main checkout's tracked `.githooks` shims repo-wide — the #1430 failure mode, self-inflicted by a primary devkit workflow. ## Fix Skip-when-set: a relative `core.hooksPath` resolves against each worktree's root, and `.githooks` is tracked (present in every worktree), so when the setting exists the tracked shims already cover all three hook stages in the new worktree. `worktree-start` now leaves the config untouched and skips `prek install` in that state. The old `prek install` path survives only as the fallback when no hooks path is configured at all (the unset line is gone — it was a no-op there anyway). Rejected alternatives: - `git config --worktree --unset-all`: needs `extensions.worktreeConfig` repo-wide, and a worktree-scoped *unset* cannot mask a shared value — it would actually require a worktree-scoped SET plus the extension flip. More moving parts for no gain given the shims are already present. - Restore-after-install / restore-on-stop: still mutates shared state, leaving a disarm window (or a disarmed main checkout for the worktree's whole lifetime). Both copies fixed identically: `justfile.worktree` and the scaffolded `assets/workspace/.devcontainer/justfile.worktree`. ## Tests TDD: `test(workspace)` commit landed RED first. Two new bats tests in `tests/bats/worktree.bats` drive the **real** recipe (both copies) in a sandbox repo with a bare origin and stubbed tools: - main checkout's `core.hooksPath` survives `worktree-start`, all three tracked shims are executable in the new worktree, and `prek install` is never invoked; - the no-hooksPath fallback still installs all three prek stages (#778 pin). `bats tests/bats/worktree.bats tests/bats/githooks.bats` → 14/14 ok; full `prek run --all-files` green. ## Notes - The #1454 doctor comments in `justfile` / `assets/workspace/justfile` still describe the pre-fix behavior ("worktree-start unsets core.hooksPath on purpose"); the doctor logic itself remains correct for both pre-fix worktrees and the fallback path, so those comments were left alone (minimal diff) — cheap follow-up if wanted. - `git config commit.template .gitmessage` in the same recipe also writes shared config from the worktree, but idempotently (same value as main); out of scope here. Closes #1463
Squash merges are single-parent, so a foreign PR squash-merged between the finalize commit and the post-sync tip record would pass the parentage check and get reverted. The FINAL_TIP path now also requires the tip's message to be exactly 'chore: sync issues and PRs' in both release.yml copies, and its author to match the org commit App (SYNC_COMMIT_AUTHOR knob, devkit only — consumer App bot names are not a devkit-known constant, so the scaffold relies on the message gate alone). Refs: #1462
The smoke-mode rsync carried --delete, which removes every tracked path the template does not ship — including the smoke repo's own pyproject.toml, uv.lock, src/ and tests/. That stayed invisible while commit-action built the deploy tree additively; once #1443 began publishing `git ls-files --deleted`, the 1.8.0-rc3 deploy committed those deletions, the drift gate saw a repo with no pyproject.toml (so it rendered CodeQL and .gitignore language-neutral), and the whole smoke orchestration aborted. Retirement is the #1348 manifest's job, and the drift gate re-scaffolds in normal mode, which never deletes — so dropping --delete makes gate and deploy agree by construction. The docs/issues/ and docs/pull-requests/ excludes go with it: they existed only to shield sync-issues output from --delete. Refs: #1466
…ck (#1467) ## Summary `release.yml`'s **Rollback on Failure** built a commit whose tree was reset to `pre_finalize_sha` — a run-start snapshot — whenever the run failed and the branch tip had moved at all. Any commit merged to the release branch while a run was in flight was silently destroyed on that run's failure (#1459: the merged content of #1447 and #1448 wiped off `release/1.8.0` twice, both times with `finalize` *skipped*). ## Fix The rollback branch step now proves the branch holds only this run's own writes before touching anything, and refuses loudly otherwise: 1. **No-op when `finalize` never ran** (`needs.finalize.result == 'skipped'`/empty) — this alone prevents both incidents. 2. **No-op for candidates** — finalize is branch-neutral unless `release_kind == final` (second independent shield; both incidents were candidates). 3. Retained `CURRENT_SHA == PRE_SHA` no-op. 4. **Chain proof before any write**: `finalize` now exports the exact commit SHA it pushed (commit-action's `commit-sha` output) plus the post-sync tip. The tip must be exactly the finalize commit parented on `PRE_SHA`, or the sync commit directly on top of it — and since this org squash-merges PRs (single-parent, indistinguishable by parentage alone), the sync-tip path additionally gates on the sync commit's fixed message `chore: sync issues and PRs` (devkit also pins the author `commit-action-bot[bot]`; live-verified against the real 1.7.0 finalize/sync pair on `main`). Anything else ⇒ `::error` + step failure, branch untouched; the failure issue and job summary report the outcome. Only when the proof passes does the existing tree-at-`PRE_SHA` revert commit run — at that point it is exactly a revert of the run's own commits. The PR-body restore step (and its Release-App token mint) now also skip when finalize was skipped — finalize is the only PR-body writer. **All three copies fixed consistently**: devkit's `release.yml`, scaffolded `release-core.yml` (new `finalize_commit_sha` / `finalize_result` workflow_call outputs), and the scaffolded orchestrator `release.yml` — whose old rollback was a `git reset --hard $PRE_SHA` + force-push with zero guards, now replaced by the identical guarded API revert. Scaffold copies gate on the sync message only (the commit-bot name is per-consumer, the shipped `sync-issues.yml` message is a constant); script bodies are byte-identical between copies. No concurrency group (issue proposal 4) — deliberately out of scope. ## Tests TDD: `test(ci)` commit landed RED first (18 failed / 5 passed — the 5 were retained behaviors). New `tests/test_release_rollback_guard.py` executes the actual workflow scripts against stubbed `gh`/`retry` simulating the Git Data API, parametrized over both copies: both incident shapes no-op, foreign-tip and foreign-parent refuse, foreign squash commit atop finalize refuses (the row that fails against the unhardened script), genuine sync commit reverts. Existing #1378 rollback-identity test rewritten to pin the App-token API rollback. Verification (direct exit codes): `pytest tests/test_release_rollback_guard.py tests/test_workflow_release_publish.py` → 43 passed; broad `pytest tests/` (excl. image/integration/flake) → 524 passed; `actionlint .github/workflows/release.yml` clean; rendered-tree actionlint bats 6/6 (covers the scaffold copies in all modes); full `prek run --all-files` → exit 0. Also included: `chore` merge of `release/1.8.0` (brings in the #1463 fix from #1464; changelog union resolved manually, mirror byte-identical), and stale "branch reset to pre-finalization state" wording updated in `docs/RELEASE_CYCLE.md` / `DOWNSTREAM_RELEASE.md` and the failure-issue texts. ## Notes - Failed-job output propagation for `finalize_commit_sha` follows the pattern the job already relied on for `pre_finalize_sha`. - The dead `git_user_name`/`git_user_email` plumbing in `release-core.yml` (now unused after dropping the git-CLI rollback) is left in place — removal ripples across three workflows; separate-issue material. - The interim operating rule from the issue (don't merge into a release branch mid-run) becomes a courtesy rather than a data-integrity requirement, but remains good practice. Closes #1462
…ling The doctor recipe comments in justfile and the scaffolded assets/workspace/justfile still claimed `just worktree-start` unsets core.hooksPath in the worktree on purpose and always prek-installs the shims. Since #1463 a configured hooks path is left untouched (the tracked .githooks shims cover the worktree) and the prek install into the shared .git/hooks survives only as the fallback when no hooks path is configured. Reword both copies to describe that reality; doctor logic and output are unchanged. Refs: #1469
… release workflows Refs: #1470
…les (#1468) ## Summary The 1.8.0-rc3 smoke deploy committed the deletion of devkit-smoke-test's own Python project (`pyproject.toml`, `uv.lock`, `src/`, `tests/`), which failed the scaffold-drift gate and aborted the release gate. This drops `--delete` from the smoke-mode scaffold copy. `assets/init-workspace.sh` smoke mode was the only copy branch carrying `rsync --delete`, so it removed every tracked path the template does not ship — consumer payload included. That was invisible while `commit-action` built the deploy tree additively; #1443 then started publishing `git ls-files --deleted`, and the deletions reached the branch. The drift gate re-scaffolds in **normal** mode, which never deletes and prunes retirement via the #1348 manifest. Smoke mode now does the same, so gate and deploy agree by construction. The `docs/issues/` and `docs/pull-requests/` excludes go with `--delete` — they existed only to shield sync-issues output from it. The `/CHANGELOG.md` exclude stays: it is overwrite protection (#1403), not delete protection. Second-order effect this clears: with `pyproject.toml` gone from the branch, the gate's re-scaffold no longer detected a Python repo, so it rendered `language: ['actions']` for CodeQL and stripped the 166-line Python block from `.gitignore`. ## Changes - `assets/init-workspace.sh` — smoke-mode rsync drops `--delete` and the two docs excludes - `tests/bats/init-workspace.bats` — two new end-to-end regression tests (consumer payload survives; retired paths are still pruned); the two tests that asserted the `--delete` behaviour replaced by one that pins its absence - `CHANGELOG.md` — Fixed entry under 1.8.0 ## Verification | Suite | Result | |---|---| | `bats tests/bats/init-workspace.bats` | 252/252 pass | | `bats tests/bats/install.bats tests/bats/just.bats` | 140 pass, exit 0 | | `pytest tests/` (excluding container suites) | 608 passed, 1 skipped | | `prek run --all-files` | exit 0 | Both new tests were confirmed RED before the fix: the payload test failed on the deleted `pyproject.toml`/`uv.lock`, the retirement test passed throughout (pinning that the #1348 prune, not `--delete`, is what removes retired paths). ## Notes No change to `assets/smoke-test/.github/workflows/repository-dispatch.yml`, so the listener already deployed to devkit-smoke-test `main` needs **no** redeploy — its `git ls-files --deleted` step now sees only genuine retirements. Live proof is the next candidate's smoke chain. Closes #1466
…ling (#1471) ## Summary After #1463 (PR #1464), `just worktree-start` no longer unsets `core.hooksPath` — a configured hooks path is left untouched (the tracked `.githooks` shims cover the new worktree) and the prek install into the shared `.git/hooks` survives only as the fallback when no hooks path is set. The #1454 doctor comments in both `justfile` copies still asserted the old behavior was "the INTENDED state ... on purpose", which would actively mislead the next hook-state investigation (the #1430 → #1454 → #1461 → #1463 chain shows how much debugging here leans on these comments). ## Changes Comment-only, zero behavior delta: - `justfile` + `assets/workspace/justfile`: the doctor linked-worktree comment now describes post-#1463 reality — the shared-hooks PASS branch covers the no-hooksPath fallback plus worktrees created before #1463; a post-fix worktree keeps the shared setting and hits the normal `.githooks` PASS branch. The `--git-path` rationale and the copies' one-phrase wording difference are preserved. (These are independent copies — `scripts/manifest.toml` mirrors only `justfile.gh`/`justfile.worktree` — so both needed the hand edit.) - `tests/bats/doctor.bats`, `tests/bats/consumer-doctor.bats`, `tests/test_flake_hooks.py`: the same stale claim repeated in test comments, folded in per the scope note on the issue. Doctor logic and echo strings untouched; no changelog entry (internal docs). TDD skipped: comment-only, non-testable. ## Verification `bats tests/bats/doctor.bats tests/bats/consumer-doctor.bats` → 26/26 ok; full `prek run --all-files` → exit 0; clean tree. Closes #1469
… release workflows (#1472) ## Summary #1467 replaced the scaffolded orchestrator's rollback (`git reset --hard` + force-push under a configured git identity) with the guarded Git Data API revert — the last consumer of the `git_user_name` / `git_user_email` values threaded through the release workflows. This removes the dead plumbing everywhere, caller and callee in lockstep. The set turned out larger than #1467's "three workflows" note: **four workflows × two copies**: - scaffold `release.yml`: `workflow_dispatch` inputs + the forward into the `release-core` call - scaffold `release-core.yml`: `workflow_call` declarations (zero use sites in the file) - `prepare-release.yml` (devkit's own + scaffold): dispatch inputs + the forward into the extension call - `prepare-release-extension.yml` (devkit's own + scaffold): seam template declarations (the default no-op never reads them) Plus the contract docs (`docs/DOWNSTREAM_RELEASE.md` + scaffold copy). Devkit's own `release.yml` was already clean (bespoke, zero hits) and is untouched. Historical archives and released changelog entries deliberately kept. ## Consumer safety This is a `workflow_call`/seam interface change, hence the `semver:minor` label and the `### Removed` changelog entry under 1.8.0. Orchestrator and core ship together via the scaffold, so caller and callee change in lockstep — no consumer action beyond the normal upgrade. All six reachable consumers' **preserved** `prepare-release-extension.yml` copies (commit-action, sync-issues-action, org-config, devkit-smoke-test, vault, exo-fleet) were checked: they declare the pair but have zero use sites, and since the inputs are optional with declared defaults, a stale preserved copy stays valid against the upgraded caller. The one genuine surface change: the (never-exercised) dispatch knob for a custom release-commit identity is gone — all release writes are App-identity API commits. ## Tests TDD: `test(ci)` commit landed RED first (5 failed / 32 passed — exactly the new absence assertions). `test_scaffold_orchestrator_keeps_the_dispatch_identity_inputs` rewritten to `..._drops_...` (also pins the release-core declarations and the core-call `with:`, keeps the App-token rollback assertions); the pair dropped from `REQUIRED_INPUTS` in `test_workflow_prepare_extension.py` plus two absence tests parametrized over both extension copies. Verification (direct exit codes): workflow suites 66 passed; broad `pytest tests/` (excl. image/integration/flake) 534 passed; `actionlint` on the two touched devkit workflows clean; rendered-tree actionlint bats 6/6; after merging in the updated `release/1.8.0` (#1468 landed mid-flight; clean auto-merge, changelog union verified, mirror byte-identical): full `init-workspace.bats` 252/252 ok and full `prek run --all-files` exit 0. Closes #1470
c-vigo
marked this pull request as ready for review
August 12, 2026 13:17
c-vigo
previously approved these changes
Aug 12, 2026
Set release date to 2026-08-12 and regenerate release docs. Refs: #1441
c-vigo
self-requested a review
August 12, 2026 13:54
c-vigo
approved these changes
Aug 12, 2026
2 tasks done
c-vigo
added a commit
that referenced
this pull request
Aug 13, 2026
) ## Description `vig-os` dismisses PR approvals when new commits are pushed. The `finalize` job of a **final** `release.yml` run always pushes to the release branch (the CHANGELOG date stamp, plus the sync-issues commit), so **the approval that authorises the final release is destroyed by that very run** — every time, in every repo consuming the scaffolded release workflow. `promote-release.yml` then re-checks approvals independently, making re-approval a mandatory, undocumented step between the final and the promote dispatch. Observed live on the 1.8.0 train: #1441 was `APPROVED` when `validate` passed, and `DISMISSED` / `REVIEW_REQUIRED` immediately after `finalize` pushed `15abe1b3` + `7a07142d`. ## Type of Change - [x] `docs` -- Documentation only **Both approval gates are kept.** Each guards a genuinely different irreversible act — burning the immutable `X.Y.Z` tag, and moving `:latest` + merging to `main`. No workflow or code file is touched by this PR. ## Changes Made `docs/RELEASE_CYCLE.md`: - lifecycle diagram — approval node relabelled as authorising the final dispatch; new `Re-approve PR` node between publish and merge - Release Phases item 2, Phase 2 step 7 — the approval authorises the *dispatch* and does not survive it - Phase 3 prerequisites — "PR has required approvals (**consumed by this run**)", plus a paragraph naming the pushes that dismiss it - Phase 5 — new step 4 "Re-approve the release PR" with the concrete commands, before the promote dispatch - `release.yml` reference — one bullet in Key characteristics `docs/DOWNSTREAM_RELEASE.md` — mirrors the **operator step** only, linking to `RELEASE_CYCLE.md` for the reasoning (SSoT: no duplicated explanation). Three pre-existing sentences had to be reconciled rather than left contradicting the new text. Notably, Phase 2 step 7's *"the approval lands on the exact diff that ships"* now says the approval lands on the release content **as it will ship**, with the mechanical finalization written on top. The issue's phrasing that "the approved SHA is what gets tagged" was deliberately **not** reused — the tag points at `finalize_sha`, i.e. the approved content *plus* the finalize commit, so that sentence would have been false. ## Changelog Entry ``` ### Changed - **Release docs: the release PR must be re-approved before promote** ([#1474](#1474)) ``` (full entry with sub-bullets is in `CHANGELOG.md`) ## Testing - [x] `prek run --all-files` (incl. `pymarkdown` on every changed file) -> only `check-expirations` fails; `.vulnixignore` is byte-identical to `dev` on this branch. **Fixed by #1482 — merge that first.** TDD does not apply: documentation only, nothing testable, as the repo's TDD rule allows. ### Manual Testing Details Verified the load-bearing claim against the code rather than the issue text: devkit's own `promote-release.yml` checks approval **only** in the `merge` job (`:435`), which runs *after* `promote` has published the draft release and moved `:latest` — so a dismissed approval leaves the release half-promoted. The consumer template checks in **both** `validate` (fails fast) and `merge`. The two documents say the right thing for their own audience. Closes #1474 Refs: #1474
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.8.0 - 2026-08-12
This PR prepares release 1.8.0 for merge to main.
1.8.0 - 2026-08-12
Added
just doctornow ships on the consumer surface (#1448)#1418 /
#1430 existed only in
devkit's own justfile, so a scaffolded repo had none. The managed root
justfilenow carries the same diagnostic — git identity, commit signing,core.hooksPath, ssh-agent,ghauth — reported asPASS/WARNlines,always exiting 0
core.hooksPathremediation hint is delivery-mode aware, read from.vig-osDEVKIT_MODE: the universalgit config core.hooksPath .githooksin every mode, plus the entry pointthat normally wires it (reopen the devcontainer, or
direnv allowfor thedev-shell hook from #1112).
bareand ad-hoc checkouts, where nothing wires it, get the direct commandonly — never devkit's own
./scripts/init.sh, which no consumer hasjustfile, the only justfile layer present inevery delivery mode, so upgrades deliver it;
justfile.projectispreserved on upgrade and would never reach an existing consumer
just doctorreports whether the git hooks are actually wired (#1430)core.hooksPathdiagnostic:PASSwhen it points at.githooks,WARNotherwise, distinguishing "not set" (a fresh clone, where thetracked
.githooks/shims are on disk but inert) from "set to somethingelse", both with a
./scripts/init.shremediation hintsignal it can read before its first commit lands, complementing the CI
branch-name and
Refs:gates that hold regardless of local git configdoctorremains diagnostics-only and still always exits 0DEVKIT_BRANCH_TYPES) + CI branch-name gate (#1432).vig-oskey: a comma-separated full replacement of theissue-numbered
<type>/<issue>-<summary>branch-type set, rendered intothe scaffolded
no-commit-to-branchpattern, the flake-generatedconsumer surface (new
mkProjectShellbranchTypesargument; thetemplate
flake.nixreads the key at eval time), and CI — one key, everygate; the
chore/,renovate/,worktree/clauses stay fixedthe commit-checks lane now validates the PR head ref against the resolved
type set plus automation allowances (
release/X.Y.Z,renovate/*,worktree/<n>, botchore/branches,main/dev) — enforcement thatsurvives a fresh clone whose local hooks are not yet wired
(
core.hooksPath), also added to devkit's own CI--forceupgrades; out-of-charset values fail the scaffold (andnix develop) loudly while CI falls back to the stock set with awarning; dropping
releaseprints a noticeDEVKIT_COMMIT_TYPES) (#1431).vig-oskey: a comma-separated full replacement of the approvedcommit types, rendered into the
validate-commit-msghook's--typesarg at scaffold time and driving CI's
validate-commit-rangeviaresolve-toolchain's new
commit-typesoutput — one key, both gatesDEVKIT_REFS_POLICY=optionalnow mirrors the resolved list (custom orstock), so the two knobs compose; empty key keeps the default scaffold
byte-identical
--forceupgrades; out-of-charset valuesfail the scaffold loudly (CI falls back to the stock list with a
warning), and dropping the bot types (
chore/build) prints a noticejust doctorhost diagnostics + audit coverage gaps closed (#1418)just doctorrecipe reports host prerequisites (git identity, commitsigning, ssh-agent, gh auth) as PASS/WARN diagnostics and always exits 0
docs/generate.pyskillparsing/grouping units, image coverage for nvim/actionlint and locale
archive resolution, read-only token-ceiling pins for the scaffolded
release jobs, and stub-driven behavioral tests for the scaffolded
devc-upgradereciperenovate-changelog-build.ymlnow also accepts PRs openedby the devkit-upgrade App (
vigos-devkit-upgrade[bot]), so an adoption PRgets an
Adopt vigOS devkit X.Y.Zentry under## Unreleased→### Changed, linking the PR and the devkit release notes — the samepipeline Renovate PRs already use
renovate-changelog-prbranches on the PR title(
chore: adopt devkit X.Y.Z[-rcN]) and skips the Renovate dependencyparser for adoption PRs; it also no-ops instead of crashing when the
consumer has no
CHANGELOG.mddocs(changelog): add unreleased entry for PR NChanged
Allow
renovate/*branches in the branch guard (#1433)no-commit-to-branchpattern (committed hook config, scaffoldtemplate, and flake-generated consumer surface) now admits Renovate's
tool-owned branch namespace, so maintainer fix-up commits on Renovate PRs
(changelog conflict merges,
dist/rebuilds) no longer need thecommit-on-a-compliant-branch-then-
git push HEAD:renovate/…workaroundMirror-mode consumers integrate the issue archive via the release train (#1424)
DEVKIT_SYNC_TARGETset, the scaffoldedrelease-core.ymlfinal legnow dispatches sync-issues onto the mirror (the only branch that may
advance the shared incremental-sync cutoff) and then folds the mirror's
docs/issues/+docs/pull-requests/into the release branch, so thefull archive reaches
mainthrough the human-approved release PR —previously the mirror diverged forever and
mainnever carried thearchive
promote-release.ymlgains a renderedreset-sync-mirrorjob that force-resets the mirror onto
mainafter the release PR merges,bounding its divergence to post-release snapshot commits
consumers
Bot changelog entries are synthesized at release time (#1423)
synthesize-bot-changelog(vig-utils) enumerates merged bot PRs(Renovate, devkit adoptions) since the last stable tag and regenerates a
#### Dependenciesblock under### Changed, coalesced to the net deltaper dependency with every contributing PR cited; lock-file-maintenance
PRs — previously skipped entirely — roll up per ecosystem, and adoption
PRs coalesce to the shipped devkit version
(
prepare-release.yml, before the content gate and freeze) and the finalfinalize pass (
release.yml/ scaffoldedrelease-core.yml, before thedate stamp) — a bot PR merged into the release branch mid-train is picked
up at finalize; candidates stay changelog-neutral
renovate-changelog-build.yml+renovate-changelog-commit.ymlpipeline is deleted from devkit and the scaffold (retired paths, pruned on
consumer upgrade): bot PR branches no longer receive changelog commits, so
concurrent Renovate PRs stop conflicting on
## Unreleased, Renovate's ownconflict rebase works again, and the double CI run per bot PR disappears
validate job into the toolchain-capable prepare job so a train whose only
content is bot PRs still cuts
just changelog-previewprints the pending block read-onlyRefresh
CLAUDE.mdand add the green-CI dispatch rule (#1411)CLAUDE.md: correct the project title tovig-os/devkit, add the missing/solve-and-prcommand row, and add a lean "Release Operations" sectionpointing at the release doc set plus the agent-behavioral hard rules
(green-CI-before-dispatch, immutable-release forward-fix, automated
consumer adoption — no per-consumer lane dispatch)
docs/RELEASE_CYCLE.mdPhase 2: state the hard rule thatrelease.ymlmust never be dispatched until the release-branch PR CI is fully green —
the release PR opening is not the go-signal
Document the smoke-test final-release human-approval gate (#1409)
docs/CROSS_REPO_RELEASE_GATE.mdnow describes the approval gate shippedin 1.7.0 (candidates leave the smoke release PR unapproved; the final
dispatch polls
reviewDecisionfor a human approval, 30-minute window)and its two contract dependencies: required reviews on smoke-test
main(org-config-owned) and default-branch listener execution (asset SSoT,
hotfix-main + mirror procedure)
docs/RELEASE_CYCLE.mdPhase 5 gains the explicit operator step: approvethe freshly created smoke-test release PR while the final dispatch is
paused at the gate, with timeout recovery (approve, then re-run failed
jobs)
devkit-upgradeno longer opens a per-train adoption issue (#1405)artifact and the changelog entry (#1404)
links it. On gitflow consumers the dev-targeted
Closes #Nneverauto-closed anyway, stranding an open issue every train
chore/devkit-<train>(the guard-legalissue-less shape), the staging commit drops its
Refs:line (choreisexempt), and the PR body links the devkit release notes
issues: writegrant areremoved — a no-diff run now strands nothing by construction
trains on the consumers
Removed
Dead
git_user_name/git_user_emailplumbing dropped from the scaffolded release workflows (#1470)removed the last consumer of the git identity threaded through the release
train, so the
release.ymldispatch inputs (git-user-name/git-user-email), therelease-core.ymlworkflow_calldeclarations, andthe
prepare-release.ymldispatch inputs plus their forwarding into theprepare-release-extension.ymlhook contract are all gonechange in lockstep — no consumer action is needed beyond the normal
upgrade. Preserved consumer copies of
prepare-release-extension.ymlthatstill declare the optional pair remain valid and simply fall back to their
own declared defaults
devc-upgraderecipe removed from the scaffold (#1421)devkit-upgradeworkflow's adoption PRs; thelocal recipe wrapped
install.sh --forceand steered users around thereviewed flow. The
version-check.shnotification now pointsautomation-wired repos at the adoption PR and falls back to the
install.sh --forceone-liner for repos without the workflow. Breakingfor consumers scripting
just devc-upgrade— use the one-liner insteadFixed
rsync --delete, removing every trackedpath the template does not ship — the smoke repo's own
pyproject.toml,uv.lock,src/andtests/among them. Harmless while the deploycommit was built additively; once
#1443 started publishing
the installer's deletions, the deploy committed them and the repo lost its
Python project, which in turn made the scaffold-drift gate re-render
CodeQL and
.gitignorelanguage-neutral and aborted the release gate#1348 manifest's job, and
the drift gate re-scaffolds in normal mode, which never deletes — so smoke
mode now copies without
--deleteand the two modes agree by constructionrelease.ymlrollback job rebuilt the branch tree atPRE_SHA(captured when
validatestarted) whenever a failed run's tip had moved,silently destroying commits merged mid-run — twice on
release/1.8.0(#1459 /
#1460), both times with
finalizeskipped and nothing to roll backfinalizenever ran (and on candidates,which are branch-neutral), and otherwise refuses loudly unless the tip is
exactly the commit(s) this run wrote — the finalize commit, optionally
with the sync-issues commit on top, parented on the snapshot — which
finalizenow exports as job outputs; only then is the tree revertperformed, making it equivalent to reverting the run's own commits
release.ymlrollback carried the same exposureas a
git reset --hard+ force push; it now runs the identical guardedGit Data API revert (no history rewrite, no release-branch checkout), and
release-core.ymlexposesfinalize_result/finalize_commit_shatothe caller. The devkit PR-body restore step likewise skips when
finalizenever rewrote the PR bodyjust worktree-startno longer unsetscore.hooksPathrepo-wide (#1463)core.hooksPathis shared repo config, so unsetting it from inside thenew linked worktree silently disarmed the main checkout's tracked
.githooksshims — the#1430 failure mode,
self-inflicted by a primary devkit workflow
core.hooksPathresolves against each worktree's root and.githooksis tracked, so when it is set the tracked shims already coverevery hook stage in the new worktree:
worktree-startnow leaves theconfig untouched and skips the
prek install, falling back to the oldinstall-into-shared-
.git/hookspath only when no hooks path isconfigured at all
justfile.worktreeand the scaffolded.devcontainer/justfile.worktree), pinned by bats tests driving the realrecipe in a sandbox repo
just doctorno longer calls the git hooks inert inside a linked worktree (#1454)just worktree-startunsetscore.hooksPathin the worktree on purpose —prek refuses to install its shims while it is set — and installs those
shims instead;
hooksis one of git's shared paths, so they land in thecommon git dir and git runs them from inside the worktree. Both
doctorrecipes read that intended state as the fresh-clone failure and reported
WARN git hooks: … tracked but inert, whose remediation would have undonethe worktree setup
hooks/pre-commitnowreports
PASS git hooks: linked worktree, installed at <path>. A linkedworktree with no installed shim is genuinely inert and still warns, as do
all the other unset and set-elsewhere cases
justfileand the scaffoldedassets/workspace/justfilein the same change, keeping the two recipes instep for the #1448 drift
guard
check-expirationsresolves from the devkit pin in generated consumer hooks (#1447)shelled out to
uv run, i.e. to the consumer's project venv — whichcarries no
vig-utils, and which many consumers do not have at all (nopyproject.toml). The entry now resolves anix/vig-utils.nixstorepath, like the three hooks fixed in
#1434 and every other
tool-naming consumer fragment, so the hook follows the devkit pin the
consumer bumps with
nix flake update vigos.pre-commit-config.yamlrenders are unchanged: only theconsumer surface moves off
uv run, and a new class-wide test rejects anyfuture consumer fragment that names a vig-utils console script without a
store path
commit-action, which buildsits tree additively from working-tree contents and cannot express file
deletions — so paths the installer removed (retired scaffold paths, fix(install): upgrade does not prune scaffold files retired since the consumer's pinned version #1348)
silently survived on the deploy branch and the scaffold-drift gate rejected
the deploy PR (its second live catch, after
#1344); caught on the
1.8.0-rc1 dispatch, where the per-PR renovate-changelog workflows retired
by #1423 rode along
git ls-files --deletedas a follow-upverified API commit of null-sha tree entries — the same tree-API pattern
the scaffolded
devkit-upgrade.ymlalready uses for adoption PRs (whichwere never affected)
chore/deploy-<tag>with dots, which thescaffolded CI branch-name gate
(#1432) rejects
(
^chore/[a-z0-9]+(-[a-z0-9]+)*$). The live listener was hand-fixed(devkit-smoke-test#354) but every deploy overlays the template back over
it, re-arming the regression for the next train. Dots now map to dashes
in the template SSoT, matching the live listener
or agent-identity enforcement at all:
validate-commit-msg,prepare-commit-msg-strip-trailersandcheck-agent-identitycarried noconsumer fragment, so the scaffolded
.githooks/commit-msgshim ran anempty stage and exited 0, and
git commit --author="Claude <…>"passedlocally. All three now render into
mkProjectShell's generated config,resolving the vig-utils console scripts from the pinned devkit rather
than the project venv
mkProjectShellgainscommitTypesandrefsPolicyarguments soDEVKIT_COMMIT_TYPES(#1431)and
DEVKIT_REFS_POLICY(#1282)steer the generated hook exactly as they steer the scaffolded YAML and
CI — same defaults, same charset guard, same
optional-mirrors-the-resolved-types composition, samerequiredsentinel. The template
flake.nixreads both keys from.vig-os;consumers whose
flake.nixpredates this hand-port the reader(
docs/MIGRATION.md)render, and a consumer that never opts into hooks is untouched
ci.ymlsummary treated a cancelledlint,test,commit-checks,scaffold-drift, ordependency-reviewjob as green(only
resolve-toolchainhad the cancelled leg), so a PR whose CI run wascancelled could still merge — the [BUG] CI Test Summary passes when a needed job is cancelled #1371 doctrine now applies to every
needed job in both the devkit and scaffolded copies, pinned by a
parametrized shape test
sync-main-to-devnow auto-resolves add/add conflicts on generateddocs/issues//docs/pull-requests/snapshots: a GitHub-signedcommit-action commit aligns the sync branch with dev's copies (the
signed-commits ruleset forbids a runner merge commit; dev self-heals at
the next nightly sync-issues run), the merge is re-verified with
git merge-tree, and only then is auto-merge enabled. Any otherconflict keeps the manual
merge-conflictpath. Applied to both thecanonical workflow and the workspace template.
CHANGELOG.md(root-anchoredrsync exclude; the scaffold skeleton is bootstrapped only when absent)
instead of overwriting it with devkit's release history — the old copy
rewrote the consumer's frozen
## [X.Y.Z] - TBDheading with devkit'sdated release line, guaranteeing a sync conflict at every smoke release.
heading and synthesizes
### Changedwhen## Unreleasedlacks one.pre-rename
vig-os/devcontainerrepository, so the mint failed with 404and no upstream failure issue was ever filed. It now targets
vig-os/devkit.