Skip to content

Reduce the duplicate short-flag baseline allowlist to zero #402

Open

Description

@warp-factories

Background

#400 added a hard "no new conflicts" gate for duplicate short flags directly authored on one handwritten command/subcommand node (completion-metadata/src/validation.rs, invariant test in command-signatures/src/lib.rs). Because fixing the 45 pre-existing offenders would require researching each command's intended CLI semantics, that PR intentionally left them in place behind a temporary, exact baseline allowlist rather than blocking the validator change on cleanup.

Task

Reduce the baseline allowlist (command-signatures/src/lib.rs, SHORT_FLAG_CONFLICT_BASELINE) to zero by fixing each of the 45 documented conflicts across 13 handwritten JSON files, then removing the corresponding baseline entry (and eventually the allowlist mechanism itself once it is empty):

  • brew.json: 2
  • copilot.json: 27
  • flutter.json: 2
  • kubecolor.json: 1
  • kubectl.json: 1
  • oc.json: 1
  • pscale.json: 2
  • pulumi.json: 1
  • rsync.json: 1
  • sfdx.json: 1
  • stripe.json: 4
  • yarn.json: 1
  • zapier.json: 1

Each fix requires understanding the command's actual CLI to decide which option should keep the short flag (or whether both should lose it), rather than a mechanical change. Fixes can land incrementally, file by file, each removing only the baseline entries it resolves.

Acceptance criteria

  • Every entry in the baseline allowlist is removed because the underlying command spec no longer has that conflict (not because the allowlist mechanism itself is weakened).
  • Once the baseline is empty, remove the allowlist mechanism entirely and make every diagnostic a direct, unconditional test failure.

Activity

  1. dsanh14 commented on Oct 12, 2026

    @dsanh14

    Hi! I'd like to pick up part of this, starting once #401 merges (the baseline allowlist lives there) This is part of 146s assignment. Since the issue says fixes can land file by file, I'd take the 1-conflict files, rsync.json and then yarn.json, one small PR each: work out which option should keep the short flag from the command's real CLI, fix it, and remove that entry from the baseline. This issue has no gate label yet, so let me know if that scope is OK or if you'd rather I wait.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions