Skip to content

chore: release 1.7.0 - #1385

Merged
vig-os-release-app[bot] merged 70 commits into
mainfrom
release/1.7.0
Aug 8, 2026
Merged

vig-os-release-app[bot] merged 70 commits into
mainfrom
release/1.7.0

Conversation

@vig-os-release-app

@vig-os-release-app vig-os-release-app Bot commented Aug 7, 2026 •

Copy link
Copy Markdown
Contributor

Release 1.7.0 - 2026-08-07

This PR prepares release 1.7.0 for merge to main.

1.7.0 - 2026-08-07

Added

  • CODE_OF_CONDUCT.md (#1372)
    • Contributor Covenant 2.1 at the repository root. Enforcement reports go
      through the same GitHub Private Vulnerability Reporting
      channel SECURITY.md already designates, so there is one private route to
      the maintainers rather than two.

Changed

  • Stamped workflows authenticate with App Client IDs — new org secret required (#1365)
    • Action required before upgrading: create a DEVKIT_UPGRADE_APP_CLIENT_ID
      secret (org or repo) holding the upgrade App's Client ID (Iv23li…).
      Create the secret first, then upgrade — config-first, always. For this
      release the legacy numeric DEVKIT_UPGRADE_APP_ID still works as a
      fallback (with a deprecation warning), so an upgrade that races the secret
      is not bricked; the fallback is removed in a future release
      (#1366).
    • sync-issues.yml now passes COMMIT_APP_CLIENT_ID through the client-id
      input added in vig-os/sync-issues-action v0.5.0 — the numeric
      COMMIT_APP_ID secret is no longer read anywhere and can be retired once
      every consumer is on this release.
    • devkit-upgrade.yml prefers DEVKIT_UPGRADE_APP_CLIENT_ID in its
      preflight gate and create-github-app-token mint.
    • Nothing in the auth path is numerically load-bearing: GitHub accepts either
      the App ID or the Client ID as the App JWT issuer.
  • CONTRIBUTE.md renamed to CONTRIBUTING.md (#1372)
    • GitHub's community profile only recognises CONTRIBUTING.md, so the guide
      was invisible to it and no "Contributing guidelines" link appeared on new
      issues and pull requests.
    • The file is generated, so the rename covers the whole chain:
      docs/templates/CONTRIBUTE.md.j2 -> docs/templates/CONTRIBUTING.md.j2,
      docs/generate.py, the pymarkdown exclude in .pre-commit-config.yaml, the
      expected_doc guard in release.yml, the README.md link (and its
      template), docs/NIX.md, and the docs.yml issue template. Historical
      records — released changelog entries, docs/issues/, docs/pull-requests/
      — keep the old name.
  • Renovate: update github/codeql-action from d1ba80a to 5595cca (#1367)
  • Renovate dependency update (#1368)
    • Update actions/attest from v4.2.1 to v4.2.2
    • Update actions/attest-build-provenance from v4.1.1 to v4.2.2
    • Update vig-os/commit-action from v0.3.1 to v0.3.2
    • Update vig-os/sync-issues-action from v0.4.0 to v0.5.0

Fixed

  • Floating tags move via git push — first release of a new level no longer fails (#1377)
    • The scaffolded promote-release.yml created brand-new floating levels via
      POST /git/refs, the one ref-mutation path where GitHub does not honor the
      Release App's Integration ruleset bypass for the creation rule — so the
      first release of every new <prefix>X / <prefix>X.Y level died with the
      opaque Reference does not exist (HTTP 422) despite the App holding an
      always bypass on the whole Tag ruleset (hit on commit-action 0.3.1 and
      sync-issues-action 0.5.0).
    • move_tag() now force-pushes TARGET_SHA:refs/tags/<name> over git with
      the App installation token plumbed explicitly into the push URL (checkout's
      persisted credentials are the default github.token, which has no bypass)
      — the exact path release-publish.yml already uses to create release tags,
      empirically bypassed fine. Create and move collapse into one branch-free
      path; the idempotence read-and-skip guard and the loud ::error +
      MIGRATION.md fallback from fix(release): actionable failure on first-time floating-tag create denial #1158 stay, with the moot "grant a creation
      bypass" remediation rewritten (the bypass already exists — the REST create
      path simply ignores it).
  • Flake pymarkdown excludes follow the CONTRIBUTING.md rename (#1380)
    • nix/hooks.nix (runner, check, and consumer profiles) and the scaffold
      template assets/workspace/.pre-commit-config.yaml still excluded the
      removed CONTRIBUTE.md, drifting from the root .pre-commit-config.yaml
      updated in #1372; the
      renamed contributing guide was no longer excluded from pymarkdown.
  • A no-diff devkit upgrade no longer strands its adoption issue (#1347)
    • The scaffolded devkit-upgrade.yml opens the adoption issue before
      install.sh --force runs (the branch name embeds its number and the
      in-shell commit needs the Refs: line), so a workflow_dispatch against an
      already-current consumer created an issue, found zero diff, skipped publish
      and PR, and exited green — leaving an issue open with no PR ever attached.
      Every credential probe or repair run against a current consumer left one
      behind.
    • The find-or-create step now reports which branch it took, and a final
      cleanup step on the no-diff path closes an issue this run created (with
      a "no diff at <version>" comment) while leaving a reused one open — a
      mid-train rc1 → rc2 → final issue can legitimately see a no-op bump, and
      auto-closing it would be wrong. Comment only in that case.
  • Upgrades prune scaffold paths retired since the consumer's pin (#1348)
    • install.sh --force regenerated what the current scaffold manages and
      pruned what the current mode / workflow model / feature set excludes — but a
      path an old devkit shipped and a later one retired was claimed by
      neither and rode along through every upgrade. Going 0.3.4 → 1.6.0 preserved
      .cursor/, .github/actions/resolve-image/,
      .github/workflows/renovate-changelog.yml and .hadolint.yaml. The
      workflow file is the sharp one: left in place it is live, duplicates the
      renovate-changelog-build/-commit pair that replaced it, and calls the
      pruned resolve-image action — so it breaks at its next trigger rather
      than at upgrade time.
    • A cumulative retired-paths manifest (version → paths that version stopped
      shipping) is now consulted against the pin .vig-os carried before the
      run — the legacy DEVCONTAINER_VERSION key included, since repos still on
      it are precisely the oldest. Each prune is announced on stdout and listed
      under DELETED in the --force --preview report.
    • The prune is gated on that pin: a repo pinned at or past the retiring
      version was never shipped the path, so an identically named .cursor/ or
      .hadolint.yaml there is the consumer's own and is left untouched. A repo
      that already upgraded past a retirement before this fix keeps its
      leftovers — a one-time manual cleanup, documented in docs/MIGRATION.md.
  • Preserved-file diffs show template content, not a symlink typechange (#1349)
    • A --force upgrade prints the divergence between each preserved consumer
      file and the incoming template so the consumer can fold in template
      evolution deliberately. In the shipped image the devkit assets are
      /nix/store symlinks, so git diff --no-index compared the link against
      the consumer's regular file and rendered a typechange — "symlink deleted /
      file added", with the store path as its only line — instead of the content
      diff. Seen on the vig-os/scitadel 0.3.3 → 1.6.0 migration.
    • The template side is now dereferenced before the comparison, so the hunk
      shows the actual template changes. A template symlink whose target does not
      resolve is still treated as a missing template (no diff, no error), and the
      diff header keeps naming the file rather than an opaque store path.
  • CI dev-shell PATH keeps its priority order (#1351)
    • The direnv-mode setup-devkit-toolchain wrote the dev-shell's /nix/store
      bin dirs to GITHUB_PATH highest-priority-first, but the runner prepends
      every line in file order — so the following steps ran with the dev-shell
      PATH exactly reversed. The dirs are now written reversed, and the per-line
      prepend rebuilds the dev-shell order verbatim.
    • Only multi-store-path toolchains were affected: with one tool per store
      path the order is unobservable. A stdenv toolchain is not — the raw gcc
      shadowed gcc-wrapper (likewise binutils) and C builds failed with the
      unwrapped-compiler signature ld.bfd: cannot find Scrt1.o /
      cannot find -lc, while the same build stayed green locally under
      nix develop (first hit: vig-os/h5v's vendored HDF5 build).
  • shellHook env forward no longer ships UV_PYTHON to CI (#1353)
    • Two correct mechanisms in the direnv-mode setup-devkit-toolchain cancelled
      out. The step drops the bare Nix CPython from the exported PATH and
      forwards UV_PYTHON_DOWNLOADS_JSON_URL so uv sync builds the runner venv
      from a downloaded manylinux CPython ([BUG] pre-commit: make the pymarkdown hook (pyjson5 C-extension / libstdc++) run on NixOS #698/Nix dev-shell leaks the Nix C++ runtime onto LD_LIBRARY_PATH, breaking just on non-NixOS hosts #703/[BUG] Downstream mkProjectShell dev-shell omits bare python/python3 and pre-commit (image has them) #729) — but the shellHook env
      forward (direnv-mode CI: setup-devkit-toolchain forwards only PATH, shellHook env is silently dropped #1180) diffs the dev-shell env against the ambient one and shipped
      every added var, mkProjectShell's UV_PYTHON store-path pin included.
      UV_PYTHON beats PATH resolution, so the venv was built on the Nix
      interpreter regardless and any C-extension wheel then failed under the Nix
      loader on Ubuntu with ImportError: libstdc++.so.6: cannot open shared object file. Existing direnv Python consumers were green only because their
      test dependencies are pure-Python; first live hit
      exo-pet/playground-carlos#9 (numpy 2.4.4).
    • UV_PYTHON and UV_PYTHON_DOWNLOADS are now denied by name in that
      forward's denylist. Both are Nix-host-only by construction, and the second
      is required for the first: on its own, a forwarded
      UV_PYTHON_DOWNLOADS=never would forbid the very managed-CPython download
      the _JSON_URL forward exists to enable, turning the wheel ImportError
      into "no interpreter found". The patterns are exact, so the deliberate
      UV_PYTHON_DOWNLOADS_JSON_URL forward is untouched — now pinned by a test.
    • Audit of the other vars mkProjectShell puts in the dev-shell env: kept
      BATS_LIB_PATH (a store path, but the store is realized on the runner and
      bats runs from the dev-shell PATH there), NVIM_APPNAME (portable
      config) and UV_PYTHON_DOWNLOADS_JSON_URL. LD_LIBRARY_PATH is exported
      only behind the shellHook's own /etc/NIXOS guard, so it never reaches a
      hosted runner and is the correct value on a NixOS self-hosted one — left
      forwardable. Nothing else the builder sets is host-specific.
  • shellHook env forward stops leaking Nix-host state (#1358)
  • Python consumers work on NixOS self-hosted runners (#1360)
  • Prefixed-tag releases publish their changelog notes (#1355)
    • In a consumer that sets DEVKIT_TAG_PREFIX, the release pipeline wrote one
      changelog heading and read back another. release-core.yml finalizes with
      prepare-changelog finalize … --tag-prefix "$TAG_PREFIX", which composes the
      prefix into the heading (## [v1.0.0](…/releases/tag/v1.0.0) - …), while
      release-publish.yml extracted the notes by matching ## [$VERSION] on the
      bare semver — a match that can never land on a prefixed heading.
    • It failed soft: the empty extraction hit the fallback path, so the release
      was published with the literal body No changelog notes found for X.Y.Z.
      The tag and the release object were both correct and nothing went red, which
      is why it survived (observed releasing vig-os/org-config v1.0.0).
    • The extraction step now takes tag_prefix and accepts the composed tag
      ## [${TAG_PREFIX}${VERSION}] alongside the bare one. Both are needed: a
      candidate publishes before the finalize step (which is gated on a final
      release_kind), so its heading is still the unprefixed ## [X.Y.Z] - TBD that
      prepare wrote — matching only the composed tag would have moved the empty
      notes onto the candidate path. Only prefixed repos were affected; an empty
      prefix makes the two forms the same string.
  • MIGRATION.md env-forward denylist prose replaced by an SSoT pointer (#1362)
  • A cancelled CI job no longer leaves Test Summary green (#1371)
    • Test Summary is the only required status check on dev, and it flagged a
      needed job only on result == "failure". A job that was cancelled — job
      timeout, concurrency cancel, runner eviction, a manual "Cancel workflow" —
      produced no verdict at all, yet the aggregate printed "All executed test
      suites passed" and exited 0, so a pull request whose CI never finished was
      mergeable.
    • All eight needed jobs now trip the gate on cancelled as well as failure.
      skipped stays tolerated by design: workflow_dispatch takes a
      test-suite subset input that every job is gated on, and
      commit-checks/dependency-review are pull-request only.

Security

  • Release tags are lightweight refs, so no unsigned object remains in the release chain (#1370)
    • release.yml created the tag with git tag -a under
      vigOS Release Bot <[email protected]>, producing an annotated tag
      object
      whose tagger was permanently unverifiable — live tag 1.6.0
      reports verification.reason: "unsigned". Signing it was never reachable:
      the tag is written under the Release App installation token and a GitHub
      App has no registrable GPG/SSH key, while the server-side POST /git/tags
      route stores the payload verbatim without signing it either.
    • The publish job now creates the tag as a plain refs/tags/<version> ref at
      the release commit (POST /git/refs). A lightweight tag has no tagger and
      no payload, so there is nothing left that can report unsigned, and the
      commit the ref resolves to is the GitHub-verified release commit. The
      candidate-collision guard and the "already tagged at the finalize SHA"
      skip are unchanged; the now-unused git-user-name / git-user-email
      dispatch inputs are removed from release.yml (prepare-release.yml, which
      actually writes commits, keeps its own).
  • Consumer release tags are lightweight refs too — the scaffold stops publishing unsigned tag objects (#1378)
    • The scaffold's release-publish.yml still created every consumer's
      X.Y.Z tag with git tag -a under a GitHub App identity — an annotated
      tag object
      reporting verification.reason: "unsigned" forever, for the
      same unreachable-signature reasons as #1370.
      The scaffold was internally inconsistent: promote-release.yml already
      creates the floating tags (vX, vX.Y) as lightweight refs, while the
      version tag — the one users pin and audit — was an unsigned object.
    • The publish step now POSTs refs/tags/<prefix><version> straight at the
      release commit (POST /git/refs). Preserved behaviours: the
      tag_already_exists skip, the create-race verification (a lost race is
      accepted only when the existing ref already resolves to the release
      commit), TAG_PREFIX composition (#1044),
      and the tombstone diagnosis (#1319)
      — its signature match re-derived against the POST /git/refs HTTP 422
      rule-violation error shape.
    • The dead git_user_name / git_user_email workflow_call inputs are
      removed from release-publish.yml and their pass-throughs from the
      scaffold release.yml publish call; the scaffold's git-user-name /
      git-user-email dispatch inputs stay — the rollback job still writes
      commits with that identity.
    • promote-release.yml and docs/MIGRATION.md keep the annotated-tag peel
      as backward compatibility for tags published by older scaffolds, with
      corrected wording. Existing annotated tags are left as they are
      (forward-fix policy); the change reaches consumers on their next devkit
      upgrade.
  • Smoke-test orchestration gates the final release on a human approval instead of self-approving (#1391)
    • The dispatch listener approved its own release PR with the workflow token,
      which the org now forbids (chore(config): block workflow PR approvals and member repo creation org-wide org-config#122 sets
      can_approve_pull_request_reviews: false org-wide) — the 1.7.0-rc3 smoke
      chain died at that step.
    • The approve step is replaced by a kind-aware gate: candidate dispatches
      leave the PR unapproved (approval gates the final release only, matching
      the deferred-approval model of #902),
      while the final dispatch polls up to 30 minutes for a human to approve the
      freshly created release PR before triggering the final release workflow,
      and fails with re-run guidance if nobody does. Every dispatch still
      recreates the smoke release branch and PR from scratch, by design.
  • vulnix register: except CVE-2026-66032, completing the libssh2 malicious-server batch (#1386)
    • The 1.7.0-rc1 Vulnix CVE Gate blocked on CVE-2026-66032 (CVSS 8.8, a
      double-free in libssh2's sftp_open()), the fourth member of the upstream
      batch whose siblings CVE-2026-66033/66034/66035 were already excepted in
      the 2026-09-02 block (#1327) —
      it was absent from the findings when that block was triaged on 2026-08-04
      and surfaced in the feed later.
    • Same closure provenance and reachability as its siblings: libssh2 enters
      the image only as curl's scp/sftp backend, and the flaw requires an
      authenticated SFTP session against a malicious SSH server. Excepted in the
      same 2026-09-02 block; the whole block drops on a nixpkgs rev-advance once
      the merged upstream patches (libssh2: apply debian patches for CVE-2026-6603[2345] NixOS/nixpkgs#547491) reach the pinned
      nixos-26.05 channel via the still-open staging-26.05 backport.

vig-os-release-app Bot and others added 30 commits August 4, 2026 13:37
Syncs `dev` with `main` (sync-main-to-dev workflow).
## Summary

A `workflow_dispatch` of the scaffolded `devkit-upgrade.yml` against an
already-current consumer stranded the adoption issue it had just opened:
the
issue is necessarily created **before** `install.sh --force` runs (the
branch
name embeds its number, the in-shell commit needs the `Refs:` line), so
a
zero-diff run correctly skipped publish + PR and exited green — with an
open
issue no PR would ever close.

Live occurrence: `exo-pet/exo-fleet#270`, run 30986580730.

## Change

- `Find or create the adoption issue` now exposes a `created` step
output
  (`true` on the create branch, `false` on the reuse branch).
- A new final step, gated on `proceed == 'true' && changed != 'true'`:
- **created this run** → `gh issue close` with a "no diff at
`<version>`"
    comment and `--reason "not planned"`;
  - **reused** (mid-train `rc1 → rc2 → final`, where an interim bump can
    legitimately be a no-op) → comment only, issue left open.

The `created` output is routed through `env:` like every other value the
workflow's `run:` blocks consume (zizmor template-injection rule).

## Testing

- New `test_no_diff_dispatch_cleans_up_the_issue_it_created` in
`tests/test_workflow_devkit_upgrade.py` (RED → GREEN, committed
separately).
- `uv run pytest tests/test_workflow_devkit_upgrade.py
tests/test_scaffold_drift.py tests/test_scaffold_lint.py` — 68 passed.
- `just precommit` (full suite, all files) green locally, incl.
actionlint and
  yamllint on the changed template.

Closes #1347
Resolves the CHANGELOG conflict created when #1347 (PR #1350) landed on dev:
both entries belong side by side in the Unreleased Fixed section.

Refs: #1348
)

## Summary

`install.sh --force` regenerates what the **current** scaffold manages
and
prunes what the current mode / workflow model / feature set excludes. A
path an
**old** devkit shipped and a later devkit **retired** is claimed by
neither, so
it rode along through every upgrade. Observed going 0.3.4 → 1.6.0
(`exo-pet/playground-carlos#9`): `.cursor/`,
`.github/actions/resolve-image/`,
`.github/workflows/renovate-changelog.yml` and `.hadolint.yaml` all
survived.

`renovate-changelog.yml` is the sharp one — left in place it is a
**live**
workflow that duplicates the `renovate-changelog-build`/`-commit` pair
that
replaced it *and* calls the pruned `resolve-image` action, so it fails
at its
next trigger rather than at upgrade time.

## Change

`assets/init-workspace.sh`:

- `PREVIOUS_PIN` — the pin `.vig-os` carried *before* this run rewrites
it, read
alongside the other manifest values, far ahead of the #852 rewrite.
Legacy
`DEVCONTAINER_VERSION` included: repos still on that key are the oldest
ones,
  i.e. exactly the population carrying the leftovers.
- `retired_paths()` — the cumulative manifest, one `<version> <path>`
line per
  path, `<version>` being the first release that stopped shipping it:

  | Path | Retired in | Superseded by |
  |------|-----------|---------------|
| `.github/workflows/renovate-changelog.yml` | 0.3.5 | the build/commit
pair |
  | `.cursor/` | 0.4.0 | `.claude/` |
  | `.hadolint.yaml` | 0.4.0 | — (Debian build path decommissioned) |
  | `.github/actions/resolve-image/` | 1.1.0 | `resolve-toolchain` |

- `version_lt()` — prerelease-aware in the direction that matters
(`X.Y.Z-rcN`
sorts below `X.Y.Z`, so an rc of the retiring release is still pruned).
- `retired_prune_paths()` — the single resolver consulted by **both**
the
`--preview` `DELETIONS` report and the post-copy prune, so the report
can
never disagree with what the run does. Four gates: a present,
semver-shaped
pin; the pin predates the retirement; the current template does not ship
the
  path; the path is not in `PRESERVE_FILES`.

`.devcontainer/justfile.base` (also retired in 0.4.0) deliberately keeps
its
dedicated block: its prune is mode-guarded (#738 never touches a
direnv/bare
consumer's own `.devcontainer/`), which a version-only manifest cannot
express.

### The version gate is the safety property

`.cursor/` and `.hadolint.yaml` are generic names. A repo pinned at or
past the
retiring version was never shipped them by devkit, so an identically
named path
there is the consumer's own — deleting it would be data loss. The
deliberate
trade is under-pruning a repo that already upgraded past a retirement
before
this fix; those are cleaned once by hand, and `docs/MIGRATION.md` says
so.

## Testing

- New `tests/test_scaffold_retired_paths.py` (RED → GREEN, committed
separately) — 6 tests over the real `init-workspace.sh`: manifest
contents,
prune from an old pin, legacy `DEVCONTAINER_VERSION` pin, **no** prune
past
the retirement, **no** prune without a pin, and `--preview` reporting
without
  mutating. `tests/workflow_scaffold.py` gained a `preview` passthrough.
- `uv run pytest` (excluding the image/integration suites, which need
the
  container) — **987 passed, 1 skipped**.
- `just test-bats` — 9 pre-existing `IN_CONTAINER` githooks failures,
verified
  identical on a clean `origin/dev` worktree; unrelated to this change.
- `just precommit` (full suite, all files) green locally.

Closes #1348
…#1354)

## Summary

On `--force` upgrades the installer prints a diff between each preserved
consumer file and the incoming template so template evolution can be
folded in deliberately. In the shipped image the devkit assets are
`/nix/store` **symlinks**, so `git diff --no-index` compared the link
itself against the consumer's regular file and rendered a useless
typechange ("symlink deleted / file added", with the store path as its
only content line). Observed live on the vig-os/scitadel 0.3.3 → 1.6.0
migration.

`print_preserved_template_diff` now dereferences the template side
before comparing: the resolved content is materialized under the file's
own name in a temp dir, so the diff header keeps identifying the file
rather than an opaque store path. A template symlink whose target does
not resolve is still treated as a missing template (`[[ -f ]]` follows
the link), so the function returns 1 with no output, as before.
Constraints from #916 (`git diff --no-index`, no `diff(1)`/`cmp(1)` in
the image) and #1197 (`GIT_DIR=/dev/null`) are preserved.

## Test plan

- New bats test `preserved diff dereferences a symlinked template file
(#1349)`: image-shaped template tree with the preserved file as a
symlink to out-of-tree content; asserts the printed diff shows the
template content and refutes the typechange rendering (RED before the
fix, reproducing the exact live failure shape).
- Full `tests/bats/init-workspace.bats`: 280/280 green, including the
#878/#913/#916/#1197 preserved-diff relatives.
- `prek run --all-files` green.

Refs: #1349
)

## Summary

The direnv-mode `setup-devkit-toolchain` step extracts the consumer
dev-shell `$PATH`, filters the `/nix/store` bin dirs, and wrote them to
`GITHUB_PATH` highest-priority-first. The Actions runner *prepends*
every `GITHUB_PATH` line in file order (the prepend list is joined
reversed when composing the next step's PATH), so following steps ran
with the dev-shell PATH exactly reversed.

Invisible while one tool means one store path — which is why every
Python/TS consumer stayed green — but fatal for a stdenv toolchain: raw
`gcc` shadowed `gcc-wrapper` (likewise `binutils`) and C builds failed
with the unwrapped-compiler signature `ld.bfd: cannot find Scrt1.o` /
`cannot find -lc`, while the same build was green locally under `nix
develop`. First live hit: vig-os/h5v#2 (vendored HDF5 cmake build, run
31160809242).

The store bin dirs are now piped through `tac` before the write, so the
runner's per-line prepend rebuilds the dev-shell order verbatim.
Bare-mode's single-line `uv tool dir --bin` write is unaffected; the
env-forward denylist is untouched (that's #1353).

## Test plan

- New test `test_devshell_path_priority_survives_github_path`: the fake
dev-shell PATH now carries a `gcc-wrapper-13/bin` → `gcc-13/bin` pair; a
`_runner_path` helper replays the runner's per-line prepend and the test
asserts the wrapper precedes the raw compiler AND the full store-bin
subsequence equals the dev-shell order — semantics-pinned, no coupling
to `tac`. RED on the old code with the whole order inverted, exactly the
issue shape.
- Full `tests/test_setup_toolchain_env.py`: 25/25 green (verified
independently by reviewer).
- `tests/bats/init-workspace.bats` (renders + actionlints the scaffold):
280/280 green.
- `prek run --all-files` green.

Refs: #1351
## Summary

Two correct mechanisms in the direnv-mode `setup-devkit-toolchain`
cancelled out. The step drops the bare Nix CPython from the exported
PATH and forwards `UV_PYTHON_DOWNLOADS_JSON_URL` so `uv sync` builds the
runner venv from a downloaded manylinux CPython (#698/#703/#729) — but
the shellHook env forward (#1180) diffs the dev-shell env against the
ambient env and shipped every added var, including `mkProjectShell`'s
`UV_PYTHON` store-path pin. `UV_PYTHON` beats PATH resolution, so the CI
venv was built on the Nix interpreter anyway and any C-extension wheel
failed under the Nix loader on Ubuntu (`ImportError: libstdc++.so.6`).
First live hit: exo-pet/playground-carlos#9 (numpy 2.4.4, run
31163316165); existing direnv Python consumers were green only because
their test deps are pure-Python.

`UV_PYTHON` and `UV_PYTHON_DOWNLOADS` are now denied by name in the
forward's denylist. The second is required for the first: forwarded on
its own, `UV_PYTHON_DOWNLOADS=never` (also set by `mkProjectShell`)
would forbid the very managed-CPython download the JSON-URL forward
exists to enable, turning the wheel ImportError into "no interpreter
found". Patterns are exact matches, so the deliberate
`UV_PYTHON_DOWNLOADS_JSON_URL` forward is untouched — and now pinned by
a test.

## Denylist audit (per the issue)

Everything else `mkProjectShell` sets was reviewed: `BATS_LIB_PATH` kept
(the store is realized on the runner in direnv mode), `NVIM_APPNAME`
kept (portable), `LD_LIBRARY_PATH` kept (exported only behind the
shellHook's own `/etc/NIXOS` guard, never reaches a hosted runner).
`UV_PROJECT_ENVIRONMENT` / `UV_PYTHON_PREFERENCE` / `LOCALE_ARCHIVE` are
image-path-only, not dev-shell exports. Pre-existing leaks outside this
issue's scope (`PYTHONPATH` store components, `IN_NIX_SHELL`, missed
stdenv machinery like `doCheck`/`CC`/`LD`) → follow-up issue.

## Test plan

- `_DEVSHELL_ENV` now carries all three uv vars; `UV_PYTHON` +
`UV_PYTHON_DOWNLOADS` added to the parametrized denylist test (RED
before the fix: `3 failed, 25 passed`, with `UV_PYTHON` visibly landing
in GITHUB_ENV).
- New `test_uv_interpreter_pins_do_not_defeat_the_manylinux_path`: both
pins absent AND `UV_PYTHON_DOWNLOADS_JSON_URL` still forwarded — the
survival assertion did not exist before.
- Harness fix: the test subprocess env is scrubbed of ambient uv vars
(pytest itself runs under `nix develop`, which made one parametrize case
pass spuriously via the unchanged-var filter).
- Full `tests/test_setup_toolchain_env.py`: 28/28 green (verified
independently by reviewer); `test_renovate_preset_managed_exclusion.py`
31/31; `prek run --all-files` green.

Refs: #1353
)

## Summary

In a consumer with a tag prefix, the release pipeline wrote one
changelog heading and read back another: `release-core.yml` finalizes
with `prepare-changelog finalize … --tag-prefix "$TAG_PREFIX"`,
composing the prefix into the heading (`##
[v1.0.0](…/releases/tag/v1.0.0) - …`), while `release-publish.yml`
extracted the notes by matching `## [$VERSION]` on the bare semver —
which can never land on a prefixed heading. It failed soft: the empty
extraction hit the fallback and the release published with the literal
body `No changelog notes found for X.Y.Z` (tag and release object both
correct, nothing red). Observed releasing vig-os/org-config v1.0.0;
unprefixed repos were never affected.

The extraction step now takes the already-threaded `tag_prefix` input
(#1044) and accepts the composed tag `## [${TAG_PREFIX}${VERSION}]`
**alongside** the bare form. Both are needed — the issue's prefix-only
suggestion would have moved the bug rather than fixed it: a candidate
publishes *before* the finalize step (gated on `release_kind ==
'final'`), so its heading is still the unprefixed `## [X.Y.Z] - TBD`
that `prepare` wrote. With an empty prefix the two forms are the same
string, so unprefixed repos see a byte-identical match.

Other readers audited (grep over scaffold + devkit's own workflows for
version-heading matches): `prepare-release.yml`'s PR-body sed runs
pre-finalize (always bare, correct as-is); devkit's bespoke
`release.yml` extractions have no tag-prefix surface at all. Nothing
else changed.

## Test plan

- New `test_release_notes_extraction_reads_the_heading_on_disk` in
`tests/test_release_tag_prefix.py`, parametrized `tag_prefix ∈ {"",
"v"}` × writer state `{final, candidate}`: executes the real `run:`
block from the workflow YAML under bash against a synthetic CHANGELOG
and asserts the notes are the bounded section body, not the fallback.
RED before the fix on exactly the `[final-v]` case (fallback body
published); the candidate cases are regression guards against the
prefix-only fix.
- Full release-workflow pytest set (`test_release_tag_prefix`,
tombstone, scaffold lint/drift, dist-gitignore, sync-dispatch,
release-extension): 72/72 green.
- `tests/bats/init-workspace.bats` (renders + actionlints the scaffold):
280/280 green.
- `prek run --all-files` green (verified independently by reviewer).

Refs: #1355
…ard (#1361)

## Summary

Follow-up to the #1353 denylist audit: the shellHook env forward (#1180)
still shipped Nix-host state to `GITHUB_ENV`. Three leaks closed:

- **`PYTHONPATH` store components are stripped, not blanket-denied.**
The nixpkgs python setup hook fills `PYTHONPATH` with store
site-packages dirs; forwarded to CI they land on the sys.path of the
*downloaded* manylinux CPython — same ABI tag, importable, exactly the
mixed-loader shape behind #1353's `ImportError: libstdc++.so.6`. The
forward loop now splits the value on `:`, drops `/nix/store/*`
components, forwards the remainder, and skips the var when nothing is
left — so the legitimate `export PYTHONPATH=$PWD/src` shellHook use case
survives verbatim. PYTHONPATH only, by design; the pattern is noted as
reusable.
- **stdenv machinery the denylist missed**: `_PYTHON_HOST_PLATFORM`,
`_PYTHON_SYSCONFIGDATA_NAME`, `DETERMINISTIC_BUILD`, `CONFIG_SHELL`,
`do[A-Z]*` (the symmetric partner of the existing `dont*`), and the
cc/binutils hook names `AR AS CC CXX LD NM OBJCOPY OBJDUMP RANLIB
READELF SIZE STRINGS STRIP`. stdenv sets those in every dev shell as
bare names (`CC=gcc`); inside dev-shell context the wrapped toolchain
already wins via PATH (#1351), while for steps running outside it a
forwarded `CC` recreates the mixed-toolchain hazard. Two known
collisions, both assessed and accepted: the pre-#1351 h5v CC/CXX
shellHook workaround (superseded — #1351 removed the need) and the
`native` capability module's `CC=cc`/`CXX=c++` exports (those generic
names exist precisely so build backends fall back to PATH discovery,
which `GITHUB_PATH` already provides on CI).
- **`IN_NIX_SHELL`** — no CI step should claim to run inside a nix
shell. The `.githooks` guard that reads it is local-only (no scaffold
workflow commits through it).

The NixOS-self-hosted PATH-filter gap found in the same audit is split
out as #1360 and untouched here, as are the `UV_PYTHON*` entries (#1353)
and the `GITHUB_PATH` write (#1351).

## Test plan

- 8 new parametrized denylist cases + 3 PYTHONPATH value tests
(store-only → dropped; mixed → forwarded as exactly the consumer
components; consumer-only → verbatim, the #1180 regression guard). RED
before the fix: `10 failed, 29 passed`, each var visibly landing in
GITHUB_ENV.
- Test-harness hardening that the RED run itself justified: pytest runs
inside `nix develop`, where stdenv exports `CC`, `CONFIG_SHELL`,
`PYTHONPATH`, `IN_NIX_SHELL`, … ambiently — the step's unchanged-var
filter would have masked the denylist under test. The subprocess env
scrub is now derived from the fixture list instead of a hand-kept 3-var
set.
- Full `tests/test_setup_toolchain_env.py` +
`test_renovate_preset_managed_exclusion.py`: 42/42 green (verified
independently by reviewer); rendered-workflow actionlint bats 5/5; `prek
run --all-files` green.

## Follow-up candidate

`docs/MIGRATION.md` enumerates the denylist in prose and is now stale
for both #1353 and #1358 — left untouched per minimal-diff scope; happy
to file a docs issue.

Refs: #1358
## Summary

The direnv-mode `setup-devkit-toolchain` PATH filter (#1028) drops the
bare Nix CPython whenever `pyproject.toml` is present — unconditionally.
On hosted FHS runners that is correct (`uv` builds the venv from a
downloaded manylinux CPython). On a **NixOS self-hosted runner** it is
wrong by construction: a manylinux CPython cannot execute there, and
after #1353 the `UV_PYTHON`/`UV_PYTHON_DOWNLOADS` pins that used to
accidentally mask this no longer reach CI. No current consumer hits the
combination — this defuses the landmine before the first Python consumer
targets a NixOS runner.

The step now probes the runner host once (`/etc/NIXOS`, the probe
mkProjectShell's own shellHook already uses; `DEVKIT_NIXOS_MARKER`
overrides it solely for the test harness) and branches:
- **NixOS runner**: the CPython exclusion is skipped (the store
interpreter is the only one that can run) AND the
`UV_PYTHON`/`UV_PYTHON_DOWNLOADS` forwards are allowed (the
mkProjectShell pins are exactly correct there). Both halves are needed —
keeping the interpreter on PATH alone is not enough, since uv's
python-preference can still pick a managed download.
- **FHS runner**: byte-identical to today, pinned by a new
regression-bar test (the #1028 exclusion previously had no test at all).

## Test plan

- Stub dev-shell PATH now carries a `python3-3.14.6/bin` store dir;
harness gained `pyproject`/`nixos` knobs.
- New tests: FHS drops exactly the CPython dir and nothing else (green
throughout — the regression bar); NixOS keeps it (RED→GREEN); NixOS
forwards both uv pins (RED→GREEN). RED run: exactly the two NixOS tests
failed.
- **Hermeticity**: the harness always pins `DEVKIT_NIXOS_MARKER` to a
per-test path whose existence is the switch. This machine IS NixOS, and
the pin was proven load-bearing: removing it flips 4 FHS-branch tests
red (including the pre-existing #1353 denial tests, which would
otherwise silently test the wrong branch on any NixOS host).
- Full `tests/test_setup_toolchain_env.py` + renovate-preset file: 45/45
green (verified independently by reviewer); rendered-workflow actionlint
bats 5/5; `prek run --all-files` green.

Refs: #1360
c-vigo and others added 9 commits August 7, 2026 18:24
The nine cases asserting the workspace githook guard blocks outside a
devcontainer sanitized only IN_CONTAINER; from a nix develop shell,
IN_NIX_SHELL=impure legitimately satisfies the guard and the cases fail.
Also unset IN_NIX_SHELL, mirroring the IN_CONTAINER handling, so the suite
is deterministic regardless of the invoking shell. Test-only change: the
guard behaves correctly, so there is no implementation commit to split out.

Refs: #1381
…en (#1379)

## Summary

The `floating-tags` job in the scaffolded `promote-release.yml` created
brand-new
floating levels via `POST /git/refs` — the one ref-mutation path where
GitHub
does **not** honor the Release App's Integration ruleset bypass for the
`creation` rule. The first release of every new `<prefix>X` /
`<prefix>X.Y`
level therefore died with the opaque `Reference does not exist` (HTTP
422) and
no rule-suite entry at all, despite the App holding an `always` bypass
on the
whole Tag ruleset (hit live on `commit-action` 0.3.1 and
`sync-issues-action`
0.5.0).

`move_tag()` now mutates floating tags via
`git push --force "${TARGET_SHA}:refs/tags/${name}"` — the exact path
`release-publish.yml` already uses to create the release tags,
empirically
proven to be bypassed — with the App installation token plumbed
**explicitly**
into the push URL (`https://x-access-token:${GH_TOKEN}@github.com/...`).
Checkout's persisted credentials are deliberately not relied on: those
are the
default `github.token`, which has no bypass. Create and move collapse
into one
branch-free path.

## Preserved from #1157/#1158

- **Idempotence**: the `gh api` GET + skip-when-already-at-target guard
stays,
  so re-runs are safe.
- **Loud failure**: the `::error` annotation + `docs/MIGRATION.md`
`#first-release-floating-tags` fallback stays for pushes that fail for
other
  reasons; its wording is updated now that the "grant a creation bypass"
remediation is moot (the bypass already exists — the REST create path
simply
  ignores it) and points at verifying the ruleset bypass list and the
  `RELEASE_APP_CLIENT_ID` / `RELEASE_APP_PRIVATE_KEY` secrets instead.
- **The trap is documented in-script**: a comment explains why push is
used
  instead of `POST /git/refs`, so the REST path is not reintroduced.

## Changes

- `assets/workspace/.github/workflows/promote-release.yml` — push-based
`move_tag()`, explicit-token remote URL, and a `git fetch` of the
release tag
so the peeled commit object is available locally to push (the checkout
is a
  shallow clone of the workflow head, which need not contain it).
- `tests/test_floating_tags.py` — new shape tests pin the push path, the
explicit token, the absence of REST ref mutation, the surviving
idempotence
  guard, and the updated annotation (TDD: committed failing first).
- `docs/MIGRATION.md` — the #1157 steady-state note now describes the
REST
bypass asymmetry, scopes the one-off remediation to pre-fix devkit
versions,
  and recommends upgrading.
- `CHANGELOG.md` (+ synced workspace mirror) — Fixed entry under
Unreleased.

## Verification

- `uv run pytest tests/test_floating_tags.py` — 9 passed (3 new tests
failed
  RED before the fix).
- `uv run pytest tests` (minus image/integration, which need a built
image) —
  483 passed; the single failure (`test_flake_hooks` pymarkdown
`CONTRIBUTE.md`/`CONTRIBUTING.md` exclude drift) pre-exists on `dev`
from the
  #1372 rename and is untouched by this PR (separate issue to follow).
- `just precommit` (full `prek run --all-files`) — all green.
- `just test-bats` — full suite green, including the rendered-workflow
  actionlint checks over `promote-release.yml` (#995).
- Live proof lands with the next first-of-a-new-level consumer release,
per the
  issue's acceptance criteria.

Out of scope, per the issue: reporting the `POST /git/refs` bypass
asymmetry
upstream, the optional org-config `exempt`-mode hardening, and shrinking
the
MIGRATION.md runbook to a historical note.

Closes #1377
…#1382)

## Description

Every repo devkit scaffolds published its `X.Y.Z` release tag through
`assets/workspace/.github/workflows/release-publish.yml`, which ran
`git config user.*` + `git tag -a` + `git push` under a GitHub App identity —
an **annotated tag object** whose tagger reports
`verification.reason: "unsigned"` permanently. The reasoning from #1370
transfers unchanged: an App has no registrable GPG/SSH key, and
`POST /git/tags` is not signed server-side either, so the only fix is to not
create a tag object at all. The scaffold was also internally inconsistent:
`promote-release.yml` already creates the *floating* tags (`vX`, `vX.Y`) as
lightweight refs (#1045/#1157), leaving only the version tag — the one users
pin and audit — unsigned.

## Type of Change

- [x] `fix` -- Bug fix

## Changes Made

- `assets/workspace/.github/workflows/release-publish.yml`
  - "Configure git" + "Create and push tag" are replaced by a single
    **Create release tag** step mirroring devkit's own `release.yml` from
    PR #1374: `gh api -X POST repos/{owner}/{repo}/git/refs` writes
    `refs/tags/<prefix><version>` straight at `inputs.finalize_sha`, using the
    same resolved auth token (`secrets.token` or the Release App token).
  - Behaviours carried over, per the issue's acceptance criteria:
    - the `tag_already_exists` skip (`if: ${{ !inputs.tag_already_exists }}`)
      is unchanged;
    - the create-race verification accepts a lost race **only** when the
      existing ref already resolves to the release commit (peeled `^{}` first,
      plain ref fallback, so pre-change annotated tags still resolve);
    - `TAG_PREFIX` composition (#1044): the created ref is
      `refs/tags/${TAG_PREFIX}${PUBLISH_VERSION}`;
    - **GH013 tombstone diagnosis** (#1319): the signature match is re-derived
      against the `POST /git/refs` error surface — the repository-rules 422
      body says `Cannot create ref due to creations being restricted.` while
      the git-protocol shape stays `GH013 ... creations restricted`, so the
      grep is now `GH013|creations?( being)? restricted`. The shape test
      exercises the extracted pattern against both shapes and asserts the
      benign lost-race shape (`Reference already exists`) does NOT match.
  - The dead `git_user_name` / `git_user_email` `workflow_call` inputs are
    removed.
- `assets/workspace/.github/workflows/release.yml` — the two identity
  pass-throughs in the `publish` call are removed. The `git-user-name` /
  `git-user-email` **`workflow_dispatch` inputs stay**, as the issue requires:
  the rollback job still checks out the release branch and writes with that
  identity (the asymmetry with #1374).
- `assets/workspace/.github/workflows/promote-release.yml` — the "creates an
  ANNOTATED tag" comment is corrected; the `object.type == "tag"` peel itself
  stays as backward compatibility for tags published by older scaffolds.
- `docs/MIGRATION.md` — same treatment for the first-release floating-tags
  runbook (~L1028): claim corrected, peel snippet kept (it handles both
  shapes).
- `tests/test_workflow_release_publish_lightweight_tag.py` — new workflow-shape
  test mirroring `tests/test_workflow_release_lightweight_tag.py` for the
  scaffold (committed RED first).
- `tests/test_release_tombstone_detection.py` — tag-side tests re-pointed at
  the **Create release tag** step and upgraded to execute the extracted grep
  pattern against the observed error shapes instead of asserting substrings.

## Out of scope

- The optional `persist-credentials` cleanup from the issue is deliberately
  **not** bundled: after this change the publish job still runs
  `git ls-remote origin` for the create-race verification, which needs the
  persisted checkout credential on private consumer repos — the credential is
  not dead. Same situation in devkit's own `release.yml` post-#1374. If it is
  to be dropped, the verification must move to `gh api` first; that is its own
  change.
- Existing annotated consumer tags are left as they are (forward-fix policy;
  immutable releases lock them anyway). The change reaches consumers on their
  next `devkit-upgrade` / re-scaffold; until then `scaffold-drift` flags them.

## Changelog Entry

Added under `## Unreleased` → `### Security`, directly after the sibling #1370
entry (mirrored into `assets/workspace/.devcontainer/CHANGELOG.md` by
`sync-manifest`).

## Testing

- `uv run pytest tests/test_workflow_release_publish_lightweight_tag.py tests/test_release_tombstone_detection.py`
  — RED before the workflow change (10 failed / 3 passed), GREEN after
  (13 passed).
- Full lightweight suite (CI `test-project` scope + `packages/vig-utils/tests`):
  **950 passed**.
- Full bats suite: 575 ok; the 9 `githooks.bats` IN_CONTAINER-guard failures
  are environmental (the runner shell exports `IN_NIX_SHELL`, which the guard
  sanctions) — all 12 pass with `env -u IN_NIX_SHELL bats tests/bats/githooks.bats`.
  The rendered-template actionlint tests passed.
- `just precommit` (`prek run --all-files`) — fully green.
- The live path is only provable on a real release: acceptance is
  `gh api repos/vig-os/devkit-smoke-test/git/refs/tags/<tag> --jq '.object.type'`
  reporting `commit`, not `tag`, on the next smoke-test release.

## 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
- [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

Closes #1378
…rror

PR #1376 renamed CONTRIBUTE.md to CONTRIBUTING.md and updated the root
.pre-commit-config.yaml, but missed the flake-side mirror in nix/hooks.nix
(runner yaml, check, and consumer profiles) and the scaffold template
assets/workspace/.pre-commit-config.yaml. The drift gate
test_runner_render_matches_committed_config failed on dev; both mirrors now
exclude the renamed guide again.

Refs: #1380
## Summary

The nine `githooks.bats` cases asserting the workspace githook guard *blocks* outside a devcontainer sanitized only `IN_CONTAINER` (`env -u IN_CONTAINER` / `IN_CONTAINER=\"\"` / `IN_CONTAINER=\"false\"`). The guard also legitimately passes when `IN_NIX_SHELL` is set, so running the suite from a `nix develop` shell (`IN_NIX_SHELL=impure`) failed 9/12 cases even though the code under test is correct.

This extends the env sanitization in those nine cases to also unset `IN_NIX_SHELL`, mirroring the existing `IN_CONTAINER` handling, making the suite deterministic regardless of the invoking shell.

Test-only change in a single `test(...)` commit: the guard implementation is correct, so the usual failing-test/implementation commit split does not apply — there is nothing to implement, only the test harness to fix. No changelog entry: no user-visible impact (CI never exports `IN_NIX_SHELL`; this is a local-DX fix).

## Testing

- Before (on `origin/dev`): `IN_NIX_SHELL=impure bats tests/bats/githooks.bats` → **9/12 failed** (all nine "blocks" cases: `command succeeded, but it was expected to fail`).
- After: `IN_NIX_SHELL=impure bats tests/bats/githooks.bats` → **12/12 ok**; `env -u IN_NIX_SHELL bats tests/bats/githooks.bats` → **12/12 ok**.
- `just precommit` (full suite, all files) green.

Closes #1381
…rror (#1383)

## Summary

PR #1376 (#1372) renamed `CONTRIBUTE.md` to `CONTRIBUTING.md` and updated the pymarkdown exclude in the root `.pre-commit-config.yaml`, but missed the flake-side mirror. This PR completes the rename:

- `nix/hooks.nix`: the three pymarkdown exclude patterns (runner `yaml`, `check`, and `consumer` profiles) and the line-436 comment now say `CONTRIBUTING`.
- `assets/workspace/.pre-commit-config.yaml`: the scaffold template's pymarkdown exclude — same rename fallout, and required for the scaffold half of the drift gate (`test_scaffold_render_matches_scaffold_config`) to stay green once the shared render in `nix/hooks.nix` is fixed.
- `CHANGELOG.md` `## Unreleased` → Fixed entry (plus its managed `assets/workspace/.devcontainer/CHANGELOG.md` mirror, updated by the `sync-manifest` hook).

## Testing

No new test: the existing drift gate `tests/test_flake_hooks.py::TestPortableRenderFidelity::test_runner_render_matches_committed_config` already fails on `origin/dev` and pins this fix (TDD RED pre-satisfied).

- Before: `uv run pytest tests/test_flake_hooks.py -k test_runner_render_matches_committed_config` → **FAILED** with `pymarkdown.exclude: rendered='^(README\\.md|CONTRIBUTE\\.md|TESTING\\.md)' committed='^(README\\.md|CONTRIBUTING\\.md|TESTING\\.md)'`.
- After: `uv run pytest tests/test_flake_hooks.py` → **36 passed**.
- `just precommit` (full suite, all files) green.

Closes #1380
Move Unreleased content to [1.7.0] - TBD
and create fresh empty Unreleased section for continued development.
Regenerate the synced workspace mirror so
assets/workspace/.devcontainer/CHANGELOG.md matches the frozen root
CHANGELOG.md on the release branch.
c-vigo and others added 2 commits August 7, 2026 19:16
The 1.7.0-rc1 Vulnix CVE Gate blocked on CVE-2026-66032 (CVSS 8.8,
double-free in libssh2 sftp_open()), the fourth member of the
malicious-server batch whose siblings are already excepted in the
2026-09-02 block. Same closure provenance (curl scp/sftp backend only)
and reachability (authenticated SFTP session to a hostile server). The
patched derivation has not reached nixos-26.05: NixOS/nixpkgs#547491
merged to master 2026-08-07 but the staging-26.05 backport is still
open. The whole block drops on the next effective rev-advance.

Refs: #1386
## Summary

The 1.7.0-rc1 candidate run
([31200317431](https://github.com/vig-os/devkit/actions/runs/31200317431))
was blocked by the Vulnix CVE Gate on **CVE-2026-66032** (CVSS 8.8,
double-free in libssh2 `sftp_open()`) — the fourth member of the libssh2
malicious-server batch whose siblings (CVE-2026-66033/66034/66035) are
already excepted in the 2026-09-02 block (#1327). It was absent from the
findings at the 2026-08-04 triage (published on NVD 2026-07-24,
scored/ingested later).

- `.vulnixignore`: add CVE-2026-66032 to the existing 2026-09-02 block
with a dated triage note. Same closure provenance (libssh2 enters only
as curl's scp/sftp backend) and reachability (authenticated SFTP session
to a malicious server) as the siblings.
- nixpkgs status re-checked online 2026-08-07: NixOS/nixpkgs#547491
(debian patches for CVE-2026-6603[2345]) merged to **master** 12:41Z,
but the 26.05 backport NixOS/nixpkgs#550166 targets staging-26.05 and is
still open — the patched derivation has not reached the pinned
`nixos-26.05` channel, so exception is the only lever today. The whole
block drops on the next effective rev-advance.
- `CHANGELOG.md`: Security entry in the frozen `## [1.7.0]` section (+
managed mirror via sync-manifest).

## Testing

Config/register change — no code path to test (`check-expirations`
validates the register in pre-commit + CI). Full `just precommit` suite
green locally. Proof of fix is the re-dispatched candidate's Vulnix CVE
Gate.

Refs: #1386
c-vigo and others added 3 commits August 7, 2026 22:10
The dispatch listener approved its own release PR with the workflow
token, which vig-os/org-config#122 now forbids org-wide — the
1.7.0-rc3 smoke chain died at that step. Replace the approve step
with a kind-aware gate: candidate dispatches leave the PR unapproved
(deferred-approval model, #902), while the final dispatch polls up to
30 minutes for a human approval of the freshly created release PR and
fails with re-run guidance on timeout. Cleanup-recreate semantics are
unchanged: every dispatch still starts the release branch and PR from
scratch.

Refs: #1391
## Summary

Fixes the smoke-test dispatch orchestration break found at 1.7.0-rc3
(#1391): the listener approved its own release PR with `github.token`,
which vig-os/org-config#122 (2026-08-07) now forbids org-wide
(`can_approve_pull_request_reviews: false`, not overridable per-repo).

Design per maintainer decision:

- **Cleanup-recreate semantics unchanged**: every dispatch (each RC and
the final) still closes the same-version release PR, deletes the release
branch, and re-runs prepare-release from scratch.
- **Candidate dispatches** leave the fresh release PR unapproved —
approval gates the final release only (deferred-approval model, #902),
so the candidate chain runs green end-to-end with no human step.
- **Final dispatch** pauses at a new `Gate final release on human
approval of release PR` step: polls `reviewDecision` up to 30 min (20 s
interval, inside the job's 35-min timeout) for a human to approve the
freshly created PR, then proceeds to the final release workflow; on
timeout it fails with re-run guidance (approve, then re-run failed
jobs).
- The gate reads the PR with the Release App token (same as the job's
other steps), not the workflow token.

The secondary #1391 bug (failure-notify App-token mint 404) is **not**
addressed here — it stays open in #1391.

## Testing

TDD: new bats pin `smoke-test dispatch gates the final release on human
PR approval instead of self-approving` committed RED first (asserts the
gate step exists, `gh pr review` is gone, `reviewDecision` is polled),
GREEN after the change. All 18 `smoke-test dispatch` bats pins pass;
`actionlint` clean on the edited asset; full `just precommit` green.

Live proof plan: mirror to smoke-test dev, then dispatch rc4 — the
candidate chain (deploy → cleanup-recreate → prepare → no-approval →
candidate release → checks) must go green autonomously; the final-kind
poll path is exercised at the real final dispatch.

Refs: #1391
@c-vigo
c-vigo marked this pull request as ready for review August 7, 2026 21:27
@c-vigo
c-vigo self-requested a review as a code owner August 7, 2026 21:27
c-vigo
c-vigo previously approved these changes Aug 7, 2026

@c-vigo c-vigo left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved on behalf of the maintainer (explicit authorization in session; see 1.7.0 train). rc5 validated: image spot-checks 7/7, vulnix gate green with #1387, smoke chain green end-to-end incl. #1391 human-approval gate.

Set release date to 2026-08-07 and regenerate release docs.

Refs: #1385
@c-vigo
c-vigo self-requested a review August 8, 2026 08:46
@vig-os-release-app
vig-os-release-app Bot merged commit bcb0a25 into main Aug 8, 2026
21 of 22 checks passed
@vig-os-release-app
vig-os-release-app Bot deleted the release/1.7.0 branch August 8, 2026 08:49
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