Skip to content

fix(ghidra): avoid Java probes for missing installations - #11732

Merged
morluto merged 11 commits into
morluto:mainfrom
ShuaixinHuang:review/ghidra-missing-installation
Nov 18, 2026
Merged

morluto merged 11 commits into
morluto:mainfrom
ShuaixinHuang:review/ghidra-missing-installation

Conversation

@ShuaixinHuang

@ShuaixinHuang ShuaixinHuang commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Avoid launching Java when a selected Ghidra installation has no readable Ghidra/application.properties. Native-only MCP artifact comparison can deliberately point at an unavailable deep-analysis installation; probing the ambient JVM is unnecessary and can fail the unrelated workflow during owned process discovery.

Installation metadata remains unavailable, setup/doctor registration remains refused, and Java probing for valid installations is preserved. The shared installation inspector owns the change; no process ownership or cleanup failure is suppressed.

Follow-up to merged #11727, isolated on main 552d1c710. This is an additional repair, not a replacement for that merged PR.

Executed validation

Linux, Node 24.22.1 / npm 11.9.0:

  • npm run test:focused -- src/ghidra/GhidraInstallation.test.ts tests/acceptance/artifactComparisonHistoricalSummary.test.ts: 129 passed, 1 platform skip, required build passed.
  • Missing-properties controls cover Linux, macOS and Windows inspection policies, asserting no Java probe and unavailable installation diagnostics.
  • Real stdio MCP acceptance cases retain historical-summary rejection and current FIT projection.
  • npm run check:fast, normal commit/pre-push hooks and git diff --check passed. Merging main preserved the qualified source tree exactly.

Hosted native Windows/macOS and the full monolithic suite were not run locally. No retry or timeout relaxation is used.

Author readiness

Human owner: @ShuaixinHuang

  • I reviewed the final diff and relevant existing code, understand the change and its edge cases, and take responsibility for the complete PR, including AI-assisted work.
  • I checked the evidence above, confirmed it supports the current change, and recorded meaningful validation gaps.
  • I declare this PR ready for initial maintainer review.

g1at and others added 11 commits November 16, 2026 14:18
…file

The Windows-only case at `clientConfigurationEnvironment.test.ts:226` wrote
`rea_mcp_input_schema_profile: "full"`. That profile was retired: the reader
now refuses it ("REA_MCP_INPUT_SCHEMA_PROFILE accepts only \"compact\" …"),
so `configureClientConfiguration` returned `failed/readback` before writing
and the case failed on every Windows run, including main's own
`Windows capability and package lane`.

The case has no Windows dependency — it passes an explicit `configPath` and
the Kimi write dialect is the same everywhere — so it now runs on every
platform, which is what let the stale value rot unnoticed. The fixture keeps
the lowercase explicit key the case is about, with the supported value.

Verified on `main` `d6bcfc10`: the same fixture driven through
`configureClientConfiguration(..., "win32")` on this host reproduced
`{"status":"failed","reason":"readback"}` with the retired value and now
returns `{"status":"configured"}` with `compact`. The file's 75 cases pass
here (66 run, 9 platform-conditioned skips) and `check:fast` passes.
@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-16T11:54:43.362564Z
We couldn’t complete this review. Comment @codex review to try again.
9ded80f PR opened
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@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.

@greptile-apps

greptile-apps Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge; it avoids unnecessary Java launches while keeping incomplete installations blocked.

Summary

The shared Ghidra inspector now skips Java probes when the selected installation’s application properties are missing.

  • Ghidra inspection skips Java when installation properties are missing.

Reviews (3) · Last reviewed commit: "Merge remote-tracking branch 'origin/mai..." · Reviewed by Greptile

Copy link
Copy Markdown
Contributor Author

@morluto Could you please review this PR when you have time? As the author, I am finding the ongoing work of keeping these pending branches synchronized and revalidated a substantial maintenance burden. The current head's CI has passed, there are no unresolved inline review threads, and the PR description records the evidence and remaining validation limits. If this change is outside the project's priorities or scope, a clear direction would also help me avoid further unnecessary maintenance. Thank you.

@morluto
morluto merged commit f46b97d into morluto:main Nov 18, 2026
43 of 44 checks passed
cursor Bot pushed a commit to ShuaixinHuang/rea that referenced this pull request Nov 19, 2026
The doctor readiness fixture and process-capture progress assertions
are not required by descriptor retirement or I/O failure precedence.
Restoring them, and the Ghidra installation test already merged in
morluto#11732, leaves this change on the iNES reader, chunk reader, and
their regressions. The unused artifact chunk helper import is removed.

Co-authored-by: morluto <[email protected]>
cursor Bot pushed a commit to ShuaixinHuang/rea that referenced this pull request Nov 19, 2026
Merging main reapplied the morluto#11732 case beside the copy already on main.

Co-authored-by: morluto <[email protected]>
morluto added a commit that referenced this pull request Nov 19, 2026
* fix(node-sea): bound duplicate blob verification work

* test(mcp): observe cleanup failures at their current delivery boundary

* fix(mcp): preserve workflow completion progress through delivery

* test(setup): keep the Windows Kimi profile fixture on a supported profile

The Windows-only case at `clientConfigurationEnvironment.test.ts:226` wrote
`rea_mcp_input_schema_profile: "full"`. That profile was retired: the reader
now refuses it ("REA_MCP_INPUT_SCHEMA_PROFILE accepts only \"compact\" …"),
so `configureClientConfiguration` returned `failed/readback` before writing
and the case failed on every Windows run, including main's own
`Windows capability and package lane`.

The case has no Windows dependency — it passes an explicit `configPath` and
the Kimi write dialect is the same everywhere — so it now runs on every
platform, which is what let the stale value rot unnoticed. The fixture keeps
the lowercase explicit key the case is about, with the supported value.

Verified on `main` `d6bcfc10`: the same fixture driven through
`configureClientConfiguration(..., "win32")` on this host reproduced
`{"status":"failed","reason":"readback"}` with the retired value and now
returns `{"status":"configured"}` with `compact`. The file's 75 cases pass
here (66 run, 9 platform-conditioned skips) and `check:fast` passes.

* test(ci): restore verifier and MCP contract regressions

* test(captures): assert adapter-owned input issue field names

* fix(ghidra): avoid Java probes for missing installations

* test(ghidra): drop duplicate absent-installation coverage

Merging main reapplied the #11732 case beside the copy already on main.

Co-authored-by: morluto <[email protected]>

* test(node-sea): assert duplicate-blob refusal without stdout prose

The CLI coverage already checks the truncated code and limit details.

Co-authored-by: morluto <[email protected]>

---------

Co-authored-by: ShuaixinHuang <[email protected]>
Co-authored-by: g0at <[email protected]>
Co-authored-by: IvenKooLab <[email protected]>
Co-authored-by: Cursor Agent <[email protected]>
Co-authored-by: morluto <[email protected]>
morluto added a commit that referenced this pull request Nov 19, 2026
…1748)

* fix(artifacts): preserve iNES shutdown ownership and I/O failures

* test(cli): publish complete doctor readiness before cancellation

* test(mcp): observe cleanup failures at their current delivery boundary

* fix(mcp): preserve workflow completion progress through delivery

* test(ci): assert current MCP and evidence ownership contracts

* test(setup): keep the Windows Kimi profile fixture on a supported profile

The Windows-only case at `clientConfigurationEnvironment.test.ts:226` wrote
`rea_mcp_input_schema_profile: "full"`. That profile was retired: the reader
now refuses it ("REA_MCP_INPUT_SCHEMA_PROFILE accepts only \"compact\" …"),
so `configureClientConfiguration` returned `failed/readback` before writing
and the case failed on every Windows run, including main's own
`Windows capability and package lane`.

The case has no Windows dependency — it passes an explicit `configPath` and
the Kimi write dialect is the same everywhere — so it now runs on every
platform, which is what let the stale value rot unnoticed. The fixture keeps
the lowercase explicit key the case is about, with the supported value.

Verified on `main` `d6bcfc10`: the same fixture driven through
`configureClientConfiguration(..., "win32")` on this host reproduced
`{"status":"failed","reason":"readback"}` with the retired value and now
returns `{"status":"configured"}` with `compact`. The file's 75 cases pass
here (66 run, 9 platform-conditioned skips) and `check:fast` passes.

* test(ci): restore verifier and MCP contract regressions

* test(captures): assert adapter-owned input issue field names

* fix(ghidra): avoid Java probes for missing installations

* test(capture): retain final cleanup progress assertions

* fix(artifacts): keep iNES shutdown ownership free of unrelated edits

The doctor readiness fixture and process-capture progress assertions
are not required by descriptor retirement or I/O failure precedence.
Restoring them, and the Ghidra installation test already merged in
#11732, leaves this change on the iNES reader, chunk reader, and
their regressions. The unused artifact chunk helper import is removed.

Co-authored-by: morluto <[email protected]>

* test(artifacts): age the iNES header race before same-size rewrites

Identity checks observe mtime, and a same-size overwrite inside one
clock tick is indistinguishable from the original file. The admission
test then reports a format error instead of source integrity. Age the
fixture the same way the prefix race already does.

* test(go): assert truncated Mach-O command tables by typed failure

An unstored oversized command table is a truncated Mach-O load-command
parse, projected as invalid_format. The old message lock named a
sentence the parser no longer produces.

Co-authored-by: morluto <[email protected]>

* test(artifacts): fold the paused iNES inventory close into the existing case

The standalone close test repeated the paused entries() refusal already
covered by the close/cancel pair. The borrowed-descriptor stat stays on
that close case.

Co-authored-by: morluto <[email protected]>

* fix(artifacts): preserve first iNES stream interruption

---------

Co-authored-by: ShuaixinHuang <[email protected]>
Co-authored-by: g0at <[email protected]>
Co-authored-by: IvenKooLab <[email protected]>
Co-authored-by: Cursor Agent <[email protected]>
Co-authored-by: morluto <[email protected]>
Co-authored-by: morluto <[email protected]>
@morluto morluto added area: setup Setup, packaging, upgrade, install, Doctor, and client registration bug Something isn't working provider: ghidra Analysis provider / engine: ghidra labels Nov 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: setup Setup, packaging, upgrade, install, Doctor, and client registration bug Something isn't working provider: ghidra Analysis provider / engine: ghidra

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants