Skip to content

feat(cli): scaffold a command and a test to project form - #3868

Merged
dan-petty merged 3 commits into
mainfrom
feat/3204-new-scaffold
Nov 6, 2026
Merged

dan-petty merged 3 commits into
mainfrom
feat/3204-new-scaffold

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

A new devops command or a new test touches several places whose rules are scattered, and an agent that misses one breaks CI, as #3182 and #3190 record. #3204 asks for a scaffold that writes those places in project form, refuses to overwrite, prints the remaining manual steps, and computes the shared lists that need no hand edit.

Closes #3204

Change: openspec/changes/archive/2026-11-06-3204-scaffold-a-command-and-a-test/

@dan-petty dan-petty added type/feature Type feature: a new function scope/cli Core CLI framework, Typer subcommands, options, and tables labels Nov 6, 2026
@dan-petty

Copy link
Copy Markdown
Owner Author

Test evidence after the rebase onto origin/main ad1e4b8:

  • tests/scaffold, tests/commands/test_new.py, tests/invariants, tests/docs, tests/ai/mcp/test_mcp.py all pass (187 + 660 tests).
  • ruff check and ruff format --check pass. The pre-push fast static checks pass.
  • One conflict in tests/ai/mcp/test_mcp.py: main (feat(pr): post the check results of a pull request as a comment #3864) added two entries to the hand-written MCP exclusion list. This change removes that list, because the test now derives the excluded commands from the command tree. I kept the removal, so the two new commands need no entry.
  • This is a feature, not a fix, so there is no fail-to-pass run.

Add devops new command and devops new test. The first adds a command to a group that exists: the function, the help and message entries, and a failing test. The second writes the test file of a source module at its mirror path, with the fixtures of the edges the module reaches. Neither writes over a file, and both print the steps that stay manual.

The MCP coverage test derives the excluded commands from the command tree. The hand-written class of the documentation inventory is the complement of the other classes. docs/TESTING.md states the mirror path as the rule for a new test file. A skill in each agent root names both commands.

Closes #3204
@dan-petty
dan-petty force-pushed the feat/3204-new-scaffold branch from b23bad1 to e49e3d5 Compare November 6, 2026 23:41
@dan-petty
dan-petty marked this pull request as ready for review November 6, 2026 23:44
@dan-petty
dan-petty enabled auto-merge (squash) November 6, 2026 23:44
@dan-petty
dan-petty merged commit ea216b7 into main Nov 6, 2026
24 checks passed
@dan-petty
dan-petty deleted the feat/3204-new-scaffold branch November 6, 2026 23:48
dan-petty pushed a commit that referenced this pull request Nov 7, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.76.0](v0.75.0...v0.76.0)
(2026-11-07)


### Features

* **cli:** scaffold a command and a test to project form
([#3868](#3868))
([ea216b7](ea216b7))
* **telemetry:** Add alternatives coverage metrics and alert
([#3870](#3870))
([46a3735](46a3735))

---
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): scaffold a command and a test to project form

1 participant