Skip to content

Centralize CLI diagnostics and error context #97

Closed

Description

@LunaStev

Problem

Commands format errors and choose exit codes independently. Resolver causes, usage text, compiler failures, and cleanup warnings use ad hoc strings, making consistency and structured output difficult.

Acceptance criteria

  • Introduce typed top-level error categories with source chains.
  • Attach package, manifest, path, command, and recovery context structurally.
  • Render consistent human diagnostics with cause and help sections.
  • Support machine-readable diagnostics without reparsing strings.
  • Centralize exit-code selection using the contract from Define a stable CLI exit-code contract #90.
  • Preserve compiler source diagnostics and program output.
  • Add golden tests for representative errors on every command.

Activity

  1. added
    refactor
    ui/ux
    tooling
    stability
    on Sep 18, 2026
  2. self-assigned this
    on Oct 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

refactorstabilitytoolingui/ux

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions