Repository navigation
feat(apple): join IPS images to admitted Mach-O slices - #9570
Conversation
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.
Codex Review Summary: ✅ CompletedThis 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: 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".
[Medium impact] No new blocking issue was found in the reviewed changes. SummaryAdds optional
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]
Reviews (4) · Last reviewed commit: "merge: integrate current main with IPS j..." · Reviewed by Greptile |
|
Merged current Reason: the Verified locally after the merge on the merged tree:
Not run: the full suite. |
There was a problem hiding this comment.
💡 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".
There was a problem hiding this comment.
💡 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".
|
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. |
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