Repository navigation
fix(openspec): Read the openspec version before regenerate writes - #6312
Merged
dan-petty merged 2 commits intoNov 18, 2026
Merged
Conversation
dan-petty
marked this pull request as ready for review
November 18, 2026 16:39
dan-petty
deleted the
fix/5375-openspec-regenerate-reads-no-openspec-version
branch
November 18, 2026 16:49
dan-petty
pushed a commit
that referenced
this pull request
Nov 18, 2026
🤖 I have created a release *beep* *boop* --- ## [0.177.1](v0.177.0...v0.177.1) (2026-11-18) ### Bug Fixes * **ci:** Identify a base gate run by its recorded worktree ([#6309](#6309)) ([959c74a](959c74a)) * **ci:** retry the Trivy download of the image scan steps ([#6311](#6311)) ([81ff182](81ff182)) * **openspec:** Read the openspec version before regenerate writes ([#6312](#6312)) ([6d8025f](6d8025f)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
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.
devops openspec regenerate ran openspec update --force with whatever binary PATH found and read no version, so a binary older than the tools lock wrote its own skill text into the tree, and the openspec-gate hook then refused the commit of that text. regenerate now calls the gate's version guard (now the public version_finding) before it writes and raises a ToolExecutionError that names the path, the printed and locked versions and the install hint; a matching binary regenerates as before, and a dry run runs no version and writes nothing.
Closes #5375
Change:
openspec/changes/archive/2026-11-18-5375-openspec-regenerate-reads-no-openspec-version/