Repository navigation
fix(apple): preserve slice identity and macOS boundary diagnostics - #1772
Conversation
macOS 27 system binaries such as /bin/ls carry a third FAT slice with cpusubtype 0x8000000c. The SDK defines subtype 12 as CPU_SUBTYPE_ARM64E_X1, and CPU_SUBTYPE_HAS_ARM64E puts it in the arm64e family. architectureName knew only subtype 2, so it named the slice arm64, lipoNameMatches rejected lipo's arm64e.x1 name, and inspect-artifact /bin/ls failed with integrity_mismatch. The arm64e.x1 test fixture now uses the real subtype. It fails without this change. Refs morluto#1168, morluto#1765 Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ures hdiutil follows AppleLanguages. With en-GB it writes "image not recognised", and verifyFailureReason matched only the US spelling, so a file that is not a disk image got the reason unavailable. Both spellings now give format. Other languages still give unavailable. Refs morluto#1765 Co-Authored-By: Claude Opus 5.5 <[email protected]>
…heck The check ran ps -axo command= with the Node default maxBuffer of 1 MiB. On a host with 1905 processes, the output is 1.52 MB, and the test failed with "stdout maxBuffer length exceeded". Refs morluto#1765 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Codex Review SummaryThis 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. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: aba2748049
ℹ️ About Codex in GitHub
Codex has been enabled to automatically 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".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
…tic-boundary # Conflicts: # src/artifacts/apple/MachoLoadCommandReader.ts
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 33c23ac1de
ℹ️ 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".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
baron
left a comment
There was a problem hiding this comment.
Reviewed exact head 89e6769 and current-main integration. No confirmed source/design blocker.
Slice identity and raw host diagnostic spelling remain producer-owned; unrelated failure/cleanup/capacity cases remain intact. Relevant static parser/resolver tests (109) and two precisely selected injected-host diagnostics passed locally; no local hdiutil/mount or real runtime fixture operation was performed. Exact-head hosted Apple receipts independently inspected report real directory/ZIP/DMG CLI+stdio-MCP verification, detached DMG, unchanged bytes, real dyld and passed process cleanup. That does not establish every host locale/PAC ABI variant. Current exact-head required CI is green; final integration must stay clean.
A macOS host can emit
hdiutil: verify failed - image not recognised, which REA previously classified as unavailable instead of a malformed image. Accept both observed English spellings while retaining the complete failed command output.The process cleanup test now disables display PID normalization and observes only the real child and grandchild OS PIDs sampled from its own fixture, with a bounded output buffer. This removes the host-wide process-table dependency and the proposed unlimited buffer. PIDs select observations only; production cleanup authority remains unchanged.
Dyld resolution also keeps the selected process CPU type and base subtype through dependency matching. A FAT image containing both arm64e subtype 2 and X1 subtype 12 now selects the matching dependency variant; a missing variant is explicitly unresolved. Capability bits are normalized by one shared helper, and family display labels remain unchanged. The regression uses real FAT byte fixtures with opposing slice order and different nested dependencies.
The contributor's ARM64E_X1 commits remain in this branch's history; that mapping has already landed separately on main. This update completes the remaining diagnostic and process-test items from #1765.
Fixes #1765
Validation on macOS:
hdiutil verifyrefusal.npm run check:fast: passed.The en-GB diagnostic is covered from the reported producer text; this run did not change the host's AppleLanguages setting. Windows and Linux were not executed.