Skip to content

fix: resolve 16 CLI consistency issues from 2026-07-22 inspection#47337

Merged
pelikhan merged 5 commits into
mainfrom
copilot/cli-consistency-issues
Jul 22, 2026
Merged

fix: resolve 16 CLI consistency issues from 2026-07-22 inspection#47337
pelikhan merged 5 commits into
mainfrom
copilot/cli-consistency-issues

Conversation

Copilot AI commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

Addresses 16 of the 30 issues surfaced by the automated CLI Consistency Checker (run 29925018585), covering engine list gaps, misleading flag descriptions, style inconsistencies, and doc/help mismatches.

Engine list completeness (A-1, C-2)

add-wizard, completion, and the docs secrets bootstrap section listed only 4 engines; updated all three to include all 7: copilot, claude, codex, gemini, antigravity, opencode, pi.

Flag description accuracy (B-2, B-4, B-5)

  • --no-release-bump: reworded from "Disable automatic major version bumps for all actions (only core actions/* are force-updated)" → "Restrict automatic major version bumps to core actions/* only (non-core actions are left as-is)" — previous wording implied a complete disable.
  • compile --force: clarified it only applies when --dependabot is set.
  • deploy: added explicit note that PR creation is mandatory ("the --create-pull-request flag is not needed").

Grammar and style (A-3, A-4, A-6, A-7, A-8, A-9)

  • fix command: "Write updated files" → "Writes updated files" (consistent third-person verb form).
  • trial command: removed scare-quotes from "simulated".
  • init --no-agent: "Agentic Workflows" → "agentic-workflows" to match --no-skill and the actual artifact path.
  • audit --artifacts default parenthetical: switched from comma-separated phrase to em-dash style matching logs.
  • deploy Long description: replaced mixed noun/verb list with a consistent verb-phrase form.
  • mcp-server Long description: split dangling participial clause into a separate sentence.

Example correctness (D-4, D-5, D-7)

  • audit first example: bare numeric ID now shows --repo owner/repo (required without a full URL).
  • logs --cache-before docs examples: replaced "Clean folders…" with "Evict local cache…" to avoid implying download filtering.
  • init --engine claude example comment: "Skip Copilot-specific artifacts" → "Use Claude engine — skips Copilot MCP/skill files".

Docs additions (C-3, C-8)

  • health: added "The --days flag accepts 7, 30, or 90 (default: 7)." (parallel to existing forecast note).
  • audit options list: added missing --evals.

- A-1: Update engine lists (add-wizard, completion) from 4 to 7 engines
- A-3: Fix inconsistent verb form in fix command (Write → Writes)
- A-4: Remove scare-quotes around 'simulated' in trial command
- A-6: Fix inconsistent casing in init flags (Agentic Workflows → agentic-workflows)
- A-7: Standardize --artifacts default description style (audit.go)
- A-8: Fix mixed noun/verb list in deploy command Long description
- A-9: Fix dangling participle in mcp-server command Long description
- B-2: Fix misleading --no-release-bump flag description
- B-4: Clarify compile --force only applies when --dependabot is set
- B-5: Add note that deploy always creates a PR
- C-2: Update secrets bootstrap --engine list to all 7 engines in docs
- C-3: Add health --days valid values (7, 30, 90) to docs
- C-8: Add --evals to audit options list in docs
- D-4: Fix bare numeric ID audit example to include --repo
- D-5: Improve --cache-before example comments in docs
- D-7: Improve init --engine claude example comment

Closes #47332

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix CLI consistency issues identified during inspection fix: resolve 16 CLI consistency issues from 2026-07-22 inspection Jul 22, 2026
Copilot AI requested a review from pelikhan July 22, 2026 15:11
@pelikhan
pelikhan marked this pull request as ready for review July 22, 2026 15:18
Copilot AI review requested due to automatic review settings July 22, 2026 15:18

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Clarifies CLI help and documentation for engines, flags, examples, and command behavior.

Changes:

  • Completes supported-engine lists.
  • Corrects misleading flag and command descriptions.
  • Aligns CLI examples and reference documentation.
Show a summary per file
File Description
pkg/cli/update_command.go Clarifies release-bump flags.
pkg/cli/trial_command.go Improves description wording.
pkg/cli/mcp_server_command.go Clarifies subprocess behavior.
pkg/cli/init_command.go Corrects artifact naming and example.
pkg/cli/fix_command.go Fixes grammatical consistency.
pkg/cli/deploy_command.go Clarifies deployment and mandatory PR creation.
pkg/cli/completion_command.go Lists all supported engines.
pkg/cli/audit.go Corrects example and artifact description.
pkg/cli/add_wizard_command.go Lists all engines; existing test needs updating.
docs/src/content/docs/setup/cli.md Updates engine, cache, audit, and health documentation.
cmd/gh-aw/main.go Clarifies compile --force scope.

Review details

Tip

Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

  • Files reviewed: 11/11 changed files
  • Comments generated: 1
  • Review effort level: Medium

This command walks you through:
- Selecting an AI engine (Copilot, Claude, Codex, or Gemini)
- Selecting an AI engine (Copilot, Claude, Codex, Gemini, Antigravity, OpenCode, or Pi)
@github-actions

github-actions Bot commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

🧠 Matt Pocock Skills Reviewer has completed the skills-based review. ✅

@github-actions

github-actions Bot commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

Design Decision Gate 🏗️ completed the design decision gate check.

No ADR enforcement needed: PR #47337 does not have the 'implementation' label and has only 13 new lines of code in business logic directories (threshold: 100).

@github-actions

github-actions Bot commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

Test Quality Sentinel completed test quality analysis.

No test files were added or modified in this PR. This PR (#47337) contains only CLI consistency fixes to 11 non-test files. Test Quality Sentinel analysis skipped.

@github-actions

github-actions Bot commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

PR Code Quality Reviewer completed the code quality review.

@github-actions github-actions Bot mentioned this pull request Jul 22, 2026

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Skills-Based Review 🧠

Applied /codebase-design and /diagnosing-bugs — requesting changes on two issues.

📋 Key Themes & Highlights

Issues Found

  1. Broken test (pkg/cli/add_wizard_command_test.go) — the engine list in add_wizard_command.go was expanded but the test still asserts the old 4-engine substring "Copilot, Claude, Codex, or Gemini". This will cause TestAddWizardCommandMentionsEngines to fail. (Already flagged in an existing review comment.)

  2. Inconsistent --cache-before example comment (docs/src/content/docs/setup/cli.md, line 484) — three of the four examples were updated to use "Evict local cache..." but the fourth still says "Clean up, then download...". Minor but undermines the consistency goal of this PR.

Positive Highlights

  • --force flag clarification correctly scopes the flag to --dependabot only
  • --no-release-bump reword is accurate and removes the misleading "disable all" implication
  • ✅ em-dash style change in --artifacts description is consistent with the logs flag pattern
  • deploy Long description now uses parallel verb-phrase form throughout
  • mcp-server dangling participle fix reads cleanly

🧠 Reviewed using Matt Pocock's skills by Matt Pocock Skills Reviewer · sonnet46 18.9 AIC · ⌖ 4.68 AIC · ⊞ 6.7K
Comment /matt to run again

gh aw logs --cache-before -30d # Clean folders older than 30 days
gh aw logs --cache-before 2024-01-01 # Clean folders from before a specific date
gh aw logs --cache-before -1w # Evict local cache older than 1 week, then proceed with normal run download
gh aw logs --cache-before -30d # Evict local cache entries older than 30 days

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[/codebase-design] Inconsistent comment in the fourth --cache-before example: still says "Clean up" while the three examples above it were updated to "Evict local cache".

💡 Suggested fix

Change:

gh aw logs my-workflow --cache-before -1mo -c 20     # Clean up, then download 20 runs of a specific workflow

To:

gh aw logs my-workflow --cache-before -1mo -c 20     # Evict local cache older than 1 month, then download 20 runs of a specific workflow

All four examples in this block should use the same vocabulary for cache eviction.

@copilot please address this.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review: CLI Consistency Fixes

The changes are mostly well-targeted and accurate. Two issues to address:

Existing comment (already flagged): pkg/cli/add_wizard_command.go line 22 — expanding the engine list breaks TestAddWizardCommandMentionsEngines which still expects the old 4-engine substring. The test must be updated to match the new list.

New finding: docs/src/content/docs/setup/cli.md line 483 — the 4th --cache-before example comment (# Clean up, then download 20 runs...) was not updated to the "Evict local cache" phrasing applied to the other three examples in the same block. See inline comment.

🧵 Reviewed using Impeccable skills by Impeccable Skills Reviewer · sonnet46 28 AIC · ⌖ 5.67 AIC · ⊞ 5K

gh aw logs --cache-before -1w # Clean folders older than 1 week, then download latest runs
gh aw logs --cache-before -30d # Clean folders older than 30 days
gh aw logs --cache-before 2024-01-01 # Clean folders from before a specific date
gh aw logs --cache-before -1w # Evict local cache older than 1 week, then proceed with normal run download

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The 4th --cache-before example comment was not updated to match the new "Evict local cache" phrasing used in the three comments above it:

gh aw logs my-workflow --cache-before -1mo -c 20     # Clean up, then download 20 runs of a specific workflow

Should be consistent, e.g.:

gh aw logs my-workflow --cache-before -1mo -c 20     # Evict local cache, then download 20 runs of a specific workflow

@copilot please address this.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Broken test must be fixed before merge.

The existing comment on pkg/cli/add_wizard_command.go:22 already identifies the root cause: pkg/cli/add_wizard_command_test.go:15 asserts the exact string "Copilot, Claude, Codex, or Gemini", which no longer exists in the Long help text after this change. This will fail CI.

💡 Details

The test at add_wizard_command_test.go:15 needs to be updated to match the new engine list string "Copilot, Claude, Codex, Gemini, Antigravity, OpenCode, or Pi", or refactored to check for individual engine names rather than an exact conjunction string.

All other changes (doc clarifications, flag description rewording, grammar fixes) look accurate and are improvements over the previous text. The --no-release-bump description reword is more precise than the original, which contradicted itself by saying "disable all" while parenthetically noting core actions are still updated.

🔎 Code quality review by PR Code Quality Reviewer · sonnet46 30.2 AIC · ⌖ 4.54 AIC · ⊞ 5.7K
Comment /review to run again

@pelikhan

Copy link
Copy Markdown
Collaborator

Copilot AI commented Jul 22, 2026

Copy link
Copy Markdown
Contributor Author

@copilot run pr-finisher skill
fix https://github.com/github/gh-aw/actions/runs/29932781124/job/88967663347?pr=47337

Fixed in b2f8dfb.

  • Updated pkg/cli/add_wizard_command_test.go to assert the full seven-engine list so TestAddWizardCommandMentionsEngines passes.
  • Updated the remaining --cache-before example in docs/src/content/docs/setup/cli.md to use the same “Evict local cache …” wording.

I also validated locally with make fmt, make lint, TEST_UNIT_RUN_FULL=1 make test-unit, make test, make recompile, and make agent-report-progress.

@pelikhan
pelikhan merged commit c6a80ce into main Jul 22, 2026
23 checks passed
@pelikhan
pelikhan deleted the copilot/cli-consistency-issues branch July 22, 2026 16:42
@github-actions

Copy link
Copy Markdown
Contributor

🎉 This pull request is included in a new release.

Release: v0.83.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[cli-consistency] CLI Consistency Issues - 2026-07-22

3 participants