Skip to content

fix(apple): preserve slice identity and macOS boundary diagnostics - #1772

Merged
baron merged 7 commits into
morluto:mainfrom
dhl84:fix/macos-27-boundary-tests
Oct 12, 2026
Merged

baron merged 7 commits into
morluto:mainfrom
dhl84:fix/macos-27-boundary-tests

Conversation

@dhl84

@dhl84 dhl84 commented Oct 11, 2026 •

Copy link
Copy Markdown
Contributor

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:

  • Focused diagnostic cases: 3 passed, including a real hdiutil verify refusal.
  • Real source-owned child/grandchild capture and cleanup: passed in 2.81 seconds after the OS-PID correction.
  • Mach-O reader and dyld resolution: 109 tests passed in 0.14 seconds, including mixed and missing X1 dependency variants.
  • Cached runtime build and 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.

David Lee and others added 3 commits October 11, 2026 09:34
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]>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 11, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-11T19:16:58.245790Z 33c23ac New commits
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

@morluto morluto changed the title fix(artifacts): accept macOS 27 arm64e.x1 slices and en-GB hdiutil refusals fix(macos): accept hdiutil diagnostics and bound cleanup observations Oct 11, 2026
@morluto morluto changed the title fix(macos): accept hdiutil diagnostics and bound cleanup observations fix(apple): preserve slice identity and macOS boundary diagnostics Oct 11, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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 baron left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@baron
baron merged commit 5c29565 into morluto:main Oct 12, 2026
31 checks passed
@morluto morluto mentioned this pull request Oct 13, 2026
3 tasks done
@morluto morluto added the bug Something isn't working label Oct 14, 2026
@morluto morluto added the area: native Native analysis and decompilation, including Ghidra, IDA, and Hopper analysis behavior label Nov 26, 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

Development

Successfully merging this pull request may close these issues.

[Bug] inspect-artifact /bin/ls still fails on macOS 27: rea names the CPU_SUBTYPE_ARM64E_X1 slice arm64

3 participants