Skip to content

fix(openspec): Read the openspec version before regenerate writes - #6312

Merged
dan-petty merged 2 commits into
mainfrom
fix/5375-openspec-regenerate-reads-no-openspec-version
Nov 18, 2026
Merged

dan-petty merged 2 commits into
mainfrom
fix/5375-openspec-regenerate-reads-no-openspec-version

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

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/

@dan-petty dan-petty added type/bug Type bug: the code does not do what it must scope/openspec OpenSpec changes, specs and their checks labels Nov 18, 2026
@dan-petty
dan-petty marked this pull request as ready for review November 18, 2026 16:39
@dan-petty
dan-petty merged commit 6d8025f into main Nov 18, 2026
24 checks passed
@dan-petty
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/openspec OpenSpec changes, specs and their checks type/bug Type bug: the code does not do what it must

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(openspec): openspec regenerate reads no openspec version

1 participant