Skip to content

feat(cli): declare dry-run class and enforce with ratchet test - #2817

Merged
dan-petty merged 1 commit into
mainfrom
feat/2230-dry-run-class
Oct 31, 2026
Merged

dan-petty merged 1 commit into
mainfrom
feat/2230-dry-run-class

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

Add dry-run class infrastructure, ratchet verification, and initial classifications for commands that declare request plans.

  • Define @dry_run_class decorator in src/devops_cli/dry_run/decorator.py.
  • Update command_resolver to run no-external-request commands without --dry-run.
  • Classify 32 existing request-plan commands.
  • Record 438 unclassified reachable commands in tests/fixtures/dry_run_gaps.json.
  • Enforce ratchet criteria 1 through 7 in tests/test_dry_run_class_ratchet.py.

Change: openspec/changes/archive/2026-10-31-2230-dry-run-class
Closes #2230

…t stops a new command without one

Add dry-run class infrastructure, ratchet verification, and initial
classifications for commands that declare request plans.

- Define @dry_run_class decorator in src/devops_cli/dry_run/decorator.py.
- Update command_resolver to run no-external-request commands without --dry-run.
- Classify 32 existing request-plan commands.
- Record 438 unclassified reachable commands in tests/fixtures/dry_run_gaps.json.
- Enforce ratchet criteria 1 through 7 in tests/test_dry_run_class_ratchet.py.

Change: openspec/changes/archive/2026-10-31-2230-dry-run-class
Closes #2230
@dan-petty dan-petty added type/feature Type feature: a new function scope/cli Core CLI framework, Typer subcommands, options, and tables labels Oct 31, 2026
@dan-petty dan-petty changed the title feat(cli): each command declares its dry-run class, and a ratchet test stops a new command without one feat(cli): declare dry-run class and enforce with ratchet test Oct 31, 2026
@dan-petty
dan-petty marked this pull request as ready for review October 31, 2026 01:56
@dan-petty
dan-petty merged commit 840d3eb into main Oct 31, 2026
20 of 21 checks passed
@dan-petty
dan-petty deleted the feat/2230-dry-run-class branch October 31, 2026 01:56
dan-petty pushed a commit that referenced this pull request Oct 31, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.24.0](v0.23.0...v0.24.0)
(2026-10-31)


### Features

* **cli:** declare dry-run class and enforce with ratchet test
([#2817](#2817))
([840d3eb](840d3eb)),
closes [#2230](#2230)
* **gh:** list dry-run requests in project, views and pages
([#2820](#2820))
([6a9a24e](6a9a24e)),
closes [#2236](#2236)
* **k8s:** raise the context of the condor and hawk Ollama tiers
([#2824](#2824))
([325fbdb](325fbdb)),
closes [#2822](#2822)


### Bug Fixes

* **ci:** the scope git of a pull request title has no label
([#2821](#2821))
([2c5ae30](2c5ae30)),
closes [#2800](#2800)
* **github:** treat the traffic API 403 as expected
([#2823](#2823))
([e66a124](e66a124)),
closes [#2626](#2626)

---
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/cli Core CLI framework, Typer subcommands, options, and tables type/feature Type feature: a new function

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(cli): each command declares its dry-run class, and a ratchet test stops a new command without one

1 participant