Repository navigation
fix(windows): classify native readiness failures by stage - #2108
AICodeLion wants to merge 15 commits into
Conversation
|
@greptileai review |
|
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 7088df06f5
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 4f2f1834a8
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 5c3ff89a9b
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
Review findings addressed at their producing boundaries and consumers. Latest changes were reviewed from source; tests and provider runs were skipped at the maintainer's request. Findings requiring separate decisions or verification remain open. Fixed in Validation: inspected the producing boundary and affected consumers; existing expectations were adjusted where the contract changed. Tests, mutation runs, builds, lint, typecheck and CI reruns were skipped at the user's explicit request. No new real-provider verification is claimed. This source correction does not settle separate integration authority or mutation-generation/score proof requirements. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 69b87c4753
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
Source fixes and publication evidence for the review findings below. Tests and executable checks were skipped at the maintainer's request. Findings that still require a decision or execution evidence remain open. Fixed in the verified live source head 69b87c4. JADX mapped all Windows native readiness failures to runtime_missing. Its availability boundary now uses inspectWindowsNativeReadiness and preserves runtime_missing/runtime_unavailable plus failure stage and remediation. Prior history is preserved. Tests, builds, checks and provider runs were skipped as required; no additional source cleanup remains. Fixed in the verified live source head 69b87c4. The private runtime readiness projection discarded tagged code/failureStage. IDA provider and doctor now consume the preserved readiness: missing artifact maps runtime_missing and failed self-test maps runtime_unavailable/runtime_failure. Prior history is preserved. Tests, builds, checks and provider runs were skipped as required; no additional source cleanup remains. |
* fix(comparison): preserve incomplete function call evidence Keep missing, unknown, partial and unresolved call relationships unknown in function comparisons and reconstruction claims. Aggregate IDA caller and callee coverage without overwriting uncertainty. Validate with 144 focused tests, typecheck/lint, docs checks and test discovery. Real providers were not verified; the full headless IDA session suite requires unavailable Windows native controls. * fix(comparison): recheck historical calls-only changes --------- Co-authored-by: morluto <[email protected]>
|
Source fixes and publication evidence for the review findings below. Tests and executable checks were skipped at the maintainer's request. Findings that still require a decision or execution evidence remain open. review thread, review thread, review thread, review thread, review thread The loader error algebra was losing distinctions at consumers: the Windows fixture omitted newly required fields, private-workspace native failures were called config drift, an admitted artifact without protocolStdin was runtime_unavailable, and Android inventory reduced runtime_unavailable to provider_missing. Updated those producer/consumer boundaries and the fixture. Published in 8963c24; authored focused Android inventory coverage. Targeted formatter and git diff --check passed; tests were not run. Also backported relevant shared /proc and comparison fixes as b492ed8 and 2ee4500. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 04298995cf
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| code: readiness.code, | ||
| reason: readiness.reason, |
There was a problem hiding this comment.
Preserve native self-test retryability in provider selection
When the Windows native inspect call throws, WindowsNativeReadiness carries retryable: true and systemWindowsNativeAuthority() deliberately retries on the next query, but this projection exposes that fact only inside the untyped windows_security diagnostic rather than in availability/rejection state. Tracing open_binary through candidateRejections() and analysisErrorProjection.ts:84-90 shows that the resulting ProviderSelectionError is therefore emitted to CLI/MCP clients with retryable: false, discouraging the recovery this change documents; carry the owner's retryability through ProviderAvailability/selection while leaving stable inspection failures non-retryable.
AGENTS.md reference: AGENTS.md:L19-L19
Useful? React with 👍 / 👎.
| owned_protocol_stdin: false, | ||
| }, | ||
| ); | ||
| throw configurationFailure(readiness.code, readiness.reason, { |
There was a problem hiding this comment.
Preserve retryability for JADX self-test failures
When systemWindowsNativeAuthority() returns a retryable self-test failure on Windows x64 (for example the Win32 145 cleanup failure), this new conversion retains the stage and remediation but drops readiness.retryable; projectConfigurationFailure() then constructs an AnalysisCapabilityUnavailableError with its default retryable: false. The next Android tool call would make the loader retry, so CLI/MCP clients receive incorrect recovery metadata; pass the explicit retry bit through JadxConfigurationFailure rather than inferring it from runtime_unavailable, since malformed-inspection failures use the same code but are stable.
AGENTS.md reference: AGENTS.md:L19-L19
Useful? React with 👍 / 👎.
Share tagged readiness observations, retain partial provider facts, authenticate bridge identity, bound diagnostics, and preserve cancellation and lost-session reasons. Fail closed for unparsed MIPS ABI attributes and macOS saved Hopper databases without a script-capable bridge route. Reviewed fixes: #2010, #2108, #2513, #2695, #2731, #2771, #2828, #2867, #2868, #2870, #2880, #2919, #2945, #2961, #2981, #2998, #3000, #3002. Validation: 285 focused source/boundary tests passed. Real Ghidra, IDA, Linux Hopper, and Windows provider runs were not repeated. BREAKING CHANGE: MIPS targets with unresolved GNU ABI attributes and saved Hopper databases on macOS are refused rather than advertised as supported.
Preserve XML and Interface Builder identity at their parsing boundary, retain usable Objective-C slots with precise coverage, and keep native trace failures distinct from absence. Add caller-selected Interface Builder summaries backed by complete retained Evidence, and preserve comparison limitations. Reviewed fixes: #1969, #2088, #2108, #2513, #2639, #2684, #2731, #2759, #2875, #2888, #2889, #2970, #2971, #3002. Validation: relevant native/domain focused lane passed 142 tests; earlier Interface Builder/MCP checks passed 24 tests. Real native UI and Ghidra producer coverage was not repeated.
Use one named input-schema projection for clients and catalog identity, preserve dialect declarations, and bound compact schema depth. Keep canonical SDK output validation when output advertisements are disabled. Release request-owned state on cancellation and carry upstream limitations through composed workflows. Preserve doctor full-output envelopes and validate navigation facts at their owner. Reviewed fixes: #2088, #2108, #2513, #2684, #2693, #2695, #2836, #2864, #2868, #2877, #2933, #2998, #3002, #3015. Validation: focused schema, SDK output-validation, context, and workflow tests passed; no schema dialect or canonical output validation was relaxed.
|
Heads up: main already has this change in d4bd65c. The code is in 🤖 Generated with Claude Code (Sonnet 5.5, verified by Opus 5.5) 🦊 |
|
Thanks @AICodeLion. Closing this PR as superseded by 80de3145e on Windows readiness diagnostics retain stage and native error facts in the shared loader/provider path. The landed readiness owner supersedes the branch-local snapshot API; the underlying affected-host delete-by-handle report #1701 remains open. This is an unmerged closure: it does not label this PR as merged or remove contributor history/credit. The decision uses the current source diff and existing validation record; no new local test or provider run is claimed. |
When a valid Windows x64 installation fails native inspection—for example cleanup reports ERROR_DIR_NOT_EMPTY (145)—Ghidra currently reports unsupported_host and suggests replacing the package. Classify the loader failure at its producing boundary: host incompatibility remains unsupported_host; native artifact admission uses runtime_missing; self-test or inspection failure uses the additive runtime_unavailable provider rejection code and runtime_failure doctor classification. Preserve the original native error and provide stage-specific remediation.
Doctor, provider availability, advertised capabilities and client prerequisites now consume one readiness observation per query. Windows capability reports reuse one security snapshot. This avoids retrying a transient self-test inside a report and combining availability from one observation with a reason from another. Valid Ghidra/Java registration settings remain preserved, and failed security controls still prevent provider admission.
Validation:
Scope: diagnostics only. Native directory deletion, cleanup ownership, cache retry policy and fail-closed security behavior are unchanged. Refs #1701; the underlying delete-by-handle design remains a separate issue.