Skip to content

Decide the scope and the exit-code policy of the global CLI output contract #2715

Closed

Description

@josecelano

Goal

Record, in an ADR, two decisions that the global CLI output contract ADR leaves open: which programs the contract covers, and how a program reports distinct outcomes through exit codes.

Problem

The ADR's issue specification puts developer tooling under contrib/dev-tools/ out of scope, yet the ADR's binary table now lists several of those tools and the AI-agent poller wait-for-pr-review, so the table and the scope statement disagree. The ADR also fixes only the exit codes 0, 1 and 2, and the existing tools answer differently when a program has several non-success outcomes: some report a timeout or a failing verdict as a result with exit 0, and one exits 1 for an outcome the caller asked about. The trade-off is between distinct numbers per outcome and a single failure code plus a kind field.

The specification is in pull request #2716, which adds docs/issues/open/2715-cli-output-contract-scope-and-exit-code-policy/ISSUE.md.

Activity

  1. added 2 commits that reference this issue on Nov 4, 2026
  2. self-assigned this
    on Nov 6, 2026
  3. added 8 commits that reference this issue on Nov 6, 2026
  4. added 2 commits that reference this issue on Nov 6, 2026
  5. added 2 commits that reference this issue on Nov 6, 2026
  6. added a commit that references this issue on Nov 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions