Skip to content

[cli-consistency] CLI Consistency Issues - 2026-11-18 #79040

Not planned

Description

@github-actions

Summary

The CLI consistency inspection found 15 issues: 1 high, 1 medium, and 2 low (counting the grouped doc-drift items as one high finding). The main problem is that docs/src/content/docs/setup/cli.md documents flags that the gh aw binary rejects. All findings were checked against the locally built binary.

Severity Count Category
High 1 (14 flags across 9 commands) Documented flags that do not exist
Medium 1 Inconsistent --timeout value format
Low 2 --repo wording; short-flag pairing for --name

High: Documented flags rejected by the binary

Each flag below appears in cli.md, but the live binary returns ✗ unknown flag.

Command Flag documented in cli.md Binary output
compile --config ✗ unknown flag: --config
compile --disable-version-check ✗ unknown flag: --disable-version-check
compile --javascript-module ✗ unknown flag: --javascript-module
fix --strict ✗ unknown flag: --strict
run --strict ✗ unknown flag: --strict
run --validate ✗ unknown flag: --validate
run --host-repo ✗ unknown flag: --host-repo
logs --unbuffered ✗ unknown flag: --unbuffered
upgrade --fix ✗ unknown flag: --fix
health --artifacts ✗ unknown flag: --artifacts
json-schema --json ✗ unknown flag: --json
trial --repo ✗ unknown flag: --repo
audit --adoption-dir (in the Options line, around cli.md line 961) ✗ unknown flag: --adoption-dir

Source evidence for audit --adoption-dir: the flag is registered only on logs and logs episode (pkg/cli/logs_outcomes.go:57). It is not registered on audit.

Expected: every flag in cli.md is accepted by the command it is listed under, or is removed from the doc.
Actual: the 13 flags above are rejected.
Suggested fix: confirm whether each flag was removed or never existed. Then remove it from cli.md, or restore the flag if the removal was unintended. For audit, move --adoption-dir to the logs section.
Priority: high. Users who copy these examples get an immediate error.

Note: logs --after is a documented hidden alias. It still works, so it is not a finding.

Medium: Inconsistent --timeout value format

--timeout uses different value formats across commands:

  • audit, health, and logs episode accept Go durations, such as 5m.
  • logs, trial, and forecast reject 5m with must be an integer and expect integer minutes.

cli.md has a "Timeout flag formats" table (around lines 29–41) that describes this split. The split is documented, but it is still an inconsistency that users will hit.

Expected: one format for --timeout across commands, or a clearer error that states the expected unit.
Suggested fix: decide on one format. If integer minutes stay for compatibility, have the duration commands accept them too, or document the unit in each command's help text.

Low: Minor help-text and flag-pairing inconsistencies

  • --repo wording differs by command. Most commands use [HOST/]owner/repo. doctor and env say owner/repo only; GHES host prefixes not supported. work-queue says owner/repo format. cli.md (around line 360) says doctor accepts only owner/repo. Standardize the wording.
  • Short-flag pairing for --name. add and deploy have -n for --name. work-queue control has --name with no short flag. Decide whether it should have one.

Inspection metadata

  • Date: 2026-11-18 (UTC)
  • Commands inspected: 87 commands walked from the root, including 45 top-level commands. Live --help was captured for every one, and all exited 0.
  • Method: The local ./gh-aw binary was used as the source of truth. The pre-collected /tmp/gh-aw/agent/all-help.txt was not trusted as-is. It mixes error output into command help, and many help-output/ files are word-split fragments or execution logs. Each doc flag was checked by running it against the binary and looking for unknown flag. The **Options:** lines in cli.md were compared against live help. Doubled-word, typo-heuristic, example-flag, and punctuation checks were also run.
  • Not findings: the jq --unbuffered example, concatenated identifiers such as connectorconnection, and trailing-period differences in flag descriptions.
Commands checked against the binary

All 87 commands from the tree walk were checked. The full list is in the scratch directory /tmp/gh-aw/agent/tree/. Commands with findings: compile, fix, run, logs, logs episode, upgrade, health, json-schema, trial, audit, doctor, env, work-queue control, add, deploy, forecast.

Generated by ✅ CLI Consistency Checker · copilot · routed: haiku55 xhigh · ~7 AIC · ⌖ ~1 AIC · ⊞ 3.4K · ◷

  • expires on Nov 20, 2026, 5:36 AM UTC-08:00

Activity

  1. added
    documentation
    cookie
    on Nov 18, 2026
  2. github-actions commented on Nov 18, 2026

    @github-actions
    ContributorAuthor

    Warning

    Threat detection engine error

    Threat detection could not complete its analysis due to a tooling error. This is not a security finding.

    What happened

    The threat detection engine failed to produce results.

    Review the workflow run logs to troubleshoot the error.

    🍪 Issue Monster selected this for Copilot

    I've identified this issue as a good candidate for automated resolution and requested assignment to the Copilot coding agent.

    If assignment succeeds, Copilot will analyze the issue and create a pull request with the fix.

    Om nom nom! 🍪

    🍪 Om nom nom by Issue Monster · pi · gpt50 · ~1 AIC · ⊞ 11.4K · ◷

  3. github-actions commented on Nov 19, 2026

    @github-actions
    ContributorAuthor

    Warning

    Threat detection engine error

    Threat detection could not complete its analysis due to a tooling error. This is not a security finding.

    What happened

    The threat detection engine failed to produce results.

    Review the workflow run logs to troubleshoot the error.

    🍪 Issue Monster selected this for Copilot

    I've identified this issue as a good candidate for automated resolution and requested assignment to the Copilot coding agent.

    If assignment succeeds, Copilot will analyze the issue and create a pull request with the fix.

    Om nom nom! 🍪

    🍪 Om nom nom by Issue Monster · pi · gpt50 · ~1 AIC · ⊞ 11.4K · ◷

  4. github-actions commented on Nov 19, 2026

    @github-actions
    ContributorAuthor

    Warning

    Threat detection engine error

    Threat detection could not complete its analysis due to a tooling error. This is not a security finding.

    What happened

    The threat detection engine failed to produce results.

    Review the workflow run logs to troubleshoot the error.

    🍪 Issue Monster selected this for Copilot

    I've identified this issue as a good candidate for automated resolution and requested assignment to the Copilot coding agent.

    If assignment succeeds, Copilot will analyze the issue and create a pull request with the fix.

    Om nom nom! 🍪

    🍪 Om nom nom by Issue Monster · pi · gpt50 · ~1 AIC · ⊞ 11.4K · ◷

  5. github-actions commented on Nov 19, 2026

    @github-actions
    ContributorAuthor

    Warning

    Threat detection engine error

    Threat detection could not complete its analysis due to a tooling error. This is not a security finding.

    What happened

    The threat detection engine failed to produce results.

    Review the workflow run logs to troubleshoot the error.

    🍪 Issue Monster selected this for Copilot

    I've identified this issue as a good candidate for automated resolution and requested assignment to the Copilot coding agent.

    If assignment succeeds, Copilot will analyze the issue and create a pull request with the fix.

    Om nom nom! 🍪

    🍪 Om nom nom by Issue Monster · pi · gpt50 · ~1 AIC · ⊞ 11.4K · ◷

  6. github-actions commented on Nov 19, 2026

    @github-actions
    ContributorAuthor

    Warning

    Threat detection engine error

    Threat detection could not complete its analysis due to a tooling error. This is not a security finding.

    What happened

    The threat detection engine failed to produce results.

    Review the workflow run logs to troubleshoot the error.

    🍪 Issue Monster selected this for Copilot

    I've identified this issue as a good candidate for automated resolution and requested assignment to the Copilot coding agent.

    If assignment succeeds, Copilot will analyze the issue and create a pull request with the fix.

    Om nom nom! 🍪

    🍪 Om nom nom by Issue Monster · pi · gpt50 · ~1 AIC · ⊞ 11.4K · ◷

  7. github-actions commented on Nov 20, 2026

    @github-actions
    ContributorAuthor

    This issue was automatically closed because it expired on 2026-11-20T13:36:34.266Z.

    Closed by Workflow

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    automationclicookiedocumentation

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions