Skip to content

feat(scan): add --reach-incomplete-analysis-as-error - #1805

Merged
Jeppe Fredsgaard Blaabjerg (jfblaa) merged 6 commits into
v1.xfrom
jfblaa/continue-on-analysis-errors-help
Dec 3, 2026
Merged

Jeppe Fredsgaard Blaabjerg (jfblaa) merged 6 commits into
v1.xfrom
jfblaa/continue-on-analysis-errors-help

Conversation

@jfblaa

@jfblaa Jeppe Fredsgaard Blaabjerg (jfblaa) commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

socket scan create --reach and socket scan reach gain --reach-incomplete-analysis-as-error. An analysis that stops early at the timeout or memory limit reports the vulnerabilities it found no path to as unreachable, so a passing scan does not mean the analysis finished. With the flag, socket-cli passes Coana's --incomplete-analysis-as-error, which reports those vulnerabilities as analysis errors instead: the scan halts, or with --reach-continue-on-analysis-errors falls back to precomputed results. The --reach-continue-on-analysis-errors help now says how the two combine.

Needs a Coana version with coana-tech/coana-package-manager#2917 (15.15.10 or later, which v1.x pins); older versions reject the option.

Changelog (draft)

  • Add --reach-incomplete-analysis-as-error to socket scan create --reach and socket scan reach: a vulnerability whose analysis stopped early (e.g. at the timeout or memory limit) without finding a reachable path is reported as an analysis error instead of unreachable.

…covers

The help listed timeouts and OOM as analysis errors without saying that an analysis that stops early at the timeout or memory limit, but still returns results, is not one: Coana reports what it found, and the vulnerabilities it found no path to as unreachable.
@cursor

cursor Bot commented Dec 2, 2026 •

Copy link
Copy Markdown

PR Summary

Low Risk
Documentation and test snapshot updates only; no scan or reachability logic changes.

Overview
The --reach-continue-on-analysis-errors help text is extended so users do not think every timeout or memory-limit stop is a scan failure.

The new wording states that an analysis that stops early at the timeout or memory limit but still returns results is not an error. That distinguishes real failures (parse errors, etc.) from cases where Coana returns partial reachability results and marks unchecked vulnerabilities as unreachable.

The same description is updated in reachability-flags.mts (source for CLI help) and in the help inline snapshots for socket scan create and socket scan reach. No runtime or flag default behavior changes.

Reviewed by Cursor Bugbot for commit 4afe6ff. Configure here.

An analysis that stops early at the timeout or memory limit reports the vulnerabilities it found no path to as unreachable. The new flag passes Coana's --incomplete-analysis-as-error, which reports them as analysis errors instead: the scan halts, or with --reach-continue-on-analysis-errors falls back to precomputed results. The --reach-continue-on-analysis-errors help now says how the two combine, in place of the sentence the previous commit added.
@jfblaa Jeppe Fredsgaard Blaabjerg (jfblaa) changed the title fix(scan): say which early stops --reach-continue-on-analysis-errors covers feat(scan): add --reach-incomplete-analysis-as-error Dec 2, 2026
An early-stopped analysis can already be an error when it reached no dependencies; the flag
turns its unreachable verdicts into errors.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

@mtorp Martin Torp (mtorp) left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM ✅

…alysis-errors-help

# Conflicts:
#	test/snapshots/termless/cli.native.socket-help-scan-create.svg
#	test/snapshots/termless/cli.native.socket-help-scan-reach.svg
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@jfblaa
Jeppe Fredsgaard Blaabjerg (jfblaa) merged commit 1230bcf into v1.x Dec 3, 2026
10 checks passed
@jfblaa
Jeppe Fredsgaard Blaabjerg (jfblaa) deleted the jfblaa/continue-on-analysis-errors-help branch December 3, 2026 09:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants