Skip to content

cli: Define stable correct exit statuses #39

Description

@BenWestgate

correct currently returns status 1 both when it prints a correction suggestion and when it finds no result, times out, or remains ambiguous.

Define and document stable distinct statuses for:

  • valid input;
  • correction suggestion emitted;
  • no usable suggestion, including incomplete or ambiguous search;
  • usage error.

A suggestion must remain nonzero as required by the security model. Cover the public CLI behavior with focused tests.

Activity

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

    area: cliCommand-line interface behavior.area: correctionCorrection engine and correction UX.enhancementNew feature or requestgate: adversarial reviewResolve, merge, or explicitly defer before the next full adversarial review.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions