Repository navigation
fix(native): harden command capture edge cases - #207
Merged
Merged
Conversation
Collaborator
Author
|
LGTM! |
darsrc
pushed a commit
to darsrc/rea
that referenced
this pull request
Oct 10, 2026
…edge-cases fix(native): harden command capture edge cases
2 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
output-limitfailure for partial outputvtoolas an optional Mach-O inspection limitationRoot 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
itemsandtotal. Mach-O inspection also treated provenance-onlyvtoolas 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 testsnpm run knipnpm run jscpd— 0.92% duplicated linesnpm run scan:todosnpm run typecheckThe 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