Repository navigation
docs(adrs): [#2715] scope the CLI output contract and keep exit codes to 0, 1 and 2 - #2748
Conversation
…it codes and ADR form Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…t codes to 0, 1 and 2 Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
There was a problem hiding this comment.
Warning
Copilot couldn't run its full agentic review because it didn't start before the timeout. Make sure your repository has a runner available, or add a copilot-code-review.yml file specifying one with the runs-on attribute. See the docs for more details.
Copilot review overview
2 open issues
What changed in this PR
Documents the remaining open decisions from #2715 about the global CLI output contract: what programs the contract applies to and how exit codes should be used.
Changes:
- Add a new root ADR formalizing scope and the 0/1/2 exit code +
kindoutcome policy - Add an “Amended by” pointer note to the existing global CLI output contract ADR
- Update the ADR index and the #2715 issue spec status/evidence to reflect completion
| File | Description |
|---|---|
| docs/issues/open/2715-cli-output-contract-scope-and-exit-code-policy/ISSUE.md | Records maintainer decisions, updates task/AC statuses, and adds verification evidence. |
| docs/adrs/index.md | Registers the new ADR in the ADR index table. |
| docs/adrs/20261106102632_scope_the_cli_output_contract_and_keep_exit_codes_to_zero_one_two.md | New ADR defining scope and exit code/outcome (kind) policy, plus alternatives and consequences. |
| docs/adrs/20260519000000_define_global_cli_output_contract.md | Adds “Amended by” note pointing to the new ADR and clarifying precedence. |
Review effort: Lite
There was a problem hiding this comment.
🟡 Changes recommended
The ADR contains contradictory guidance on usage-error exit codes and omits the in-scope package-coverage-check tool from its classification and migration follow-ups.
4 open issues
This ADR states the non-compliance is 'tracked in a follow-up issue', but no issue reference is… Clarify that usage errors still exit with code 2 · New Classify package-coverage-check and add a migration follow-up · New These new timeline entries omit the time-of-day, while earlier entries in the same section use full…
Review effort: Balanced
…result commands Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
… issue Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
There was a problem hiding this comment.
🟡 Changes recommended
Unresolved documentation inconsistencies include noncanonical severity labels and conflicting requirements for whether summary must emit JSON.
2 open issues
4 resolved since last review
This ADR states the non-compliance is 'tracked in a follow-up issue', but no issue reference is… Classify package-coverage-check and add a migration follow-up Clarify that usage errors still exit with code 2 These new timeline entries omit the time-of-day, while earlier entries in the same section use full…
Review effort: Balanced
|
ACK 2bd814c |
There was a problem hiding this comment.
Warning
Copilot couldn't run its full agentic review because it didn't start before the timeout. Make sure your repository has a runner available, or add a copilot-code-review.yml file specifying one with the runs-on attribute. See the docs for more details.
Copilot review overview
2 open issues
2 resolved since last review
Review effort: Lite
| - Original issue: #1798; poller that raised the questions: #2581 | ||
| - Torrust Index ADR-T-010: | ||
| <https://github.com/torrust/torrust-index/blob/develop/adr/010-global-command-line-output-contract.md> |
| --- | ||
| pr-number: 2748 | ||
| pr-url: https://github.com/torrust/torrust-tracker/pull/2748 | ||
| last-updated-utc: "2026-11-06 14:14" |
…ssues/closed 07d35a1 chore(issues): archive closed issue #2715 spec to docs/issues/closed (josecelano-bot) Pull request description: Archives the spec for issue #2715 (closed on GitHub) from `docs/issues/open/` to `docs/issues/closed/`. - Verified #2715 is `CLOSED` on GitHub (closed by #2748) - Updated frontmatter (`status: done`, `spec-path`, `last-updated-utc`) and the workflow checkboxes - Repaired the live path references in ADR `20261106102632`; the PR 2716 review record is a historical record and is unchanged - AC3 and task T4 (follow-up issues for `github-review-threads reply-status` and `package-coverage-check`) are not done here: the progress log records that the maintainer moved them to a new migration EPIC - `linter markdown` and the frontmatter validator pass 🤖 Generated with [Claude Code](https://claude.com/claude-code) ACKs for top commit: josecelano: ACK 07d35a1 Tree-SHA512: c8ca2af6a9c5e26f5e66d151ecd76b10deb55f898e41a7c0d9b478a986c8cbb2aba00ee600a0e95243a1b45da05875b96e5d9238cffe12f58c68909b79c98c31
|
Post-merge note: this pull request requested a review from this account and was closed without one at its final head. A post-merge review will not be done: It recorded an architecture decision on the scope of the command-line output contract and its exit codes, changing only documents under |


Summary
Records the two decisions the global CLI output contract ADR left open (#2715).
profiling, benchmarks, examples, tests) stay out.0,1and2. A distinct outcome is akind: a stdout result with exit0when it is the answer asked for, a stderr diagnostic with exit1when the command could not answer.no-stdout-resultchecks exit1on a finding.20260519000000, and an index entry.Follow-up (not in this PR):
github-review-threads reply-statusshould return a missing reply as a result with exit0.Closes #2715
🤖 Generated with Claude Code