Skip to content

fix(native): preserve implementation file locations - #8667

Merged
morluto merged 1 commit into
morluto:mainfrom
ShuaixinHuang:codex/fix-native-ui-handler-location
Nov 3, 2026
Merged

morluto merged 1 commit into
morluto:mainfrom
ShuaixinHuang:codex/fix-native-ui-handler-location

Conversation

@ShuaixinHuang

@ShuaixinHuang ShuaixinHuang commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

Supersedes #8635 at the author's explicit request to resubmit all current PRs. Same published branch and HEAD 2262e3b. Original discussion and historical validation remain at #8635. This new PR requires its own hosted CI and new human declarations for this PR ID.

Supersedes #8496 at the author's explicit request to resubmit all current PRs. Same published branch and HEAD 2262e3be91897167d0c828a5de9aa74bc7a3da2e. Original discussion and historical validation remain at #8496. This new PR requires its own hosted CI and a new human declaration for this PR ID; prior review declarations are historical.

Supersedes #8493 at the author's explicit request to replace that submission with the verified #8198 implementation. The prior #8493 is closed unmerged; its discussion and CI history remain preserved at #8493. This replacement reuses verified fork head 2262e3be91897167d0c828a5de9aa74bc7a3da2e from branch codex/fix-native-ui-handler-location. This PR must complete its own hosted CI; prior checks are historical evidence only.

Summary

Fixes #8198. Native UI handler method records previously used the method-record file offset as the implementation address location. The change keeps the implementation address location distinct from the method-record location and preserves the owning evidence relationship.

Scope

  • Preserve the implementation address and method-record file offset as separate fields.
  • Keep source-record identity and implementation identity distinct in the native investigation graph.
  • Avoid changing provider authority, runtime behavior, capture, or schema semantics outside this location mapping.

Evidence and validation

  • Four-file patch: 192 additions / 23 deletions.
  • Exact baseline: 4 failures / 47 passes.
  • After the change: 87 targeted passes.
  • Build, check:fast, and discovery checks passed.
  • Evidence uses schema-valid synthetic facts with production graph and public MCP InMemoryTransport.
  • Validation limitation: this does not claim real Mach-O/Ghidra/AppKit/Kuna/Mac/Linux/native CLI/stdio-MCP or full-repository coverage.

Author readiness

Human owner: @ShuaixinHuang

  • 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.

Before merge

  • This PR addresses a concrete reported problem.
  • The scope and authority limits are stated.
  • Tests cover the changed location mapping and failure paths.
  • Validation limits are disclosed.
  • I checked the final diff for unrelated changes and unsupported claims.

This PR is a replacement submission only; no merge or review-thread action is requested automatically.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 2, 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-11-02T14:34:49.057364Z 2262e3b PR opened
ℹ️ 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.

@greptile-apps

greptile-apps Bot commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The location-mapping change appears safe to merge.

Summary

This PR stops assigning an Objective-C method-record offset to the handler’s code location.

  • Native UI traces keep method-record offsets separate from handler locations.

Reviews (1) · Last reviewed commit: "fix(native): keep UI handler offsets dis..." · Reviewed by Greptile

@morluto
morluto merged commit 22c493a into morluto:main Nov 3, 2026
153 of 155 checks passed
@morluto morluto added area: native Native analysis and decompilation, including Ghidra, IDA, and Hopper analysis behavior bug Something isn't working labels Nov 22, 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] UI trace pairs Objective-C handler addresses with method-record file offsets

2 participants