Skip to content

fix(openspec): pin OpenSpec and Style Dictionary in the root npm lockfile - #6536

Merged
dan-petty merged 5 commits into
mainfrom
build/6409-openspec-dev-dependency
Nov 20, 2026
Merged

dan-petty merged 5 commits into
mainfrom
build/6409-openspec-dev-dependency

Conversation

@dan-petty

@dan-petty dan-petty commented Nov 20, 2026 •

Copy link
Copy Markdown
Owner

OpenSpec and Style Dictionary write committed text, and their pin lived in tools.lock and two package folders under src/devops_cli/tools_lock/. The devcontainer takes OpenSpec from the devtools image, so a devtools update and a move of tools.lock each failed the openspec row until the other came: a cycle.

Both tools are now devDependencies of a root package.json, and package-lock.json pins them. The OpenSpec gate, regenerate, archive, new and plan-check run node_modules/.bin/openspec of the checkout when it exists; check and regenerate compare its version with that lockfile. The devcontainer, the CI jobs and the Service image install the lockfile with npm ci, and make design-tokens calls node_modules/.bin/style-dictionary. A bump of either pin edits nothing under src/ or tests/. The two folders, their tools.lock entries and two Renovate custom managers are gone.

Closes #6409

Change: openspec/changes/archive/2026-11-20-6409-openspec-dev-dependency/

@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 20, 2026
@dan-petty
dan-petty force-pushed the build/6409-openspec-dev-dependency branch 2 times, most recently from 7a6d13d to 261adef Compare November 20, 2026 17:49
@dan-petty
dan-petty marked this pull request as ready for review November 20, 2026 18:04
@dan-petty
dan-petty force-pushed the build/6409-openspec-dev-dependency branch from 261adef to a4d8876 Compare November 20, 2026 18:47
@dan-petty
dan-petty enabled auto-merge (squash) November 20, 2026 18:53
@devops-cli-service

Copy link
Copy Markdown
Contributor

Pull request #6536 has merge conflicts with main at commit a4d8876af333. GitHub cannot merge it. Rebase the branch onto the current main, resolve the conflicts and push the branch.

OpenSpec and Style Dictionary become devDependencies of a root
package.json, and package-lock.json pins them. The OpenSpec gate,
regenerate, archive, new and plan-check run node_modules/.bin/openspec
of the checkout when it exists and compare its version with that
lockfile, so the OpenSpec of the devtools image has no effect on them.
The devcontainer, the CI jobs, make design-tokens and the openspec
stage of the Dockerfile install the lockfile with npm ci. The audit
row and the research inventory read it. The two tool package folders,
their tools.lock entries, the OpenSpec check of install-tools and two
Renovate custom managers are deleted.

Refs #6409
A bump of the pins in package.json and package-lock.json now edits no
file under src/ or tests/: the fake answers --version with the pin of
the lockfile, and no test compares the version of the record with it.

Refs #6409
#6409)

README, the --only-missing help, CLUSTER.md, TESTING.md and the Purpose of two specs no longer describe the tools lock OpenSpec or the PATH version read. The openspec-check requirement title names the binary that the gate runs. An OpenSpec update gets fix(deps), because the Service and MCP server images install it.
…ock (#6409)

The OpenSpec gate imported version_line from devops_cli.tools_lock.versions, so the new OpenSpec path still depended on the tools lock. version_line moves to devops_cli.core.binaries and tools_lock/versions.py goes. The OpenSpec contract test moves to tests/openspec and the version-line tests to tests/core/test_binaries.py.
@dan-petty
dan-petty force-pushed the build/6409-openspec-dev-dependency branch from a4d8876 to 9b4f2c0 Compare November 20, 2026 18:58
@dan-petty
dan-petty merged commit 299e050 into main Nov 20, 2026
36 checks passed
@dan-petty
dan-petty deleted the build/6409-openspec-dev-dependency branch November 20, 2026 19:10
dan-petty pushed a commit that referenced this pull request Nov 20, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.184.0](v0.183.2...v0.184.0)
(2026-11-20)


### Features

* **deps:** merge minor, patch and digest Renovate updates
([#6550](#6550))
([952ac24](952ac24)),
closes [#6547](#6547)


### Bug Fixes

* **deps:** move pydantic-ai to 2.71 and the harness to 0.71
([#6524](#6524))
([52f7231](52f7231)),
closes [#5098](#5098)
* **openspec:** pin OpenSpec and Style Dictionary in the root npm
lockfile ([#6536](#6536))
([299e050](299e050))

---
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.

build(npm): make openspec and style-dictionary devDependencies

1 participant