Skip to content

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

Closed
ShuaixinHuang wants to merge 1 commit into
morluto:mainfrom
ShuaixinHuang:codex/fix-native-ui-handler-location
Closed

ShuaixinHuang wants to merge 1 commit into
morluto:mainfrom
ShuaixinHuang:codex/fix-native-ui-handler-location

Conversation

@ShuaixinHuang

@ShuaixinHuang ShuaixinHuang commented Nov 1, 2026 •

Copy link
Copy Markdown
Contributor

Superseded by #8635 at the author's request: #8635 . The replacement reuses the same published branch and HEAD. This closed PR preserves the original discussion and historical validation.

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 1, 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-01T12:08:13.877900Z 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 1, 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 its handler’s code location.

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

No actionable correctness or security issue was found. Checks were source-based; no tests or runtime checks were run during this review.

The supplied description says this replaces #8493. Whether #8496 has since been superseded could not be checked because GitHub access required authentication.

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

@morluto morluto added area: native Native analysis and decompilation, including Ghidra, IDA, and Hopper analysis behavior bug Something isn't working labels Nov 23, 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