Repository navigation
refactor(domain): move the binary image, Mach-O selection and fixup readers into domain - #11482
Merged
Merged
Conversation
…eaders into domain
Codex Review Summary: ❌ FailedThis 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. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Contributor
[Medium impact] The PR appears safe to merge; no actionable defects were found. SummaryMoves twelve binary readers into
Diagram%%{init: {'theme': 'neutral'}}%%
flowchart LR
P["Provider adapters"] --> A["Mach-O readers in domain"]
P --> N["ELF and PE readers in domain"]
A --> D["Shared domain helpers"]
N --> D
Reviews (2) · Last reviewed commit: "refactor(domain): move the binary image,..." · Reviewed by Greptile |
This was referenced Nov 15, 2026
4 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
Moves twelve I/O-free binary format readers from the native provider into domain, using
git mvand specifier rewrites. Each file's content is unchanged apart from its relative imports.Into
src/domain/apple/:AppleDispatchDecodeFacts.ts->appleDispatchDecodeFacts.tsAppleMachoFixups.ts->appleMachoFixups.tsAppleMachoNames.ts->appleMachoNames.tsAppleMachoSelection.ts->appleMachoSelection.tsMachoArchitectureSelection.ts(and its test) ->machoArchitectureSelection.tsMachoCommandNames.ts->machoCommandNames.tsmetadata/MachoImage.ts->machoImage.tsmetadata/MachoSliceSelection.ts->machoSliceSelection.tsInto
src/domain/native/:metadata/ElfImage.ts->elfImage.tsmetadata/ElfPointerRelocations.ts(and its test) ->elfPointerRelocations.tsmetadata/PeImage.ts->peImage.tsmetadata/readBinaryContainer.ts->readBinaryContainer.tsThe go, rust, il2cpp and kuna providers imported these from native, so four pairs leave the
crossProviderbaseline:il2cpp -> native5,go -> native2,rust -> native2,kuna -> native2.Refs #11359. Part of plan W9. Enabled by #11449 (
NativeSectionDirectory, whichElfImagereads) and #11460 (the lipo parser, whichMachoArchitectureSelectionnames).Problem and expected behavior
Four providers read ELF, PE and Mach-O containers, Mach-O slices, chained fixups and command names through the native provider's internals. Expected: format readers that do no I/O live with the other domain format readers (#11415, #11449), and providers import them inward.
Change and scope
AppleMachoFixups.test.ts,AppleMachoSelection.test.ts,MachoCommandNames.test.ts,metadata/MachoSliceSelection.test.ts,metadata/PeImage.test.ts. The two tests with no native dependency move with their modules.tests/support/analysis-efficiency/android-jni-library.mjsnames the newelfImageandelfPointerRelocationspaths, like refactor(domain): move the native section directory and ELF string readers into domain #11449 did fornativeSectionDirectory.raw-buffer-readre-keys five entries with the same counts. The layer baseline drops the four pairs above.Not included: native's own
native -> artifactsimports (#11426),android -> native(AndroidJniLibrary), andil2cpp -> ghidra.Contract and boundary impact
docs/public/product-catalog.json), package, or installation impact: none.Expected effects (check known effects; use documentation-only on its own).
Unchecked items do not establish absence; leave uncertainties visible.
Evidence and regression coverage
Tests added or updated: specifier updates only; two tests move with their modules.
Base reproduction or other evidence:
node scripts/verify-module-boundaries.mjsreportedgo -> native: 0, baseline 2,il2cpp -> native: 0, baseline 5,kuna -> native: 0, baseline 2andrust -> native: 0, baseline 2.User-visible CLI/MCP output (if applicable): none.
Remaining proof gaps: the il2cpp tests under
tests/and the JNI analysis-efficiency script were not run; il2cpp's change is two import specifiers, and the script change is two path strings.Observed, derived, and inferred claims remain distinguishable.
Artifact identity, source provenance, and failed attempts remain preserved.
Unsupported, incomplete, unavailable, or uncertain outcomes remain visible.
Validation performed
npm run check:fast: passed, including the architecture guards.node scripts/verify-module-boundaries.mjs: passed after lowering the baseline.npm run test:focused --on the 24 changed test files: 883 tests passed (14.3 s).npm run test:focused --onsrc/go/*.test.ts,src/kuna/*.test.tsandsrc/rust/*.test.ts(6 files): 71 tests passed.Compatibility, safety, and release
This is a pure move (
git mv, specifier rewrites, two path strings and baseline re-keys), so the squash commit goes in.git-blame-ignore-revsafter merge.Author readiness
Human owner:
Before merge
type(scope): outcome.