Skip to content

fix(openspec): check the archive result on disk, plan the dry run - #4273

Merged
dan-petty merged 2 commits into
mainfrom
fix/4270-openspec-archive-checks-result
Nov 9, 2026
Merged

dan-petty merged 2 commits into
mainfrom
fix/4270-openspec-archive-checks-result

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

The archive command printed Archived when the tool exited 0 and moved nothing, and in a dry run it printed Archived for a change that does not exist. It now checks that the change folder is gone and that a new archive folder exists, else it exits 1 with the folder named. In a dry run it lists the two openspec commands and says Would archive.

Closes #4270

Change: openspec/changes/archive/2026-11-09-4270-openspec-archive-checks-the-result-on/

@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 9, 2026
@dan-petty

Copy link
Copy Markdown
Owner Author

Test record (2026-11-09).

fail-to-pass (uv run devops ci fail-to-pass --base origin/main): 6 tests of tests/openspec/test_openspec_archive.py fail on origin/main (DID NOT RAISE ToolExecutionError, and Archived in the dry-run output); test_archive_succeeds_when_the_folder_moved passes on both, as the issue says.

Full uv run devops ci before the archive commit: 25 of 25 checks pass. The test check took 15m 19s on a shared host, over the 5 minute budget (known, #3593). After the rebase onto origin/main: tests/openspec, tests/core/test_openspec_command.py, tests/commands/test_config_workspace_docs_dry_run.py 87 passed; devops openspec check passes.

Also seen: devops --dry-run openspec check fails with not JSON for the same dry-run cause. Filed as #4272.
The change was archived with the fixed command; I checked that the source folder is gone and the archive folder and openspec/specs/openspec-archive/ exist.

@dan-petty
dan-petty marked this pull request as ready for review November 9, 2026 20:26
@dan-petty
dan-petty merged commit cefc184 into main Nov 9, 2026
26 checks passed
@dan-petty
dan-petty deleted the fix/4270-openspec-archive-checks-result branch November 9, 2026 20:28
dan-petty pushed a commit that referenced this pull request Nov 9, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.103.0](v0.102.0...v0.103.0)
(2026-11-09)


### Features

* **ai:** a setting holds the price of a reference model
([#4258](#4258))
([d31717d](d31717d))
* **ai:** add --since, --until, and --by to cost report and roi
([#4264](#4264))
([fe59c14](fe59c14))
* **ai:** integrate Jev 1.14 and agent configurations
([#4275](#4275))
([28356ed](28356ed))


### Bug Fixes

* **openspec:** check the archive result on disk, plan the dry run
([#4273](#4273))
([cefc184](cefc184))
* **roadmap:** build the trace facts from every plan run
([#4267](#4267))
([b46506d](b46506d))
* **roadmap:** keep refused stage replies, stop placeholder replies
([#4260](#4260))
([aea5adc](aea5adc))
* **roadmap:** match a security trigger word as a word
([#4261](#4261))
([ec96082](ec96082))
* **roadmap:** name schema violations in the log
([#4276](#4276))
([c816e8f](c816e8f))
* **roadmap:** read a quoted tuple as an MCP key in context
([#4265](#4265))
([2cef137](2cef137))


### Code Refactoring

* **ui:** delete kubernetes and logs dashboard tabs
([#4263](#4263))
([2d8b693](2d8b693))

---
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): archive reports success and moves nothing

1 participant