Skip to content

chore: release 1.18.1 - #1969

Merged
gerchowl merged 25 commits into
mainfrom
release/1.18.1
Nov 3, 2026
Merged

gerchowl merged 25 commits into
mainfrom
release/1.18.1

Conversation

@vig-os-release-app

@vig-os-release-app vig-os-release-app Bot commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

Release 1.18.1 - 2026-11-02

This PR prepares release 1.18.1 for merge to main.

1.18.1 - 2026-11-02

Changed

  • Project shells leave the agent CLI to the machine (#1967)

    • Repositories relying on the dev-shell's claude must install it machine-wide (or via the home module), or set withAgentCli = true; consumers of devkit's own devShells output can select #with-agent-cli.
    • Opting in shadows any system claude wrapper. Home modules and the container image retain the CLI.
  • Upgrade uv 0.12.17 → 0.13.4 with the security input advance (#1847)

    • The nixpkgs-unstable bump carries uv 0.13; see the uv 0.13.0 migration notes for breaking changes
    • --constraint, --override, --exclude and --build-constraint values no longer split on spaces; repeat the option for multiple paths
    • Included constraints files now honor --require-hashes and reject editable requirements; supply missing hashes and move editables to requirements files or --editable
    • Stricter tar validation can reject previously accepted archives; uv_build sdist bytes and hashes may change. If [build-system] caps uv_build<0.13, raise that bound to allow 0.13 (e.g. uv_build>=0.13.0,<0.14)
    • The new default Python 3.15 does not affect the devkit image: UV_PYTHON pins its interpreter and UV_PYTHON_DOWNLOADS=never disables downloads

Fixed

  • Restore managed Python downloads with uv 0.13 (#1976)
    • Derive the metadata URL's crate path from the packaged uv version so both CI setup actions use the correct layout, including arm64 release builds.

Security

  • Fix Brotli decoder CVE-2026-111497 (#1977)

    • The stable input ships Google Brotli 1.2.1; register the remaining Vulnix CPE false positive with evidence and an exact package/version exception that leaves 1.2.0 blocking.
    • Remove the two SQLite exceptions fixed by SQLite 3.53.3; see Nix dependency policy.
  • Reconcile expired Nix image exceptions against rebuilt closures (#1847)

    • Advance the stable and unstable Nix inputs to ship available security fixes, including libmicrohttpd 1.0.10 and Unbound 1.26.1; remove their five cleared exceptions
    • Re-verify all six glibc exceptions against the applied nixpkgs backports, replace deployment assumptions with per-CVE fix links, and schedule the next review for Wednesday 2026-11-25

commit-action-bot Bot and others added 14 commits October 29, 2026 19:14
Add the [1.18.1] - TBD section on the release
branch cut from main: main's carried unshipped entries when it had any,
otherwise empty for the hotfix PR to fill.
Regenerate the synced workspace mirror so
assets/workspace/.devcontainer/CHANGELOG.md matches the frozen root
CHANGELOG.md on the release branch.
Advance stable and unstable inputs to ship available fixes. Remove five cleared exceptions and verify glibc backports instead of relying on deployment assumptions.

(cherry picked from commit 054d747)

# Conflicts:
#	CHANGELOG.md
#	assets/workspace/.devcontainer/CHANGELOG.md

Refs: #1847
The security pin advance ships uv 0.13.4; the image test still expected the old 0.12 series.

(cherry picked from commit 3552a53)

Refs: #1847
Record the exact source hash, derivation, applied patch count and fixed code location for the retained CVE-2026-5435 exception. Documentation only; no runtime behavior changes.

(cherry picked from commit 4d5f27e)

Refs: #1847
## Description

Carry #1912 into the authorized 1.18.1 hotfix. Advance only its three
input pins, reconcile the expired register against the release package
set, and align the uv image assertion.

## Type of Change

- [x] `fix` -- Bug fix
- [x] `build` -- Dependency pins
- [x] `docs` -- Security evidence
- [x] `test` -- Existing image expectation

## Changes Made

Four ordered cherry-picks with `-x` provenance (Refs trailers placed
last to satisfy commit validation):

```text
a27fed2 fix(security): reconcile expired vulnix exceptions
Advance stable and unstable inputs to ship available fixes. Remove five cleared exceptions and verify glibc backports instead of relying on deployment assumptions.

(cherry picked from commit 054d747)

# Conflicts:
#	CHANGELOG.md
#	assets/workspace/.devcontainer/CHANGELOG.md

Refs: #1847

f791d17 docs(security): clarify backport verification evidence
(cherry picked from commit 48908bc)

Refs: #1847

bfe2753 test(image): align uv expectation with updated input
The security pin advance ships uv 0.13.4; the image test still expected the old 0.12 series.

(cherry picked from commit 3552a53)

Refs: #1847

eb4f7b9 docs(security): record hash-verified glibc closure evidence
Record the exact source hash, derivation, applied patch count and fixed code location for the retained CVE-2026-5435 exception. Documentation only; no runtime behavior changes.

(cherry picked from commit 4d5f27e)

Refs: #1847

```

### Lock revisions

| Input | Before | After |
| --- | --- | --- |
| crane | `2c71e194474d13de031d729b729c968ddbe3507f` |
`2c71e194474d13de031d729b729c968ddbe3507f` |
| fenix | `45d045a58ed69993eb1d349a86def638fea93a9f` |
`45d045a58ed69993eb1d349a86def638fea93a9f` |
| flake-compat | `5edf11c44bc78a0d334f6334cdaf7d60d732daab` |
`5edf11c44bc78a0d334f6334cdaf7d60d732daab` |
| flake-utils | `11707dc2f618dd54ca8739b309ec4fc024de578b` |
`11707dc2f618dd54ca8739b309ec4fc024de578b` |
| git-hooks-nix | `3bbec39bc90eadfa031e6f3b77272f3f60803e39` |
`3bbec39bc90eadfa031e6f3b77272f3f60803e39` |
| gitignore | `637db329424fd7e46cf4185293b9cc8c88c95394` |
`637db329424fd7e46cf4185293b9cc8c88c95394` |
| home-manager | `868d0a692de703c2de98fab61968e4e310b7c28e` |
`868d0a692de703c2de98fab61968e4e310b7c28e` |
| home-manager-unstable | `7b4c5ec4bedaf1e062bbc1bcaeddbc6bd242aa1b` |
`c216bf5a1f173b0481bd5c8c489ebe5595ecc68c` |
| nixpkgs | `cf5e76507c6e23b59f7e0ffcc7baa2a39ddd8442` |
`1f607aa79b6356ed45d3cd3c8079c196e79efa2c` |
| nixpkgs-unstable | `419fe0f449b3fbe3bdd53d9840288db4509ec32e` |
`674a2028661e550a97400c1cc992b9cca9a668a1` |
| process-compose-flake | `464ff6880737f063c3f0d3d2c7781fda9190868f` |
`464ff6880737f063c3f0d3d2c7781fda9190868f` |
| services-flake | `0aa582aefbb900ea1c464239b7bfa2a96bf1a878` |
`0aa582aefbb900ea1c464239b7bfa2a96bf1a878` |
| systems | `da67096a3b9bf56a91d16901293e51ba5b49a27e` |
`da67096a3b9bf56a91d16901293e51ba5b49a27e` |
| treefmt-nix | `db947814a175b7ca6ded66e21383d938df01c227` |
`db947814a175b7ca6ded66e21383d938df01c227` |

All inputs not advanced by #1912 retain the release/main revisions. No
lock conflict or regeneration was needed. `nix flake metadata --json`
agrees with the complete lock.

### Release closure evidence

Evaluation and `nix derivation show` compare this branch's
`devkitImageEnv` with
`github:vig-os/devkit/4d5f27e50b440d47a742dca896c502f19f1ee5d3#devkitImageEnv`:
all direct input derivations, their output selections, and the set of
chosen package outputs are identical. Only chosen-output
ordering/multiplicity differs, so the aggregate image-env derivation
differs. The package closure is the same reviewed package set; no build
or vulnix scan was run locally.

- CVE-2025-59777 and CVE-2025-62689: delete; locked stable libmicrohttpd
is 1.0.10, with the identical package dependencies used by #1912's scan,
where both findings were absent.
- CVE-2025-15281, CVE-2026-4046, CVE-2026-4437, CVE-2026-5450 and
CVE-2026-5928: renew as patched-in-nixpkgs until 2026-11-25.
Independently checked every recorded fix commit exists in the locked
stable `2.42-master.patch`, and `common.nix` applies it.
- CVE-2026-5435: same stable patch verification; unstable `common.nix`
pins glibc 2.44-57 and source hash
`sha256-N/YA8r7zxegwAUcFlWiyouQKetbMxlzpQlVtSUKcxmc=`, matching #1912's
hash-verified source and 11-patch application evidence. Identical
package derivations make that evidence applicable here. Retain the
2026-11-25 review date.
- The three nonexpired Unbound exceptions removed by #1912 also remain
cleared: locked stable Unbound is 1.26.1 and package derivations match
its reviewed scan.

Source evidence and raw findings:
#1912 (comment) and
#1912 (comment).

## Changelog Entry

Both copies contain this entry only in `## [1.18.1] - TBD`:

### Changed

- **Upgrade uv 0.12.17 → 0.13.4 with the security input advance**
([#1847](#1847))
- The nixpkgs-unstable bump carries uv 0.13; see the [uv 0.13.0
migration notes](https://github.com/astral-sh/uv/releases/tag/0.13.0)
for breaking changes
- `--constraint`, `--override`, `--exclude` and `--build-constraint`
values no longer split on spaces; repeat the option for multiple paths
- Included constraints files now honor `--require-hashes` and reject
editable requirements; supply missing hashes and move editables to
requirements files or `--editable`
- Stricter tar validation can reject previously accepted archives;
`uv_build` sdist bytes and hashes may change. If `[build-system]` caps
`uv_build<0.13`, raise that bound to allow 0.13 (e.g.
`uv_build>=0.13.0,<0.14`)
- The new default Python 3.15 does not affect the devkit image:
`UV_PYTHON` pins its interpreter and `UV_PYTHON_DOWNLOADS=never`
disables downloads

### Security

- **Reconcile expired Nix image exceptions against rebuilt closures**
([#1847](#1847))
- Advance the stable and unstable Nix inputs to ship available security
fixes, including libmicrohttpd 1.0.10 and Unbound 1.26.1; remove their
five cleared exceptions
- Re-verify all six glibc exceptions against the applied nixpkgs
backports, replace deployment assumptions with per-CVE fix links, and
schedule the next review for Wednesday 2026-11-25

## Testing

Round 2 adds only the uv migration entry to both 1.18.1 changelog
copies. All migration points were verified against the linked upstream
0.13.0 release notes; image interpreter behavior was verified in
`flake.nix` (`UV_PYTHON` and `UV_PYTHON_DOWNLOADS=never`).
Content/location/mirror assertions and `git diff --check` pass (exit 0).
Documentation only; TDD does not apply.

- [x] Manual testing performed
- Baseline expiry check: exit 1, exactly the eight expected expired
exceptions.
- `PYTHONPATH=packages/vig-utils/src python3 -m
vig_utils.check_expirations .trivyignore .vulnixignore
.github/dependency-review-allow.txt`: final exit 0 (13 entries).
- `nix flake metadata --json`: exit 0; exact target/unchanged input
assertions pass.
- Cheap package-version, derivation-input and locked-patch assertions:
exit 0.
- `git diff --check origin/release/1.18.1`: exit 0.
- Nix development environment commit hooks pass.
Configuration/register/docs carry; no new runtime implementation
requiring a new TDD test. Container image tests and scans are left to CI
as instructed.

## Checklist

- [x] My code follows the project's style guidelines
- [x] I have performed a self-review of my code
- [x] Security register evidence is documented
- [x] Both changelog copies updated in the hotfix version section
- [x] All four source commits preserve cherry-pick provenance

## Additional Notes

Target is `release/1.18.1` under the hotfix lane. No merge or release
workflow dispatch is part of this PR.

Refs: #1847
(cherry picked from commit d246518)

Refs: #1967
…1972)

## Description

Carry #1967 from PR #1968 onto the main-based 1.18.1 hotfix. Default
project devShells leave `claude` to the machine; `withAgentCli = true`
and devkit's `#with-agent-cli` output opt in using the same pin.
Home/NixOS modules and the container image retain the CLI.

## Type of Change

- [x] `fix` -- Bug fix
- [x] `docs` -- Documentation only
- [x] `test` -- Adding or updating tests

### Modifiers

- [ ] Breaking change (`!`)

## Changes Made

Cherry-picked in source order with `-x` provenance retained in each
commit body (before the final `Refs` line):

- d246518 — shell policy regression
guard.
- 0161007 — opt-in implementation,
documentation and scaffold policy.
- 831688b — shell-builder option
comments, limited to existing files.
- d31b02d — corrected migration
wording.
- 39c17c5 — distinguish devkit-output
and consumer-builder opt-ins.

Dropped from the carry:

- Entire 260420a: Rust-only policy test
bindings/assertions require `templates/rust`, absent from the release
base.
- `assets/flake.d/rust.flake.nix` comment hunk from
831688b: file absent from the release
base.
- Retained `nix/mk-rust-project.nix` option/pass-through and comment
hunks: that file exists on the release base and the changes applied
cleanly.
- No unrelated development changelog entries carried. Both copies
contain only #1967 in the seeded 1.18.1 section.

## Changelog Entry

Under `## [1.18.1] - TBD` in both changelogs, per the hotfix lane:

### Changed

- **Project shells leave the agent CLI to the machine**
([#1967](#1967))
- Repositories relying on the dev-shell's `claude` must install it
machine-wide (or via the home module), or set `withAgentCli = true`;
consumers of devkit's own `devShells` output can select
`#with-agent-cli`.
- Opting in shadows any system `claude` wrapper. Home modules and the
container image retain the CLI.

## Testing

- [x] Manual testing performed
- Evaluation only: `nix eval --impure --json --expr 'import
./tests/agent-cli-policy.nix {}'` — exit 0 (`agentCliPolicy: true`).
Asserts no CLI in default devShell, `lib.mkProjectShell` or scaffolded
workspace; opt-in includes the same pinned package; home and NixOS
modules retain it.
- `nix eval --raw .#checks.x86_64-linux.agentCliPolicy.drvPath` — exit
0, check evaluates without building its closure.
- Pre-change default-shell absence assertion evaluated against the
test-only commit — exit 1, expected assertion failure because the CLI
was present.
- Repository commit hooks run inside `nix develop`; broader suites run
in PR CI.

## Checklist

- [x] Code follows project style; self-review performed
- [x] Documentation and regression guard included
- [x] Both changelogs updated in the hotfix release section
- [x] No unrelated release changes

## Additional Notes

Targets `release/1.18.1`. No release workflow dispatch or merge is part
of this PR.

Rebased onto `release/1.18.1` at 113d379 after security-register
reconciliation PR #1973. Both existing release entries (uv under Changed
and the exception reconciliation under Security) are preserved alongside
#1967. No implementation changes were made in this rebase.

Post-rebase verification: policy evaluation and `agentCliPolicy.drvPath`
evaluation both exit 0. An additional evaluation asserts that the opt-in
shell contains `claude-code` directly from the locked nixpkgs-unstable
input: exit 0, version 2.1.309, unstable revision
`674a2028661e550a97400c1cc992b9cca9a668a1`. All 18 checks are green on
rebased head `00f791f6bda5d2a73a19615f12900f1114e07823`; `gh pr checks
1972 --watch` exited 0.

Refs: #1967
## Description

Fix managed Python downloads with the packaged uv 0.13.4 on the 1.18.1
release branch. The flake constructed a URL using the old `uv-python`
crate path; uv 0.13 moved the file to `uv-python-managed`. Both CI setup
actions forward the flake value unchanged.

## Type of Change

- [x] `fix` -- Bug fix
- [x] `test` -- Adding or updating tests

### Modifiers

- [ ] Breaking change (`!`)

## Changes Made

- Select the metadata crate layout by packaged uv version, retaining the
version-derived tag for future bumps.
- Evaluate the shipped uv version and dev-shell URL for both Linux
architectures without building either toolchain; guard both action
forwarding paths.
- Record the fix under 1.18.1 Fixed in both changelogs, as required for
this release fix.

Investigation: the assignment is in `flake.nix`, not a nixpkgs setup
hook. The override lets FHS CI runners fetch managed CPython for
manylinux hooks while local Nix shells pin their interpreter and disable
downloads. At tag 0.13.4, `ManagedPythonDownloadList::from_settings`
still supports HTTP URLs, local paths and file URLs. The 0.13.0 release
notes document interpreter reuse and the new Python 3.15 default; the
metadata crate relocation is visible in that tag's source tree. The bad
URL is only exercised when managed interpreter acquisition is needed, so
an existing compatible interpreter/download can hide it in amd64/dev CI.
The candidate's amd64 job was cancelled; it did not prove the URL
worked.

Sources: [uv 0.13.0
notes](https://github.com/astral-sh/uv/releases/tag/0.13.0), [0.13.4
metadata](https://github.com/astral-sh/uv/blob/0.13.4/crates/uv-python-managed/download-metadata.json),
[override
loading](https://github.com/astral-sh/uv/blob/0.13.4/crates/uv-python-managed/src/downloads.rs).

## Changelog Entry

### Fixed

- **Restore managed Python downloads with uv 0.13**
([#1976](#1976))
- Derive the metadata URL's crate path from the packaged uv version so
both CI setup actions use the correct layout, including arm64 release
builds.

## Testing

- [x] Targeted tests pass locally
- [x] Manual testing performed

### Manual Testing Details

- RED: `nix develop --command bash -c 'uv run --with pytest-xdist pytest
tests/test_uv_download_metadata.py -n 4
--basetemp="$HOME/.cache/devkit-pytest/1976"'` — exit 1, both
architecture URL assertions fail; two action guards pass. Failing tests
committed before implementation.
- GREEN: same command with `tests/test_setup_toolchain_env.py` added —
exit 0, 52 passed.
- `nix eval --raw
.#devShells.aarch64-linux.default.UV_PYTHON_DOWNLOADS_JSON_URL` — exit
0, correct `0.13.4/crates/uv-python-managed/download-metadata.json` URL.
x86_64 evaluated by the test too.
- `curl` of the evaluated URL — exit 0, HTTP 200. Network probe is
manual, outside unit tests.
- `git diff --check` — exit 0.

Arm64 verification uses evaluation of the actual arm64 dev-shell
environment because the arm64 build lane only runs in release.yml. No
image builds or release workflows dispatched.

## 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 where needed
- [x] Changelog updated in both copies under the release section (per
task)
- [x] I have added tests that prove my fix is effective
- [x] Touched tests pass locally
- [x] CI green on pushed head `cba134d3822c2bee0bbebb645f84955a71ee4d37`
(all checks, including Test Summary)

## Additional Notes

Targets `release/1.18.1` through the hotfix lane. Do not merge or
dispatch a release as part of this PR. The fix will reach dev through
the main-to-dev sync after promotion.

Refs: #1976
## Description

Ship Google Brotli 1.2.1 to fix CVE-2026-111497 and scope the remaining
Vulnix false positive to that exact package/version. Vulnix 1.12.4
ignores CPE vendors: NVD's andybalholm Go-port range (below 1.2.7) also
matches Google's patched 1.2.1. A CVE-wide exception would incorrectly
allow vulnerable Google Brotli 1.2.0.

## Type of Change

- [x] `fix` -- Bug fix
- [x] `build` -- Build system or dependency changes

### Modifiers

- [ ] Breaking change (`!`)

## Changes Made

- Keep the stable nixos-26.05 pin at
08d3a97586f6b6343b3b5e799980773629432610, shipping Brotli 1.2.1 and
SQLite 3.53.3. The stable advance includes 392 upstream commits.
- Add exact `CVE@pname@version` matching to vulnix-gate while preserving
existing bare-CVE entries and expiry semantics. The Brotli entry is
`CVE-2026-111497@[email protected]`, reviewed 2026-11-02, due for review
2026-11-25, expiring Wednesday 2026-12-02 (30 days).
- Remove CVE-2026-11822 and CVE-2026-11824: SQLite's upstream CVE table
identifies 3.53.2 as fixing both; the stable pin ships 3.53.3.
- Leave glibc entries and their expiry unchanged: policy requires
re-verification on renewal, and these are not being renewed.
Independently confirmed all six cited fix commits remain in the new
stable pin's applied aggregate patch.
- Correct both changelogs and shorten the Nix dependency documentation;
document scoped exception syntax in the security policy.

Evidence: [Google advisory, patched at
1.2.1](GHSA-9v8h-qqgm-4m35), [NVD CPE
ranges](https://nvd.nist.gov/vuln/detail/CVE-2026-111497), [SQLite CVE
fix table](https://www.sqlite.org/cves.html).

## Changelog Entry

Under the existing 1.18.1 Security section in both changelog copies:

- **Fix Brotli decoder CVE-2026-111497**
([#1977](#1977))
- The stable input ships Google Brotli 1.2.1; register the remaining
Vulnix CPE false positive with evidence and an exact package/version
exception that leaves 1.2.0 blocking.
- Remove the two SQLite exceptions fixed by SQLite 3.53.3; see [Nix
dependency policy](docs/NIX.md#brotli-security-fix-in-1181).

## Testing

- [x] Targeted tests pass locally
- [x] Manual testing performed
- [x] Real Vulnix/gate controls completed
- [x] All CI checks green on pushed head f12aa67, including required
Test Summary and both Home Matrix platforms

### Manual Testing Details

- Red test committed first: 1 failed, 18 passed (pytest exit 1,
expected).
- After implementation: gate and expiry tests, 44 passed (exit 0); four
workers with isolated basetemp outside the checkout.
- `uv run check-expirations .trivyignore .vulnixignore`: 11 exceptions
validated (exit 0).
- Commit hooks passed inside `nix develop` (exit 0), including lint,
documentation generation/sync, expiry, and commit-message checks.
- Unit controls ensure the exact exception accepts Brotli 1.2.1, rejects
1.2.0 and another package, and rejects expired scoped exceptions.
- Added negative controls for version 1.2.10, version 1.2.1-lib, package
python3.13-brotli, and package Brotli. In-memory mutation checks reject
prefix matching (2 failures), suffix matching (1 failure), and
case-insensitive matching (1 failure), each pytest exit 1 as expected;
all 23 gate tests pass under the unchanged exact matcher (exit 0).
- Real scanner commands (Vulnix 1.12.4, 16 GB memory cap):
- `vulnix --mirror https://vig-os.github.io/nvd-mirror/ --closure
/nix/store/2l6kf3nfwb4k9c5dsdg8k1fs2jr5qikb-brotli-1.2.1-lib --json >
fixed.json`: exit 2, CVE-2026-111497 in brotli 1.2.1.
- `vulnix --mirror https://vig-os.github.io/nvd-mirror/ --closure
/nix/store/g64gr9m6lhzp9aq393yv0sxlr5176jrc-brotli-1.2.0-lib --json >
vulnerable.json`: exit 2, same CVE in brotli 1.2.0.
- `uv run vulnix-gate fixed.json --register <original-register>`: exit 1
(the false positive reproduced).
- `uv run vulnix-gate fixed.json --register .vulnixignore`: exit 0, all
blocking findings in the small runtime closure covered.
- `uv run vulnix-gate vulnerable.json --register .vulnixignore`: exit 1,
**only CVE-2026-111497 in brotli 1.2.0 blocks**. No findings were
filtered out of either JSON file.
- No full image builds were run locally. Gate code followed
red/commit/green. The exact production matcher is unchanged by the test
hardening.

## Checklist

- [x] My code follows the project's style guidelines
- [x] I have performed a self-review of my code
- [x] I have commented the exception scope and evidence
- [x] I have updated documentation and both release changelogs
- [x] Regression tests cover vulnerable versions, other products, and
expiry
- [x] Targeted existing tests pass locally

## Additional Notes

Targets release/1.18.1 on the existing branch and PR. No merge and no
workflow dispatch in this round. The full rebuilt-image Vulnix gate
remains a release-candidate check; this PR's CI does not run Vulnix.

Refs: #1977
Set release date to 2026-11-02 and regenerate release docs.

Refs: #1969
@gerchowl
gerchowl merged commit 65cc15d into main Nov 3, 2026
19 checks passed
@gerchowl
gerchowl deleted the release/1.18.1 branch November 3, 2026 09:06
gerchowl added a commit that referenced this pull request Nov 3, 2026
## Description

Recover `promote-release` when an approved release PR was merged
manually and its branch deleted. Both devkit gates prefer an open PR,
then accept exactly one merged PR only after verifying approval and that
its merge commit and release tag are ancestors of main. Recovery works
when dispatched from main or dev.

## Type of Change

- [x] `fix` -- Bug fix

### Modifiers

- [ ] Breaking change (`!`) -- This change breaks backward compatibility

## Changes Made

- Share the PR lookup and merged recovery checks between validate and
merge.
- Require an approval on the final head when merged PR reviewDecision is
empty.
- Skip mergeability and pending checks for merged PRs; retain failed and
successful CI checks and all other validation.
- Skip the completed merge while keeping merge success and cleanup
scheduling.
- Document recovery, including the instruction to avoid manual release
PR merges.
- Scope workflow changes to devkit; consumer gates retain their separate
protection-aware behavior.

## Changelog Entry

### Fixed

- **Recover promotion after a manually merged release PR**
([#1990](#1990))
- Verify approval and main ancestry, skip the completed merge, and allow
recovery from main or dev after branch deletion.

## Testing

- [x] Tests pass locally (targeted workflow suites; no full local suite)
- [x] Manual testing performed (describe below)

`uv run --with pytest-xdist pytest tests/test_ci_green_gate.py
tests/test_workflow*.py tests/test_github_expression.py
tests/test_promote*.py -n 4 --basetemp=$HOME/.cache/devkit-pytest/1990`:
766 passed, exit 0, including 31 recovery cases covering the shared
script and both workflow gates.

Committed RED first: the initial recovery suite failed with exit 1 (four
failures). The tests execute the shared gate and both workflow step
bodies with isolated GitHub responses.

The first CI run exposed an isolated CI-gate fixture missing `PR_STATE`;
the fixture now supplies it and explicitly tests merged PR
pending/failed verdicts.

`actionlint .github/workflows/promote-release.yml`, `shellcheck
.github/scripts/find-release-pr.sh`, and repository commit hooks pass,
exit 0.

### Manual Testing Details

Read-only GitHub queries confirm PR #1969 is merged and approved, its
merge commit is on main (`identical`), and tag 1.18.1 is an ancestor of
main (`ahead`). No workflow was dispatched.

## Checklist

- [x] My code follows the project's style guidelines
- [x] I have performed a self-review of my code
- [x] I have commented my code, particularly in hard-to-understand areas
- [x] I have updated the documentation accordingly
- [x] I have updated `CHANGELOG.md` in the `Unreleased` section (and
pasted the entry above)
- [x] My changes generate no new warnings or errors
- [x] I have added tests that prove my fix is effective or that my
feature works
- [x] New and existing unit tests pass locally with my changes
- [x] Any dependent changes have been merged and published

## Additional Notes

The changelog mirror is generated by the required sync-manifest hook. No
merge or workflow dispatch is part of this PR.

Refs: #1990
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant