Skip to content

fix(release): pin the version in release-note install commands - #292

Merged
BunsDev merged 1 commit into
mainfrom
d/surface/release-install-pinning
Oct 15, 2026
Merged

BunsDev merged 1 commit into
mainfrom
d/surface/release-install-pinning

Conversation

@BunsDev

@BunsDev BunsDev commented Oct 15, 2026

Copy link
Copy Markdown
Member

Summary

The install commands in generated release notes now install the release they appear in. Before, they downloaded that tag's installer but ran it with no version, so the installer fetched whatever release was latest.

Context

  • Related request: code-surface audit, unit 62 ("Unit62 release-note install commands now pass explicit versions" in the surface status; ledger "Unit62 PowerShell fixture correction and evidence limit"). Source surface-release-install-pinning.
  • Scope: scripts/regen-release-notes.py (snippets and docstring), the new scripts/test_release_install_pinning.py, and .github/workflows/release-note-tests.yml.
  • regen-release-notes.py is the historical 15-tag regeneration utility. It only writes note bodies under /tmp/release-notes. It does not publish.
  • Non-goals: no release is regenerated or edited by this PR.

Changes

  • Bash snippet: curl … /install.sh | bash -s -- --version {bare}.
  • PowerShell snippet: & ([scriptblock]::Create((irm …/install.ps1))) -Version {bare}. install.ps1 already takes -Version.
  • The docstring no longer claims the script runs gh release edit.
  • Port note: on main, release-note-tests.yml already runs the patch-note test. The new path filters and steps sit beside it, matching the audit's integrated workflow.

Validation

  • RED (accepted source, corrected baseline): all four Bash and PowerShell subcases failed only on the missing version. The alternative controls passed.
  • python3 -B scripts/test_release_install_pinning.py -v on this branch: 3 passed. It executes the generated snippets with a mocked curl and irm, a temporary HOME/PATH, and real Invoke-RestMethod/Invoke-WebRequest overridden to throw.
  • python3 -B -m unittest discover -s scripts -p test_append_patch_note.py: OK. actionlint .github/workflows/release-note-tests.yml: clean.
  • git diff --check: clean.
  • Accepted source: independent review accepted. An earlier baseline whose PowerShell mock was bypassed is excluded from the evidence; the corrected fixture verifies the mock alias before running.

PR Readiness

  • Diff is limited to the unit's files.
  • Generated files were not edited by hand.
  • User-facing docs: future regenerated release notes carry the pinned commands.
  • No secrets, credentials, local paths, or unrelated logs are included. No network or GitHub calls.
  • Remaining risks: hosted execution of the workflow is unverified until CI runs it. The workflow requires pwsh on the runner.

The install one-liners in generated release notes downloaded that
release's installer but ran it without a version, so the installer
fetched the latest release instead of the one the notes describe. Pass
the bare version explicitly (`bash -s -- --version X` and the PowerShell
scriptblock with `-Version X`). Also correct the generator's docstring,
which claimed it runs `gh release edit`; it only writes note bodies.
The release-note workflow gains offline Bash and PowerShell tests for
the generated snippets.

Surface unit 62.

Coven-Harness: Claude Code / claude-opus-5-5
@vercel

vercel Bot commented Oct 15, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
docs Ready Ready Preview Oct 15, 2026 1:01pm UTC

Request Review

@BunsDev
BunsDev merged commit 094be8e into main Oct 15, 2026
2 checks passed
@BunsDev
BunsDev deleted the d/surface/release-install-pinning branch October 18, 2026 07:52

This branch was successfully deployed

1 active deployment
Preview — d75d629b Deployed Oct 15, 2026 by vercel[bot]
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