Repository navigation
chore: release 1.10.0 - #1515
Merged
Merged
Conversation
Syncs `dev` with `main` (sync-main-to-dev workflow).
…ture The render pins assert the steps EXIST; they cannot assert they work, which is how a newline-joined FILE_PATHS (#1502) and a mis-authenticated force-push (#1503) both shipped green. Extract the rendered run blocks and execute them against a throwaway repo whose origin is a local bare clone. Refs: #1502, #1503
commit-action parses FILE_PATHS as comma-separated and exits 0 with "No files to commit" when nothing resolves, so the newline-joined list folded nothing while every step stayed green. Build the list from the staged diff with NUL framing (also correct for spaces and renames) and assert the release branch actually carries the archive afterwards. Refs: #1502
…rchive Checkout's persisted extraheader outranked the token embedded in the push URL, so the force-push ran under the default Actions identity and 403'd against contents: read. Generate the App token first and check out with it. The push is now also gated on main actually carrying every archive path the mirror holds, so a broken or skipped fold degrades to a stale mirror instead of deleted snapshots. Refs: #1503
…coverable (#1505) ## Description On the 1.9.0 rc1 train the smoke listener's `deploy` job failed on a transient GraphQL 500 whose wording was **`pull request update failed`** — *update*, not *create*. `gh pr create --label` creates the PR and then labels it in a **second** mutation: the create had succeeded ([devkit-smoke-test#367](vig-os/devkit-smoke-test#367) existed), the labelling is what 500'd, and the step exited 1. Two consequences: `pr_url` never reached `GITHUB_OUTPUT`, so every downstream job skipped; and an **unlabelled** deploy PR was left open. `Close stale deploy PRs` selected candidates with `--label deploy` only, so that orphan was invisible to it — the documented recovery (re-run the failed jobs) re-entered the create and failed with *"a pull request already exists"* until a human added the label by hand. The structural point: the one step whose partial success is most likely was the one the cleanup could not reclaim. ## Type of Change - [x] `fix` -- Bug fix ### Modifiers - [ ] Breaking change (`!`) -- This change breaks backward compatibility ## Changes Made All in `assets/smoke-test/.github/workflows/repository-dispatch.yml` (the SSoT for the listener): 1. **Reclaim by head branch, not just by label.** `Close stale deploy PRs` now selects every open PR on `chore/deploy-*` as well as any carrying the `deploy` label (one `gh pr list --json number,headRefName,labels --limit 100` call). The branch name is deterministic and is pushed *before* the PR exists, so unlike the label it cannot be lost to a partial failure. 2. **Adopt, then record, then label.** `Create or adopt deploy PR` first looks for an open PR on `${BRANCH_NAME}` and adopts it instead of dying on *"already exists"*, and writes `pr_url` to `GITHUB_OUTPUT` immediately — before anything else can fail. 3. **Labelling is its own step.** `Label deploy PR` retries `gh pr edit --add-label deploy` three times with backoff and is non-fatal: now that the cleanup reclaims by branch, an unlabelled PR is still recoverable, so a label transient must not strand `pr_url`. 4. **`notify-failure` retries.** The same transient class killed its `gh issue create` 20 s later, so no upstream incident issue was filed at all and #1499 had to be written by hand. It now retries three times and fails loudly if the issue never lands. ## Changelog Entry ``` ### Fixed - **Smoke listener: a partially-created deploy PR is recoverable again** ([#1499](#1499)) - `gh pr create --label` labels in a second mutation. When that mutation hit a transient GraphQL 500 on the 1.9.0 rc1 train, the step failed *after* creating the PR: `pr_url` never reached `GITHUB_OUTPUT` (so every downstream job skipped) and an unlabelled deploy PR was left open, which the label-only stale-PR cleanup could not see. The documented recovery -- re-run the failed jobs -- then deadlocked on "a pull request already exists" until a human labelled the PR by hand - Stale deploy PRs are now reclaimed by head branch (`chore/deploy-*`) as well as by label; the branch name is pushed before the PR exists, so no partial failure can lose it - The deploy step adopts an open PR already on the deploy branch instead of failing on it, and records `pr_url` before any labelling; labelling moved to its own retrying, non-fatal step - `notify-failure` retries the upstream incident issue, which died to the same transient 20 s later and filed nothing at all ``` ## Testing - [x] Tests pass locally - [x] Manual testing performed (describe below) New suite `tests/test_smoke_deploy_pr_reclaim.py` (12 tests), following the harness pattern established by #1477's `tests/test_smoke_dispatch_wait.py`: - **Shape** — parses the listener YAML: the cleanup selects on `headRefName` *and* the label; the create step no longer passes `--label`; `pr_url` is recorded before a separate label step that consumes it; the label step contains no `exit 1`; notify retries. - **Behaviour** — executes each step's **real bash** against a stubbed `gh` (and a no-op `sleep`), replaying the rc1 timeline. `--jq` filters run through the real `jq`, so the selector under test is the one that runs: - an unlabelled PR on `chore/deploy-1-9-0-rc1` is closed, a labelled legacy deploy PR is still closed, an unrelated `feature/*` PR is never touched - with labelling 500'ing on every attempt, `pr_url` still reaches `GITHUB_OUTPUT` and the job stays green - with an open PR already on the deploy branch, `gh pr create` is never called and the adopted url is recorded - two labelling 500s then success → three `gh pr edit` calls, exit 0 - two notify 500s then success → three `gh issue create` calls; exhausted retries fail the step ### Manual Testing Details Run locally in a worktree: - `prek run --all-files` — full hook suite green (includes `yamllint`, `shellcheck`, `actionlint`, `typos`, `sync-manifest`) - `uv run pytest tests --ignore=tests/test_image.py --ignore=tests/test_integration.py --ignore=tests/test_flake_checks.py` — **740 passed, 1 skipped** (container/image and `nix flake check` suites are CI-only; they need the built image) - `bats tests/bats/just.bats` — 57 passed, including the existing smoke-listener contract assertions - `actionlint assets/smoke-test/.github/workflows/repository-dispatch.yml` — clean (the hook only auto-discovers this repo's own `.github/workflows/`, so the asset was linted explicitly) ## Checklist - [x] My code follows the project's style guidelines - [x] I have performed a self-review of my code - [x] I have commented my code, particularly in hard-to-understand areas - [x] I have updated the documentation accordingly - [x] I have updated `CHANGELOG.md` in the `[Unreleased]` section (and pasted the entry above) - [x] My changes generate no new warnings or errors - [x] I have added tests that prove my fix is effective - [x] New and existing unit tests pass locally with my changes - [x] Any dependent changes have been merged and published ## Additional Notes **This PR does not make the fix live.** `repository_dispatch` always runs the listener from the smoke-test repo's **default branch**, so the asset here reaches `devkit-smoke-test` `main` only through that repo's own release cycle (`docs/CROSS_REPO_RELEASE_GATE.md` §Contract dependencies). A mirror hotfix on `devkit-smoke-test` `main` follows this merge, so the next train is covered and the next scaffold deploy converges rather than reverts — same dance as [devkit-smoke-test#345](vig-os/devkit-smoke-test#345) / [#353](vig-os/devkit-smoke-test#353). `docs/CROSS_REPO_RELEASE_GATE.md` gains the reclaim invariant plus a Failure Signals entry for `pull request update failed`, including what to do on a listener version that predates this fix (add the label by hand *before* re-running). Refs: #1499
…1507) ## Description Fixes the two mirror-mode release defects surfaced by `vig-os/org-config` v1.1.0 — together, a data-loss path. They ship as **one PR** deliberately: both live in the same `MANIFEST_SYNC_TARGET` rendering block of `assets/init-workspace.sh`, and #1503 must not land ahead of #1502 (a working reset over a broken fold is what deletes the archive). One PR makes that ordering unrepresentable. ## Type of Change - [x] `fix` -- Bug fix - [x] `test` -- Adding or updating tests ## Changes Made **#1502 — the fold committed nothing, silently.** The path list reached `commit-action` newline-separated; the action splits `FILE_PATHS` on commas, so the whole blob was one nonexistent path, and it logged `No files to commit` and returned **success**. The job printed "Folding 92 mirror archive path(s)" and the release branch never moved. - The list is now comma-joined from `git diff --cached --name-only -z`. The `tr` runs inside the pipeline because command substitution drops NUL bytes. - That also fixes two latent mis-parses in the old `git status --porcelain | awk '{print $2}'`: porcelain C-quotes paths containing spaces, and renders renames as `R old -> new` (awk took the *old* path). - A path containing a comma is unrepresentable in `FILE_PATHS`, so the step now **fails loudly** on one instead of mis-splitting it. - `Re-pull release branch after fold` is now `Re-pull release branch and verify the fold landed`: it asserts the post-condition (the release branch carries the mirror's archive) rather than trusting the action's exit code. Deletions still don't propagate — archives only grow — so a release-only path is tolerated. **#1503 — the reset 403'd, and would have deleted the archive if it hadn't.** The job embedded the Commit App token in the push URL, but `actions/checkout` persists its own credentials as `http.<host>.extraheader`, which outranks URL userinfo. The push ran under the default Actions identity against `contents: read` → 403 on every mirror-mode consumer, *after* the release was already published. - The App token is now generated **before** checkout and passed to it, so both the fetches and the push carry the App identity. `contents: read` stays deliberately — there's an inline comment saying so, since granting `contents: write` would "fix" a future 403 by silently moving mirror resets to the Actions identity. - Note `persist-credentials: false` alone (the issue's suggested one-liner) would have fixed the push but broken the job's `git fetch` on **private** consumers, which have no anonymous read. Checking out *with* the App token fixes both halves and matches how `release-core.yml` already does it. - **New guard, per the issue:** the force-push is gated on a new `Verify main carries the mirror archive` step that asserts main holds every `docs/issues` / `docs/pull-requests` path the mirror carries. Otherwise it skips with a `::warning::` — a stale mirror self-heals at the next nightly sync; deleted snapshots do not. The step's "a force reset loses nothing" comment is now true by construction. ## Changelog Entry ``` ### Fixed - **Mirror-mode release: the archive fold committed nothing, silently** ([#1502](#1502)) ... - **Mirror-mode promote: the mirror reset 403'd, and would have deleted the archive if it had succeeded** ([#1503](#1503)) ... ``` (Full entries in `CHANGELOG.md` under `## Unreleased` → `### Fixed`.) ## Testing - [x] Tests pass locally (`just test`, `just test-bats`, `prek run --all-files`) - [x] Manual testing performed (describe below) Both defects passed review and CI because the only tests over this code are **render pins** — they assert the steps exist, never that they work. That is the part worth fixing structurally, so this PR adds `tests/bats/release-mirror-fold.bats` (11 tests), which **extracts the rendered `run:` blocks and executes them** against a throwaway repo whose `origin` is a local bare clone: real `git fetch`/`checkout`/`diff`, real `$GITHUB_OUTPUT`, no network. The fixture mirrors a consumer mid-release, including a spaced path and a mirror-side rename. Only the two steps that genuinely need GitHub are uncovered — `commit-action` itself and the force-push — which is exactly why both are now gated on a locally verifiable precondition instead of trusted. RED-before-GREEN, against the unfixed renderer: ``` not ok 1 fold staging emits a single-line comma-joined path list (#1502) not ok 6 fold staging fails loudly on a path commas cannot represent (#1502) not ok 7 post-fold verification fails when the fold committed nothing (#1502) not ok 9 mirror reset is refused when main lacks the archive (#1503) not ok 10 mirror reset proceeds when main carries the archive (#1503) not ok 11 mirror reset is refused when the mirror branch is absent (#1503) ``` All 11 green after the fix, as are the 6 mirror render pins (incl. the existing `actionlint` pass over the rendered workflows) and the full 524-test bats suite. ### Manual Testing Details `just test` reports two failures on this host, both environmental and unrelated: `test_image.py::test_manifest_files` compares `CHANGELOG.md` against the copy baked into the locally-built image (stale by construction after any changelog edit; the local mirror at `assets/workspace/.devcontainer/CHANGELOG.md` is byte-identical), and `test_integration.py::test_github_cli_authentication` fails on a missing `dbus-launch` in the container. 931 passed. ## 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 — no doc change: this is a defect fix inside an already-documented mechanism (#1424) - [x] I have updated `CHANGELOG.md` in the `[Unreleased]` section - [x] My changes generate no new warnings or errors - [x] I have added tests that prove my fix is effective - [x] New and existing unit tests pass locally with my changes - [x] Any dependent changes have been merged and published ## Additional Notes **Rollout.** These steps are rendered at scaffold time, so the fix reaches `vig-os/org-config` only through a `devkit-upgrade` adoption PR after the next release. That is safe to wait for: with the 403 still in place, nothing is deleted — the 403 is currently the only reason org-config's 55 issue files still exist. **Adjacent, deliberately not fixed here.** The `floating-tags` job in the base `promote-release.yml` (`:669`) has the identical shape — token in the push URL, default checkout, `contents: read` — so its comment about pushing "as the Release App EXPLICITLY" looks unenforceable in practice. It is a different job and a different token, out of scope for these two issues; happy to file it separately. Refs: #1502, #1503
The shape pins asserted the steps existed and one of them asserted the defect itself (the App token embedded in the push URL). Replace that pin with the identity/ordering the fix requires, and add a behaviour suite that runs the move step's real bash against a throwaway file:// remote with gh stubbed from that same remote, covering create, move, skip, annotated peel and refusal. Refs: #1508
…ntials The App token was embedded in the push URL, but checkout's persisted extraheader outranks URL userinfo, so the push ran under the Actions identity that contents: read denies and the Tag ruleset does not bypass. Generate the token before checkout and check out with it; fetch and push via origin. Refs: #1508
…th real tests (#1509) ## Description Third instance of the identity bug from #1503, this time in the `floating-tags` job. The Release App token was embedded in the push URL while `actions/checkout` persisted the default `GITHUB_TOKEN` as `http.<host>.extraheader` — and the extraheader outranks URL userinfo, so the push authenticated as the Actions identity, which the job denies (`contents: read`) and the Tag ruleset does not bypass. The token the step went out of its way to plumb through was never used. **No released floating tag was ever wrong.** The `git push` form arrived in devkit 1.7.0 (`e76c31da`, `Refs: #1377`); the only two repos that set `DEVKIT_FLOATING_TAGS` — `vig-os/commit-action` and `vig-os/sync-issues-action` — are both still on 1.6.0, where `move_tag` used `gh api` and no checkout credentials were involved. devkit's own promote workflow has no floating-tags job. The path had simply never executed anywhere, which is why nothing caught it. ## Type of Change - [x] `fix` -- Bug fix - [x] `test` -- Adding or updating tests ## Changes Made **The fix** (`assets/workspace/.github/workflows/promote-release.yml`): - `Generate release app token` moves **before** `Checkout repository`, and checkout takes `token: ${{ steps.release_app_token.outputs.token }}` — so the credentials git actually uses are the App's. - `REMOTE_URL` is gone; the shallow tag fetch and the force-push both use `origin`. The fetch matters as much as the push: on a private consumer an unauthenticated fetch fails outright. - `contents: read` stays, with an inline comment saying why — granting `contents: write` would "fix" a future 403 by moving tag pushes to the Actions identity, defeating the App-identity model the Tag ruleset depends on. **The tests.** One existing pin, `test_move_tag_force_pushes_with_explicit_app_token`, asserted the defect itself: ```python assert "x-access-token:${GH_TOKEN}@github.com/${GITHUB_REPOSITORY}" in script ``` That is why #1377 looked done. It is replaced by pins on the ordering, the checkout token, the absence of any URL userinfo in the job, and `contents: read`. New `tests/test_floating_tag_move.py` runs the move step's **real bash** against a throwaway `file://` remote, with `gh` stubbed by a shim that answers the REST ref reads from that same remote (so stub and fixture cannot drift): - first release of a level → tag **created** (the #1157 case) - existing level → force-moved to the release commit - already at target → skipped, no push - annotated release tag → peeled to its commit, not left at the tag object - push refused (a `pre-receive` hook standing in for a ruleset denial) → job fails with the `::error title=Floating tag` annotation and its remediation - unknown level → `::warning::`, no failure; each level moves independently An identity bug cannot be reproduced against a local remote (no auth), so identity stays pinned structurally — but everything downstream of it is now executed rather than grepped. ## Changelog Entry ``` ### Fixed - **Floating tags: the promote-time push ran under the wrong identity** ([#1508](#1508)) ... ``` (Full entry in `CHANGELOG.md` under `## Unreleased` → `### Fixed`.) ## Testing - [x] Tests pass locally (`just test`, `just test-bats`, `prek run --all-files`) - [x] Manual testing performed (describe below) RED-before-GREEN. Against the unfixed workflow the three new shape pins failed, and all 8 behaviour tests failed — informatively: the old script builds its remote from `GITHUB_REPOSITORY`, so it tried to reach the real `github.com/vig-os/testrepo` and died on `Authentication failed` after 130s of retry backoff. After the fix the same suite runs against `origin` in 18s, 28 passed. Full local run: `prek run --all-files` clean; `1466 passed, 3 skipped` (the two known-environmental failures deselected — stale locally-built image vs. an edited `CHANGELOG.md`, and a missing `dbus-launch`); full bats suite clean. ### Manual Testing Details Evidence gathered while confirming the report, all on the 1.6.0 (REST) path: - `vig-os/commit-action` run [30994674616](https://github.com/vig-os/commit-action/actions/runs/30994674616) — `Moved floating tag v0 -> 0361e9aa…`, `v0.3 -> 0361e9aa…`, green. - `vig-os/sync-issues-action` run [31186320919](https://github.com/vig-os/sync-issues-action/actions/runs/31186320919) — `v0` moved, then exit 1 **creating** `v0.5` (the #1157 denial); `v0.5` was created by hand afterwards per the step's own remediation message. The extraheader precedence itself was reproduced outside CI against a private repo with the credential helper disabled: valid token in the extraheader plus a deliberately bogus token in the URL userinfo still authenticates, while the bogus userinfo alone fails. ## 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 — none needed: `docs/MIGRATION.md#first-release-floating-tags` documents the *human* bootstrap for a repo whose promote workflow does not exist yet, which this does not change - [x] I have updated `CHANGELOG.md` in the `[Unreleased]` section - [x] My changes generate no new warnings or errors - [x] I have added tests that prove my fix is effective - [x] New and existing unit tests pass locally with my changes - [x] Any dependent changes have been merged and published ## Additional Notes **This unblocks an upgrade.** `commit-action` and `sync-issues-action` cannot safely leave 1.6.0 until this ships: today their tag *moves* work and only the first *creation* of a new level fails (#1157); on 1.7.0–1.9.x the push runs as the wrong identity, so the moves would break too. With this fix, both cases go through the App identity for the first time. **Whether #1377 actually fixed #1157 is now testable but still unproven in production.** The premise — the App is a bypass actor for `git push` where it is not for `POST /git/refs` — is unchanged and untested against a live ruleset, because the push never ran as the App. The first real confirmation will be the next new floating level on one of those two repos after they adopt this. **Deliberately untouched.** The `Cleanup git RC tags` job still builds a `x-access-token:` URL for a `git ls-remote` (`promote-release.yml:562`, and the same line in devkit's own copy). The token there is likewise ignored, but the operation is a *read* that succeeds under either identity, and its ref deletions go through `gh api -X DELETE`, which uses `GH_TOKEN` correctly. Dead weight, not a defect — out of scope here. Refs: #1508
…re finalize The finalize-side validate gate required an APPROVED release PR that the finalize job's own pushes then dismissed, forcing a second approval before promote (#1474). The org's revisit condition for that decision is met, so the reviewDecision assertion (and its #438 fallback) is dropped from the final kind in both devkit's release.yml and the consumer release-core.yml. The draft and CI gates stay; the promote-side validate/merge gates (#1487) are unchanged and become the cycle's single human approval, landing on the release content exactly as it ships. Refs: #1504
With the single approval collected at promote, rejection happens after finalize has burned artifacts. The new workflow_dispatch workflow reverses a finalized-but-unpublished release as the Release App (tag-ruleset bypass, same machinery as the RC prune): draft Release deleted by id, tag deleted only when no Release remains attached, release PR closed with an audit comment, release branch dropped, idempotent and re-runnable, with a fail-closed verification pass. A published release is hard-refused — its tag name would tombstone permanently. The recipe only dispatches; a manifest RemoveBlock keeps it devkit-only until the consumer variant ships the workflow it dispatches. Refs: #1504
…otection-aware The listener's approval poll was a #1391 workaround, not a control: the smoke release PR is entirely bot-authored, and with the Main protection at zero required reviews (org-config#167) GitHub never computes the polled review decision, so the gate could only time out. The step is removed outright; green smoke CI and devkit's published-smoke-release validation at promote remain the operative controls. The consumer promote-release.yml approval gates (validate + merge) now consult the base branch's rules first and skip the approval assertion — explicitly, logged — when zero approving reviews are required, instead of falling into the #438 fallback and failing a PR the platform itself would merge. Review-requiring repos are unchanged; devkit's own promote gates are untouched. The rules endpoint sees rulesets only, so classic-protection repos degrade to the platform's merge-time refusal — fail-late, never fail-open. Refs: #1506
The runbooks now describe one human approval per cycle — collected after finalize and immediately before promote, where it covers the release content exactly as it ships — with abandon-release as the draft-only rejection path, and a fully unattended smoke leg. The cross-repo gate contract records the ruleset/listener sequencing invariant that replaced the smoke approval dependency (either half alone breaks the final leg). Generated docs (README, CONTRIBUTING, scaffold mirrors) regenerated. Refs: #1504
…#1510) ## Summary Collapses the release train's three human interactions into **one**: the approval of the devkit release PR, collected after finalize and immediately before promote — where it lands on the release content exactly as it ships, finalize commits included. **#1504 — approval moves to promote** - `release.yml` validate (and the consumer `release-core.yml`) no longer asserts review state for finals; the draft and CI gates stay, candidates unchanged (#902). The promote-side gates (#1487) are untouched and become the cycle's single approval. Revisits #1474 under its own stated condition. - New `just abandon-release X.Y.Z` + `abandon-release.yml`: the first-class rejection path at promote time. As the Release App (same tag-ruleset-bypass machinery as the RC prune) it deletes the **draft** Release by id, the tag, the release PR, and `release/X.Y.Z` — idempotent, fail-closed, and hard-refusing a published release (tombstone protection). Devkit-only for now via a manifest `RemoveBlock`; consumer variant is a follow-up. **#1506 — smoke approval gone** - The listener's `Gate final release on human approval of release PR` poll is removed: the smoke PR is bot-authored scaffold output, its Main protection now requires 0 reviews (org-config#167, already applied), and under count-0 the poll could only time out — un-unblockably, since GitHub never computes the polled field. - The consumer `promote-release.yml` gates (validate + merge) are **protection-aware**: zero required approving reviews on the base branch ⇒ explicit logged skip of the approval assertion (never the #438 fallback). This amends #1506's "compiled out" AC — rationale recorded on the issue: the smoke repo's promote workflow IS the shared scaffold and the drift gate re-renders it from the manifest, so a smoke-only render divergence would trip every smoke PR; the runtime skip is drift-safe and also fixes the whole solo-adoption (count-0) class. Devkit's own promote gates stay unconditional. - Sequencing invariant (ruleset ⟷ listener must move together, on smoke `main`) recorded in `docs/CROSS_REPO_RELEASE_GATE.md`. Docs: RELEASE_CYCLE (mermaid, phases, runbook, troubleshooting, new abandon runbook), CROSS_REPO_RELEASE_GATE, DOWNSTREAM_RELEASE (+ scaffold mirror), MIGRATION, CLAUDE.md, justfile process header, CONTRIBUTING/README regenerated. ## Test plan - New `tests/test_release_validate_gate.py` (both copies): no review-state assertion, draft + CI gates retained - `tests/test_promote_release.py`: scaffold gates carry the rules query + skip log; devkit gates pinned unconditional - `tests/bats/just.bats`: abandon recipe/workflow shape pins; smoke-gate test inverted (gate + poll + self-approval all absent) - Full pytest 965 passed (2 failures are local-env: stale local image checksum, container gh auth); full bats green; `prek run --all-files` green - Live proof is the 1.10.0 train: exactly one approval, zero smoke interaction ## Post-merge (before the next train) 1. Hotfix `devkit-smoke-test` **main** directly with the listener gate removal (listener runs from default branch; precedent smoke-test#345/#353). **The next final leg is broken until this lands** — org-config#167 is already live. 2. File the consumer `abandon-release` follow-up issue. Refs: #1504, #1506
The scaffold now carries .github/workflows/abandon-release.yml — the same draft-only rejection path as devkit's, with the tag composed from DEVKIT_TAG_PREFIX via a leading resolve-toolchain job and the consumer publish-release concurrency lane. The justfile.gh RemoveBlock is dropped so the recipe syncs, the workflow joins the release feature group, the renovate preset and zizmor baseline cover it, and DOWNSTREAM_RELEASE.md documents the guarded exception to the no-tag-deletion policy. Refs: #1511
…1512) ## Summary Ships the consumer variant of the abandon-release rejection path (split out of #1504): - **New scaffold workflow** `assets/workspace/.github/workflows/abandon-release.yml` — same draft-only server-side guards as devkit's copy (published release ⇒ hard refusal / tombstone protection; tag deleted only when no GitHub Release remains attached; fail-closed leftovers sweep; every step idempotent), with two consumer adaptations: - the tag is composed as `<DEVKIT_TAG_PREFIX>X.Y.Z` via a leading `resolve-toolchain` job (#1044 pattern); the `version` input and `release/X.Y.Z` branch stay bare - concurrency joins the consumer `publish-release` lane (devkit's copy shares `publish-image`) - **Recipe sync**: the `justfile.gh` `RemoveBlock` is dropped from `scripts/manifest.toml`, so `just abandon-release` now syncs into the consumer scaffold - **Registrations**: `release` feature group (prunes/disables with the rest of the release set), zizmor `github-app` baseline, renovate managed-file exclusion - **Docs**: new "Abandon release (draft-only rejection path)" section in `docs/DOWNSTREAM_RELEASE.md` ## Test plan - New `tests/test_abandon_release.py`: both-copies shape tests (draft-only guard, tag-delete guard, Release App, fail-closed sweep) + scaffold-only tag-prefix threading, concurrency-lane split, and no-devkit-issue-refs in PR comments - Extended recipe-list/dispatch assertions in `test_integration.py` and the #1284 feature-prune bats test - Full local run: pytest: full suite green after the renovate-preset fix (2 known local-env failures unrelated: stale local image checksum, container gh auth), bats 525/525, `prek run --all-files` green Refs: #1511
The template rsync replaces .vig-os and the root .gitignore with template content that the write-backs only refill hundreds of lines later; an abort inside that window persisted a blanked manifest — the input of the next --force run. Snapshot both files before the copy, restore them on any failing exit with a loud message, and disarm after the late write-back. The u+w sweep is scoped to template-derived paths so consumer .git and build trees are never walked. Refs: #1480
…1513) ## Summary Fixes the destructive non-atomicity from the field failure in #1480 (filesender 1.6.0→1.8.0): - **Torn-window guard**: `init-workspace.sh` snapshots `.vig-os` and the root `.gitignore` immediately before the template rsync (the point where both are replaced by template content whose values are only refilled by the write-backs hundreds of lines later). An EXIT trap restores both byte-for-byte on any failing exit inside that window and prints a loud message naming what was restored and warning that other scaffold files may be half-applied (with `git checkout -- <path>` guidance). The guard disarms after the late write-back completes, so later non-window failures never roll back this run's resolved values. Covers both the normal and smoke copy paths. - **Scoped `u+w` sweep** (suggestion 3): the blanket `chmod -R u+w $WORKSPACE_DIR` walked the consumer's entire workspace — `.git` object packs (deliberately 0444), multi-GB `target/`, `node_modules` — the exact surface of the transient `fts_read` failure that aborted the field run. The sweep is now keyed on the template tree (same shape as the #1195 `+x` sweep), skips symlinks, and additionally covers smoke overlays. Suggestion 4 from the issue (dirty-tree preflight) already exists (`install.sh` `run_preflight_guard`, #1283); suggestions 1–3 are what this PR delivers. The related nix-detection gap is tracked on #1400. ## Test plan New `tests/bats/upgrade-atomicity.bats` (5 tests, executing the real script with a deterministic in-window abort via the `VIG_OS_VERSION` validation exit — no stubs or signals): - in-window abort restores `.vig-os` + `.gitignore` byte-for-byte, with the restore named in output - a restored workspace upgrades cleanly on retry, opt-outs intact - a fresh-scaffold abort exits loudly without a pre-image (trap is set-e-safe) - consumer `.git`/`target/` files stay 0444 through an upgrade - template-derived scaffold files still end up user-writable The #664 structural pin updated to assert the scoped sweep and the *absence* of the blanket `-R`. Full local run: bats 530/530 green, scaffold-driven pytest suites (173 tests) green, `prek run --all-files` green. Refs: #1480
The flake auto-bump is keyed on the github:vig-os/devkit URL instead of a literal input named vigos: any-name floating inputs are advanced, pinned refs (?ref=X or /X) are skipped with a printed reason, and every run emits one flake-bump: line that devkit-upgrade.yml surfaces in the adoption PR body and step summary. The #1093 pin-skew warning learns the same discovery. A new warn-only devkit-staleness job in the scaffolded ci.yml compares DEVKIT_VERSION against the latest devkit release — the question scaffold-drift cannot answer, since it resolves its comparison from the pin itself. Refs: #1497
## Summary Fixes both unobservable staleness axes from #1497 (found auditing the Rust pack's upgrade story — the field consumer sat two minor versions behind with a green weekly upgrade *and* a green drift check): **Axis 1 — flake auto-bump (`install.sh`)** - The advance is keyed on the `github:vig-os/devkit` URL, not a literal input named `vigos`: a floating input under **any name** is advanced (`nix flake update <name>`) - Pinned refs — `?ref=X` **or** the `/X` path-suffix form the field case used — are never auto-bumped (a pin is the consumer's explicit choice), but the skip is now **reported with the reason** - Every run prints exactly one plain `flake-bump:` outcome line (advanced / skipped-pinned / skipped-no-nix / failed / no input recognized); the doc-comment example line still never matches (#1110 anchoring preserved) - The #1093 pin-skew warning in `init-workspace.sh` learns the same name-agnostic, both-forms discovery and names the actual input in its guidance - `devkit-upgrade.yml` tees the install output, captures the `flake-bump:` line as a step output, and carries it into the **adoption PR body** and the step summary (env-routed, no run-block interpolation) **Axis 2 — pin staleness (scaffolded `ci.yml`)** - New warn-only `devkit-staleness` job: cheap API query comparing `DEVKIT_VERSION` against the latest stable devkit release, annotating PRs with `::warning` ("N release(s) behind") plus a step-summary block - Deliberately **not** gated on `DEVKIT_DRIFT_CHECK` (no docker/image pull — disabling the expensive drift gate must not silence the cheap report), **never fails the build** (every failure path degrades to a skip, including missing `gh` on self-hosted runners), and deliberately **outside the summary gate** - An rc pin counts as behind its own published final (GNU `sort -V` orders `-rcN` after the final, so the compare maps the dash to a tilde) **Out of scope** (deliberate): the mkRustProject eval-time notice (issue suggestion 4) — the acceptance criteria are met without it and it would be the codebase's first Nix eval-warn mechanism. ## Acceptance criteria from the issue - [x] A consumer whose input is named anything, pinned or not, either gets bumped or is **told** why not - [x] Something answers "is this repo behind?" without deriving the answer from the repo's own pin ## Test plan - `install.bats`: 6 new tests (renamed floating input advanced; path-ref and `?ref=` pins skipped-and-reported; no-input reported; doc-comment decoy immune) — existing #1263 suite untouched and green - `init-workspace.bats`: 3 new #1093-extension tests (path-ref lag warns; renamed pinned input warns naming the input; aligned path-ref silent) - New `tests/test_devkit_staleness.py`: shape tests (PR-only, not drift-gated, resolved pin via `resolve-toolchain`, warn-never-fail, outside the summary gate) + behavioral tests executing the real run block against a stubbed `gh` (behind-count, current-silent, API-failure/empty-pin tolerance, rc-behind-final) - `test_workflow_devkit_upgrade.py`: 2 new tests (flake-bump capture; env-routed PR-body threading) - Full local run: bats 546/546 green, pytest 1504 passed (2 known local-env failures unrelated), `prek run --all-files` green Refs: #1497
Move Unreleased content to [1.10.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.
The 1503 entry named the Actions bot identity literally, and the release PR body is generated from the CHANGELOG, so the fingerprint check blocked the 1.10.0 release PR. Reword to descriptive prose. Refs: #1516
2 tasks done
## Summary Rewords the #1503 entry in the frozen `[1.10.0] - TBD` section: the entry named the Actions bot identity literally, and `prepare-release` copies the CHANGELOG into the release PR body, where the agent-fingerprint check (`Commit Messages` job) blocks that string — CI on release PR #1515 is red solely because of it. Descriptive prose ("the default GitHub Actions identity") carries the same information without the literal. Verified locally: `check-pr-agent-fingerprints` passes on the reworded section. `dev` intentionally untouched — the post-promote sync merge carries the reworded `[1.10.0]` section back cleanly (dev's copy stays at the merge base). Checker-side hardening (contextual email matching / code-span stripping) stays open in the issue for a later milestone. Closes #1516 ## Checklist - [x] CHANGELOG: no entry needed (wording-only fix inside the frozen 1.10.0 section itself) - [x] Full pre-commit suite green locally
Set release date to 2026-08-14 and regenerate release docs. Refs: #1515
c-vigo
approved these changes
Aug 14, 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.10.0 - 2026-08-14
This PR prepares release 1.10.0 for merge to main.
1.10.0 - 2026-08-14
Added
just abandon-release X.Y.Z— first-class rejection path at promote time(#1504)
abandon-release.yml, which (as the Release App, thesame tag-ruleset-bypass machinery as promote's RC prune) deletes the
draft GitHub Release by id, deletes the
X.Y.Ztag, closes therelease PR with an audit comment, and deletes
release/X.Y.Z—idempotent and re-runnable, with a fail-closed verification pass
name permanently (the 1.5.0 ghost); fix forward instead
Consumer abandon-release: the scaffold ships the workflow the recipe
dispatches (#1511)
.github/workflows/abandon-release.ymljoins the scaffolded release set:the same draft-only server-side guards as devkit's, with the tag composed
as
<DEVKIT_TAG_PREFIX>X.Y.Zvia a leadingresolve-toolchainjob andthe consumer
publish-releaseconcurrency lanejust abandon-releaserecipe now syncs into the consumerjustfile.gh(the devkit-onlyRemoveBlockis dropped), and theworkflow is part of the
releasefeature groupdocs/DOWNSTREAM_RELEASE.mdas the guarded exception tothe no-tag-deletion rollback policy
Changed
Release train: the single human approval is collected at promote, not
before finalize (#1504)
release.yml's validate job (and the consumerrelease-core.yml) nolonger asserts review state for finals — the draft and CI gates stay;
candidates are unchanged (#902)
are unchanged and become the cycle's only approval, landing on the release
content exactly as it ships — finalize commits included. Supersedes the
two-approval flow of #1474
under its own stated revisit condition
Smoke-test gate: the human approval of the smoke release PR is gone
(#1506)
Gate final release on human approval of release PRpollis removed: the smoke PR is entirely bot-authored, its Main protection
requires no approving reviews
(org-config#167), and
the operative controls are green smoke CI plus devkit's
published-smoke-release validation at promote. Resolves the
#1391 workaround by
removal rather than by auto-approval
promote-release.ymlapproval gates (validate + merge) arenow protection-aware: when the base branch's rules require zero approving
reviews, the approval assertion is skipped — explicitly, logged — instead
of falling into the #438
fallback and failing a PR the platform itself would merge. Repos whose
rules require reviews are unchanged; devkit's own promote gates are
untouched
docs/CROSS_REPO_RELEASE_GATE.md(either half alone breaks the final leg)Fixed
Upgrade staleness is observable on both axes
(#1497)
github:vig-os/devkitURL is advanced, whatever the consumer named it;pinned refs (
?ref=Xor the/Xpath form) are never auto-bumped butthe skip is reported — every
install.sh --forcerun prints oneflake-bump:outcome line, anddevkit-upgrade.ymlcarries it into theadoption PR body and the step summary
the
/Xpath-ref formdevkit-stalenessjob in the scaffoldedci.yml: comparesDEVKIT_VERSIONagainst the latest devkit release and annotates PRs with"N release(s) behind" — cheap API query, not gated on
DEVKIT_DRIFT_CHECK, never fails the build, and deliberately outside thesummary gate
install.sh --forceno longer wipes.vig-oson a mid-run failure(#1480)
.vig-osand the root.gitignoreare snapshotted before the templatecopy and restored byte-for-byte on any failing exit inside the refill
window, with a loud message naming what was restored and warning that
other scaffold files may be half-applied
u+wpermission sweep is scoped to template-derived paths (keyed onthe template tree, like the init-workspace.sh chmod +x sweeps pre-existing consumer .sh files it does not own #1195
+xsweep) — it no longer walks theconsumer's
.git,target/, ornode_modules, the surface of thetransient walk failure that aborted the field run destructively
Smoke listener: a partially-created deploy PR is recoverable again
(#1499)
gh pr create --labellabels in a second mutation. When that mutation hita transient GraphQL 500 on the 1.9.0 rc1 train, the step failed after
creating the PR:
pr_urlnever reachedGITHUB_OUTPUT(so everydownstream job skipped) and an unlabelled deploy PR was left open, which
the label-only stale-PR cleanup could not see. The documented recovery —
re-run the failed jobs — then deadlocked on "a pull request already
exists" until a human labelled the PR by hand
chore/deploy-*) aswell as by label; the branch name is pushed before the PR exists, so no
partial failure can lose it
failing on it, and records
pr_urlbefore any labelling; labelling movedto its own retrying, non-fatal step
notify-failureretries the upstream incident issue, which died to thesame transient 20 s later and filed nothing at all
Mirror-mode release: the archive fold committed nothing, silently
(#1502)
commit-actionnewline-separated, butthe action parses
FILE_PATHSas comma-separated. The whole blob resolvedto one nonexistent path, so the action logged
No files to commitandreturned success: the job announced "Folding 92 mirror archive
path(s)" and the release branch never moved, taking the issue/PR snapshots
out of
main. Single-file callers could never expose itgit diff --cached -z, which also fixestwo latent mis-parses in the old
git status --porcelain | awk '{print $2}'(C-quoted paths containing spaces, and
R old -> newrenames), and failsloudly on a path containing a comma rather than mis-splitting it
does not carry the mirror's archive after the fold, the leg fails instead
of reporting success
Mirror-mode promote: the mirror reset 403'd, and would have deleted the
archive if it had succeeded
(#1503)
promote-release.yml'sreset-sync-mirrorembedded the Commit App tokenin the push URL, but
actions/checkoutpersists its own credentials ashttp.<host>.extraheader, which outranks URL userinfo. The force-pushtherefore ran as the default GitHub Actions identity under
contents: readand failed with a 403 on every mirror-mode consumer — after the release was already
published, so the red run misrepresented an otherwise healthy promote.
The job now generates the App token before checkout and checks out with
it, and
contents: readstays deliberately in placeforce-pushes
mainonto the mirror on the assumption that main carries thefolded archive; with the fold broken (#1502)
that assumption was false and the push would have destroyed the only copy
of the snapshots. The push is now gated on verifying that main holds every
archive path the mirror carries, and skips with a
::warning::otherwise —a stale mirror self-heals at the next nightly sync; deleted snapshots do not
Floating tags: the promote-time push ran under the wrong identity
(#1508)
promote-release.yml'sfloating-tagsjob embedded the Release App tokenin the push URL, but
actions/checkoutpersists its own credentials ashttp.<host>.extraheader, which outranks URL userinfo. The push thereforeauthenticated as the Actions identity — which the job denies
(
contents: read) and the Tag ruleset does not bypass — so the token thestep went out of its way to plumb through was never used
shallow tag fetch and the force-push both carry the App identity;
contents: readstays, deliberatelygit pushform introduced in 1.7.0(#1377). No consumer had
adopted it — the only two repos that set
DEVKIT_FLOATING_TAGSare still on1.6.0, where the move went through
gh api— so no released floating tagwas ever wrong; the path had simply never executed
throwaway
file://remote: create (the first release of a level, the#1157case), move, idempotent skip, annotated-tag peel, and a refused pushstill failing loud with its remediation annotation