Skip to content

fix(windows): classify transient native self-test failures as retryable - #2266

Closed
chqcjq wants to merge 1 commit into
morluto:mainfrom
chqcjq:fix/windows-native-retryable-classification
Closed

chqcjq wants to merge 1 commit into
morluto:mainfrom
chqcjq:fix/windows-native-retryable-classification

Conversation

@chqcjq

@chqcjq chqcjq commented Oct 12, 2026

Copy link
Copy Markdown
Contributor

Fixes #2257.

Problem

A transient Windows file sharing violation (Win32 32, ERROR_SHARING_VIOLATION) during the native self-test is classified as capability_unavailable / unsupported_provider / retryable: false. The wording tells the caller the target or host is permanently unsupported, when the failure is transient and a retry succeeds.

Root cause

WindowsNativeLoader already marks self-test failures as retryable: true, but that flag is dropped before the error reaches the classification layer. AnalysisCapabilityUnavailableError has a static unsupported_provider category with retryable: false.

Fix

  • Propagate retryable: true from WindowsNativeLoadResult through WindowsNativeCapability and PrivateRuntimeRootUnavailableError.
  • AnalysisCapabilityUnavailableError now accepts an optional retryable flag; the classification layer checks it alongside RETRYABLE_CODES.
  • JavaScriptAnalysisWorker passes the flag when wrapping PrivateRuntimeRootUnavailableError.

Verification

  • npm run check, docs:check, and verify:test-discovery (943 files) all pass.
  • The classification change is minimal: only transient self-test failures (already marked retryable: true by the loader) now surface as retryable. All other capability-unavailable errors keep their existing classification.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Repo admins can enable using credits for code reviews in their settings.

N0zoM1z0 added a commit that referenced this pull request Oct 13, 2026
Fixes #2257. Thanks to @chqcjq for the native self-test retry diagnosis in #2266.

Preserve retry disposition through analysis workflows. Native warm admission requires exact sharing/lock codes and affirmative pre-allocation evidence; cleanup ownership takes precedence. No automatic retry or new analysis cache.

Verified with real Windows 11 CLI, same-connection SDK MCP normal/conflict/recovery, the Windows native verifier, 99 focused tests and static/docs gates. Official npm 11.16.0 launcher sources were the application input. No IDA or Ghidra engine was used for this change. Win32 5 was not reproduced; no resolution claim for #1701/#2196. Performance measurements and limits are recorded in experiments/analysis-efficiency/windows-runtime-retry.md.
@chqcjq chqcjq closed this by deleting the head repository Oct 13, 2026
@morluto morluto added bug Something isn't working area: native Native analysis and decompilation, including Ghidra, IDA, and Hopper analysis behavior labels Oct 14, 2026
@morluto

morluto commented Oct 15, 2026

Copy link
Copy Markdown
Owner

Thanks @chqcjq for diagnosing why transient native self-test failures on Windows were being presented as permanent provider failures. The current admission path preserves retry disposition for those transient cases (main).

Processware-AI pushed a commit to Processware-AI/rea that referenced this pull request Oct 17, 2026
…2467)

Fixes morluto#2257. Thanks to @chqcjq for the native self-test retry diagnosis in morluto#2266.

Preserve retry disposition through analysis workflows. Native warm admission requires exact sharing/lock codes and affirmative pre-allocation evidence; cleanup ownership takes precedence. No automatic retry or new analysis cache.

Verified with real Windows 11 CLI, same-connection SDK MCP normal/conflict/recovery, the Windows native verifier, 99 focused tests and static/docs gates. Official npm 11.16.0 launcher sources were the application input. No IDA or Ghidra engine was used for this change. Win32 5 was not reproduced; no resolution claim for morluto#1701/morluto#2196. Performance measurements and limits are recorded in experiments/analysis-efficiency/windows-runtime-retry.md.
@morluto morluto added the area: tests Test suite and verification label Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: native Native analysis and decompilation, including Ghidra, IDA, and Hopper analysis behavior area: tests Test suite and verification bug Something isn't working

Projects

None yet

2 participants