Repository navigation
fix(cli): return nonzero status for operation failures - #121
Merged
Merged
Conversation
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
morluto
force-pushed
the
fix/cli-failure-exit-status
branch
from
July 13, 2026 22:31
869a892 to
d617bf1
Compare
This was referenced Jul 23, 2026
darsrc
pushed a commit
to darsrc/rea
that referenced
this pull request
Oct 10, 2026
DrAbdulmalek
pushed a commit
to DrAbdulmalek/rea
that referenced
this pull request
Oct 26, 2026
Add an optional Codex adapter, Binary Ninja route and skill, Git-blob security boundaries, payload provenance documentation, and Gradle Wrapper verification. Closes morluto#47 Closes morluto#121 Closes morluto#125
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
REA could serialize an expected operation failure as valid JSON, TOON, YAML, Markdown, or JSONL and still exit with status 0. Shells and CI therefore treated failed integrity checks, disabled policies, unhealthy diagnostics, and incomplete setup as successful commands.
This change classifies the existing caller-visible CLI outcomes at the shared command boundary and sets exit status 1 without replacing their structured bodies. It also keeps CLI logs on stderr, so enabling error logs cannot corrupt machine-readable stdout. Successful bounded or truncated evidence remains status 0.
The package verifier now asserts status alongside structured output for doctor and setup outcomes. README documents the stable status contract and a pipefail-safe example.
Type of Change
Testing Performed
npm run typecheck)npm run lint)npm test)npm run verify:hopper) — not run; the change is confined to terminal status/output handling.npm run verify:hopper:linux) — not run for the same reason.npm run verify:package)Focused packaged-dispatcher coverage checks ordinary and full output plus JSON, JSONL, TOON, YAML, Markdown, filtering, token limits, token counts, and enabled error logging. Final Autoreview reported no accepted or actionable findings.
Tool Contract Impact
None. MCP registration, schemas, and the 68-tool inventory are unchanged.
Related Issues
Closes #113