Repository navigation
fix(cli): fail commands returning projected analysis errors - #506
Merged
morluto merged 1 commit intoOct 5, 2026
Merged
Conversation
Signed-off-by: Rudy Celekli <[email protected]>
Owner
|
Thanks for this one, @rudycelekli! Correctly widening CLI failure classification to projected analysis errors — the negative cases (ordinary data vs evidence-about-an-error) make the intent airtight. |
darsrc
pushed a commit
to darsrc/rea
that referenced
this pull request
Oct 10, 2026
) Signed-off-by: Rudy Celekli <[email protected]>
22 tasks
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.
Problem
Several CLI workflows return
projectAnalysisError(...)directly. The existing status classifier only recognized error strings and a few status fields, so actual failed commands exited successfully and logged anokstatus.Reproduced with the compiled CLI: invalid replay configuration returned
configuration_invalidwith exit 0; invalid managed reconstruction returnedinvalid_requestwith exit 0. A successful target-free capabilities command remained exit 0.Change
Recognize the existing complete discriminated analysis-error schema in the shared CLI classifier. Preserve error JSON and avoid treating ordinary objects containing a code, or nested evidence about an error, as command failures.
Verification
npm run check:pr: 353 files passed, 1,804 tests passed, 2 existing skips; static checks and generated documentation checks passed.npm run verify:package: passed actual installed-tarball CLI/MCP checks (122 tools and 6 prompts), with and without optional dependencies.npm pack --dry-run: passed.This changes CLI status classification and does not claim real Hopper, Ghidra, browser, or Linux sandbox verification. Prepared with AI assistance; the reproductions and checks above were executed locally.