Skip to content

github-review-threads reply-status: a missing reply is a result, not a failure #2761

Closed

Description

@josecelano-bot

Part of EPIC #2758. Order 2 of 11, wave 1.

Goal

github-review-threads reply-status reports threads without a reply as a JSON result on stdout with a kind and exit 0, and the skills that rely on the old exit 1 are updated in the same change.

Background

Today reply-status exits 1 and writes a missing_reply diagnostic to stderr when an unresolved thread has no reply (contrib/dev-tools/github/github-review-threads/src/main.rs, around the missing_reply record, and tests/cli.rs). The ADR docs/adrs/20261106102632_scope_the_cli_output_contract_and_keep_exit_codes_to_zero_one_two.md says a thread without a reply is an answer to what the caller asked, so it is a result with exit 0. Failure to fetch or parse stays exit 1, a usage error exit 2. resolve-review-threads/SKILL.md (Batch Pattern and checklist) says the command 'exits with code 1 and a missing_reply JSON record'; fetch-review-threads/SKILL.md also describes reply-status. The batch scripts under resolve-review-threads/scripts/ do not call reply-status; verify that. Callers must now branch on the result kind (for example with jq -e), not on the exit code.

The contract in short: see the ADRs docs/adrs/20260519000000_define_global_cli_output_contract.md and docs/adrs/20261106102632_scope_the_cli_output_contract_and_keep_exit_codes_to_zero_one_two.md.

In scope

  • Define the result: one JSON object on stdout with a kind (for example all_replied and missing_reply) and the per-thread rows (has_reply).
  • Exit 0 for both kinds; 1 only if the tool could not answer; 2 for usage and TTY refusal (unchanged).
  • Update unit and CLI tests, including the fixture-based tests in tests/cli.rs.
  • Update resolve-review-threads/SKILL.md, fetch-review-threads/SKILL.md and any other skill or doc that cites the exit 1, with the jq -e branching recipe.

Out of scope

  • Changing fetch, list or show output.
  • Editing the ADR (the close-out issue does).
  • Changing the batch resolver scripts unless they are found to depend on the exit code.

Acceptance criteria

  • reply-status on a threads file with a thread without a reply prints one JSON result with a kind and exits 0.
  • On a fully replied file it prints the matching kind and exits 0.
  • A fetch or parse failure exits 1 with empty stdout and a JSON diagnostic; a usage error exits 2.
  • The skills describe the new branching and no document claims exit 1 for a missing reply.

The full specification (implementation plan, verification plan, files this issue may touch) is added by the spec PR under docs/issues/open/.

Activity

  1. added 4 commits that reference this issue on Nov 6, 2026
  2. added a commit that references this issue on Nov 9, 2026
  3. added a commit that references this issue on Nov 9, 2026
  4. added 5 commits that reference this issue on Nov 9, 2026
  5. added 3 commits that reference this issue on Nov 9, 2026
  6. self-assigned this
    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

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions