Skip to content

fix(native): harden command capture edge cases - #207

Merged
N0zoM1z0 merged 1 commit into
mainfrom
agent/fix-native-command-edge-cases
Jul 14, 2026
Merged

N0zoM1z0 merged 1 commit into
mainfrom
agent/fix-native-command-edge-cases

Conversation

@N0zoM1z0

Copy link
Copy Markdown
Collaborator

Summary

  • make successful native command captures explicitly exhaustive while retaining typed output-limit failure for partial output
  • parse lipo architecture output once and reuse the normalized collection
  • treat unavailable vtool as an optional Mach-O inspection limitation
  • continue propagating vtool timeout, cancellation, and adapter failures
  • add real subprocess and provider-seam regressions

Root cause and impact

The capture contract exposed truncation booleans even though output-limit handling always kills the command and returns a failure, making the success invariant unclear. Architecture enumeration reparsed the same lipo output for items and total. Mach-O inspection also treated provenance-only vtool as required, blocking otherwise complete inspection on partial Xcode toolchains.

Successful captures are now type-level exhaustive, partial output remains fail-closed, architecture parsing is single-pass, and missing optional vtool produces an explicit limitation without fabricating provenance. Non-unavailability vtool failures still fail the operation.

Verification

  • npm run check — 87 files, 592 tests
  • npm run knip
  • npm run jscpd — 0.92% duplicated lines
  • npm run scan:todos
  • post-rebase npm run typecheck
  • post-rebase targeted native and artifact tests — 15 tests

The branch was rebased onto the 1.5.0 release merge before push. Real Hopper verification was not performed; native command behavior is covered by a real subprocess boundary and provider seams.

Closes #144
Closes #174
Closes #176
Closes #187

Copy link
Copy Markdown
Collaborator Author

LGTM!

@N0zoM1z0
N0zoM1z0 merged commit c2e64a4 into main Jul 14, 2026
11 checks passed
@N0zoM1z0
N0zoM1z0 deleted the agent/fix-native-command-edge-cases branch July 14, 2026 09:07
darsrc pushed a commit to darsrc/rea that referenced this pull request Oct 10, 2026
…edge-cases

fix(native): harden command capture edge cases
@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
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 bug Something isn't working

Projects

None yet

2 participants