Skip to content

fix(cli): fail commands returning projected analysis errors - #506

Merged
morluto merged 1 commit into
morluto:mainfrom
rudycelekli:fix/rea-cli-projected-errors-20261004
Oct 5, 2026
Merged

morluto merged 1 commit into
morluto:mainfrom
rudycelekli:fix/rea-cli-projected-errors-20261004

Conversation

@rudycelekli

Copy link
Copy Markdown

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 an ok status.

Reproduced with the compiled CLI: invalid replay configuration returned configuration_invalid with exit 0; invalid managed reconstruction returned invalid_request with 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

  • Before: two compiled CLI regressions failed; successful inventory control passed.
  • After: the three compiled CLI cases passed; classifier controls passed in the complete suite.
  • 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.
  • Node 24.18.0, npm 11.16.0, exact lockfile installation.

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.

@morluto

morluto commented Oct 5, 2026

Copy link
Copy Markdown
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.

@morluto
morluto merged commit 2fd1196 into morluto:main Oct 5, 2026
18 checks passed
darsrc pushed a commit to darsrc/rea that referenced this pull request Oct 10, 2026
@morluto morluto added bug Something isn't working area: cli CLI adapter and one-shot commands labels Oct 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: cli CLI adapter and one-shot commands bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants