Skip to content

feat(apple): join IPS images to admitted Mach-O slices - #9570

Merged
morluto merged 7 commits into
morluto:mainfrom
2SinceJuly:feat/4297-ips-symbol-join
Nov 9, 2026
Merged

morluto merged 7 commits into
morluto:mainfrom
2SinceJuly:feat/4297-ips-symbol-join

Conversation

@2SinceJuly

@2SinceJuly 2SinceJuly commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

Refs #4297. Join recorded Apple IPS images and frames to one explicitly selected Mach-O/dSYM using UUID, architecture and admitted __TEXT coordinates. Shared-cache image sources S/C remain unjoined because standalone-image applicability is unknown. Recorded symbols remain recorded claims; this does not perform symbol lookup or live target analysis.

The shared Mach-O container owner now admits FAT ranges and supported hidden ARM64 rows before slice/command/segment interpretation. Overlaps and conflicting UUID commands are refused. Source-sized rejection details are retained once per image; frames reference the image diagnostic. Join integers use the report's existing text-budget owner. Failed reads and later interpretation failures retain report facts plus independently completed join-file identity and exact retryable cleanup ownership.

The service binds join presence, path and byte length to the parsed request and records both source artifacts in Evidence locations. The selected join budget and failure field remain distinct even when both selected paths are identical.

Validation: 115 final service/parser/filesystem/CLI/stdio-MCP tests passed, including the shared Mach-O reader. New overlap, hidden-slice, diagnostic-expansion and completed-receipt assertions failed against the prior implementation; seven provider-contract/shared-cache controls also failed before their repair. check:fast, docs:check (9 README checks), formatting and diff checks passed. Controlled local format fixtures establish these boundaries; no real Apple crash/dSYM qualification, live target or full repository gate was run.

Integration with current main (including merged #8993) preserves the join-aware failure owner after resolving one provider conflict. The combined Apple/V8 run passed all 148 tests across 10 suites, and the integrated check:fast gate passed. No full repository CI or real-provider qualification is claimed.

Author readiness

Human owner: @2SinceJuly

  • I reviewed the final diff and relevant existing code, understand the change and its edge cases, and take responsibility for the complete PR, including AI-assisted work.
  • I checked the evidence above, confirmed it supports the current change, and recorded meaningful validation gaps.
  • I declare this PR ready for initial maintainer review.

inspect_apple_ips reported every image UUID as unknown and stated that joined
frames were unobserved. Accept an optional join_path, read its LC_UUID and
__TEXT vmaddr with the existing bounded stable-artifact reader, and match by
canonical UUID plus architecture.

A frame joins only when exactly one slice carries the image UUID and an
agreeing architecture, so arm64 and arm64e never cross, all-zero UUIDs never
join, and a conflicted or unreadable artifact stays typed instead of guessed.
Joined frames report the slice __TEXT vmaddr plus the recorded imageOffset as
a static address, which is the value atos resolves for the same report.
Symbolication is still not performed.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 9, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-09T12:31:22.825175Z 1f36bbe 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: 8c8ec4d62e

ℹ️ 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".

Comment thread src/native/apple/AppleIpsMachOJoin.ts Resolved
Comment thread src/native/apple/AppleIpsMachOJoin.ts Resolved
Comment thread src/native/apple/AppleIpsMachOJoin.ts Resolved
Comment thread src/native/apple/AppleIpsMachOJoin.ts Resolved
Comment thread src/native/apple/AppleIpsProvider.ts Resolved
Comment thread src/native/apple/AppleIpsMachOJoin.ts Resolved
Comment thread src/native/apple/AppleIpsProvider.ts Resolved
@greptile-apps

greptile-apps Bot commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5 Tier: plus

[Medium impact] No new blocking issue was found in the reviewed changes.

Summary

Adds optional join_path support to connect IPS images and frames to one selected Mach-O or dSYM file.

  • Apple crash reports can now show static addresses from a matching Mach-O slice.
  • Join failures keep the completed report and file identity available.

Diagram

%%{init: {'theme': 'neutral'}}%%
flowchart TD
  A[Read selected IPS file] --> B[Parse report]
  B --> C{join_path selected?}
  C -->|No| H[Return Evidence]
  C -->|Yes| D[Read selected join file]
  D --> E[Admit Mach-O slices and commands]
  E --> F[Match UUID and architecture]
  F --> G[Derive addresses or explain unjoined frames]
  G --> H
  D -->|Read fails| I[Return error with completed report]
  E -->|Interpretation fails| J[Keep report and join file receipt]
Loading

Reviews (4) · Last reviewed commit: "merge: integrate current main with IPS j..." · Reviewed by Greptile

Comment thread src/native/apple/AppleIpsMachOJoin.ts Resolved
Comment thread src/native/apple/AppleIpsMachOJoin.ts Resolved
Comment thread src/native/apple/AppleIpsMachOJoin.ts Resolved
Comment thread src/native/apple/AppleIpsMachOJoin.ts Resolved
Comment thread src/native/apple/AppleIpsProvider.ts Resolved
@2SinceJuly

Copy link
Copy Markdown
Contributor Author

Merged current main into this branch (no code changes of mine in the merge).

Reason: the Test shard failures on this PR were all tests that main had already fixed after this branch forked — tests/acceptance/applications/javascriptFactoryCompletion.test.ts, javascriptWindowOptionsCli.test.ts, tests/boundary/filesystem/javascript-applications/javascriptApplicationEmptyLiterals.test.ts, javascriptFileUrlPaths.test.ts, and tests/boundary/mcp/sourcePublicationComposed.test.ts (fixed by bd0642e0a, b46f4fceb and 5d5fe72 on main). Rebasing onto the current baseline clears them; the remaining red shards were fail-fast cancellations.

Verified locally after the merge on the merged tree:

  • --project acceptance javascriptFactoryCompletion.test.ts + javascriptWindowOptionsCli.test.ts: 3/3 pass
  • --project boundary javascriptApplicationEmptyLiterals.test.ts + javascriptFileUrlPaths.test.ts: 52/52 pass
  • --project mcp-boundary sourcePublicationComposed.test.ts: 11/11 pass

Not run: the full suite.

Comment thread src/native/apple/AppleIpsProvider.ts Resolved
Comment thread src/native/apple/AppleIpsMachOJoin.ts Resolved
Comment thread src/cli/binaryDiagnosticsCommands.ts Resolved
Comment thread src/domain/native/appleIps.ts Resolved

@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: 4fd2ec72fb

ℹ️ 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".

Comment thread src/native/apple/AppleIpsMachOJoin.ts Resolved
Comment thread src/native/apple/AppleIpsMachOJoin.ts Resolved
Comment thread src/domain/native/appleIps.ts Resolved
@morluto morluto changed the title feat(apple): join Apple IPS frames to a selected Mach-O or dSYM slice feat(apple): join IPS images to admitted Mach-O slices Nov 9, 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: decd6becf3

ℹ️ 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".

Comment thread src/native/apple/AppleIpsMachOJoin.ts Resolved
Comment thread src/native/apple/AppleIpsMachOJoin.ts Resolved
Comment thread src/native/apple/AppleIpsMachOJoin.ts Resolved
Comment thread src/native/apple/AppleIpsProvider.ts Resolved
@morluto

morluto commented Nov 9, 2026

Copy link
Copy Markdown
Owner

The join now uses shared container admission, including overlapping-range refusal and supported hidden ARM64 rows, then bounded slice/command/segment interpretation. S/C cached images remain unjoined. Missing offsets and ambiguous UUID/CPU matches stay unknown; derived integers share the caller's text budget. Source-sized reasons are stored once per image. The service binds join presence, selected path and byte allowance, and indexes both read sources in Evidence locations. Failure projection retains the decoded IPS report plus any independently completed join digest/length and exact cleanup owner. Validation: 115 final service/shared-parser/filesystem/CLI/stdio-MCP tests passed. The new format/receipt/expansion controls and seven contract/shared-cache controls failed before repair. check:fast and docs:check passed. Real Apple crash/dSYM qualification remains unverified. This addresses the slice, identity, budget, provenance and failure-delivery findings without adding target execution or symbol-lookup authority.

@morluto
morluto merged commit 97b5503 into morluto:main Nov 9, 2026
4 of 6 checks passed
@morluto morluto mentioned this pull request Nov 11, 2026
3 tasks done
@morluto morluto added the enhancement New feature or request label Nov 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants