Skip to content

fix(cli): honor the selected native plist path - #773

Merged
morluto merged 2 commits into
morluto:mainfrom
rudycelekli:fix/rea-inspect-plist-selected-path-20261006
Oct 7, 2026
Merged

morluto merged 2 commits into
morluto:mainfrom
rudycelekli:fix/rea-inspect-plist-selected-path-20261006

Conversation

@rudycelekli

@rudycelekli rudycelekli commented Oct 6, 2026 •

Copy link
Copy Markdown

Summary

Forward inspect-plist's existing --relative-path option as path, matching the native provider and public operation contract. The wrong relative_path key was ignored, so alternate and even missing requested plists silently returned default Info.plist.

Native verification

Signed DCO head d04a8c817630c7cdc248e130c38ee6394ab17d95 tested on release main 9622b4b4cf0b2eb92305afd52fd67e932d57c753. At initial publication, main 554e9b1612f7799c2bc7177eb1a9b04a0f27d2e9 only reorganized README, with no production, test, dependency or policy overlap. Fresh complete authored feedback and all 16 open PR file inventories have no overlap or actionable feedback for these files; unrelated hosted cancellations are tracked separately.

  • Actual benign Clang app executable and native-plutil-linted plists with distinct identifiers reproduce the public CLI failure. Requested Alternate.plist reads Info.plist; requested Missing.plist also succeeds reading Info.plist. Default selection is a passing control.
  • Focused baseline: two actual compiled CLI failures, one control passes. Final focused: 18 tests pass (3 actual native CLI cases plus 15 existing native provider tests using their recording seams).
  • Actual compiled CLI selected paths/values match independent native plutil and a separate real SDK stdio MCP session using inspect_plist's existing path parameter. Missing requested files fail through both adapters.
  • npm run check: all five tasks pass, 125 existing warnings and zero errors; none concern the changed files. check:fast, build:cached, SSH signature/DCO and diff checks pass.

No new option, grammar, schema, provider or packaging behavior. Native macOS plist selection only; no Hopper, Ghidra, IDA, GUI, Windows or target execution claim. Hosted checks are recorded separately.

AI-assisted implementation and independent source review. Fixes #772.

macOS CI regression coverage

Signed DCO maintenance head 9823964199f628e616f60cf5d66049e262815d67 explicitly runs the existing three-case regression in the apple-artifacts job on macos-14:

npm run test:focused -- tests/boundary/cli/nativePlistCli.test.ts

The exact local command passes default, alternate and missing plist selection cases. Required check passes all five tasks and the actual pre-push check:fast passes both tasks. Updated hosted checks are pending; the prior green run did not execute these darwin-gated cases on the Linux test shards.

Hosted macOS update: the new native regression step has completed successfully and the job log reports all three native plist cases passed: https://github.com/morluto/rea/actions/runs/37513933495/job/112441974491. This verifies the updated step itself; remaining hosted contexts are audited separately.

@morluto

morluto commented Oct 6, 2026

Copy link
Copy Markdown
Owner

Reviewed: one-line fix is conclusively correct — contract only defines path, provider only reads parameters.path, so relative_path silently fell through to default Info.plist (including false success on missing file). MCP already sent path, so this reunifies CLI/MCP. Darwin-gated default/alternate/missing matrix is the right coverage. APPROVE.

Non-blocking: file uses describe.skipIf(process.platform !== 'darwin'), so Linux CI skips — worth confirming a macOS lane executes this file so the regression stays live.

@morluto

morluto commented Oct 6, 2026

Copy link
Copy Markdown
Owner

Review — APPROVE

Summary

One-line fix in src/cli/utilityCommands.ts: forwards inspect-plist --relative-path as { path: ... } instead of { relative_path: ... }. The wrong key was silently ignored, so requesting an alternate — or even a missing — plist returned the default Info.plist as a false success.

Verification

  • Contract (src/contracts/nativeToolContracts.ts:74-79): inspect_plist input schema is z.object({ path: ... }) — there is no relative_path field.
  • Provider (src/native/NativeMacOSProvider.ts:447-454, resolvePlistPath): reads only parameters.path; undefined falls through to the default. Exactly the reported silent-wrong-plist behavior.
  • CLI surface unchanged (--relative-path, default, alias intact); MCP already sent path, so this reunifies both adapters. Closes inspect-plist relative-path silently reads the default plist #772.
  • New darwin-gated tests/boundary/cli/nativePlistCli.test.ts with default / alternate / missing matrix.
  • CI: fully green including the Windows lane.

Note (non-blocking)

  • tests/boundary/cli/nativePlistCli.test.ts:1 uses describe.skipIf(process.platform !== "darwin"), so Linux lanes skip. Worth confirming a macOS lane executes tests/boundary/cli/ so the regression stays live.

@rudycelekli

Copy link
Copy Markdown
Author

Confirmed the gap: test-shard runs on Ubuntu, so those three darwin-gated cases were skipped there. The successful macOS artifact verifier job did not itself run tests/boundary/cli/nativePlistCli.test.ts.

I added an explicit focused-test step to the existing apple-artifacts job (macos-14) in signed DCO commit 9823964199f628e616f60cf5d66049e262815d67:

npm run test:focused -- tests/boundary/cli/nativePlistCli.test.ts

That exact command locally passes all three native CLI cases: default, alternate and missing requested plists. Required check passes all five tasks and the actual pre-push check:fast passes both tasks. The updated head has been pushed; its new hosted checks are pending, so the prior green run is not being used as proof that this new step has executed on GitHub.

@morluto
morluto merged commit 0374865 into morluto:main Oct 7, 2026
19 checks passed
@morluto

morluto commented Oct 7, 2026

Copy link
Copy Markdown
Owner

Thanks, @rudycelekli, for your work on “fix(cli): honor the selected native plist path.” I appreciate your contribution to REA.

darsrc pushed a commit to darsrc/rea that referenced this pull request Oct 10, 2026
* fix(cli): honor the selected native plist path

Signed-off-by: Rudy Celekli <[email protected]>

* ci: run native plist selection regressions on macOS

Signed-off-by: RudyCelekli <[email protected]>

---------

Signed-off-by: Rudy Celekli <[email protected]>
Signed-off-by: RudyCelekli <[email protected]>
@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 added the area: cli CLI adapter and one-shot commands label Nov 23, 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 area: native Native analysis and decompilation, including Ghidra, IDA, and Hopper analysis behavior bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

inspect-plist relative-path silently reads the default plist

2 participants