Skip to content

fix: install-tools --check passes an older openspec binary - #5355

Merged
dan-petty merged 5 commits into
mainfrom
fix/5107-install-tools-check-passes-an-older
Nov 13, 2026
Merged

dan-petty merged 5 commits into
mainfrom
fix/5107-install-tools-check-passes-an-older

Conversation

@devops-cli-service

@devops-cli-service devops-cli-service Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

The check trusts the tools lock and the link in the target directory, so a devcontainer image with an older openspec binary passes it (#5107). The gate then judges the committed skills with that binary and advises regenerate, which writes the older skill text over the committed text. The change makes the check and the gate read the version that the binary on PATH prints.

Closes #5107

Change: openspec/changes/archive/2026-11-13-5107-install-tools-check-passes-an-older/

@devops-cli-service
devops-cli-service Bot force-pushed the fix/5107-install-tools-check-passes-an-older branch 3 times, most recently from b5aa38a to 82bb380 Compare November 13, 2026 04:49
@devops-cli-service

Copy link
Copy Markdown
Contributor Author

The steps of the job:

Step Status Attempts Tokens in/out Last failing command
group 1 done 2 1388459/11179 pytest on base: tests/tools_lock/test_versions.py
group 2 done 1 8324473/29877 pytest on base: tests/commands/test_install_tools.py
group 3 done 1 5064721/24062 pytest on base: tests/openspec/test_openspec_gate.py
group 4 done 1 683071/5027 -
  • scoped check pre-push: passed, 8 s
  • scoped check static: passed, 23 s
  • scoped check tests: passed, 25 s
  • fail-to-pass of group 1: fails on the base commit. Tests that fail on the base commit: tests.tools_lock.test_versions::test_path_version_reads_the_command_on_path, tests.tools_lock.test_versions::test_path_version_is_none_when_path_resolves_no_command, tests.tools_lock.test_versions::test_version_line_is_the_first_non_empty_line, tests.tools_lock.test_versions::test_version_line_is_none_when_the_output_holds_no_line, tests.tools_lock.test_versions::test_path_version_answers_no_version_when_the_command_fails.
  • fail-to-pass of group 2: fails on the base commit. Tests that fail on the base commit: tests.commands.test_install_tools::test_check_fails_when_the_binary_prints_no_version, tests.commands.test_install_tools::test_check_prints_the_version_and_the_path_of_the_locked_command, tests.commands.test_install_tools::test_only_missing_installs_openspec_when_the_binary_on_path_prints_another_version, tests.commands.test_install_tools::test_install_tools_installs_a_node_tool_and_check_finds_it_at_its_pin, tests.commands.test_install_tools::test_check_fails_naming_the_version_the_binary_prints.
  • fail-to-pass of group 3: fails on the base commit. Tests that fail on the base commit: tests.openspec.test_openspec_gate::test_the_gate_names_the_version_the_binary_prints, tests.openspec.test_openspec_gate::test_the_gate_reports_a_binary_that_prints_no_version, tests.openspec.test_openspec_gate::test_every_run_opts_out_and_reads_a_configuration_directory_of_its_own, tests.openspec.test_openspec_gate::test_check_in_dry_run_lists_the_commands, tests.openspec.test_openspec_gate::test_the_gate_passes_a_tree_with_no_change_and_no_spec.
  • verify of group 4: uv run devops ci --only docs exits 0.
\u2139 Quality gate root: /home/devops/.data/agent/worktrees/w-5107
\u2139 Executing CI quality gates concurrently...
  \u2713 pass  python version check (3.14+) (3\xb5s)
  \u2713 pass  docs validation (7.09s)
\u2713 All documentation files are up to date.
  \u2713 pass  docs validation (10s)
            CI Summary            
 Check           Result  Duration 
 python_version  \u2713 pass  3\xb5s      
 docs            \u2713 pass  10s      
Total Elapsed: 18s (concurrent async execution)

Bytecode compiled 19316 files in 461ms
Bytecode compiled 19316 files in 479ms
Elapsed: 8.30s
Elapsed: 18s
  • verify of group 4: uv run devops ci docs exits 0.
\u2139 Quality gate root: /home/devops/.data/agent/worktrees/w-5107
\u2713 All documentation files are up to date.
Bytecode compiled 19316 files in 526ms
Bytecode compiled 19316 files in 469ms
Elapsed: 8.20s
Elapsed: 11s

@devops-cli-service devops-cli-service Bot added the type/bug Type bug: the code does not do what it must label Nov 13, 2026
@devops-cli-service
devops-cli-service Bot force-pushed the fix/5107-install-tools-check-passes-an-older branch from 82bb380 to 59486f8 Compare November 13, 2026 05:05
@dan-petty

Copy link
Copy Markdown
Owner

Vetting result: safe and vetted (head 59486f8). The code does every task of the merged plan (#5333) and holds no work outside it. No finding is blocking or major. All 28 check runs pass, and the PR merges cleanly.

The outside_plan stop came from a discarded fix round: the Job tried to repair the unrelated DevContainer Image failure (kubectl-helm-minikube, #3612) in .devcontainer/image/devcontainer.json and tests/invariants/test_devcontainer_config.py. The Service discarded that attempt, and this head holds none of it.

Deploy effect: no path under k8s/, tf/, .github/ or .devcontainer/ changes, so nothing restarts at the merge. The code reaches the cluster at the next release.

Follow-ups (filed as separate items, not blocking): the test gaps TQ1 and TQ2 with the small nits, the advice loop when PATH resolves another binary first (C1, needs a spec change), and a version guard in openspec regenerate (C2).

@dan-petty
dan-petty marked this pull request as ready for review November 13, 2026 06:15
@dan-petty
dan-petty self-requested a review as a code owner November 13, 2026 06:15
@dan-petty
dan-petty merged commit 625c89d into main Nov 13, 2026
32 checks passed
@dan-petty
dan-petty deleted the fix/5107-install-tools-check-passes-an-older branch November 13, 2026 11:29
dan-petty pushed a commit that referenced this pull request Nov 13, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.127.1](v0.127.0...v0.127.1)
(2026-11-13)


### Bug Fixes

* **ci:** alarm at 360 s, one P0 issue, shards by recorded time
([#5377](#5377))
([2abd6ff](2abd6ff))
* **github:** read the plan diff and the release files from the merge
base ([#5401](#5401))
([c54e14c](c54e14c))
* **infra:** turn off the Ansible color of every playbook run
([#5381](#5381))
([5bafb1a](5bafb1a)),
closes [#5352](#5352)
* install-tools --check passes an older openspec binary
([#5355](#5355))
([625c89d](625c89d))
* **k8s:** allow only the Ingress origins in Open WebUI
([#5357](#5357))
([fdab229](fdab229))
* **pr:** count only the latest run of each check
([#5393](#5393))
([634dc91](634dc91))
* **review:** drop the fixed gateway URL of the review dry run
([#5399](#5399))
([0666d3d](0666d3d))
* **review:** review a pull request at the merge base of its base branch
([#5387](#5387))
([351ba2a](351ba2a)),
closes [#5346](#5346)
* **roadmap:** end fix-plan at a time budget with a result line
([#5380](#5380))
([20468f4](20468f4)),
closes [#5363](#5363)
* **roadmap:** refine skips an item that changed during the write
([#5392](#5392))
([a863dda](a863dda))
* **roadmap:** stage writes RENAMED and REMOVED spec deltas
([#5367](#5367))
([4abbbd2](4abbbd2))
* **roadmap:** title the delivery by the summary of its plan
([#5376](#5376))
([10e1069](10e1069))

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

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(tools): install-tools --check passes an older openspec binary

1 participant